DataSource
Provides a NS1 Data Source resource. This can be used to create, modify, and delete data sources.
NS1 Documentation
Create a DataSource Resource
new DataSource(name: string, args: DataSourceArgs, opts?: CustomResourceOptions);def DataSource(resource_name, opts=None, config=None, name=None, sourcetype=None, __props__=None);func NewDataSource(ctx *Context, name string, args DataSourceArgs, opts ...ResourceOption) (*DataSource, error)public DataSource(string name, DataSourceArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args DataSourceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args DataSourceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DataSourceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
DataSource Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The DataSource resource accepts the following input properties:
- Sourcetype string
The data sources type, listed in API endpoint https://api.nsone.net/v1/data/sourcetypes.
- Config Dictionary<string, object>
The data source configuration, determined by its type, matching the specification in
configfrom /data/sourcetypes.- Name string
The free form name of the data source.
- Sourcetype string
The data sources type, listed in API endpoint https://api.nsone.net/v1/data/sourcetypes.
- Config map[string]interface{}
The data source configuration, determined by its type, matching the specification in
configfrom /data/sourcetypes.- Name string
The free form name of the data source.
- sourcetype string
The data sources type, listed in API endpoint https://api.nsone.net/v1/data/sourcetypes.
- config {[key: string]: any}
The data source configuration, determined by its type, matching the specification in
configfrom /data/sourcetypes.- name string
The free form name of the data source.
- sourcetype str
The data sources type, listed in API endpoint https://api.nsone.net/v1/data/sourcetypes.
- config Dict[str, Any]
The data source configuration, determined by its type, matching the specification in
configfrom /data/sourcetypes.- name str
The free form name of the data source.
Outputs
All input properties are implicitly available as output properties. Additionally, the DataSource resource produces the following output properties:
Look up an Existing DataSource Resource
Get an existing DataSource resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: DataSourceState, opts?: CustomResourceOptions): DataSourcestatic get(resource_name, id, opts=None, config=None, name=None, sourcetype=None, __props__=None);func GetDataSource(ctx *Context, name string, id IDInput, state *DataSourceState, opts ...ResourceOption) (*DataSource, error)public static DataSource Get(string name, Input<string> id, DataSourceState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Config Dictionary<string, object>
The data source configuration, determined by its type, matching the specification in
configfrom /data/sourcetypes.- Name string
The free form name of the data source.
- Sourcetype string
The data sources type, listed in API endpoint https://api.nsone.net/v1/data/sourcetypes.
- Config map[string]interface{}
The data source configuration, determined by its type, matching the specification in
configfrom /data/sourcetypes.- Name string
The free form name of the data source.
- Sourcetype string
The data sources type, listed in API endpoint https://api.nsone.net/v1/data/sourcetypes.
- config {[key: string]: any}
The data source configuration, determined by its type, matching the specification in
configfrom /data/sourcetypes.- name string
The free form name of the data source.
- sourcetype string
The data sources type, listed in API endpoint https://api.nsone.net/v1/data/sourcetypes.
- config Dict[str, Any]
The data source configuration, determined by its type, matching the specification in
configfrom /data/sourcetypes.- name str
The free form name of the data source.
- sourcetype str
The data sources type, listed in API endpoint https://api.nsone.net/v1/data/sourcetypes.
Package Details
- Repository
- https://github.com/pulumi/pulumi-ns1
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ns1Terraform Provider.