Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request to append Data such as ip_prefix, up etc. to datafeed/datasource #185

Open
shanauditore16 opened this issue Sep 30, 2021 · 1 comment

Comments

@shanauditore16
Copy link

NS1 datafeeds can be configured with pre-defined data. This datafeed can then be applied to records along with filters.

for example:
Configure datafeed with following data.
curl -H "X-NSONE-Key: ****" -d '{"":{"ip_prefixes":["10.0.0.0/8"], "up": "true"}}' https://ns1.example.com/v1/feed/<source_id>

The option to add this data parameter is missing from the ns1_datafeed resource .,

Reason:
We have many non-power users managing their own zones and records. Having a pre-configured data feed, makes it easier for them to add the required feed to their DNS record.

Would be nice to configure this data into a datafeed via the terraform module.

@shanauditore16
Copy link
Author

shanauditore16 commented Sep 30, 2021

Basically, to do what this point states on the NS1 UI..

The native NSONE data source, our own API. Requires normal NSONE API authentication via the X-NSONE-Key header when sending requests to the Feed URL. The body of your data feed request must be a JSON object containing either simple key/value pairs as in any normal record/region/answer metadata table, e.g. {"up": "1"}, in which case the updated values will be applied to all data feeds associated with this data source; or, an object where keys match the label for data feeds from this source, and values are metadata update tables. Data feeds from this source may update any metadata field.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant