1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. dns
  5. Record
Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi

alicloud.dns.Record

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi

    Provides a DNS Record resource.

    DEPRECATED: This resource has been deprecated from version 1.85.0. Please use new resource alicloud_alidns_record.

    NOTE: When the site is an international site, the type neither supports REDIRECT_URL nor REDIRECT_URL

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    // Create a new Domain record
    const record = new alicloud.dns.Record("record", {
        name: "domainname",
        hostRecord: "@",
        type: "A",
        value: "192.168.99.99",
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    # Create a new Domain record
    record = alicloud.dns.Record("record",
        name="domainname",
        host_record="@",
        type="A",
        value="192.168.99.99")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/dns"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// Create a new Domain record
    		_, err := dns.NewRecord(ctx, "record", &dns.RecordArgs{
    			Name:       pulumi.String("domainname"),
    			HostRecord: pulumi.String("@"),
    			Type:       pulumi.String("A"),
    			Value:      pulumi.String("192.168.99.99"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        // Create a new Domain record
        var record = new AliCloud.Dns.Record("record", new()
        {
            Name = "domainname",
            HostRecord = "@",
            Type = "A",
            Value = "192.168.99.99",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.dns.Record;
    import com.pulumi.alicloud.dns.RecordArgs;
    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) {
            // Create a new Domain record
            var record = new Record("record", RecordArgs.builder()
                .name("domainname")
                .hostRecord("@")
                .type("A")
                .value("192.168.99.99")
                .build());
    
        }
    }
    
    resources:
      # Create a new Domain record
      record:
        type: alicloud:dns:Record
        properties:
          name: domainname
          hostRecord: '@'
          type: A
          value: 192.168.99.99
    

    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,
               host_record: Optional[str] = None,
               type: Optional[str] = None,
               value: Optional[str] = None,
               name: Optional[str] = None,
               priority: Optional[int] = None,
               routing: Optional[str] = None,
               ttl: Optional[int] = 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: alicloud:dns: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.

    Constructor example

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

    var recordResource = new AliCloud.Dns.Record("recordResource", new()
    {
        HostRecord = "string",
        Type = "string",
        Value = "string",
        Name = "string",
        Priority = 0,
        Routing = "string",
        Ttl = 0,
    });
    
    example, err := dns.NewRecord(ctx, "recordResource", &dns.RecordArgs{
    	HostRecord: pulumi.String("string"),
    	Type:       pulumi.String("string"),
    	Value:      pulumi.String("string"),
    	Name:       pulumi.String("string"),
    	Priority:   pulumi.Int(0),
    	Routing:    pulumi.String("string"),
    	Ttl:        pulumi.Int(0),
    })
    
    var recordResource = new Record("recordResource", RecordArgs.builder()
        .hostRecord("string")
        .type("string")
        .value("string")
        .name("string")
        .priority(0)
        .routing("string")
        .ttl(0)
        .build());
    
    record_resource = alicloud.dns.Record("recordResource",
        host_record="string",
        type="string",
        value="string",
        name="string",
        priority=0,
        routing="string",
        ttl=0)
    
    const recordResource = new alicloud.dns.Record("recordResource", {
        hostRecord: "string",
        type: "string",
        value: "string",
        name: "string",
        priority: 0,
        routing: "string",
        ttl: 0,
    });
    
    type: alicloud:dns:Record
    properties:
        hostRecord: string
        name: string
        priority: 0
        routing: string
        ttl: 0
        type: string
        value: 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:

    HostRecord string
    Host record for the domain record. This host_record can have at most 253 characters, and each part split with "." can have at most 63 characters, and must contain only alphanumeric characters or hyphens, such as "-",".","*","@", and must not begin or end with "-".
    Type string
    The type of domain record. Valid values are A,NS,MX,TXT,CNAME,SRV,AAAA,CAA, REDIRECT_URL and FORWORD_URL.
    Value string
    The value of domain record, When the type is MX,NS,CNAME,SRV, the server will treat the value as a fully qualified domain name, so it's no need to add a . at the end.
    Name string
    Name of the domain. This name without suffix can have a string of 1 to 63 characters, must contain only alphanumeric characters or "-", and must not begin or end with "-", and "-" must not in the 3th and 4th character positions at the same time. Suffix .sh and .tel are not supported.
    Priority int
    The priority of domain record. Valid values are [1-10]. When the type is MX, this parameter is required.
    Routing string
    The resolution line of domain record. Valid values are default, telecom, unicom, mobile, oversea, edu, drpeng, btvn, .etc. When the type is FORWORD_URL, this parameter must be default. Default value is default. For checking all resolution lines enumeration please visit Alibaba Cloud DNS doc or using alicloud.dns.getResolutionLines in data source to get the value.
    Ttl int
    The effective time of domain record. Its scope depends on the edition of the cloud resolution. Free is [600, 86400], Basic is [120, 86400], Standard is [60, 86400], Ultimate is [10, 86400], Exclusive is [1, 86400]. Default value is 600.
    HostRecord string
    Host record for the domain record. This host_record can have at most 253 characters, and each part split with "." can have at most 63 characters, and must contain only alphanumeric characters or hyphens, such as "-",".","*","@", and must not begin or end with "-".
    Type string
    The type of domain record. Valid values are A,NS,MX,TXT,CNAME,SRV,AAAA,CAA, REDIRECT_URL and FORWORD_URL.
    Value string
    The value of domain record, When the type is MX,NS,CNAME,SRV, the server will treat the value as a fully qualified domain name, so it's no need to add a . at the end.
    Name string
    Name of the domain. This name without suffix can have a string of 1 to 63 characters, must contain only alphanumeric characters or "-", and must not begin or end with "-", and "-" must not in the 3th and 4th character positions at the same time. Suffix .sh and .tel are not supported.
    Priority int
    The priority of domain record. Valid values are [1-10]. When the type is MX, this parameter is required.
    Routing string
    The resolution line of domain record. Valid values are default, telecom, unicom, mobile, oversea, edu, drpeng, btvn, .etc. When the type is FORWORD_URL, this parameter must be default. Default value is default. For checking all resolution lines enumeration please visit Alibaba Cloud DNS doc or using alicloud.dns.getResolutionLines in data source to get the value.
    Ttl int
    The effective time of domain record. Its scope depends on the edition of the cloud resolution. Free is [600, 86400], Basic is [120, 86400], Standard is [60, 86400], Ultimate is [10, 86400], Exclusive is [1, 86400]. Default value is 600.
    hostRecord String
    Host record for the domain record. This host_record can have at most 253 characters, and each part split with "." can have at most 63 characters, and must contain only alphanumeric characters or hyphens, such as "-",".","*","@", and must not begin or end with "-".
    type String
    The type of domain record. Valid values are A,NS,MX,TXT,CNAME,SRV,AAAA,CAA, REDIRECT_URL and FORWORD_URL.
    value String
    The value of domain record, When the type is MX,NS,CNAME,SRV, the server will treat the value as a fully qualified domain name, so it's no need to add a . at the end.
    name String
    Name of the domain. This name without suffix can have a string of 1 to 63 characters, must contain only alphanumeric characters or "-", and must not begin or end with "-", and "-" must not in the 3th and 4th character positions at the same time. Suffix .sh and .tel are not supported.
    priority Integer
    The priority of domain record. Valid values are [1-10]. When the type is MX, this parameter is required.
    routing String
    The resolution line of domain record. Valid values are default, telecom, unicom, mobile, oversea, edu, drpeng, btvn, .etc. When the type is FORWORD_URL, this parameter must be default. Default value is default. For checking all resolution lines enumeration please visit Alibaba Cloud DNS doc or using alicloud.dns.getResolutionLines in data source to get the value.
    ttl Integer
    The effective time of domain record. Its scope depends on the edition of the cloud resolution. Free is [600, 86400], Basic is [120, 86400], Standard is [60, 86400], Ultimate is [10, 86400], Exclusive is [1, 86400]. Default value is 600.
    hostRecord string
    Host record for the domain record. This host_record can have at most 253 characters, and each part split with "." can have at most 63 characters, and must contain only alphanumeric characters or hyphens, such as "-",".","*","@", and must not begin or end with "-".
    type string
    The type of domain record. Valid values are A,NS,MX,TXT,CNAME,SRV,AAAA,CAA, REDIRECT_URL and FORWORD_URL.
    value string
    The value of domain record, When the type is MX,NS,CNAME,SRV, the server will treat the value as a fully qualified domain name, so it's no need to add a . at the end.
    name string
    Name of the domain. This name without suffix can have a string of 1 to 63 characters, must contain only alphanumeric characters or "-", and must not begin or end with "-", and "-" must not in the 3th and 4th character positions at the same time. Suffix .sh and .tel are not supported.
    priority number
    The priority of domain record. Valid values are [1-10]. When the type is MX, this parameter is required.
    routing string
    The resolution line of domain record. Valid values are default, telecom, unicom, mobile, oversea, edu, drpeng, btvn, .etc. When the type is FORWORD_URL, this parameter must be default. Default value is default. For checking all resolution lines enumeration please visit Alibaba Cloud DNS doc or using alicloud.dns.getResolutionLines in data source to get the value.
    ttl number
    The effective time of domain record. Its scope depends on the edition of the cloud resolution. Free is [600, 86400], Basic is [120, 86400], Standard is [60, 86400], Ultimate is [10, 86400], Exclusive is [1, 86400]. Default value is 600.
    host_record str
    Host record for the domain record. This host_record can have at most 253 characters, and each part split with "." can have at most 63 characters, and must contain only alphanumeric characters or hyphens, such as "-",".","*","@", and must not begin or end with "-".
    type str
    The type of domain record. Valid values are A,NS,MX,TXT,CNAME,SRV,AAAA,CAA, REDIRECT_URL and FORWORD_URL.
    value str
    The value of domain record, When the type is MX,NS,CNAME,SRV, the server will treat the value as a fully qualified domain name, so it's no need to add a . at the end.
    name str
    Name of the domain. This name without suffix can have a string of 1 to 63 characters, must contain only alphanumeric characters or "-", and must not begin or end with "-", and "-" must not in the 3th and 4th character positions at the same time. Suffix .sh and .tel are not supported.
    priority int
    The priority of domain record. Valid values are [1-10]. When the type is MX, this parameter is required.
    routing str
    The resolution line of domain record. Valid values are default, telecom, unicom, mobile, oversea, edu, drpeng, btvn, .etc. When the type is FORWORD_URL, this parameter must be default. Default value is default. For checking all resolution lines enumeration please visit Alibaba Cloud DNS doc or using alicloud.dns.getResolutionLines in data source to get the value.
    ttl int
    The effective time of domain record. Its scope depends on the edition of the cloud resolution. Free is [600, 86400], Basic is [120, 86400], Standard is [60, 86400], Ultimate is [10, 86400], Exclusive is [1, 86400]. Default value is 600.
    hostRecord String
    Host record for the domain record. This host_record can have at most 253 characters, and each part split with "." can have at most 63 characters, and must contain only alphanumeric characters or hyphens, such as "-",".","*","@", and must not begin or end with "-".
    type String
    The type of domain record. Valid values are A,NS,MX,TXT,CNAME,SRV,AAAA,CAA, REDIRECT_URL and FORWORD_URL.
    value String
    The value of domain record, When the type is MX,NS,CNAME,SRV, the server will treat the value as a fully qualified domain name, so it's no need to add a . at the end.
    name String
    Name of the domain. This name without suffix can have a string of 1 to 63 characters, must contain only alphanumeric characters or "-", and must not begin or end with "-", and "-" must not in the 3th and 4th character positions at the same time. Suffix .sh and .tel are not supported.
    priority Number
    The priority of domain record. Valid values are [1-10]. When the type is MX, this parameter is required.
    routing String
    The resolution line of domain record. Valid values are default, telecom, unicom, mobile, oversea, edu, drpeng, btvn, .etc. When the type is FORWORD_URL, this parameter must be default. Default value is default. For checking all resolution lines enumeration please visit Alibaba Cloud DNS doc or using alicloud.dns.getResolutionLines in data source to get the value.
    ttl Number
    The effective time of domain record. Its scope depends on the edition of the cloud resolution. Free is [600, 86400], Basic is [120, 86400], Standard is [60, 86400], Ultimate is [10, 86400], Exclusive is [1, 86400]. Default value is 600.

    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.
    Locked bool
    Status string
    The record status. Enable or Disable.

    • Locked - The record locked state. true or false.
    Id string
    The provider-assigned unique ID for this managed resource.
    Locked bool
    Status string
    The record status. Enable or Disable.

    • Locked - The record locked state. true or false.
    id String
    The provider-assigned unique ID for this managed resource.
    locked Boolean
    status String
    The record status. Enable or Disable.

    • Locked - The record locked state. true or false.
    id string
    The provider-assigned unique ID for this managed resource.
    locked boolean
    status string
    The record status. Enable or Disable.

    • Locked - The record locked state. true or false.
    id str
    The provider-assigned unique ID for this managed resource.
    locked bool
    status str
    The record status. Enable or Disable.

    • Locked - The record locked state. true or false.
    id String
    The provider-assigned unique ID for this managed resource.
    locked Boolean
    status String
    The record status. Enable or Disable.

    • Locked - The record locked state. true or false.

    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,
            host_record: Optional[str] = None,
            locked: Optional[bool] = None,
            name: Optional[str] = None,
            priority: Optional[int] = None,
            routing: Optional[str] = None,
            status: Optional[str] = None,
            ttl: Optional[int] = None,
            type: Optional[str] = None,
            value: 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:
    HostRecord string
    Host record for the domain record. This host_record can have at most 253 characters, and each part split with "." can have at most 63 characters, and must contain only alphanumeric characters or hyphens, such as "-",".","*","@", and must not begin or end with "-".
    Locked bool
    Name string
    Name of the domain. This name without suffix can have a string of 1 to 63 characters, must contain only alphanumeric characters or "-", and must not begin or end with "-", and "-" must not in the 3th and 4th character positions at the same time. Suffix .sh and .tel are not supported.
    Priority int
    The priority of domain record. Valid values are [1-10]. When the type is MX, this parameter is required.
    Routing string
    The resolution line of domain record. Valid values are default, telecom, unicom, mobile, oversea, edu, drpeng, btvn, .etc. When the type is FORWORD_URL, this parameter must be default. Default value is default. For checking all resolution lines enumeration please visit Alibaba Cloud DNS doc or using alicloud.dns.getResolutionLines in data source to get the value.
    Status string
    The record status. Enable or Disable.

    • Locked - The record locked state. true or false.
    Ttl int
    The effective time of domain record. Its scope depends on the edition of the cloud resolution. Free is [600, 86400], Basic is [120, 86400], Standard is [60, 86400], Ultimate is [10, 86400], Exclusive is [1, 86400]. Default value is 600.
    Type string
    The type of domain record. Valid values are A,NS,MX,TXT,CNAME,SRV,AAAA,CAA, REDIRECT_URL and FORWORD_URL.
    Value string
    The value of domain record, When the type is MX,NS,CNAME,SRV, the server will treat the value as a fully qualified domain name, so it's no need to add a . at the end.
    HostRecord string
    Host record for the domain record. This host_record can have at most 253 characters, and each part split with "." can have at most 63 characters, and must contain only alphanumeric characters or hyphens, such as "-",".","*","@", and must not begin or end with "-".
    Locked bool
    Name string
    Name of the domain. This name without suffix can have a string of 1 to 63 characters, must contain only alphanumeric characters or "-", and must not begin or end with "-", and "-" must not in the 3th and 4th character positions at the same time. Suffix .sh and .tel are not supported.
    Priority int
    The priority of domain record. Valid values are [1-10]. When the type is MX, this parameter is required.
    Routing string
    The resolution line of domain record. Valid values are default, telecom, unicom, mobile, oversea, edu, drpeng, btvn, .etc. When the type is FORWORD_URL, this parameter must be default. Default value is default. For checking all resolution lines enumeration please visit Alibaba Cloud DNS doc or using alicloud.dns.getResolutionLines in data source to get the value.
    Status string
    The record status. Enable or Disable.

    • Locked - The record locked state. true or false.
    Ttl int
    The effective time of domain record. Its scope depends on the edition of the cloud resolution. Free is [600, 86400], Basic is [120, 86400], Standard is [60, 86400], Ultimate is [10, 86400], Exclusive is [1, 86400]. Default value is 600.
    Type string
    The type of domain record. Valid values are A,NS,MX,TXT,CNAME,SRV,AAAA,CAA, REDIRECT_URL and FORWORD_URL.
    Value string
    The value of domain record, When the type is MX,NS,CNAME,SRV, the server will treat the value as a fully qualified domain name, so it's no need to add a . at the end.
    hostRecord String
    Host record for the domain record. This host_record can have at most 253 characters, and each part split with "." can have at most 63 characters, and must contain only alphanumeric characters or hyphens, such as "-",".","*","@", and must not begin or end with "-".
    locked Boolean
    name String
    Name of the domain. This name without suffix can have a string of 1 to 63 characters, must contain only alphanumeric characters or "-", and must not begin or end with "-", and "-" must not in the 3th and 4th character positions at the same time. Suffix .sh and .tel are not supported.
    priority Integer
    The priority of domain record. Valid values are [1-10]. When the type is MX, this parameter is required.
    routing String
    The resolution line of domain record. Valid values are default, telecom, unicom, mobile, oversea, edu, drpeng, btvn, .etc. When the type is FORWORD_URL, this parameter must be default. Default value is default. For checking all resolution lines enumeration please visit Alibaba Cloud DNS doc or using alicloud.dns.getResolutionLines in data source to get the value.
    status String
    The record status. Enable or Disable.

    • Locked - The record locked state. true or false.
    ttl Integer
    The effective time of domain record. Its scope depends on the edition of the cloud resolution. Free is [600, 86400], Basic is [120, 86400], Standard is [60, 86400], Ultimate is [10, 86400], Exclusive is [1, 86400]. Default value is 600.
    type String
    The type of domain record. Valid values are A,NS,MX,TXT,CNAME,SRV,AAAA,CAA, REDIRECT_URL and FORWORD_URL.
    value String
    The value of domain record, When the type is MX,NS,CNAME,SRV, the server will treat the value as a fully qualified domain name, so it's no need to add a . at the end.
    hostRecord string
    Host record for the domain record. This host_record can have at most 253 characters, and each part split with "." can have at most 63 characters, and must contain only alphanumeric characters or hyphens, such as "-",".","*","@", and must not begin or end with "-".
    locked boolean
    name string
    Name of the domain. This name without suffix can have a string of 1 to 63 characters, must contain only alphanumeric characters or "-", and must not begin or end with "-", and "-" must not in the 3th and 4th character positions at the same time. Suffix .sh and .tel are not supported.
    priority number
    The priority of domain record. Valid values are [1-10]. When the type is MX, this parameter is required.
    routing string
    The resolution line of domain record. Valid values are default, telecom, unicom, mobile, oversea, edu, drpeng, btvn, .etc. When the type is FORWORD_URL, this parameter must be default. Default value is default. For checking all resolution lines enumeration please visit Alibaba Cloud DNS doc or using alicloud.dns.getResolutionLines in data source to get the value.
    status string
    The record status. Enable or Disable.

    • Locked - The record locked state. true or false.
    ttl number
    The effective time of domain record. Its scope depends on the edition of the cloud resolution. Free is [600, 86400], Basic is [120, 86400], Standard is [60, 86400], Ultimate is [10, 86400], Exclusive is [1, 86400]. Default value is 600.
    type string
    The type of domain record. Valid values are A,NS,MX,TXT,CNAME,SRV,AAAA,CAA, REDIRECT_URL and FORWORD_URL.
    value string
    The value of domain record, When the type is MX,NS,CNAME,SRV, the server will treat the value as a fully qualified domain name, so it's no need to add a . at the end.
    host_record str
    Host record for the domain record. This host_record can have at most 253 characters, and each part split with "." can have at most 63 characters, and must contain only alphanumeric characters or hyphens, such as "-",".","*","@", and must not begin or end with "-".
    locked bool
    name str
    Name of the domain. This name without suffix can have a string of 1 to 63 characters, must contain only alphanumeric characters or "-", and must not begin or end with "-", and "-" must not in the 3th and 4th character positions at the same time. Suffix .sh and .tel are not supported.
    priority int
    The priority of domain record. Valid values are [1-10]. When the type is MX, this parameter is required.
    routing str
    The resolution line of domain record. Valid values are default, telecom, unicom, mobile, oversea, edu, drpeng, btvn, .etc. When the type is FORWORD_URL, this parameter must be default. Default value is default. For checking all resolution lines enumeration please visit Alibaba Cloud DNS doc or using alicloud.dns.getResolutionLines in data source to get the value.
    status str
    The record status. Enable or Disable.

    • Locked - The record locked state. true or false.
    ttl int
    The effective time of domain record. Its scope depends on the edition of the cloud resolution. Free is [600, 86400], Basic is [120, 86400], Standard is [60, 86400], Ultimate is [10, 86400], Exclusive is [1, 86400]. Default value is 600.
    type str
    The type of domain record. Valid values are A,NS,MX,TXT,CNAME,SRV,AAAA,CAA, REDIRECT_URL and FORWORD_URL.
    value str
    The value of domain record, When the type is MX,NS,CNAME,SRV, the server will treat the value as a fully qualified domain name, so it's no need to add a . at the end.
    hostRecord String
    Host record for the domain record. This host_record can have at most 253 characters, and each part split with "." can have at most 63 characters, and must contain only alphanumeric characters or hyphens, such as "-",".","*","@", and must not begin or end with "-".
    locked Boolean
    name String
    Name of the domain. This name without suffix can have a string of 1 to 63 characters, must contain only alphanumeric characters or "-", and must not begin or end with "-", and "-" must not in the 3th and 4th character positions at the same time. Suffix .sh and .tel are not supported.
    priority Number
    The priority of domain record. Valid values are [1-10]. When the type is MX, this parameter is required.
    routing String
    The resolution line of domain record. Valid values are default, telecom, unicom, mobile, oversea, edu, drpeng, btvn, .etc. When the type is FORWORD_URL, this parameter must be default. Default value is default. For checking all resolution lines enumeration please visit Alibaba Cloud DNS doc or using alicloud.dns.getResolutionLines in data source to get the value.
    status String
    The record status. Enable or Disable.

    • Locked - The record locked state. true or false.
    ttl Number
    The effective time of domain record. Its scope depends on the edition of the cloud resolution. Free is [600, 86400], Basic is [120, 86400], Standard is [60, 86400], Ultimate is [10, 86400], Exclusive is [1, 86400]. Default value is 600.
    type String
    The type of domain record. Valid values are A,NS,MX,TXT,CNAME,SRV,AAAA,CAA, REDIRECT_URL and FORWORD_URL.
    value String
    The value of domain record, When the type is MX,NS,CNAME,SRV, the server will treat the value as a fully qualified domain name, so it's no need to add a . at the end.

    Import

    RDS record can be imported using the id, e.g.

    $ pulumi import alicloud:dns/record:Record example <id>
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi