APIKey
Create a APIKey Resource
new APIKey(name: string, args?: APIKeyArgs, opts?: CustomResourceOptions);def APIKey(resource_name, opts=None, account_manage_account_settings=None, account_manage_apikeys=None, account_manage_payment_methods=None, account_manage_plan=None, account_manage_teams=None, account_manage_users=None, account_view_activity_log=None, account_view_invoices=None, data_manage_datafeeds=None, data_manage_datasources=None, data_push_to_datafeeds=None, dhcp_manage_dhcp=None, dhcp_view_dhcp=None, dns_manage_zones=None, dns_view_zones=None, dns_zones_allow_by_default=None, dns_zones_allows=None, dns_zones_denies=None, ip_whitelist_strict=None, ip_whitelists=None, ipam_manage_ipam=None, ipam_view_ipam=None, monitoring_manage_jobs=None, monitoring_manage_lists=None, monitoring_view_jobs=None, name=None, security_manage_active_directory=None, security_manage_global2fa=None, teams=None, __props__=None);func NewAPIKey(ctx *Context, name string, args *APIKeyArgs, opts ...ResourceOption) (*APIKey, error)public APIKey(string name, APIKeyArgs? args = null, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args APIKeyArgs
- 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 APIKeyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args APIKeyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
APIKey Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The APIKey resource accepts the following input properties:
- Account
Manage boolAccount Settings Whether the apikey can modify account settings.
- Account
Manage boolApikeys Whether the apikey can modify account apikeys.
- Account
Manage boolPayment Methods Whether the apikey can modify account payment methods.
- Account
Manage boolPlan Whether the apikey can modify the account plan.
- Account
Manage boolTeams Whether the apikey can modify other teams in the account.
- Account
Manage boolUsers Whether the apikey can modify account users.
- Account
View boolActivity Log Whether the apikey can view activity logs.
- Account
View boolInvoices Whether the apikey can view invoices.
- Data
Manage boolDatafeeds Whether the apikey can modify data feeds.
- Data
Manage boolDatasources Whether the apikey can modify data sources.
- Data
Push boolTo Datafeeds Whether the apikey can publish to data feeds.
- Dhcp
Manage boolDhcp Whether the apikey can manage DHCP. Only relevant for the DDI product.
- Dhcp
View boolDhcp Whether the apikey can view DHCP. Only relevant for the DDI product.
- Dns
Manage boolZones Whether the apikey can modify the accounts zones.
- Dns
View boolZones Whether the apikey can view the accounts zones.
- Dns
Zones boolAllow By Default If true, enable the
dns_zones_allowlist, otherwise enable thedns_zones_denylist.- Dns
Zones List<string>Allows List of zones that the apikey may access.
- Dns
Zones List<string>Denies List of zones that the apikey may not access.
- Ip
Whitelist boolStrict Sets exclusivity on this IP whitelist.
- Ip
Whitelists List<string> The IP addresses to whitelist for this key.
- Ipam
Manage boolIpam Whether the apikey can manage IPAM. Only relevant for the DDI product.
- Ipam
View boolIpam Whether the apikey can view IPAM. Only relevant for the DDI product.
- Monitoring
Manage boolJobs Whether the apikey can modify monitoring jobs.
- Monitoring
Manage boolLists Whether the apikey can modify notification lists.
- Monitoring
View boolJobs Whether the apikey can view monitoring jobs.
- Name string
The free form name of the apikey.
- Security
Manage boolActive Directory Whether the apikey can manage global active directory. Only relevant for the DDI product.
- Security
Manage boolGlobal2fa Whether the apikey can manage global two factor authentication.
- Teams List<string>
The teams that the apikey belongs to.
- Account
Manage boolAccount Settings Whether the apikey can modify account settings.
- Account
Manage boolApikeys Whether the apikey can modify account apikeys.
- Account
Manage boolPayment Methods Whether the apikey can modify account payment methods.
- Account
Manage boolPlan Whether the apikey can modify the account plan.
- Account
Manage boolTeams Whether the apikey can modify other teams in the account.
- Account
Manage boolUsers Whether the apikey can modify account users.
- Account
View boolActivity Log Whether the apikey can view activity logs.
- Account
View boolInvoices Whether the apikey can view invoices.
- Data
Manage boolDatafeeds Whether the apikey can modify data feeds.
- Data
Manage boolDatasources Whether the apikey can modify data sources.
- Data
Push boolTo Datafeeds Whether the apikey can publish to data feeds.
- Dhcp
Manage boolDhcp Whether the apikey can manage DHCP. Only relevant for the DDI product.
- Dhcp
View boolDhcp Whether the apikey can view DHCP. Only relevant for the DDI product.
- Dns
Manage boolZones Whether the apikey can modify the accounts zones.
- Dns
View boolZones Whether the apikey can view the accounts zones.
- Dns
Zones boolAllow By Default If true, enable the
dns_zones_allowlist, otherwise enable thedns_zones_denylist.- Dns
Zones []stringAllows List of zones that the apikey may access.
- Dns
Zones []stringDenies List of zones that the apikey may not access.
- Ip
Whitelist boolStrict Sets exclusivity on this IP whitelist.
- Ip
Whitelists []string The IP addresses to whitelist for this key.
- Ipam
Manage boolIpam Whether the apikey can manage IPAM. Only relevant for the DDI product.
- Ipam
View boolIpam Whether the apikey can view IPAM. Only relevant for the DDI product.
- Monitoring
Manage boolJobs Whether the apikey can modify monitoring jobs.
- Monitoring
Manage boolLists Whether the apikey can modify notification lists.
- Monitoring
View boolJobs Whether the apikey can view monitoring jobs.
- Name string
The free form name of the apikey.
- Security
Manage boolActive Directory Whether the apikey can manage global active directory. Only relevant for the DDI product.
- Security
Manage boolGlobal2fa Whether the apikey can manage global two factor authentication.
- Teams []string
The teams that the apikey belongs to.
- account
Manage booleanAccount Settings Whether the apikey can modify account settings.
- account
Manage booleanApikeys Whether the apikey can modify account apikeys.
- account
Manage booleanPayment Methods Whether the apikey can modify account payment methods.
- account
Manage booleanPlan Whether the apikey can modify the account plan.
- account
Manage booleanTeams Whether the apikey can modify other teams in the account.
- account
Manage booleanUsers Whether the apikey can modify account users.
- account
View booleanActivity Log Whether the apikey can view activity logs.
- account
View booleanInvoices Whether the apikey can view invoices.
- data
Manage booleanDatafeeds Whether the apikey can modify data feeds.
- data
Manage booleanDatasources Whether the apikey can modify data sources.
- data
Push booleanTo Datafeeds Whether the apikey can publish to data feeds.
- dhcp
Manage booleanDhcp Whether the apikey can manage DHCP. Only relevant for the DDI product.
- dhcp
View booleanDhcp Whether the apikey can view DHCP. Only relevant for the DDI product.
- dns
Manage booleanZones Whether the apikey can modify the accounts zones.
- dns
View booleanZones Whether the apikey can view the accounts zones.
- dns
Zones booleanAllow By Default If true, enable the
dns_zones_allowlist, otherwise enable thedns_zones_denylist.- dns
Zones string[]Allows List of zones that the apikey may access.
- dns
Zones string[]Denies List of zones that the apikey may not access.
- ip
Whitelist booleanStrict Sets exclusivity on this IP whitelist.
- ip
Whitelists string[] The IP addresses to whitelist for this key.
- ipam
Manage booleanIpam Whether the apikey can manage IPAM. Only relevant for the DDI product.
- ipam
View booleanIpam Whether the apikey can view IPAM. Only relevant for the DDI product.
- monitoring
Manage booleanJobs Whether the apikey can modify monitoring jobs.
- monitoring
Manage booleanLists Whether the apikey can modify notification lists.
- monitoring
View booleanJobs Whether the apikey can view monitoring jobs.
- name string
The free form name of the apikey.
- security
Manage booleanActive Directory Whether the apikey can manage global active directory. Only relevant for the DDI product.
- security
Manage booleanGlobal2fa Whether the apikey can manage global two factor authentication.
- teams string[]
The teams that the apikey belongs to.
- account_
manage_ boolaccount_ settings Whether the apikey can modify account settings.
- account_
manage_ boolapikeys Whether the apikey can modify account apikeys.
- account_
manage_ boolpayment_ methods Whether the apikey can modify account payment methods.
- account_
manage_ boolplan Whether the apikey can modify the account plan.
- account_
manage_ boolteams Whether the apikey can modify other teams in the account.
- account_
manage_ boolusers Whether the apikey can modify account users.
- account_
view_ boolactivity_ log Whether the apikey can view activity logs.
- account_
view_ boolinvoices Whether the apikey can view invoices.
- data_
manage_ booldatafeeds Whether the apikey can modify data feeds.
- data_
manage_ booldatasources Whether the apikey can modify data sources.
- data_
push_ boolto_ datafeeds Whether the apikey can publish to data feeds.
- dhcp_
manage_ booldhcp Whether the apikey can manage DHCP. Only relevant for the DDI product.
- dhcp_
view_ booldhcp Whether the apikey can view DHCP. Only relevant for the DDI product.
- dns_
manage_ boolzones Whether the apikey can modify the accounts zones.
- dns_
view_ boolzones Whether the apikey can view the accounts zones.
- dns_
zones_ boolallow_ by_ default If true, enable the
dns_zones_allowlist, otherwise enable thedns_zones_denylist.- dns_
zones_ List[str]allows List of zones that the apikey may access.
- dns_
zones_ List[str]denies List of zones that the apikey may not access.
- ip_
whitelist_ boolstrict Sets exclusivity on this IP whitelist.
- ip_
whitelists List[str] The IP addresses to whitelist for this key.
- ipam_
manage_ boolipam Whether the apikey can manage IPAM. Only relevant for the DDI product.
- ipam_
view_ boolipam Whether the apikey can view IPAM. Only relevant for the DDI product.
- monitoring_
manage_ booljobs Whether the apikey can modify monitoring jobs.
- monitoring_
manage_ boollists Whether the apikey can modify notification lists.
- monitoring_
view_ booljobs Whether the apikey can view monitoring jobs.
- name str
The free form name of the apikey.
- security_
manage_ boolactive_ directory Whether the apikey can manage global active directory. Only relevant for the DDI product.
- security_
manage_ boolglobal2fa Whether the apikey can manage global two factor authentication.
- teams List[str]
The teams that the apikey belongs to.
Outputs
All input properties are implicitly available as output properties. Additionally, the APIKey resource produces the following output properties:
Look up an Existing APIKey Resource
Get an existing APIKey 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?: APIKeyState, opts?: CustomResourceOptions): APIKeystatic get(resource_name, id, opts=None, account_manage_account_settings=None, account_manage_apikeys=None, account_manage_payment_methods=None, account_manage_plan=None, account_manage_teams=None, account_manage_users=None, account_view_activity_log=None, account_view_invoices=None, data_manage_datafeeds=None, data_manage_datasources=None, data_push_to_datafeeds=None, dhcp_manage_dhcp=None, dhcp_view_dhcp=None, dns_manage_zones=None, dns_view_zones=None, dns_zones_allow_by_default=None, dns_zones_allows=None, dns_zones_denies=None, ip_whitelist_strict=None, ip_whitelists=None, ipam_manage_ipam=None, ipam_view_ipam=None, key=None, monitoring_manage_jobs=None, monitoring_manage_lists=None, monitoring_view_jobs=None, name=None, security_manage_active_directory=None, security_manage_global2fa=None, teams=None, __props__=None);func GetAPIKey(ctx *Context, name string, id IDInput, state *APIKeyState, opts ...ResourceOption) (*APIKey, error)public static APIKey Get(string name, Input<string> id, APIKeyState? 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:
- Account
Manage boolAccount Settings Whether the apikey can modify account settings.
- Account
Manage boolApikeys Whether the apikey can modify account apikeys.
- Account
Manage boolPayment Methods Whether the apikey can modify account payment methods.
- Account
Manage boolPlan Whether the apikey can modify the account plan.
- Account
Manage boolTeams Whether the apikey can modify other teams in the account.
- Account
Manage boolUsers Whether the apikey can modify account users.
- Account
View boolActivity Log Whether the apikey can view activity logs.
- Account
View boolInvoices Whether the apikey can view invoices.
- Data
Manage boolDatafeeds Whether the apikey can modify data feeds.
- Data
Manage boolDatasources Whether the apikey can modify data sources.
- Data
Push boolTo Datafeeds Whether the apikey can publish to data feeds.
- Dhcp
Manage boolDhcp Whether the apikey can manage DHCP. Only relevant for the DDI product.
- Dhcp
View boolDhcp Whether the apikey can view DHCP. Only relevant for the DDI product.
- Dns
Manage boolZones Whether the apikey can modify the accounts zones.
- Dns
View boolZones Whether the apikey can view the accounts zones.
- Dns
Zones boolAllow By Default If true, enable the
dns_zones_allowlist, otherwise enable thedns_zones_denylist.- Dns
Zones List<string>Allows List of zones that the apikey may access.
- Dns
Zones List<string>Denies List of zones that the apikey may not access.
- Ip
Whitelist boolStrict Sets exclusivity on this IP whitelist.
- Ip
Whitelists List<string> The IP addresses to whitelist for this key.
- Ipam
Manage boolIpam Whether the apikey can manage IPAM. Only relevant for the DDI product.
- Ipam
View boolIpam Whether the apikey can view IPAM. Only relevant for the DDI product.
- Key string
The apikeys authentication token.
- Monitoring
Manage boolJobs Whether the apikey can modify monitoring jobs.
- Monitoring
Manage boolLists Whether the apikey can modify notification lists.
- Monitoring
View boolJobs Whether the apikey can view monitoring jobs.
- Name string
The free form name of the apikey.
- Security
Manage boolActive Directory Whether the apikey can manage global active directory. Only relevant for the DDI product.
- Security
Manage boolGlobal2fa Whether the apikey can manage global two factor authentication.
- Teams List<string>
The teams that the apikey belongs to.
- Account
Manage boolAccount Settings Whether the apikey can modify account settings.
- Account
Manage boolApikeys Whether the apikey can modify account apikeys.
- Account
Manage boolPayment Methods Whether the apikey can modify account payment methods.
- Account
Manage boolPlan Whether the apikey can modify the account plan.
- Account
Manage boolTeams Whether the apikey can modify other teams in the account.
- Account
Manage boolUsers Whether the apikey can modify account users.
- Account
View boolActivity Log Whether the apikey can view activity logs.
- Account
View boolInvoices Whether the apikey can view invoices.
- Data
Manage boolDatafeeds Whether the apikey can modify data feeds.
- Data
Manage boolDatasources Whether the apikey can modify data sources.
- Data
Push boolTo Datafeeds Whether the apikey can publish to data feeds.
- Dhcp
Manage boolDhcp Whether the apikey can manage DHCP. Only relevant for the DDI product.
- Dhcp
View boolDhcp Whether the apikey can view DHCP. Only relevant for the DDI product.
- Dns
Manage boolZones Whether the apikey can modify the accounts zones.
- Dns
View boolZones Whether the apikey can view the accounts zones.
- Dns
Zones boolAllow By Default If true, enable the
dns_zones_allowlist, otherwise enable thedns_zones_denylist.- Dns
Zones []stringAllows List of zones that the apikey may access.
- Dns
Zones []stringDenies List of zones that the apikey may not access.
- Ip
Whitelist boolStrict Sets exclusivity on this IP whitelist.
- Ip
Whitelists []string The IP addresses to whitelist for this key.
- Ipam
Manage boolIpam Whether the apikey can manage IPAM. Only relevant for the DDI product.
- Ipam
View boolIpam Whether the apikey can view IPAM. Only relevant for the DDI product.
- Key string
The apikeys authentication token.
- Monitoring
Manage boolJobs Whether the apikey can modify monitoring jobs.
- Monitoring
Manage boolLists Whether the apikey can modify notification lists.
- Monitoring
View boolJobs Whether the apikey can view monitoring jobs.
- Name string
The free form name of the apikey.
- Security
Manage boolActive Directory Whether the apikey can manage global active directory. Only relevant for the DDI product.
- Security
Manage boolGlobal2fa Whether the apikey can manage global two factor authentication.
- Teams []string
The teams that the apikey belongs to.
- account
Manage booleanAccount Settings Whether the apikey can modify account settings.
- account
Manage booleanApikeys Whether the apikey can modify account apikeys.
- account
Manage booleanPayment Methods Whether the apikey can modify account payment methods.
- account
Manage booleanPlan Whether the apikey can modify the account plan.
- account
Manage booleanTeams Whether the apikey can modify other teams in the account.
- account
Manage booleanUsers Whether the apikey can modify account users.
- account
View booleanActivity Log Whether the apikey can view activity logs.
- account
View booleanInvoices Whether the apikey can view invoices.
- data
Manage booleanDatafeeds Whether the apikey can modify data feeds.
- data
Manage booleanDatasources Whether the apikey can modify data sources.
- data
Push booleanTo Datafeeds Whether the apikey can publish to data feeds.
- dhcp
Manage booleanDhcp Whether the apikey can manage DHCP. Only relevant for the DDI product.
- dhcp
View booleanDhcp Whether the apikey can view DHCP. Only relevant for the DDI product.
- dns
Manage booleanZones Whether the apikey can modify the accounts zones.
- dns
View booleanZones Whether the apikey can view the accounts zones.
- dns
Zones booleanAllow By Default If true, enable the
dns_zones_allowlist, otherwise enable thedns_zones_denylist.- dns
Zones string[]Allows List of zones that the apikey may access.
- dns
Zones string[]Denies List of zones that the apikey may not access.
- ip
Whitelist booleanStrict Sets exclusivity on this IP whitelist.
- ip
Whitelists string[] The IP addresses to whitelist for this key.
- ipam
Manage booleanIpam Whether the apikey can manage IPAM. Only relevant for the DDI product.
- ipam
View booleanIpam Whether the apikey can view IPAM. Only relevant for the DDI product.
- key string
The apikeys authentication token.
- monitoring
Manage booleanJobs Whether the apikey can modify monitoring jobs.
- monitoring
Manage booleanLists Whether the apikey can modify notification lists.
- monitoring
View booleanJobs Whether the apikey can view monitoring jobs.
- name string
The free form name of the apikey.
- security
Manage booleanActive Directory Whether the apikey can manage global active directory. Only relevant for the DDI product.
- security
Manage booleanGlobal2fa Whether the apikey can manage global two factor authentication.
- teams string[]
The teams that the apikey belongs to.
- account_
manage_ boolaccount_ settings Whether the apikey can modify account settings.
- account_
manage_ boolapikeys Whether the apikey can modify account apikeys.
- account_
manage_ boolpayment_ methods Whether the apikey can modify account payment methods.
- account_
manage_ boolplan Whether the apikey can modify the account plan.
- account_
manage_ boolteams Whether the apikey can modify other teams in the account.
- account_
manage_ boolusers Whether the apikey can modify account users.
- account_
view_ boolactivity_ log Whether the apikey can view activity logs.
- account_
view_ boolinvoices Whether the apikey can view invoices.
- data_
manage_ booldatafeeds Whether the apikey can modify data feeds.
- data_
manage_ booldatasources Whether the apikey can modify data sources.
- data_
push_ boolto_ datafeeds Whether the apikey can publish to data feeds.
- dhcp_
manage_ booldhcp Whether the apikey can manage DHCP. Only relevant for the DDI product.
- dhcp_
view_ booldhcp Whether the apikey can view DHCP. Only relevant for the DDI product.
- dns_
manage_ boolzones Whether the apikey can modify the accounts zones.
- dns_
view_ boolzones Whether the apikey can view the accounts zones.
- dns_
zones_ boolallow_ by_ default If true, enable the
dns_zones_allowlist, otherwise enable thedns_zones_denylist.- dns_
zones_ List[str]allows List of zones that the apikey may access.
- dns_
zones_ List[str]denies List of zones that the apikey may not access.
- ip_
whitelist_ boolstrict Sets exclusivity on this IP whitelist.
- ip_
whitelists List[str] The IP addresses to whitelist for this key.
- ipam_
manage_ boolipam Whether the apikey can manage IPAM. Only relevant for the DDI product.
- ipam_
view_ boolipam Whether the apikey can view IPAM. Only relevant for the DDI product.
- key str
The apikeys authentication token.
- monitoring_
manage_ booljobs Whether the apikey can modify monitoring jobs.
- monitoring_
manage_ boollists Whether the apikey can modify notification lists.
- monitoring_
view_ booljobs Whether the apikey can view monitoring jobs.
- name str
The free form name of the apikey.
- security_
manage_ boolactive_ directory Whether the apikey can manage global active directory. Only relevant for the DDI product.
- security_
manage_ boolglobal2fa Whether the apikey can manage global two factor authentication.
- teams List[str]
The teams that the apikey belongs to.
Package Details
- Repository
- https://github.com/pulumi/pulumi-ns1
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ns1Terraform Provider.