ns1.APIKey
Explore with Pulumi AI
Provides a NS1 Api Key resource. This can be used to create, modify, and delete api keys.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ns1 from "@pulumi/ns1";
const example = new ns1.Team("example", {name: "Example team"});
const exampleAPIKey = new ns1.APIKey("example", {
    name: "Example key",
    teams: [example.id],
    ipWhitelists: [
        "1.1.1.1",
        "2.2.2.2",
    ],
    dnsViewZones: false,
    accountManageUsers: false,
});
import pulumi
import pulumi_ns1 as ns1
example = ns1.Team("example", name="Example team")
example_api_key = ns1.APIKey("example",
    name="Example key",
    teams=[example.id],
    ip_whitelists=[
        "1.1.1.1",
        "2.2.2.2",
    ],
    dns_view_zones=False,
    account_manage_users=False)
package main
import (
	"github.com/pulumi/pulumi-ns1/sdk/v3/go/ns1"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := ns1.NewTeam(ctx, "example", &ns1.TeamArgs{
			Name: pulumi.String("Example team"),
		})
		if err != nil {
			return err
		}
		_, err = ns1.NewAPIKey(ctx, "example", &ns1.APIKeyArgs{
			Name: pulumi.String("Example key"),
			Teams: pulumi.StringArray{
				example.ID(),
			},
			IpWhitelists: pulumi.StringArray{
				pulumi.String("1.1.1.1"),
				pulumi.String("2.2.2.2"),
			},
			DnsViewZones:       pulumi.Bool(false),
			AccountManageUsers: pulumi.Bool(false),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ns1 = Pulumi.Ns1;
return await Deployment.RunAsync(() => 
{
    var example = new Ns1.Team("example", new()
    {
        Name = "Example team",
    });
    var exampleAPIKey = new Ns1.APIKey("example", new()
    {
        Name = "Example key",
        Teams = new[]
        {
            example.Id,
        },
        IpWhitelists = new[]
        {
            "1.1.1.1",
            "2.2.2.2",
        },
        DnsViewZones = false,
        AccountManageUsers = false,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ns1.Team;
import com.pulumi.ns1.TeamArgs;
import com.pulumi.ns1.APIKey;
import com.pulumi.ns1.APIKeyArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        var example = new Team("example", TeamArgs.builder()
            .name("Example team")
            .build());
        var exampleAPIKey = new APIKey("exampleAPIKey", APIKeyArgs.builder()
            .name("Example key")
            .teams(example.id())
            .ipWhitelists(            
                "1.1.1.1",
                "2.2.2.2")
            .dnsViewZones(false)
            .accountManageUsers(false)
            .build());
    }
}
resources:
  example:
    type: ns1:Team
    properties:
      name: Example team
  exampleAPIKey:
    type: ns1:APIKey
    name: example
    properties:
      name: Example key
      teams:
        - ${example.id}
      ipWhitelists:
        - 1.1.1.1
        - 2.2.2.2
      dnsViewZones: false
      accountManageUsers: false
Permissions
An API key will inherit permissions from the teams it is assigned to. If a key is assigned to a team and also has individual permissions set on the key, the individual permissions will be overridden by the inherited team permissions. In a future release, setting permissions on a key that is part of a team will be explicitly disabled.
When a key is removed from all teams completely, it will inherit whatever permissions it had previously.
If a key is removed from all it’s teams, it will probably be necessary to run pulumi up a second time
to update the keys permissions from it’s old team permissions to new key-specific permissions.
See the NS1 API docs for an overview of permission semantics or for more details about the individual permission flags.
NS1 Documentation
Create APIKey Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new APIKey(name: string, args?: APIKeyArgs, opts?: CustomResourceOptions);@overload
def APIKey(resource_name: str,
           args: Optional[APIKeyArgs] = None,
           opts: Optional[ResourceOptions] = None)
@overload
def APIKey(resource_name: str,
           opts: Optional[ResourceOptions] = None,
           account_manage_account_settings: Optional[bool] = None,
           account_manage_apikeys: Optional[bool] = None,
           account_manage_ip_whitelist: Optional[bool] = None,
           account_manage_payment_methods: Optional[bool] = None,
           account_manage_plan: Optional[bool] = None,
           account_manage_teams: Optional[bool] = None,
           account_manage_users: Optional[bool] = None,
           account_view_activity_log: Optional[bool] = None,
           account_view_invoices: Optional[bool] = None,
           data_manage_datafeeds: Optional[bool] = None,
           data_manage_datasources: Optional[bool] = None,
           data_push_to_datafeeds: Optional[bool] = None,
           dns_manage_zones: Optional[bool] = None,
           dns_records_allows: Optional[Sequence[APIKeyDnsRecordsAllowArgs]] = None,
           dns_records_denies: Optional[Sequence[APIKeyDnsRecordsDenyArgs]] = None,
           dns_view_zones: Optional[bool] = None,
           dns_zones_allow_by_default: Optional[bool] = None,
           dns_zones_allows: Optional[Sequence[str]] = None,
           dns_zones_denies: Optional[Sequence[str]] = None,
           ip_whitelist_strict: Optional[bool] = None,
           ip_whitelists: Optional[Sequence[str]] = None,
           monitoring_create_jobs: Optional[bool] = None,
           monitoring_delete_jobs: Optional[bool] = None,
           monitoring_manage_jobs: Optional[bool] = None,
           monitoring_manage_lists: Optional[bool] = None,
           monitoring_update_jobs: Optional[bool] = None,
           monitoring_view_jobs: Optional[bool] = None,
           name: Optional[str] = None,
           security_manage_active_directory: Optional[bool] = None,
           security_manage_global2fa: Optional[bool] = None,
           teams: Optional[Sequence[str]] = None)func NewAPIKey(ctx *Context, name string, args *APIKeyArgs, opts ...ResourceOption) (*APIKey, error)public APIKey(string name, APIKeyArgs? args = null, CustomResourceOptions? opts = null)
public APIKey(String name, APIKeyArgs args)
public APIKey(String name, APIKeyArgs args, CustomResourceOptions options)
type: ns1:APIKey
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- 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.
- args APIKeyArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control 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.
- name String
- The unique name of the resource.
- args APIKeyArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var apikeyResource = new Ns1.APIKey("apikeyResource", new()
{
    AccountManageAccountSettings = false,
    AccountManageApikeys = false,
    AccountManageIpWhitelist = false,
    AccountManagePaymentMethods = false,
    AccountManageTeams = false,
    AccountManageUsers = false,
    AccountViewActivityLog = false,
    AccountViewInvoices = false,
    DataManageDatafeeds = false,
    DataManageDatasources = false,
    DataPushToDatafeeds = false,
    DnsManageZones = false,
    DnsRecordsAllows = new[]
    {
        new Ns1.Inputs.APIKeyDnsRecordsAllowArgs
        {
            Domain = "string",
            IncludeSubdomains = false,
            Type = "string",
            Zone = "string",
        },
    },
    DnsRecordsDenies = new[]
    {
        new Ns1.Inputs.APIKeyDnsRecordsDenyArgs
        {
            Domain = "string",
            IncludeSubdomains = false,
            Type = "string",
            Zone = "string",
        },
    },
    DnsViewZones = false,
    DnsZonesAllowByDefault = false,
    DnsZonesAllows = new[]
    {
        "string",
    },
    DnsZonesDenies = new[]
    {
        "string",
    },
    IpWhitelistStrict = false,
    IpWhitelists = new[]
    {
        "string",
    },
    MonitoringCreateJobs = false,
    MonitoringDeleteJobs = false,
    MonitoringManageJobs = false,
    MonitoringManageLists = false,
    MonitoringUpdateJobs = false,
    MonitoringViewJobs = false,
    Name = "string",
    SecurityManageActiveDirectory = false,
    SecurityManageGlobal2fa = false,
    Teams = new[]
    {
        "string",
    },
});
example, err := ns1.NewAPIKey(ctx, "apikeyResource", &ns1.APIKeyArgs{
	AccountManageAccountSettings: pulumi.Bool(false),
	AccountManageApikeys:         pulumi.Bool(false),
	AccountManageIpWhitelist:     pulumi.Bool(false),
	AccountManagePaymentMethods:  pulumi.Bool(false),
	AccountManageTeams:           pulumi.Bool(false),
	AccountManageUsers:           pulumi.Bool(false),
	AccountViewActivityLog:       pulumi.Bool(false),
	AccountViewInvoices:          pulumi.Bool(false),
	DataManageDatafeeds:          pulumi.Bool(false),
	DataManageDatasources:        pulumi.Bool(false),
	DataPushToDatafeeds:          pulumi.Bool(false),
	DnsManageZones:               pulumi.Bool(false),
	DnsRecordsAllows: ns1.APIKeyDnsRecordsAllowArray{
		&ns1.APIKeyDnsRecordsAllowArgs{
			Domain:            pulumi.String("string"),
			IncludeSubdomains: pulumi.Bool(false),
			Type:              pulumi.String("string"),
			Zone:              pulumi.String("string"),
		},
	},
	DnsRecordsDenies: ns1.APIKeyDnsRecordsDenyArray{
		&ns1.APIKeyDnsRecordsDenyArgs{
			Domain:            pulumi.String("string"),
			IncludeSubdomains: pulumi.Bool(false),
			Type:              pulumi.String("string"),
			Zone:              pulumi.String("string"),
		},
	},
	DnsViewZones:           pulumi.Bool(false),
	DnsZonesAllowByDefault: pulumi.Bool(false),
	DnsZonesAllows: pulumi.StringArray{
		pulumi.String("string"),
	},
	DnsZonesDenies: pulumi.StringArray{
		pulumi.String("string"),
	},
	IpWhitelistStrict: pulumi.Bool(false),
	IpWhitelists: pulumi.StringArray{
		pulumi.String("string"),
	},
	MonitoringCreateJobs:          pulumi.Bool(false),
	MonitoringDeleteJobs:          pulumi.Bool(false),
	MonitoringManageJobs:          pulumi.Bool(false),
	MonitoringManageLists:         pulumi.Bool(false),
	MonitoringUpdateJobs:          pulumi.Bool(false),
	MonitoringViewJobs:            pulumi.Bool(false),
	Name:                          pulumi.String("string"),
	SecurityManageActiveDirectory: pulumi.Bool(false),
	SecurityManageGlobal2fa:       pulumi.Bool(false),
	Teams: pulumi.StringArray{
		pulumi.String("string"),
	},
})
var apikeyResource = new APIKey("apikeyResource", APIKeyArgs.builder()
    .accountManageAccountSettings(false)
    .accountManageApikeys(false)
    .accountManageIpWhitelist(false)
    .accountManagePaymentMethods(false)
    .accountManageTeams(false)
    .accountManageUsers(false)
    .accountViewActivityLog(false)
    .accountViewInvoices(false)
    .dataManageDatafeeds(false)
    .dataManageDatasources(false)
    .dataPushToDatafeeds(false)
    .dnsManageZones(false)
    .dnsRecordsAllows(APIKeyDnsRecordsAllowArgs.builder()
        .domain("string")
        .includeSubdomains(false)
        .type("string")
        .zone("string")
        .build())
    .dnsRecordsDenies(APIKeyDnsRecordsDenyArgs.builder()
        .domain("string")
        .includeSubdomains(false)
        .type("string")
        .zone("string")
        .build())
    .dnsViewZones(false)
    .dnsZonesAllowByDefault(false)
    .dnsZonesAllows("string")
    .dnsZonesDenies("string")
    .ipWhitelistStrict(false)
    .ipWhitelists("string")
    .monitoringCreateJobs(false)
    .monitoringDeleteJobs(false)
    .monitoringManageJobs(false)
    .monitoringManageLists(false)
    .monitoringUpdateJobs(false)
    .monitoringViewJobs(false)
    .name("string")
    .securityManageActiveDirectory(false)
    .securityManageGlobal2fa(false)
    .teams("string")
    .build());
apikey_resource = ns1.APIKey("apikeyResource",
    account_manage_account_settings=False,
    account_manage_apikeys=False,
    account_manage_ip_whitelist=False,
    account_manage_payment_methods=False,
    account_manage_teams=False,
    account_manage_users=False,
    account_view_activity_log=False,
    account_view_invoices=False,
    data_manage_datafeeds=False,
    data_manage_datasources=False,
    data_push_to_datafeeds=False,
    dns_manage_zones=False,
    dns_records_allows=[{
        "domain": "string",
        "include_subdomains": False,
        "type": "string",
        "zone": "string",
    }],
    dns_records_denies=[{
        "domain": "string",
        "include_subdomains": False,
        "type": "string",
        "zone": "string",
    }],
    dns_view_zones=False,
    dns_zones_allow_by_default=False,
    dns_zones_allows=["string"],
    dns_zones_denies=["string"],
    ip_whitelist_strict=False,
    ip_whitelists=["string"],
    monitoring_create_jobs=False,
    monitoring_delete_jobs=False,
    monitoring_manage_jobs=False,
    monitoring_manage_lists=False,
    monitoring_update_jobs=False,
    monitoring_view_jobs=False,
    name="string",
    security_manage_active_directory=False,
    security_manage_global2fa=False,
    teams=["string"])
const apikeyResource = new ns1.APIKey("apikeyResource", {
    accountManageAccountSettings: false,
    accountManageApikeys: false,
    accountManageIpWhitelist: false,
    accountManagePaymentMethods: false,
    accountManageTeams: false,
    accountManageUsers: false,
    accountViewActivityLog: false,
    accountViewInvoices: false,
    dataManageDatafeeds: false,
    dataManageDatasources: false,
    dataPushToDatafeeds: false,
    dnsManageZones: false,
    dnsRecordsAllows: [{
        domain: "string",
        includeSubdomains: false,
        type: "string",
        zone: "string",
    }],
    dnsRecordsDenies: [{
        domain: "string",
        includeSubdomains: false,
        type: "string",
        zone: "string",
    }],
    dnsViewZones: false,
    dnsZonesAllowByDefault: false,
    dnsZonesAllows: ["string"],
    dnsZonesDenies: ["string"],
    ipWhitelistStrict: false,
    ipWhitelists: ["string"],
    monitoringCreateJobs: false,
    monitoringDeleteJobs: false,
    monitoringManageJobs: false,
    monitoringManageLists: false,
    monitoringUpdateJobs: false,
    monitoringViewJobs: false,
    name: "string",
    securityManageActiveDirectory: false,
    securityManageGlobal2fa: false,
    teams: ["string"],
});
type: ns1:APIKey
properties:
    accountManageAccountSettings: false
    accountManageApikeys: false
    accountManageIpWhitelist: false
    accountManagePaymentMethods: false
    accountManageTeams: false
    accountManageUsers: false
    accountViewActivityLog: false
    accountViewInvoices: false
    dataManageDatafeeds: false
    dataManageDatasources: false
    dataPushToDatafeeds: false
    dnsManageZones: false
    dnsRecordsAllows:
        - domain: string
          includeSubdomains: false
          type: string
          zone: string
    dnsRecordsDenies:
        - domain: string
          includeSubdomains: false
          type: string
          zone: string
    dnsViewZones: false
    dnsZonesAllowByDefault: false
    dnsZonesAllows:
        - string
    dnsZonesDenies:
        - string
    ipWhitelistStrict: false
    ipWhitelists:
        - string
    monitoringCreateJobs: false
    monitoringDeleteJobs: false
    monitoringManageJobs: false
    monitoringManageLists: false
    monitoringUpdateJobs: false
    monitoringViewJobs: false
    name: string
    securityManageActiveDirectory: false
    securityManageGlobal2fa: false
    teams:
        - string
APIKey Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The APIKey resource accepts the following input properties:
- AccountManage boolAccount Settings 
- Whether the apikey can modify account settings.
- AccountManage boolApikeys 
- Whether the apikey can modify account apikeys.
- AccountManage boolIp Whitelist 
- Whether the apikey can manage ip whitelist.
- AccountManage boolPayment Methods 
- Whether the apikey can modify account payment methods.
- AccountManage boolPlan 
- No longer in use.
- AccountManage boolTeams 
- Whether the apikey can modify other teams in the account.
- AccountManage boolUsers 
- Whether the apikey can modify account users.
- AccountView boolActivity Log 
- Whether the apikey can view activity logs.
- AccountView boolInvoices 
- Whether the apikey can view invoices.
- DataManage boolDatafeeds 
- Whether the apikey can modify data feeds.
- DataManage boolDatasources 
- Whether the apikey can modify data sources.
- DataPush boolTo Datafeeds 
- Whether the apikey can publish to data feeds.
- DnsManage boolZones 
- Whether the apikey can modify the accounts zones.
- DnsRecords List<APIKeyAllows Dns Records Allow> 
- List of records that the apikey may access.
- DnsRecords List<APIKeyDenies Dns Records Deny> 
- List of records that the apikey may not access.
- DnsView boolZones 
- Whether the apikey can view the accounts zones.
- DnsZones boolAllow By Default 
- If true, enable the dns_zones_allowlist, otherwise enable thedns_zones_denylist.
- DnsZones List<string>Allows 
- List of zones that the apikey may access.
- DnsZones List<string>Denies 
- List of zones that the apikey may not access.
- IpWhitelist boolStrict 
- Set to true to restrict access to only those IP addresses and networks listed in the ip_whitelist field.
- IpWhitelists List<string>
- Array of IP addresses/networks to which to grant the API key access.
- MonitoringCreate boolJobs 
- Whether the user can create monitoring jobs when manage_jobs is not set to true.
- MonitoringDelete boolJobs 
- Whether the user can delete monitoring jobs when manage_jobs is not set to true.
- MonitoringManage boolJobs 
- Whether the user can create, update, and delete monitoring jobs.
- MonitoringManage boolLists 
- Whether the apikey can modify notification lists.
- MonitoringUpdate boolJobs 
- Whether the user can update monitoring jobs when manage_jobs is not set to true.
- MonitoringView boolJobs 
- Whether the apikey can view monitoring jobs.
- Name string
- The free form name of the apikey.
- SecurityManage boolActive Directory 
- Whether the apikey can manage global active directory. Only relevant for the DDI product.
- SecurityManage boolGlobal2fa 
- Whether the apikey can manage global two factor authentication.
- Teams List<string>
- The teams that the apikey belongs to.
- AccountManage boolAccount Settings 
- Whether the apikey can modify account settings.
- AccountManage boolApikeys 
- Whether the apikey can modify account apikeys.
- AccountManage boolIp Whitelist 
- Whether the apikey can manage ip whitelist.
- AccountManage boolPayment Methods 
- Whether the apikey can modify account payment methods.
- AccountManage boolPlan 
- No longer in use.
- AccountManage boolTeams 
- Whether the apikey can modify other teams in the account.
- AccountManage boolUsers 
- Whether the apikey can modify account users.
- AccountView boolActivity Log 
- Whether the apikey can view activity logs.
- AccountView boolInvoices 
- Whether the apikey can view invoices.
- DataManage boolDatafeeds 
- Whether the apikey can modify data feeds.
- DataManage boolDatasources 
- Whether the apikey can modify data sources.
- DataPush boolTo Datafeeds 
- Whether the apikey can publish to data feeds.
- DnsManage boolZones 
- Whether the apikey can modify the accounts zones.
- DnsRecords []APIKeyAllows Dns Records Allow Args 
- List of records that the apikey may access.
- DnsRecords []APIKeyDenies Dns Records Deny Args 
- List of records that the apikey may not access.
- DnsView boolZones 
- Whether the apikey can view the accounts zones.
- DnsZones boolAllow By Default 
- If true, enable the dns_zones_allowlist, otherwise enable thedns_zones_denylist.
- DnsZones []stringAllows 
- List of zones that the apikey may access.
- DnsZones []stringDenies 
- List of zones that the apikey may not access.
- IpWhitelist boolStrict 
- Set to true to restrict access to only those IP addresses and networks listed in the ip_whitelist field.
- IpWhitelists []string
- Array of IP addresses/networks to which to grant the API key access.
- MonitoringCreate boolJobs 
- Whether the user can create monitoring jobs when manage_jobs is not set to true.
- MonitoringDelete boolJobs 
- Whether the user can delete monitoring jobs when manage_jobs is not set to true.
- MonitoringManage boolJobs 
- Whether the user can create, update, and delete monitoring jobs.
- MonitoringManage boolLists 
- Whether the apikey can modify notification lists.
- MonitoringUpdate boolJobs 
- Whether the user can update monitoring jobs when manage_jobs is not set to true.
- MonitoringView boolJobs 
- Whether the apikey can view monitoring jobs.
- Name string
- The free form name of the apikey.
- SecurityManage boolActive Directory 
- Whether the apikey can manage global active directory. Only relevant for the DDI product.
- SecurityManage boolGlobal2fa 
- Whether the apikey can manage global two factor authentication.
- Teams []string
- The teams that the apikey belongs to.
- accountManage BooleanAccount Settings 
- Whether the apikey can modify account settings.
- accountManage BooleanApikeys 
- Whether the apikey can modify account apikeys.
- accountManage BooleanIp Whitelist 
- Whether the apikey can manage ip whitelist.
- accountManage BooleanPayment Methods 
- Whether the apikey can modify account payment methods.
- accountManage BooleanPlan 
- No longer in use.
- accountManage BooleanTeams 
- Whether the apikey can modify other teams in the account.
- accountManage BooleanUsers 
- Whether the apikey can modify account users.
- accountView BooleanActivity Log 
- Whether the apikey can view activity logs.
- accountView BooleanInvoices 
- Whether the apikey can view invoices.
- dataManage BooleanDatafeeds 
- Whether the apikey can modify data feeds.
- dataManage BooleanDatasources 
- Whether the apikey can modify data sources.
- dataPush BooleanTo Datafeeds 
- Whether the apikey can publish to data feeds.
- dnsManage BooleanZones 
- Whether the apikey can modify the accounts zones.
- dnsRecords List<APIKeyAllows Dns Records Allow> 
- List of records that the apikey may access.
- dnsRecords List<APIKeyDenies Dns Records Deny> 
- List of records that the apikey may not access.
- dnsView BooleanZones 
- Whether the apikey can view the accounts zones.
- dnsZones BooleanAllow By Default 
- If true, enable the dns_zones_allowlist, otherwise enable thedns_zones_denylist.
- dnsZones List<String>Allows 
- List of zones that the apikey may access.
- dnsZones List<String>Denies 
- List of zones that the apikey may not access.
- ipWhitelist BooleanStrict 
- Set to true to restrict access to only those IP addresses and networks listed in the ip_whitelist field.
- ipWhitelists List<String>
- Array of IP addresses/networks to which to grant the API key access.
- monitoringCreate BooleanJobs 
- Whether the user can create monitoring jobs when manage_jobs is not set to true.
- monitoringDelete BooleanJobs 
- Whether the user can delete monitoring jobs when manage_jobs is not set to true.
- monitoringManage BooleanJobs 
- Whether the user can create, update, and delete monitoring jobs.
- monitoringManage BooleanLists 
- Whether the apikey can modify notification lists.
- monitoringUpdate BooleanJobs 
- Whether the user can update monitoring jobs when manage_jobs is not set to true.
- monitoringView BooleanJobs 
- Whether the apikey can view monitoring jobs.
- name String
- The free form name of the apikey.
- securityManage BooleanActive Directory 
- Whether the apikey can manage global active directory. Only relevant for the DDI product.
- securityManage BooleanGlobal2fa 
- Whether the apikey can manage global two factor authentication.
- teams List<String>
- The teams that the apikey belongs to.
- accountManage booleanAccount Settings 
- Whether the apikey can modify account settings.
- accountManage booleanApikeys 
- Whether the apikey can modify account apikeys.
- accountManage booleanIp Whitelist 
- Whether the apikey can manage ip whitelist.
- accountManage booleanPayment Methods 
- Whether the apikey can modify account payment methods.
- accountManage booleanPlan 
- No longer in use.
- accountManage booleanTeams 
- Whether the apikey can modify other teams in the account.
- accountManage booleanUsers 
- Whether the apikey can modify account users.
- accountView booleanActivity Log 
- Whether the apikey can view activity logs.
- accountView booleanInvoices 
- Whether the apikey can view invoices.
- dataManage booleanDatafeeds 
- Whether the apikey can modify data feeds.
- dataManage booleanDatasources 
- Whether the apikey can modify data sources.
- dataPush booleanTo Datafeeds 
- Whether the apikey can publish to data feeds.
- dnsManage booleanZones 
- Whether the apikey can modify the accounts zones.
- dnsRecords APIKeyAllows Dns Records Allow[] 
- List of records that the apikey may access.
- dnsRecords APIKeyDenies Dns Records Deny[] 
- List of records that the apikey may not access.
- dnsView booleanZones 
- Whether the apikey can view the accounts zones.
- dnsZones booleanAllow By Default 
- If true, enable the dns_zones_allowlist, otherwise enable thedns_zones_denylist.
- dnsZones string[]Allows 
- List of zones that the apikey may access.
- dnsZones string[]Denies 
- List of zones that the apikey may not access.
- ipWhitelist booleanStrict 
- Set to true to restrict access to only those IP addresses and networks listed in the ip_whitelist field.
- ipWhitelists string[]
- Array of IP addresses/networks to which to grant the API key access.
- monitoringCreate booleanJobs 
- Whether the user can create monitoring jobs when manage_jobs is not set to true.
- monitoringDelete booleanJobs 
- Whether the user can delete monitoring jobs when manage_jobs is not set to true.
- monitoringManage booleanJobs 
- Whether the user can create, update, and delete monitoring jobs.
- monitoringManage booleanLists 
- Whether the apikey can modify notification lists.
- monitoringUpdate booleanJobs 
- Whether the user can update monitoring jobs when manage_jobs is not set to true.
- monitoringView booleanJobs 
- Whether the apikey can view monitoring jobs.
- name string
- The free form name of the apikey.
- securityManage booleanActive Directory 
- Whether the apikey can manage global active directory. Only relevant for the DDI product.
- securityManage 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_ boolip_ whitelist 
- Whether the apikey can manage ip whitelist.
- account_manage_ boolpayment_ methods 
- Whether the apikey can modify account payment methods.
- account_manage_ boolplan 
- No longer in use.
- 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.
- dns_manage_ boolzones 
- Whether the apikey can modify the accounts zones.
- dns_records_ Sequence[APIKeyallows Dns Records Allow Args] 
- List of records that the apikey may access.
- dns_records_ Sequence[APIKeydenies Dns Records Deny Args] 
- List of records that the apikey may not access.
- 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_ Sequence[str]allows 
- List of zones that the apikey may access.
- dns_zones_ Sequence[str]denies 
- List of zones that the apikey may not access.
- ip_whitelist_ boolstrict 
- Set to true to restrict access to only those IP addresses and networks listed in the ip_whitelist field.
- ip_whitelists Sequence[str]
- Array of IP addresses/networks to which to grant the API key access.
- monitoring_create_ booljobs 
- Whether the user can create monitoring jobs when manage_jobs is not set to true.
- monitoring_delete_ booljobs 
- Whether the user can delete monitoring jobs when manage_jobs is not set to true.
- monitoring_manage_ booljobs 
- Whether the user can create, update, and delete monitoring jobs.
- monitoring_manage_ boollists 
- Whether the apikey can modify notification lists.
- monitoring_update_ booljobs 
- Whether the user can update monitoring jobs when manage_jobs is not set to true.
- 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 Sequence[str]
- The teams that the apikey belongs to.
- accountManage BooleanAccount Settings 
- Whether the apikey can modify account settings.
- accountManage BooleanApikeys 
- Whether the apikey can modify account apikeys.
- accountManage BooleanIp Whitelist 
- Whether the apikey can manage ip whitelist.
- accountManage BooleanPayment Methods 
- Whether the apikey can modify account payment methods.
- accountManage BooleanPlan 
- No longer in use.
- accountManage BooleanTeams 
- Whether the apikey can modify other teams in the account.
- accountManage BooleanUsers 
- Whether the apikey can modify account users.
- accountView BooleanActivity Log 
- Whether the apikey can view activity logs.
- accountView BooleanInvoices 
- Whether the apikey can view invoices.
- dataManage BooleanDatafeeds 
- Whether the apikey can modify data feeds.
- dataManage BooleanDatasources 
- Whether the apikey can modify data sources.
- dataPush BooleanTo Datafeeds 
- Whether the apikey can publish to data feeds.
- dnsManage BooleanZones 
- Whether the apikey can modify the accounts zones.
- dnsRecords List<Property Map>Allows 
- List of records that the apikey may access.
- dnsRecords List<Property Map>Denies 
- List of records that the apikey may not access.
- dnsView BooleanZones 
- Whether the apikey can view the accounts zones.
- dnsZones BooleanAllow By Default 
- If true, enable the dns_zones_allowlist, otherwise enable thedns_zones_denylist.
- dnsZones List<String>Allows 
- List of zones that the apikey may access.
- dnsZones List<String>Denies 
- List of zones that the apikey may not access.
- ipWhitelist BooleanStrict 
- Set to true to restrict access to only those IP addresses and networks listed in the ip_whitelist field.
- ipWhitelists List<String>
- Array of IP addresses/networks to which to grant the API key access.
- monitoringCreate BooleanJobs 
- Whether the user can create monitoring jobs when manage_jobs is not set to true.
- monitoringDelete BooleanJobs 
- Whether the user can delete monitoring jobs when manage_jobs is not set to true.
- monitoringManage BooleanJobs 
- Whether the user can create, update, and delete monitoring jobs.
- monitoringManage BooleanLists 
- Whether the apikey can modify notification lists.
- monitoringUpdate BooleanJobs 
- Whether the user can update monitoring jobs when manage_jobs is not set to true.
- monitoringView BooleanJobs 
- Whether the apikey can view monitoring jobs.
- name String
- The free form name of the apikey.
- securityManage BooleanActive Directory 
- Whether the apikey can manage global active directory. Only relevant for the DDI product.
- securityManage BooleanGlobal2fa 
- Whether the apikey can manage global two factor authentication.
- teams List<String>
- 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 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): APIKey@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        account_manage_account_settings: Optional[bool] = None,
        account_manage_apikeys: Optional[bool] = None,
        account_manage_ip_whitelist: Optional[bool] = None,
        account_manage_payment_methods: Optional[bool] = None,
        account_manage_plan: Optional[bool] = None,
        account_manage_teams: Optional[bool] = None,
        account_manage_users: Optional[bool] = None,
        account_view_activity_log: Optional[bool] = None,
        account_view_invoices: Optional[bool] = None,
        data_manage_datafeeds: Optional[bool] = None,
        data_manage_datasources: Optional[bool] = None,
        data_push_to_datafeeds: Optional[bool] = None,
        dns_manage_zones: Optional[bool] = None,
        dns_records_allows: Optional[Sequence[APIKeyDnsRecordsAllowArgs]] = None,
        dns_records_denies: Optional[Sequence[APIKeyDnsRecordsDenyArgs]] = None,
        dns_view_zones: Optional[bool] = None,
        dns_zones_allow_by_default: Optional[bool] = None,
        dns_zones_allows: Optional[Sequence[str]] = None,
        dns_zones_denies: Optional[Sequence[str]] = None,
        ip_whitelist_strict: Optional[bool] = None,
        ip_whitelists: Optional[Sequence[str]] = None,
        key: Optional[str] = None,
        monitoring_create_jobs: Optional[bool] = None,
        monitoring_delete_jobs: Optional[bool] = None,
        monitoring_manage_jobs: Optional[bool] = None,
        monitoring_manage_lists: Optional[bool] = None,
        monitoring_update_jobs: Optional[bool] = None,
        monitoring_view_jobs: Optional[bool] = None,
        name: Optional[str] = None,
        security_manage_active_directory: Optional[bool] = None,
        security_manage_global2fa: Optional[bool] = None,
        teams: Optional[Sequence[str]] = None) -> APIKeyfunc 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)public static APIKey get(String name, Output<String> id, APIKeyState state, CustomResourceOptions options)Resource lookup is not supported in YAML- 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.
- 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.
- AccountManage boolAccount Settings 
- Whether the apikey can modify account settings.
- AccountManage boolApikeys 
- Whether the apikey can modify account apikeys.
- AccountManage boolIp Whitelist 
- Whether the apikey can manage ip whitelist.
- AccountManage boolPayment Methods 
- Whether the apikey can modify account payment methods.
- AccountManage boolPlan 
- No longer in use.
- AccountManage boolTeams 
- Whether the apikey can modify other teams in the account.
- AccountManage boolUsers 
- Whether the apikey can modify account users.
- AccountView boolActivity Log 
- Whether the apikey can view activity logs.
- AccountView boolInvoices 
- Whether the apikey can view invoices.
- DataManage boolDatafeeds 
- Whether the apikey can modify data feeds.
- DataManage boolDatasources 
- Whether the apikey can modify data sources.
- DataPush boolTo Datafeeds 
- Whether the apikey can publish to data feeds.
- DnsManage boolZones 
- Whether the apikey can modify the accounts zones.
- DnsRecords List<APIKeyAllows Dns Records Allow> 
- List of records that the apikey may access.
- DnsRecords List<APIKeyDenies Dns Records Deny> 
- List of records that the apikey may not access.
- DnsView boolZones 
- Whether the apikey can view the accounts zones.
- DnsZones boolAllow By Default 
- If true, enable the dns_zones_allowlist, otherwise enable thedns_zones_denylist.
- DnsZones List<string>Allows 
- List of zones that the apikey may access.
- DnsZones List<string>Denies 
- List of zones that the apikey may not access.
- IpWhitelist boolStrict 
- Set to true to restrict access to only those IP addresses and networks listed in the ip_whitelist field.
- IpWhitelists List<string>
- Array of IP addresses/networks to which to grant the API key access.
- Key string
- (Computed) The apikeys authentication token.
- MonitoringCreate boolJobs 
- Whether the user can create monitoring jobs when manage_jobs is not set to true.
- MonitoringDelete boolJobs 
- Whether the user can delete monitoring jobs when manage_jobs is not set to true.
- MonitoringManage boolJobs 
- Whether the user can create, update, and delete monitoring jobs.
- MonitoringManage boolLists 
- Whether the apikey can modify notification lists.
- MonitoringUpdate boolJobs 
- Whether the user can update monitoring jobs when manage_jobs is not set to true.
- MonitoringView boolJobs 
- Whether the apikey can view monitoring jobs.
- Name string
- The free form name of the apikey.
- SecurityManage boolActive Directory 
- Whether the apikey can manage global active directory. Only relevant for the DDI product.
- SecurityManage boolGlobal2fa 
- Whether the apikey can manage global two factor authentication.
- Teams List<string>
- The teams that the apikey belongs to.
- AccountManage boolAccount Settings 
- Whether the apikey can modify account settings.
- AccountManage boolApikeys 
- Whether the apikey can modify account apikeys.
- AccountManage boolIp Whitelist 
- Whether the apikey can manage ip whitelist.
- AccountManage boolPayment Methods 
- Whether the apikey can modify account payment methods.
- AccountManage boolPlan 
- No longer in use.
- AccountManage boolTeams 
- Whether the apikey can modify other teams in the account.
- AccountManage boolUsers 
- Whether the apikey can modify account users.
- AccountView boolActivity Log 
- Whether the apikey can view activity logs.
- AccountView boolInvoices 
- Whether the apikey can view invoices.
- DataManage boolDatafeeds 
- Whether the apikey can modify data feeds.
- DataManage boolDatasources 
- Whether the apikey can modify data sources.
- DataPush boolTo Datafeeds 
- Whether the apikey can publish to data feeds.
- DnsManage boolZones 
- Whether the apikey can modify the accounts zones.
- DnsRecords []APIKeyAllows Dns Records Allow Args 
- List of records that the apikey may access.
- DnsRecords []APIKeyDenies Dns Records Deny Args 
- List of records that the apikey may not access.
- DnsView boolZones 
- Whether the apikey can view the accounts zones.
- DnsZones boolAllow By Default 
- If true, enable the dns_zones_allowlist, otherwise enable thedns_zones_denylist.
- DnsZones []stringAllows 
- List of zones that the apikey may access.
- DnsZones []stringDenies 
- List of zones that the apikey may not access.
- IpWhitelist boolStrict 
- Set to true to restrict access to only those IP addresses and networks listed in the ip_whitelist field.
- IpWhitelists []string
- Array of IP addresses/networks to which to grant the API key access.
- Key string
- (Computed) The apikeys authentication token.
- MonitoringCreate boolJobs 
- Whether the user can create monitoring jobs when manage_jobs is not set to true.
- MonitoringDelete boolJobs 
- Whether the user can delete monitoring jobs when manage_jobs is not set to true.
- MonitoringManage boolJobs 
- Whether the user can create, update, and delete monitoring jobs.
- MonitoringManage boolLists 
- Whether the apikey can modify notification lists.
- MonitoringUpdate boolJobs 
- Whether the user can update monitoring jobs when manage_jobs is not set to true.
- MonitoringView boolJobs 
- Whether the apikey can view monitoring jobs.
- Name string
- The free form name of the apikey.
- SecurityManage boolActive Directory 
- Whether the apikey can manage global active directory. Only relevant for the DDI product.
- SecurityManage boolGlobal2fa 
- Whether the apikey can manage global two factor authentication.
- Teams []string
- The teams that the apikey belongs to.
- accountManage BooleanAccount Settings 
- Whether the apikey can modify account settings.
- accountManage BooleanApikeys 
- Whether the apikey can modify account apikeys.
- accountManage BooleanIp Whitelist 
- Whether the apikey can manage ip whitelist.
- accountManage BooleanPayment Methods 
- Whether the apikey can modify account payment methods.
- accountManage BooleanPlan 
- No longer in use.
- accountManage BooleanTeams 
- Whether the apikey can modify other teams in the account.
- accountManage BooleanUsers 
- Whether the apikey can modify account users.
- accountView BooleanActivity Log 
- Whether the apikey can view activity logs.
- accountView BooleanInvoices 
- Whether the apikey can view invoices.
- dataManage BooleanDatafeeds 
- Whether the apikey can modify data feeds.
- dataManage BooleanDatasources 
- Whether the apikey can modify data sources.
- dataPush BooleanTo Datafeeds 
- Whether the apikey can publish to data feeds.
- dnsManage BooleanZones 
- Whether the apikey can modify the accounts zones.
- dnsRecords List<APIKeyAllows Dns Records Allow> 
- List of records that the apikey may access.
- dnsRecords List<APIKeyDenies Dns Records Deny> 
- List of records that the apikey may not access.
- dnsView BooleanZones 
- Whether the apikey can view the accounts zones.
- dnsZones BooleanAllow By Default 
- If true, enable the dns_zones_allowlist, otherwise enable thedns_zones_denylist.
- dnsZones List<String>Allows 
- List of zones that the apikey may access.
- dnsZones List<String>Denies 
- List of zones that the apikey may not access.
- ipWhitelist BooleanStrict 
- Set to true to restrict access to only those IP addresses and networks listed in the ip_whitelist field.
- ipWhitelists List<String>
- Array of IP addresses/networks to which to grant the API key access.
- key String
- (Computed) The apikeys authentication token.
- monitoringCreate BooleanJobs 
- Whether the user can create monitoring jobs when manage_jobs is not set to true.
- monitoringDelete BooleanJobs 
- Whether the user can delete monitoring jobs when manage_jobs is not set to true.
- monitoringManage BooleanJobs 
- Whether the user can create, update, and delete monitoring jobs.
- monitoringManage BooleanLists 
- Whether the apikey can modify notification lists.
- monitoringUpdate BooleanJobs 
- Whether the user can update monitoring jobs when manage_jobs is not set to true.
- monitoringView BooleanJobs 
- Whether the apikey can view monitoring jobs.
- name String
- The free form name of the apikey.
- securityManage BooleanActive Directory 
- Whether the apikey can manage global active directory. Only relevant for the DDI product.
- securityManage BooleanGlobal2fa 
- Whether the apikey can manage global two factor authentication.
- teams List<String>
- The teams that the apikey belongs to.
- accountManage booleanAccount Settings 
- Whether the apikey can modify account settings.
- accountManage booleanApikeys 
- Whether the apikey can modify account apikeys.
- accountManage booleanIp Whitelist 
- Whether the apikey can manage ip whitelist.
- accountManage booleanPayment Methods 
- Whether the apikey can modify account payment methods.
- accountManage booleanPlan 
- No longer in use.
- accountManage booleanTeams 
- Whether the apikey can modify other teams in the account.
- accountManage booleanUsers 
- Whether the apikey can modify account users.
- accountView booleanActivity Log 
- Whether the apikey can view activity logs.
- accountView booleanInvoices 
- Whether the apikey can view invoices.
- dataManage booleanDatafeeds 
- Whether the apikey can modify data feeds.
- dataManage booleanDatasources 
- Whether the apikey can modify data sources.
- dataPush booleanTo Datafeeds 
- Whether the apikey can publish to data feeds.
- dnsManage booleanZones 
- Whether the apikey can modify the accounts zones.
- dnsRecords APIKeyAllows Dns Records Allow[] 
- List of records that the apikey may access.
- dnsRecords APIKeyDenies Dns Records Deny[] 
- List of records that the apikey may not access.
- dnsView booleanZones 
- Whether the apikey can view the accounts zones.
- dnsZones booleanAllow By Default 
- If true, enable the dns_zones_allowlist, otherwise enable thedns_zones_denylist.
- dnsZones string[]Allows 
- List of zones that the apikey may access.
- dnsZones string[]Denies 
- List of zones that the apikey may not access.
- ipWhitelist booleanStrict 
- Set to true to restrict access to only those IP addresses and networks listed in the ip_whitelist field.
- ipWhitelists string[]
- Array of IP addresses/networks to which to grant the API key access.
- key string
- (Computed) The apikeys authentication token.
- monitoringCreate booleanJobs 
- Whether the user can create monitoring jobs when manage_jobs is not set to true.
- monitoringDelete booleanJobs 
- Whether the user can delete monitoring jobs when manage_jobs is not set to true.
- monitoringManage booleanJobs 
- Whether the user can create, update, and delete monitoring jobs.
- monitoringManage booleanLists 
- Whether the apikey can modify notification lists.
- monitoringUpdate booleanJobs 
- Whether the user can update monitoring jobs when manage_jobs is not set to true.
- monitoringView booleanJobs 
- Whether the apikey can view monitoring jobs.
- name string
- The free form name of the apikey.
- securityManage booleanActive Directory 
- Whether the apikey can manage global active directory. Only relevant for the DDI product.
- securityManage 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_ boolip_ whitelist 
- Whether the apikey can manage ip whitelist.
- account_manage_ boolpayment_ methods 
- Whether the apikey can modify account payment methods.
- account_manage_ boolplan 
- No longer in use.
- 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.
- dns_manage_ boolzones 
- Whether the apikey can modify the accounts zones.
- dns_records_ Sequence[APIKeyallows Dns Records Allow Args] 
- List of records that the apikey may access.
- dns_records_ Sequence[APIKeydenies Dns Records Deny Args] 
- List of records that the apikey may not access.
- 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_ Sequence[str]allows 
- List of zones that the apikey may access.
- dns_zones_ Sequence[str]denies 
- List of zones that the apikey may not access.
- ip_whitelist_ boolstrict 
- Set to true to restrict access to only those IP addresses and networks listed in the ip_whitelist field.
- ip_whitelists Sequence[str]
- Array of IP addresses/networks to which to grant the API key access.
- key str
- (Computed) The apikeys authentication token.
- monitoring_create_ booljobs 
- Whether the user can create monitoring jobs when manage_jobs is not set to true.
- monitoring_delete_ booljobs 
- Whether the user can delete monitoring jobs when manage_jobs is not set to true.
- monitoring_manage_ booljobs 
- Whether the user can create, update, and delete monitoring jobs.
- monitoring_manage_ boollists 
- Whether the apikey can modify notification lists.
- monitoring_update_ booljobs 
- Whether the user can update monitoring jobs when manage_jobs is not set to true.
- 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 Sequence[str]
- The teams that the apikey belongs to.
- accountManage BooleanAccount Settings 
- Whether the apikey can modify account settings.
- accountManage BooleanApikeys 
- Whether the apikey can modify account apikeys.
- accountManage BooleanIp Whitelist 
- Whether the apikey can manage ip whitelist.
- accountManage BooleanPayment Methods 
- Whether the apikey can modify account payment methods.
- accountManage BooleanPlan 
- No longer in use.
- accountManage BooleanTeams 
- Whether the apikey can modify other teams in the account.
- accountManage BooleanUsers 
- Whether the apikey can modify account users.
- accountView BooleanActivity Log 
- Whether the apikey can view activity logs.
- accountView BooleanInvoices 
- Whether the apikey can view invoices.
- dataManage BooleanDatafeeds 
- Whether the apikey can modify data feeds.
- dataManage BooleanDatasources 
- Whether the apikey can modify data sources.
- dataPush BooleanTo Datafeeds 
- Whether the apikey can publish to data feeds.
- dnsManage BooleanZones 
- Whether the apikey can modify the accounts zones.
- dnsRecords List<Property Map>Allows 
- List of records that the apikey may access.
- dnsRecords List<Property Map>Denies 
- List of records that the apikey may not access.
- dnsView BooleanZones 
- Whether the apikey can view the accounts zones.
- dnsZones BooleanAllow By Default 
- If true, enable the dns_zones_allowlist, otherwise enable thedns_zones_denylist.
- dnsZones List<String>Allows 
- List of zones that the apikey may access.
- dnsZones List<String>Denies 
- List of zones that the apikey may not access.
- ipWhitelist BooleanStrict 
- Set to true to restrict access to only those IP addresses and networks listed in the ip_whitelist field.
- ipWhitelists List<String>
- Array of IP addresses/networks to which to grant the API key access.
- key String
- (Computed) The apikeys authentication token.
- monitoringCreate BooleanJobs 
- Whether the user can create monitoring jobs when manage_jobs is not set to true.
- monitoringDelete BooleanJobs 
- Whether the user can delete monitoring jobs when manage_jobs is not set to true.
- monitoringManage BooleanJobs 
- Whether the user can create, update, and delete monitoring jobs.
- monitoringManage BooleanLists 
- Whether the apikey can modify notification lists.
- monitoringUpdate BooleanJobs 
- Whether the user can update monitoring jobs when manage_jobs is not set to true.
- monitoringView BooleanJobs 
- Whether the apikey can view monitoring jobs.
- name String
- The free form name of the apikey.
- securityManage BooleanActive Directory 
- Whether the apikey can manage global active directory. Only relevant for the DDI product.
- securityManage BooleanGlobal2fa 
- Whether the apikey can manage global two factor authentication.
- teams List<String>
- The teams that the apikey belongs to.
Supporting Types
APIKeyDnsRecordsAllow, APIKeyDnsRecordsAllowArgs        
- Domain string
- IncludeSubdomains bool
- Type string
- Zone string
- Domain string
- IncludeSubdomains bool
- Type string
- Zone string
- domain String
- includeSubdomains Boolean
- type String
- zone String
- domain string
- includeSubdomains boolean
- type string
- zone string
- domain str
- include_subdomains bool
- type str
- zone str
- domain String
- includeSubdomains Boolean
- type String
- zone String
APIKeyDnsRecordsDeny, APIKeyDnsRecordsDenyArgs        
- Domain string
- IncludeSubdomains bool
- Type string
- Zone string
- Domain string
- IncludeSubdomains bool
- Type string
- Zone string
- domain String
- includeSubdomains Boolean
- type String
- zone String
- domain string
- includeSubdomains boolean
- type string
- zone string
- domain str
- include_subdomains bool
- type str
- zone str
- domain String
- includeSubdomains Boolean
- type String
- zone String
Import
$ pulumi import ns1:index/aPIKey:APIKey `ns1_apikey`
So for the example above:
$ pulumi import ns1:index/aPIKey:APIKey example <ID>`
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- NS1 pulumi/pulumi-ns1
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ns1Terraform Provider.