This pack enables the integration of NSOne into Stackstorm
To create and install the config file, you can run:
st2 pack config nsone
Alternatively, you can copy the example configuration in
nsone.yaml.example
to /opt/stackstorm/configs/nsone.yaml
and edit as required.
api_key:
API-KEYdebug:
optional debug flag. Set to True for additional logging
You can also use dynamic values from the datastore. See the docs for more info.
Note : When modifying the configuration in /opt/stackstorm/configs/
please
remember to tell StackStorm to load these new values by running
st2ctl reload --register-configs
- Sign into NSOne
- Go to 'Account Settings' > 'API Keys'
- Click on 'Add Key' and select the permissions this API should have.
- Add the API Key to the Pack's config.
---
api_key: abcd1234ABCD
debug: false
account.get
- Get data about your account
feed.create
- Create a feed in a data sourcefeed.delete
- Delete a feed in a data sourcefeed.get
- Get details about a feed in a data sourcefeed.list
- List all feeds in a data sourcefeed.update
- Update a feed in a data source
monitor.get
- Get details about a monitormonitor.list
- List all monitors
notify_list.get
- Get details about a notification listnotify_list.list
- List all notification lists
record.create
- Create a recordrecord.delete
- Delete a recordrecord.get
- Get details about a recordrecord.update
- Update a record
source.create
- Create a data sourcesource.delete
- Delete a data sourcesource.get
- Get details about a data sourcesource.list
- List all data sourcessource.publish
- Publish a data sourcesource.update
- Update a data source
stats.qps
- Get QPS (Queries per second) details about your Account, a Zone, or a Recordstats.usage
- Get usage details about your Account, a Zone, or a Record
zone.create
- Create a zonezone.delete
- Delete a zonezone.get
- Get details about a zonezone.list
- List all zoneszone.search
- Search a zone for recordszone.update
- Update a zone
- NS1 API Reference - https://ns1.com/api
ns1-python
Reference - https://ns1-python.readthedocs.io/en/latest/index.htmlns1-python
Source - https://github.com/ns1/ns1-python- This is the SDK Being used by this pack
- Currently this pack's logic leverages the Modules found in
ns1-python/ns1/rest
- Actions covered by methods in
ns1-python/ns1/rest/ipam.py
- Actions for
monitor.create
,monitor.update
,monitor.delete
inns1-python/ns1/rest/monitoring.py
- Actions for
notify_list.create
,notify_list.update
,notify_list.delete
inns1-python/ns1/rest/monitoring.py