1. Packages
  2. NS1
  3. API Docs
  4. Record
NS1 v3.2.1 published on Thursday, Apr 4, 2024 by Pulumi

ns1.Record

Explore with Pulumi AI

ns1 logo
NS1 v3.2.1 published on Thursday, Apr 4, 2024 by Pulumi

    Provides a NS1 Record resource. This can be used to create, modify, and delete records.

    Create Record Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Record(name: string, args: RecordArgs, opts?: CustomResourceOptions);
    @overload
    def Record(resource_name: str,
               args: RecordArgs,
               opts: Optional[ResourceOptions] = None)
    
    @overload
    def Record(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               type: Optional[str] = None,
               zone: Optional[str] = None,
               domain: Optional[str] = None,
               override_ttl: Optional[bool] = None,
               link: Optional[str] = None,
               meta: Optional[Mapping[str, Any]] = None,
               answers: Optional[Sequence[RecordAnswerArgs]] = None,
               regions: Optional[Sequence[RecordRegionArgs]] = None,
               short_answers: Optional[Sequence[str]] = None,
               tags: Optional[Mapping[str, str]] = None,
               ttl: Optional[int] = None,
               filters: Optional[Sequence[RecordFilterArgs]] = None,
               use_client_subnet: Optional[bool] = None,
               blocked_tags: Optional[Sequence[str]] = None)
    func NewRecord(ctx *Context, name string, args RecordArgs, opts ...ResourceOption) (*Record, error)
    public Record(string name, RecordArgs args, CustomResourceOptions? opts = null)
    public Record(String name, RecordArgs args)
    public Record(String name, RecordArgs args, CustomResourceOptions options)
    
    type: ns1:Record
    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 RecordArgs
    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 RecordArgs
    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 RecordArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args RecordArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args RecordArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var recordResource = new Ns1.Record("recordResource", new()
    {
        Type = "string",
        Zone = "string",
        Domain = "string",
        OverrideTtl = false,
        Link = "string",
        Meta = 
        {
            { "string", "any" },
        },
        Answers = new[]
        {
            new Ns1.Inputs.RecordAnswerArgs
            {
                Answer = "string",
                Meta = 
                {
                    { "string", "any" },
                },
                Region = "string",
            },
        },
        Regions = new[]
        {
            new Ns1.Inputs.RecordRegionArgs
            {
                Name = "string",
                Meta = 
                {
                    { "string", "any" },
                },
            },
        },
        Tags = 
        {
            { "string", "string" },
        },
        Ttl = 0,
        Filters = new[]
        {
            new Ns1.Inputs.RecordFilterArgs
            {
                Filter = "string",
                Config = 
                {
                    { "string", "any" },
                },
                Disabled = false,
            },
        },
        UseClientSubnet = false,
        BlockedTags = new[]
        {
            "string",
        },
    });
    
    example, err := ns1.NewRecord(ctx, "recordResource", &ns1.RecordArgs{
    	Type:        pulumi.String("string"),
    	Zone:        pulumi.String("string"),
    	Domain:      pulumi.String("string"),
    	OverrideTtl: pulumi.Bool(false),
    	Link:        pulumi.String("string"),
    	Meta: pulumi.Map{
    		"string": pulumi.Any("any"),
    	},
    	Answers: ns1.RecordAnswerArray{
    		&ns1.RecordAnswerArgs{
    			Answer: pulumi.String("string"),
    			Meta: pulumi.Map{
    				"string": pulumi.Any("any"),
    			},
    			Region: pulumi.String("string"),
    		},
    	},
    	Regions: ns1.RecordRegionArray{
    		&ns1.RecordRegionArgs{
    			Name: pulumi.String("string"),
    			Meta: pulumi.Map{
    				"string": pulumi.Any("any"),
    			},
    		},
    	},
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Ttl: pulumi.Int(0),
    	Filters: ns1.RecordFilterArray{
    		&ns1.RecordFilterArgs{
    			Filter: pulumi.String("string"),
    			Config: pulumi.Map{
    				"string": pulumi.Any("any"),
    			},
    			Disabled: pulumi.Bool(false),
    		},
    	},
    	UseClientSubnet: pulumi.Bool(false),
    	BlockedTags: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    })
    
    var recordResource = new Record("recordResource", RecordArgs.builder()        
        .type("string")
        .zone("string")
        .domain("string")
        .overrideTtl(false)
        .link("string")
        .meta(Map.of("string", "any"))
        .answers(RecordAnswerArgs.builder()
            .answer("string")
            .meta(Map.of("string", "any"))
            .region("string")
            .build())
        .regions(RecordRegionArgs.builder()
            .name("string")
            .meta(Map.of("string", "any"))
            .build())
        .tags(Map.of("string", "string"))
        .ttl(0)
        .filters(RecordFilterArgs.builder()
            .filter("string")
            .config(Map.of("string", "any"))
            .disabled(false)
            .build())
        .useClientSubnet(false)
        .blockedTags("string")
        .build());
    
    record_resource = ns1.Record("recordResource",
        type="string",
        zone="string",
        domain="string",
        override_ttl=False,
        link="string",
        meta={
            "string": "any",
        },
        answers=[ns1.RecordAnswerArgs(
            answer="string",
            meta={
                "string": "any",
            },
            region="string",
        )],
        regions=[ns1.RecordRegionArgs(
            name="string",
            meta={
                "string": "any",
            },
        )],
        tags={
            "string": "string",
        },
        ttl=0,
        filters=[ns1.RecordFilterArgs(
            filter="string",
            config={
                "string": "any",
            },
            disabled=False,
        )],
        use_client_subnet=False,
        blocked_tags=["string"])
    
    const recordResource = new ns1.Record("recordResource", {
        type: "string",
        zone: "string",
        domain: "string",
        overrideTtl: false,
        link: "string",
        meta: {
            string: "any",
        },
        answers: [{
            answer: "string",
            meta: {
                string: "any",
            },
            region: "string",
        }],
        regions: [{
            name: "string",
            meta: {
                string: "any",
            },
        }],
        tags: {
            string: "string",
        },
        ttl: 0,
        filters: [{
            filter: "string",
            config: {
                string: "any",
            },
            disabled: false,
        }],
        useClientSubnet: false,
        blockedTags: ["string"],
    });
    
    type: ns1:Record
    properties:
        answers:
            - answer: string
              meta:
                string: any
              region: string
        blockedTags:
            - string
        domain: string
        filters:
            - config:
                string: any
              disabled: false
              filter: string
        link: string
        meta:
            string: any
        overrideTtl: false
        regions:
            - meta:
                string: any
              name: string
        tags:
            string: string
        ttl: 0
        type: string
        useClientSubnet: false
        zone: string
    

    Record Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The Record resource accepts the following input properties:

    Domain string
    The records' domain. Cannot have leading or trailing dots - see the example above and FQDN formatting below.
    Type string
    The records' RR type.
    Zone string
    The zone the record belongs to. Cannot have leading or trailing dots (".") - see the example above and FQDN formatting below.
    Answers List<RecordAnswer>
    One or more NS1 answers for the records' specified type. Answers are documented below.
    BlockedTags List<string>
    Filters List<RecordFilter>
    One or more NS1 filters for the record(order matters). Filters are documented below.
    Link string
    The target record to link to. This means this record is a 'linked' record, and it inherits all properties from its target.
    Meta Dictionary<string, object>
    OverrideTtl bool
    Regions List<RecordRegion>
    One or more "regions" for the record. These are really just groupings based on metadata, and are called "Answer Groups" in the NS1 UI, but remain regions here for legacy reasons. Regions are documented below. Please note the ordering requirement!
    ShortAnswers List<string>

    Deprecated: short_answers will be deprecated in a future release. It is suggested to migrate to a regular "answers" block.

    Tags Dictionary<string, string>
    Ttl int
    The records' time to live (in seconds).
    UseClientSubnet bool
    Whether to use EDNS client subnet data when available(in filter chain).

    • meta - (Optional) meta is supported at the record level. Meta is documented below.
    Domain string
    The records' domain. Cannot have leading or trailing dots - see the example above and FQDN formatting below.
    Type string
    The records' RR type.
    Zone string
    The zone the record belongs to. Cannot have leading or trailing dots (".") - see the example above and FQDN formatting below.
    Answers []RecordAnswerArgs
    One or more NS1 answers for the records' specified type. Answers are documented below.
    BlockedTags []string
    Filters []RecordFilterArgs
    One or more NS1 filters for the record(order matters). Filters are documented below.
    Link string
    The target record to link to. This means this record is a 'linked' record, and it inherits all properties from its target.
    Meta map[string]interface{}
    OverrideTtl bool
    Regions []RecordRegionArgs
    One or more "regions" for the record. These are really just groupings based on metadata, and are called "Answer Groups" in the NS1 UI, but remain regions here for legacy reasons. Regions are documented below. Please note the ordering requirement!
    ShortAnswers []string

    Deprecated: short_answers will be deprecated in a future release. It is suggested to migrate to a regular "answers" block.

    Tags map[string]string
    Ttl int
    The records' time to live (in seconds).
    UseClientSubnet bool
    Whether to use EDNS client subnet data when available(in filter chain).

    • meta - (Optional) meta is supported at the record level. Meta is documented below.
    domain String
    The records' domain. Cannot have leading or trailing dots - see the example above and FQDN formatting below.
    type String
    The records' RR type.
    zone String
    The zone the record belongs to. Cannot have leading or trailing dots (".") - see the example above and FQDN formatting below.
    answers List<RecordAnswer>
    One or more NS1 answers for the records' specified type. Answers are documented below.
    blockedTags List<String>
    filters List<RecordFilter>
    One or more NS1 filters for the record(order matters). Filters are documented below.
    link String
    The target record to link to. This means this record is a 'linked' record, and it inherits all properties from its target.
    meta Map<String,Object>
    overrideTtl Boolean
    regions List<RecordRegion>
    One or more "regions" for the record. These are really just groupings based on metadata, and are called "Answer Groups" in the NS1 UI, but remain regions here for legacy reasons. Regions are documented below. Please note the ordering requirement!
    shortAnswers List<String>

    Deprecated: short_answers will be deprecated in a future release. It is suggested to migrate to a regular "answers" block.

    tags Map<String,String>
    ttl Integer
    The records' time to live (in seconds).
    useClientSubnet Boolean
    Whether to use EDNS client subnet data when available(in filter chain).

    • meta - (Optional) meta is supported at the record level. Meta is documented below.
    domain string
    The records' domain. Cannot have leading or trailing dots - see the example above and FQDN formatting below.
    type string
    The records' RR type.
    zone string
    The zone the record belongs to. Cannot have leading or trailing dots (".") - see the example above and FQDN formatting below.
    answers RecordAnswer[]
    One or more NS1 answers for the records' specified type. Answers are documented below.
    blockedTags string[]
    filters RecordFilter[]
    One or more NS1 filters for the record(order matters). Filters are documented below.
    link string
    The target record to link to. This means this record is a 'linked' record, and it inherits all properties from its target.
    meta {[key: string]: any}
    overrideTtl boolean
    regions RecordRegion[]
    One or more "regions" for the record. These are really just groupings based on metadata, and are called "Answer Groups" in the NS1 UI, but remain regions here for legacy reasons. Regions are documented below. Please note the ordering requirement!
    shortAnswers string[]

    Deprecated: short_answers will be deprecated in a future release. It is suggested to migrate to a regular "answers" block.

    tags {[key: string]: string}
    ttl number
    The records' time to live (in seconds).
    useClientSubnet boolean
    Whether to use EDNS client subnet data when available(in filter chain).

    • meta - (Optional) meta is supported at the record level. Meta is documented below.
    domain str
    The records' domain. Cannot have leading or trailing dots - see the example above and FQDN formatting below.
    type str
    The records' RR type.
    zone str
    The zone the record belongs to. Cannot have leading or trailing dots (".") - see the example above and FQDN formatting below.
    answers Sequence[RecordAnswerArgs]
    One or more NS1 answers for the records' specified type. Answers are documented below.
    blocked_tags Sequence[str]
    filters Sequence[RecordFilterArgs]
    One or more NS1 filters for the record(order matters). Filters are documented below.
    link str
    The target record to link to. This means this record is a 'linked' record, and it inherits all properties from its target.
    meta Mapping[str, Any]
    override_ttl bool
    regions Sequence[RecordRegionArgs]
    One or more "regions" for the record. These are really just groupings based on metadata, and are called "Answer Groups" in the NS1 UI, but remain regions here for legacy reasons. Regions are documented below. Please note the ordering requirement!
    short_answers Sequence[str]

    Deprecated: short_answers will be deprecated in a future release. It is suggested to migrate to a regular "answers" block.

    tags Mapping[str, str]
    ttl int
    The records' time to live (in seconds).
    use_client_subnet bool
    Whether to use EDNS client subnet data when available(in filter chain).

    • meta - (Optional) meta is supported at the record level. Meta is documented below.
    domain String
    The records' domain. Cannot have leading or trailing dots - see the example above and FQDN formatting below.
    type String
    The records' RR type.
    zone String
    The zone the record belongs to. Cannot have leading or trailing dots (".") - see the example above and FQDN formatting below.
    answers List<Property Map>
    One or more NS1 answers for the records' specified type. Answers are documented below.
    blockedTags List<String>
    filters List<Property Map>
    One or more NS1 filters for the record(order matters). Filters are documented below.
    link String
    The target record to link to. This means this record is a 'linked' record, and it inherits all properties from its target.
    meta Map<Any>
    overrideTtl Boolean
    regions List<Property Map>
    One or more "regions" for the record. These are really just groupings based on metadata, and are called "Answer Groups" in the NS1 UI, but remain regions here for legacy reasons. Regions are documented below. Please note the ordering requirement!
    shortAnswers List<String>

    Deprecated: short_answers will be deprecated in a future release. It is suggested to migrate to a regular "answers" block.

    tags Map<String>
    ttl Number
    The records' time to live (in seconds).
    useClientSubnet Boolean
    Whether to use EDNS client subnet data when available(in filter chain).

    • meta - (Optional) meta is supported at the record level. Meta is documented below.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Record resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing Record Resource

    Get an existing Record 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?: RecordState, opts?: CustomResourceOptions): Record
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            answers: Optional[Sequence[RecordAnswerArgs]] = None,
            blocked_tags: Optional[Sequence[str]] = None,
            domain: Optional[str] = None,
            filters: Optional[Sequence[RecordFilterArgs]] = None,
            link: Optional[str] = None,
            meta: Optional[Mapping[str, Any]] = None,
            override_ttl: Optional[bool] = None,
            regions: Optional[Sequence[RecordRegionArgs]] = None,
            short_answers: Optional[Sequence[str]] = None,
            tags: Optional[Mapping[str, str]] = None,
            ttl: Optional[int] = None,
            type: Optional[str] = None,
            use_client_subnet: Optional[bool] = None,
            zone: Optional[str] = None) -> Record
    func GetRecord(ctx *Context, name string, id IDInput, state *RecordState, opts ...ResourceOption) (*Record, error)
    public static Record Get(string name, Input<string> id, RecordState? state, CustomResourceOptions? opts = null)
    public static Record get(String name, Output<String> id, RecordState 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.
    The following state arguments are supported:
    Answers List<RecordAnswer>
    One or more NS1 answers for the records' specified type. Answers are documented below.
    BlockedTags List<string>
    Domain string
    The records' domain. Cannot have leading or trailing dots - see the example above and FQDN formatting below.
    Filters List<RecordFilter>
    One or more NS1 filters for the record(order matters). Filters are documented below.
    Link string
    The target record to link to. This means this record is a 'linked' record, and it inherits all properties from its target.
    Meta Dictionary<string, object>
    OverrideTtl bool
    Regions List<RecordRegion>
    One or more "regions" for the record. These are really just groupings based on metadata, and are called "Answer Groups" in the NS1 UI, but remain regions here for legacy reasons. Regions are documented below. Please note the ordering requirement!
    ShortAnswers List<string>

    Deprecated: short_answers will be deprecated in a future release. It is suggested to migrate to a regular "answers" block.

    Tags Dictionary<string, string>
    Ttl int
    The records' time to live (in seconds).
    Type string
    The records' RR type.
    UseClientSubnet bool
    Whether to use EDNS client subnet data when available(in filter chain).

    • meta - (Optional) meta is supported at the record level. Meta is documented below.
    Zone string
    The zone the record belongs to. Cannot have leading or trailing dots (".") - see the example above and FQDN formatting below.
    Answers []RecordAnswerArgs
    One or more NS1 answers for the records' specified type. Answers are documented below.
    BlockedTags []string
    Domain string
    The records' domain. Cannot have leading or trailing dots - see the example above and FQDN formatting below.
    Filters []RecordFilterArgs
    One or more NS1 filters for the record(order matters). Filters are documented below.
    Link string
    The target record to link to. This means this record is a 'linked' record, and it inherits all properties from its target.
    Meta map[string]interface{}
    OverrideTtl bool
    Regions []RecordRegionArgs
    One or more "regions" for the record. These are really just groupings based on metadata, and are called "Answer Groups" in the NS1 UI, but remain regions here for legacy reasons. Regions are documented below. Please note the ordering requirement!
    ShortAnswers []string

    Deprecated: short_answers will be deprecated in a future release. It is suggested to migrate to a regular "answers" block.

    Tags map[string]string
    Ttl int
    The records' time to live (in seconds).
    Type string
    The records' RR type.
    UseClientSubnet bool
    Whether to use EDNS client subnet data when available(in filter chain).

    • meta - (Optional) meta is supported at the record level. Meta is documented below.
    Zone string
    The zone the record belongs to. Cannot have leading or trailing dots (".") - see the example above and FQDN formatting below.
    answers List<RecordAnswer>
    One or more NS1 answers for the records' specified type. Answers are documented below.
    blockedTags List<String>
    domain String
    The records' domain. Cannot have leading or trailing dots - see the example above and FQDN formatting below.
    filters List<RecordFilter>
    One or more NS1 filters for the record(order matters). Filters are documented below.
    link String
    The target record to link to. This means this record is a 'linked' record, and it inherits all properties from its target.
    meta Map<String,Object>
    overrideTtl Boolean
    regions List<RecordRegion>
    One or more "regions" for the record. These are really just groupings based on metadata, and are called "Answer Groups" in the NS1 UI, but remain regions here for legacy reasons. Regions are documented below. Please note the ordering requirement!
    shortAnswers List<String>

    Deprecated: short_answers will be deprecated in a future release. It is suggested to migrate to a regular "answers" block.

    tags Map<String,String>
    ttl Integer
    The records' time to live (in seconds).
    type String
    The records' RR type.
    useClientSubnet Boolean
    Whether to use EDNS client subnet data when available(in filter chain).

    • meta - (Optional) meta is supported at the record level. Meta is documented below.
    zone String
    The zone the record belongs to. Cannot have leading or trailing dots (".") - see the example above and FQDN formatting below.
    answers RecordAnswer[]
    One or more NS1 answers for the records' specified type. Answers are documented below.
    blockedTags string[]
    domain string
    The records' domain. Cannot have leading or trailing dots - see the example above and FQDN formatting below.
    filters RecordFilter[]
    One or more NS1 filters for the record(order matters). Filters are documented below.
    link string
    The target record to link to. This means this record is a 'linked' record, and it inherits all properties from its target.
    meta {[key: string]: any}
    overrideTtl boolean
    regions RecordRegion[]
    One or more "regions" for the record. These are really just groupings based on metadata, and are called "Answer Groups" in the NS1 UI, but remain regions here for legacy reasons. Regions are documented below. Please note the ordering requirement!
    shortAnswers string[]

    Deprecated: short_answers will be deprecated in a future release. It is suggested to migrate to a regular "answers" block.

    tags {[key: string]: string}
    ttl number
    The records' time to live (in seconds).
    type string
    The records' RR type.
    useClientSubnet boolean
    Whether to use EDNS client subnet data when available(in filter chain).

    • meta - (Optional) meta is supported at the record level. Meta is documented below.
    zone string
    The zone the record belongs to. Cannot have leading or trailing dots (".") - see the example above and FQDN formatting below.
    answers Sequence[RecordAnswerArgs]
    One or more NS1 answers for the records' specified type. Answers are documented below.
    blocked_tags Sequence[str]
    domain str
    The records' domain. Cannot have leading or trailing dots - see the example above and FQDN formatting below.
    filters Sequence[RecordFilterArgs]
    One or more NS1 filters for the record(order matters). Filters are documented below.
    link str
    The target record to link to. This means this record is a 'linked' record, and it inherits all properties from its target.
    meta Mapping[str, Any]
    override_ttl bool
    regions Sequence[RecordRegionArgs]
    One or more "regions" for the record. These are really just groupings based on metadata, and are called "Answer Groups" in the NS1 UI, but remain regions here for legacy reasons. Regions are documented below. Please note the ordering requirement!
    short_answers Sequence[str]

    Deprecated: short_answers will be deprecated in a future release. It is suggested to migrate to a regular "answers" block.

    tags Mapping[str, str]
    ttl int
    The records' time to live (in seconds).
    type str
    The records' RR type.
    use_client_subnet bool
    Whether to use EDNS client subnet data when available(in filter chain).

    • meta - (Optional) meta is supported at the record level. Meta is documented below.
    zone str
    The zone the record belongs to. Cannot have leading or trailing dots (".") - see the example above and FQDN formatting below.
    answers List<Property Map>
    One or more NS1 answers for the records' specified type. Answers are documented below.
    blockedTags List<String>
    domain String
    The records' domain. Cannot have leading or trailing dots - see the example above and FQDN formatting below.
    filters List<Property Map>
    One or more NS1 filters for the record(order matters). Filters are documented below.
    link String
    The target record to link to. This means this record is a 'linked' record, and it inherits all properties from its target.
    meta Map<Any>
    overrideTtl Boolean
    regions List<Property Map>
    One or more "regions" for the record. These are really just groupings based on metadata, and are called "Answer Groups" in the NS1 UI, but remain regions here for legacy reasons. Regions are documented below. Please note the ordering requirement!
    shortAnswers List<String>

    Deprecated: short_answers will be deprecated in a future release. It is suggested to migrate to a regular "answers" block.

    tags Map<String>
    ttl Number
    The records' time to live (in seconds).
    type String
    The records' RR type.
    useClientSubnet Boolean
    Whether to use EDNS client subnet data when available(in filter chain).

    • meta - (Optional) meta is supported at the record level. Meta is documented below.
    zone String
    The zone the record belongs to. Cannot have leading or trailing dots (".") - see the example above and FQDN formatting below.

    Supporting Types

    RecordAnswer, RecordAnswerArgs

    Answer string

    Space delimited string of RDATA fields dependent on the record type.

    A:

    answer = "1.2.3.4"

    CNAME:

    answer = "www.example.com"

    MX:

    answer = "5 mail.example.com"

    SRV:

    answer = "10 0 2380 node-1.example.com"

    SPF:

    answer = "v=DKIM1; k=rsa; p=XXXXXXXX"

    Meta Dictionary<string, object>
    Region string
    The region (Answer Group really) that this answer belongs to. This should be one of the names specified in regions. Only a single region per answer is currently supported. If you want an answer in multiple regions, duplicating the answer (including metadata) is the correct approach.

    • meta - (Optional) meta is supported at the answer level. Meta is documented below.
    Answer string

    Space delimited string of RDATA fields dependent on the record type.

    A:

    answer = "1.2.3.4"

    CNAME:

    answer = "www.example.com"

    MX:

    answer = "5 mail.example.com"

    SRV:

    answer = "10 0 2380 node-1.example.com"

    SPF:

    answer = "v=DKIM1; k=rsa; p=XXXXXXXX"

    Meta map[string]interface{}
    Region string
    The region (Answer Group really) that this answer belongs to. This should be one of the names specified in regions. Only a single region per answer is currently supported. If you want an answer in multiple regions, duplicating the answer (including metadata) is the correct approach.

    • meta - (Optional) meta is supported at the answer level. Meta is documented below.
    answer String

    Space delimited string of RDATA fields dependent on the record type.

    A:

    answer = "1.2.3.4"

    CNAME:

    answer = "www.example.com"

    MX:

    answer = "5 mail.example.com"

    SRV:

    answer = "10 0 2380 node-1.example.com"

    SPF:

    answer = "v=DKIM1; k=rsa; p=XXXXXXXX"

    meta Map<String,Object>
    region String
    The region (Answer Group really) that this answer belongs to. This should be one of the names specified in regions. Only a single region per answer is currently supported. If you want an answer in multiple regions, duplicating the answer (including metadata) is the correct approach.

    • meta - (Optional) meta is supported at the answer level. Meta is documented below.
    answer string

    Space delimited string of RDATA fields dependent on the record type.

    A:

    answer = "1.2.3.4"

    CNAME:

    answer = "www.example.com"

    MX:

    answer = "5 mail.example.com"

    SRV:

    answer = "10 0 2380 node-1.example.com"

    SPF:

    answer = "v=DKIM1; k=rsa; p=XXXXXXXX"

    meta {[key: string]: any}
    region string
    The region (Answer Group really) that this answer belongs to. This should be one of the names specified in regions. Only a single region per answer is currently supported. If you want an answer in multiple regions, duplicating the answer (including metadata) is the correct approach.

    • meta - (Optional) meta is supported at the answer level. Meta is documented below.
    answer str

    Space delimited string of RDATA fields dependent on the record type.

    A:

    answer = "1.2.3.4"

    CNAME:

    answer = "www.example.com"

    MX:

    answer = "5 mail.example.com"

    SRV:

    answer = "10 0 2380 node-1.example.com"

    SPF:

    answer = "v=DKIM1; k=rsa; p=XXXXXXXX"

    meta Mapping[str, Any]
    region str
    The region (Answer Group really) that this answer belongs to. This should be one of the names specified in regions. Only a single region per answer is currently supported. If you want an answer in multiple regions, duplicating the answer (including metadata) is the correct approach.

    • meta - (Optional) meta is supported at the answer level. Meta is documented below.
    answer String

    Space delimited string of RDATA fields dependent on the record type.

    A:

    answer = "1.2.3.4"

    CNAME:

    answer = "www.example.com"

    MX:

    answer = "5 mail.example.com"

    SRV:

    answer = "10 0 2380 node-1.example.com"

    SPF:

    answer = "v=DKIM1; k=rsa; p=XXXXXXXX"

    meta Map<Any>
    region String
    The region (Answer Group really) that this answer belongs to. This should be one of the names specified in regions. Only a single region per answer is currently supported. If you want an answer in multiple regions, duplicating the answer (including metadata) is the correct approach.

    • meta - (Optional) meta is supported at the answer level. Meta is documented below.

    RecordFilter, RecordFilterArgs

    Filter string
    The type of filter.
    Config Dictionary<string, object>
    The filters' configuration. Simple key/value pairs determined by the filter type.
    Disabled bool
    Determines whether the filter is applied in the filter chain.
    Filter string
    The type of filter.
    Config map[string]interface{}
    The filters' configuration. Simple key/value pairs determined by the filter type.
    Disabled bool
    Determines whether the filter is applied in the filter chain.
    filter String
    The type of filter.
    config Map<String,Object>
    The filters' configuration. Simple key/value pairs determined by the filter type.
    disabled Boolean
    Determines whether the filter is applied in the filter chain.
    filter string
    The type of filter.
    config {[key: string]: any}
    The filters' configuration. Simple key/value pairs determined by the filter type.
    disabled boolean
    Determines whether the filter is applied in the filter chain.
    filter str
    The type of filter.
    config Mapping[str, Any]
    The filters' configuration. Simple key/value pairs determined by the filter type.
    disabled bool
    Determines whether the filter is applied in the filter chain.
    filter String
    The type of filter.
    config Map<Any>
    The filters' configuration. Simple key/value pairs determined by the filter type.
    disabled Boolean
    Determines whether the filter is applied in the filter chain.

    RecordRegion, RecordRegionArgs

    Name string
    Name of the region (or Answer Group).
    Meta Dictionary<string, object>
    Name string
    Name of the region (or Answer Group).
    Meta map[string]interface{}
    name String
    Name of the region (or Answer Group).
    meta Map<String,Object>
    name string
    Name of the region (or Answer Group).
    meta {[key: string]: any}
    name str
    Name of the region (or Answer Group).
    meta Mapping[str, Any]
    name String
    Name of the region (or Answer Group).
    meta Map<Any>

    Import

    $ pulumi import ns1:index/record:Record <name> <zone>/<domain>/<type>`
    

    So for the example above:

    $ pulumi import ns1:index/record:Record www terraform.example.io/www.terraform.example.io/CNAME`
    

    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 ns1 Terraform Provider.
    ns1 logo
    NS1 v3.2.1 published on Thursday, Apr 4, 2024 by Pulumi