alicloud logo
Alibaba Cloud v3.38.0, Jun 2 23

alicloud.dns.AlidnsRecord

Explore with Pulumi AI

Provides a Alidns Record resource. For information about Alidns Domain Record and how to use it, see What is Resource Alidns Record.

NOTE: Available in v1.85.0+.

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

Example Usage

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.AlidnsRecord("record", new()
    {
        DomainName = "domainname",
        Remark = "Test new alidns record.",
        Rr = "@",
        Status = "ENABLE",
        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 {
		_, err := dns.NewAlidnsRecord(ctx, "record", &dns.AlidnsRecordArgs{
			DomainName: pulumi.String("domainname"),
			Remark:     pulumi.String("Test new alidns record."),
			Rr:         pulumi.String("@"),
			Status:     pulumi.String("ENABLE"),
			Type:       pulumi.String("A"),
			Value:      pulumi.String("192.168.99.99"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.dns.AlidnsRecord;
import com.pulumi.alicloud.dns.AlidnsRecordArgs;
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 record = new AlidnsRecord("record", AlidnsRecordArgs.builder()        
            .domainName("domainname")
            .remark("Test new alidns record.")
            .rr("@")
            .status("ENABLE")
            .type("A")
            .value("192.168.99.99")
            .build());

    }
}
import pulumi
import pulumi_alicloud as alicloud

# Create a new Domain Record
record = alicloud.dns.AlidnsRecord("record",
    domain_name="domainname",
    remark="Test new alidns record.",
    rr="@",
    status="ENABLE",
    type="A",
    value="192.168.99.99")
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

// Create a new Domain Record
const record = new alicloud.dns.AlidnsRecord("record", {
    domainName: "domainname",
    remark: "Test new alidns record.",
    rr: "@",
    status: "ENABLE",
    type: "A",
    value: "192.168.99.99",
});
resources:
  # Create a new Domain Record
  record:
    type: alicloud:dns:AlidnsRecord
    properties:
      domainName: domainname
      remark: Test new alidns record.
      rr: '@'
      status: ENABLE
      type: A
      value: 192.168.99.99

Create AlidnsRecord Resource

new AlidnsRecord(name: string, args: AlidnsRecordArgs, opts?: CustomResourceOptions);
@overload
def AlidnsRecord(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 domain_name: Optional[str] = None,
                 lang: Optional[str] = None,
                 line: Optional[str] = None,
                 priority: Optional[int] = None,
                 remark: Optional[str] = None,
                 rr: Optional[str] = None,
                 status: Optional[str] = None,
                 ttl: Optional[int] = None,
                 type: Optional[str] = None,
                 user_client_ip: Optional[str] = None,
                 value: Optional[str] = None)
@overload
def AlidnsRecord(resource_name: str,
                 args: AlidnsRecordArgs,
                 opts: Optional[ResourceOptions] = None)
func NewAlidnsRecord(ctx *Context, name string, args AlidnsRecordArgs, opts ...ResourceOption) (*AlidnsRecord, error)
public AlidnsRecord(string name, AlidnsRecordArgs args, CustomResourceOptions? opts = null)
public AlidnsRecord(String name, AlidnsRecordArgs args)
public AlidnsRecord(String name, AlidnsRecordArgs args, CustomResourceOptions options)
type: alicloud:dns:AlidnsRecord
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args AlidnsRecordArgs
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 AlidnsRecordArgs
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 AlidnsRecordArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args AlidnsRecordArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args AlidnsRecordArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

AlidnsRecord 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 AlidnsRecord resource accepts the following input properties:

DomainName 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.

Rr 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: 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.

Lang string

User language.

Line string

The resolution line of domain record. 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.

Priority int

The priority of domain record. Valid values: [1-10]. When the type is MX, this parameter is required.

Remark string

The remark of the domain record.

Status string

The status of the domain record. Valid values: ENABLE,DISABLE.

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.

UserClientIp string

The IP address of the client.

DomainName 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.

Rr 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: 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.

Lang string

User language.

Line string

The resolution line of domain record. 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.

Priority int

The priority of domain record. Valid values: [1-10]. When the type is MX, this parameter is required.

Remark string

The remark of the domain record.

Status string

The status of the domain record. Valid values: ENABLE,DISABLE.

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.

UserClientIp string

The IP address of the client.

domainName 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.

rr 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: 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.

lang String

User language.

line String

The resolution line of domain record. 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.

priority Integer

The priority of domain record. Valid values: [1-10]. When the type is MX, this parameter is required.

remark String

The remark of the domain record.

status String

The status of the domain record. Valid values: ENABLE,DISABLE.

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.

userClientIp String

The IP address of the client.

domainName 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.

rr 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: 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.

lang string

User language.

line string

The resolution line of domain record. 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.

priority number

The priority of domain record. Valid values: [1-10]. When the type is MX, this parameter is required.

remark string

The remark of the domain record.

status string

The status of the domain record. Valid values: ENABLE,DISABLE.

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.

userClientIp string

The IP address of the client.

domain_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.

rr 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: 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.

lang str

User language.

line str

The resolution line of domain record. 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.

priority int

The priority of domain record. Valid values: [1-10]. When the type is MX, this parameter is required.

remark str

The remark of the domain record.

status str

The status of the domain record. Valid values: ENABLE,DISABLE.

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.

user_client_ip str

The IP address of the client.

domainName 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.

rr 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: 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.

lang String

User language.

line String

The resolution line of domain record. 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.

priority Number

The priority of domain record. Valid values: [1-10]. When the type is MX, this parameter is required.

remark String

The remark of the domain record.

status String

The status of the domain record. Valid values: ENABLE,DISABLE.

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.

userClientIp String

The IP address of the client.

Outputs

All input properties are implicitly available as output properties. Additionally, the AlidnsRecord 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 AlidnsRecord Resource

Get an existing AlidnsRecord 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?: AlidnsRecordState, opts?: CustomResourceOptions): AlidnsRecord
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        domain_name: Optional[str] = None,
        lang: Optional[str] = None,
        line: Optional[str] = None,
        priority: Optional[int] = None,
        remark: Optional[str] = None,
        rr: Optional[str] = None,
        status: Optional[str] = None,
        ttl: Optional[int] = None,
        type: Optional[str] = None,
        user_client_ip: Optional[str] = None,
        value: Optional[str] = None) -> AlidnsRecord
func GetAlidnsRecord(ctx *Context, name string, id IDInput, state *AlidnsRecordState, opts ...ResourceOption) (*AlidnsRecord, error)
public static AlidnsRecord Get(string name, Input<string> id, AlidnsRecordState? state, CustomResourceOptions? opts = null)
public static AlidnsRecord get(String name, Output<String> id, AlidnsRecordState 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:
DomainName 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.

Lang string

User language.

Line string

The resolution line of domain record. 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.

Priority int

The priority of domain record. Valid values: [1-10]. When the type is MX, this parameter is required.

Remark string

The remark of the domain record.

Rr 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 -.

Status string

The status of the domain record. Valid values: ENABLE,DISABLE.

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: A,NS,MX,TXT,CNAME,SRV,AAAA,CAA, REDIRECT_URL and FORWORD_URL.

UserClientIp string

The IP address of the client.

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.

DomainName 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.

Lang string

User language.

Line string

The resolution line of domain record. 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.

Priority int

The priority of domain record. Valid values: [1-10]. When the type is MX, this parameter is required.

Remark string

The remark of the domain record.

Rr 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 -.

Status string

The status of the domain record. Valid values: ENABLE,DISABLE.

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: A,NS,MX,TXT,CNAME,SRV,AAAA,CAA, REDIRECT_URL and FORWORD_URL.

UserClientIp string

The IP address of the client.

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.

domainName 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.

lang String

User language.

line String

The resolution line of domain record. 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.

priority Integer

The priority of domain record. Valid values: [1-10]. When the type is MX, this parameter is required.

remark String

The remark of the domain record.

rr 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 -.

status String

The status of the domain record. Valid values: ENABLE,DISABLE.

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: A,NS,MX,TXT,CNAME,SRV,AAAA,CAA, REDIRECT_URL and FORWORD_URL.

userClientIp String

The IP address of the client.

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.

domainName 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.

lang string

User language.

line string

The resolution line of domain record. 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.

priority number

The priority of domain record. Valid values: [1-10]. When the type is MX, this parameter is required.

remark string

The remark of the domain record.

rr 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 -.

status string

The status of the domain record. Valid values: ENABLE,DISABLE.

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: A,NS,MX,TXT,CNAME,SRV,AAAA,CAA, REDIRECT_URL and FORWORD_URL.

userClientIp string

The IP address of the client.

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.

domain_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.

lang str

User language.

line str

The resolution line of domain record. 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.

priority int

The priority of domain record. Valid values: [1-10]. When the type is MX, this parameter is required.

remark str

The remark of the domain record.

rr 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 -.

status str

The status of the domain record. Valid values: ENABLE,DISABLE.

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: A,NS,MX,TXT,CNAME,SRV,AAAA,CAA, REDIRECT_URL and FORWORD_URL.

user_client_ip str

The IP address of the client.

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.

domainName 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.

lang String

User language.

line String

The resolution line of domain record. 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.

priority Number

The priority of domain record. Valid values: [1-10]. When the type is MX, this parameter is required.

remark String

The remark of the domain record.

rr 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 -.

status String

The status of the domain record. Valid values: ENABLE,DISABLE.

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: A,NS,MX,TXT,CNAME,SRV,AAAA,CAA, REDIRECT_URL and FORWORD_URL.

userClientIp String

The IP address of the client.

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

Alidns Domain Record can be imported using the id, e.g.

 $ pulumi import alicloud:dns/alidnsRecord:AlidnsRecord example abc123456

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.