1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. esa
  5. Record
Alibaba Cloud v3.92.0 published on Wednesday, Jan 14, 2026 by Pulumi
alicloud logo
Alibaba Cloud v3.92.0 published on Wednesday, Jan 14, 2026 by Pulumi

    Provides a ESA Record resource.

    For information about ESA Record and how to use it, see What is Record.

    NOTE: Available since v1.240.0.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const config = new pulumi.Config();
    const name = config.get("name") || "terraform-example";
    const _default = new alicloud.esa.RatePlanInstance("default", {
        type: "NS",
        autoRenew: false,
        period: 1,
        paymentType: "Subscription",
        coverage: "overseas",
        autoPay: true,
        planName: "high",
    });
    const defaultSite = new alicloud.esa.Site("default", {
        siteName: "idlexamplerecord.com",
        instanceId: _default.id,
        coverage: "overseas",
        accessType: "NS",
    });
    const defaultRecord = new alicloud.esa.Record("default", {
        data: {
            value: "www.eerrraaa.com",
            weight: 1,
            priority: 1,
            port: 80,
        },
        ttl: 100,
        recordName: "_udp._sip.idlexamplerecord.com",
        comment: "This is a remark",
        siteId: defaultSite.id,
        recordType: "SRV",
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "terraform-example"
    default = alicloud.esa.RatePlanInstance("default",
        type="NS",
        auto_renew=False,
        period=1,
        payment_type="Subscription",
        coverage="overseas",
        auto_pay=True,
        plan_name="high")
    default_site = alicloud.esa.Site("default",
        site_name="idlexamplerecord.com",
        instance_id=default.id,
        coverage="overseas",
        access_type="NS")
    default_record = alicloud.esa.Record("default",
        data={
            "value": "www.eerrraaa.com",
            "weight": 1,
            "priority": 1,
            "port": 80,
        },
        ttl=100,
        record_name="_udp._sip.idlexamplerecord.com",
        comment="This is a remark",
        site_id=default_site.id,
        record_type="SRV")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/esa"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		name := "terraform-example"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		_default, err := esa.NewRatePlanInstance(ctx, "default", &esa.RatePlanInstanceArgs{
    			Type:        pulumi.String("NS"),
    			AutoRenew:   pulumi.Bool(false),
    			Period:      pulumi.Int(1),
    			PaymentType: pulumi.String("Subscription"),
    			Coverage:    pulumi.String("overseas"),
    			AutoPay:     pulumi.Bool(true),
    			PlanName:    pulumi.String("high"),
    		})
    		if err != nil {
    			return err
    		}
    		defaultSite, err := esa.NewSite(ctx, "default", &esa.SiteArgs{
    			SiteName:   pulumi.String("idlexamplerecord.com"),
    			InstanceId: _default.ID(),
    			Coverage:   pulumi.String("overseas"),
    			AccessType: pulumi.String("NS"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = esa.NewRecord(ctx, "default", &esa.RecordArgs{
    			Data: &esa.RecordDataArgs{
    				Value:    pulumi.String("www.eerrraaa.com"),
    				Weight:   pulumi.Int(1),
    				Priority: pulumi.Int(1),
    				Port:     pulumi.Int(80),
    			},
    			Ttl:        pulumi.Int(100),
    			RecordName: pulumi.String("_udp._sip.idlexamplerecord.com"),
    			Comment:    pulumi.String("This is a remark"),
    			SiteId:     defaultSite.ID(),
    			RecordType: pulumi.String("SRV"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var name = config.Get("name") ?? "terraform-example";
        var @default = new AliCloud.Esa.RatePlanInstance("default", new()
        {
            Type = "NS",
            AutoRenew = false,
            Period = 1,
            PaymentType = "Subscription",
            Coverage = "overseas",
            AutoPay = true,
            PlanName = "high",
        });
    
        var defaultSite = new AliCloud.Esa.Site("default", new()
        {
            SiteName = "idlexamplerecord.com",
            InstanceId = @default.Id,
            Coverage = "overseas",
            AccessType = "NS",
        });
    
        var defaultRecord = new AliCloud.Esa.Record("default", new()
        {
            Data = new AliCloud.Esa.Inputs.RecordDataArgs
            {
                Value = "www.eerrraaa.com",
                Weight = 1,
                Priority = 1,
                Port = 80,
            },
            Ttl = 100,
            RecordName = "_udp._sip.idlexamplerecord.com",
            Comment = "This is a remark",
            SiteId = defaultSite.Id,
            RecordType = "SRV",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.esa.RatePlanInstance;
    import com.pulumi.alicloud.esa.RatePlanInstanceArgs;
    import com.pulumi.alicloud.esa.Site;
    import com.pulumi.alicloud.esa.SiteArgs;
    import com.pulumi.alicloud.esa.Record;
    import com.pulumi.alicloud.esa.RecordArgs;
    import com.pulumi.alicloud.esa.inputs.RecordDataArgs;
    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) {
            final var config = ctx.config();
            final var name = config.get("name").orElse("terraform-example");
            var default_ = new RatePlanInstance("default", RatePlanInstanceArgs.builder()
                .type("NS")
                .autoRenew(false)
                .period(1)
                .paymentType("Subscription")
                .coverage("overseas")
                .autoPay(true)
                .planName("high")
                .build());
    
            var defaultSite = new Site("defaultSite", SiteArgs.builder()
                .siteName("idlexamplerecord.com")
                .instanceId(default_.id())
                .coverage("overseas")
                .accessType("NS")
                .build());
    
            var defaultRecord = new Record("defaultRecord", RecordArgs.builder()
                .data(RecordDataArgs.builder()
                    .value("www.eerrraaa.com")
                    .weight(1)
                    .priority(1)
                    .port(80)
                    .build())
                .ttl(100)
                .recordName("_udp._sip.idlexamplerecord.com")
                .comment("This is a remark")
                .siteId(defaultSite.id())
                .recordType("SRV")
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: terraform-example
    resources:
      default:
        type: alicloud:esa:RatePlanInstance
        properties:
          type: NS
          autoRenew: 'false'
          period: '1'
          paymentType: Subscription
          coverage: overseas
          autoPay: 'true'
          planName: high
      defaultSite:
        type: alicloud:esa:Site
        name: default
        properties:
          siteName: idlexamplerecord.com
          instanceId: ${default.id}
          coverage: overseas
          accessType: NS
      defaultRecord:
        type: alicloud:esa:Record
        name: default
        properties:
          data:
            value: www.eerrraaa.com
            weight: '1'
            priority: '1'
            port: '80'
          ttl: '100'
          recordName: _udp._sip.idlexamplerecord.com
          comment: This is a remark
          siteId: ${defaultSite.id}
          recordType: SRV
    

    📚 Need more examples? VIEW MORE EXAMPLES

    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,
               data: Optional[RecordDataArgs] = None,
               record_name: Optional[str] = None,
               record_type: Optional[str] = None,
               site_id: Optional[str] = None,
               auth_conf: Optional[RecordAuthConfArgs] = None,
               biz_name: Optional[str] = None,
               comment: Optional[str] = None,
               host_policy: Optional[str] = None,
               proxied: Optional[bool] = None,
               source_type: 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:esa: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 alicloudRecordResource = new AliCloud.Esa.Record("alicloudRecordResource", new()
    {
        Data = new AliCloud.Esa.Inputs.RecordDataArgs
        {
            Algorithm = 0,
            Certificate = "string",
            Fingerprint = "string",
            Flag = 0,
            KeyTag = 0,
            MatchingType = 0,
            Port = 0,
            Priority = 0,
            Selector = 0,
            Tag = "string",
            Type = 0,
            Usage = 0,
            Value = "string",
            Weight = 0,
        },
        RecordName = "string",
        RecordType = "string",
        SiteId = "string",
        AuthConf = new AliCloud.Esa.Inputs.RecordAuthConfArgs
        {
            AccessKey = "string",
            AuthType = "string",
            Region = "string",
            SecretKey = "string",
            Version = "string",
        },
        BizName = "string",
        Comment = "string",
        HostPolicy = "string",
        Proxied = false,
        SourceType = "string",
        Ttl = 0,
    });
    
    example, err := esa.NewRecord(ctx, "alicloudRecordResource", &esa.RecordArgs{
    	Data: &esa.RecordDataArgs{
    		Algorithm:    pulumi.Int(0),
    		Certificate:  pulumi.String("string"),
    		Fingerprint:  pulumi.String("string"),
    		Flag:         pulumi.Int(0),
    		KeyTag:       pulumi.Int(0),
    		MatchingType: pulumi.Int(0),
    		Port:         pulumi.Int(0),
    		Priority:     pulumi.Int(0),
    		Selector:     pulumi.Int(0),
    		Tag:          pulumi.String("string"),
    		Type:         pulumi.Int(0),
    		Usage:        pulumi.Int(0),
    		Value:        pulumi.String("string"),
    		Weight:       pulumi.Int(0),
    	},
    	RecordName: pulumi.String("string"),
    	RecordType: pulumi.String("string"),
    	SiteId:     pulumi.String("string"),
    	AuthConf: &esa.RecordAuthConfArgs{
    		AccessKey: pulumi.String("string"),
    		AuthType:  pulumi.String("string"),
    		Region:    pulumi.String("string"),
    		SecretKey: pulumi.String("string"),
    		Version:   pulumi.String("string"),
    	},
    	BizName:    pulumi.String("string"),
    	Comment:    pulumi.String("string"),
    	HostPolicy: pulumi.String("string"),
    	Proxied:    pulumi.Bool(false),
    	SourceType: pulumi.String("string"),
    	Ttl:        pulumi.Int(0),
    })
    
    var alicloudRecordResource = new com.pulumi.alicloud.esa.Record("alicloudRecordResource", com.pulumi.alicloud.esa.RecordArgs.builder()
        .data(RecordDataArgs.builder()
            .algorithm(0)
            .certificate("string")
            .fingerprint("string")
            .flag(0)
            .keyTag(0)
            .matchingType(0)
            .port(0)
            .priority(0)
            .selector(0)
            .tag("string")
            .type(0)
            .usage(0)
            .value("string")
            .weight(0)
            .build())
        .recordName("string")
        .recordType("string")
        .siteId("string")
        .authConf(RecordAuthConfArgs.builder()
            .accessKey("string")
            .authType("string")
            .region("string")
            .secretKey("string")
            .version("string")
            .build())
        .bizName("string")
        .comment("string")
        .hostPolicy("string")
        .proxied(false)
        .sourceType("string")
        .ttl(0)
        .build());
    
    alicloud_record_resource = alicloud.esa.Record("alicloudRecordResource",
        data={
            "algorithm": 0,
            "certificate": "string",
            "fingerprint": "string",
            "flag": 0,
            "key_tag": 0,
            "matching_type": 0,
            "port": 0,
            "priority": 0,
            "selector": 0,
            "tag": "string",
            "type": 0,
            "usage": 0,
            "value": "string",
            "weight": 0,
        },
        record_name="string",
        record_type="string",
        site_id="string",
        auth_conf={
            "access_key": "string",
            "auth_type": "string",
            "region": "string",
            "secret_key": "string",
            "version": "string",
        },
        biz_name="string",
        comment="string",
        host_policy="string",
        proxied=False,
        source_type="string",
        ttl=0)
    
    const alicloudRecordResource = new alicloud.esa.Record("alicloudRecordResource", {
        data: {
            algorithm: 0,
            certificate: "string",
            fingerprint: "string",
            flag: 0,
            keyTag: 0,
            matchingType: 0,
            port: 0,
            priority: 0,
            selector: 0,
            tag: "string",
            type: 0,
            usage: 0,
            value: "string",
            weight: 0,
        },
        recordName: "string",
        recordType: "string",
        siteId: "string",
        authConf: {
            accessKey: "string",
            authType: "string",
            region: "string",
            secretKey: "string",
            version: "string",
        },
        bizName: "string",
        comment: "string",
        hostPolicy: "string",
        proxied: false,
        sourceType: "string",
        ttl: 0,
    });
    
    type: alicloud:esa:Record
    properties:
        authConf:
            accessKey: string
            authType: string
            region: string
            secretKey: string
            version: string
        bizName: string
        comment: string
        data:
            algorithm: 0
            certificate: string
            fingerprint: string
            flag: 0
            keyTag: 0
            matchingType: 0
            port: 0
            priority: 0
            selector: 0
            tag: string
            type: 0
            usage: 0
            value: string
            weight: 0
        hostPolicy: string
        proxied: false
        recordName: string
        recordType: string
        siteId: string
        sourceType: string
        ttl: 0
    

    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

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The Record resource accepts the following input properties:

    Data Pulumi.AliCloud.Esa.Inputs.RecordData
    The DNS record information. The format of this field varies based on the record type. For more information, see References. See data below.
    RecordName string
    The record name. This parameter specifies a filter condition for the query.
    RecordType string
    The type of the DNS record, such as A/AAAA, CNAME, and TXT.
    SiteId string
    The website ID.
    AuthConf Pulumi.AliCloud.Esa.Inputs.RecordAuthConf
    The origin authentication information of the CNAME record. See auth_conf below.
    BizName string
    The business scenario of the record for acceleration. Leave the parameter empty if your record is not proxied. Valid values:
    Comment string
    The comment of the record. The maximum length is 100 characters.
    HostPolicy string
    The origin host policy. This policy takes effect when the record type is CNAME. You can set the policy in two modes:
    Proxied bool
    Specifies whether to proxy the record. Only CNAME and A/AAAA records can be proxied. Valid values:
    SourceType string
    The origin type for the CNAME record. This parameter is required when you add a CNAME record. Valid values:

    • OSS: OSS bucket.
    • S3: S3 bucket.
    • LB: load balancer.
    • OP: origin pool.
    • Domain: domain name.
    • If you do not pass this parameter or if you leave its value empty, Domain is used by default.
    Ttl int
    The TTL of the record. Unit: seconds. If the value is 1, the TTL of the record is determined by the system.
    Data RecordDataArgs
    The DNS record information. The format of this field varies based on the record type. For more information, see References. See data below.
    RecordName string
    The record name. This parameter specifies a filter condition for the query.
    RecordType string
    The type of the DNS record, such as A/AAAA, CNAME, and TXT.
    SiteId string
    The website ID.
    AuthConf RecordAuthConfArgs
    The origin authentication information of the CNAME record. See auth_conf below.
    BizName string
    The business scenario of the record for acceleration. Leave the parameter empty if your record is not proxied. Valid values:
    Comment string
    The comment of the record. The maximum length is 100 characters.
    HostPolicy string
    The origin host policy. This policy takes effect when the record type is CNAME. You can set the policy in two modes:
    Proxied bool
    Specifies whether to proxy the record. Only CNAME and A/AAAA records can be proxied. Valid values:
    SourceType string
    The origin type for the CNAME record. This parameter is required when you add a CNAME record. Valid values:

    • OSS: OSS bucket.
    • S3: S3 bucket.
    • LB: load balancer.
    • OP: origin pool.
    • Domain: domain name.
    • If you do not pass this parameter or if you leave its value empty, Domain is used by default.
    Ttl int
    The TTL of the record. Unit: seconds. If the value is 1, the TTL of the record is determined by the system.
    data RecordData
    The DNS record information. The format of this field varies based on the record type. For more information, see References. See data below.
    recordName String
    The record name. This parameter specifies a filter condition for the query.
    recordType String
    The type of the DNS record, such as A/AAAA, CNAME, and TXT.
    siteId String
    The website ID.
    authConf RecordAuthConf
    The origin authentication information of the CNAME record. See auth_conf below.
    bizName String
    The business scenario of the record for acceleration. Leave the parameter empty if your record is not proxied. Valid values:
    comment String
    The comment of the record. The maximum length is 100 characters.
    hostPolicy String
    The origin host policy. This policy takes effect when the record type is CNAME. You can set the policy in two modes:
    proxied Boolean
    Specifies whether to proxy the record. Only CNAME and A/AAAA records can be proxied. Valid values:
    sourceType String
    The origin type for the CNAME record. This parameter is required when you add a CNAME record. Valid values:

    • OSS: OSS bucket.
    • S3: S3 bucket.
    • LB: load balancer.
    • OP: origin pool.
    • Domain: domain name.
    • If you do not pass this parameter or if you leave its value empty, Domain is used by default.
    ttl Integer
    The TTL of the record. Unit: seconds. If the value is 1, the TTL of the record is determined by the system.
    data RecordData
    The DNS record information. The format of this field varies based on the record type. For more information, see References. See data below.
    recordName string
    The record name. This parameter specifies a filter condition for the query.
    recordType string
    The type of the DNS record, such as A/AAAA, CNAME, and TXT.
    siteId string
    The website ID.
    authConf RecordAuthConf
    The origin authentication information of the CNAME record. See auth_conf below.
    bizName string
    The business scenario of the record for acceleration. Leave the parameter empty if your record is not proxied. Valid values:
    comment string
    The comment of the record. The maximum length is 100 characters.
    hostPolicy string
    The origin host policy. This policy takes effect when the record type is CNAME. You can set the policy in two modes:
    proxied boolean
    Specifies whether to proxy the record. Only CNAME and A/AAAA records can be proxied. Valid values:
    sourceType string
    The origin type for the CNAME record. This parameter is required when you add a CNAME record. Valid values:

    • OSS: OSS bucket.
    • S3: S3 bucket.
    • LB: load balancer.
    • OP: origin pool.
    • Domain: domain name.
    • If you do not pass this parameter or if you leave its value empty, Domain is used by default.
    ttl number
    The TTL of the record. Unit: seconds. If the value is 1, the TTL of the record is determined by the system.
    data RecordDataArgs
    The DNS record information. The format of this field varies based on the record type. For more information, see References. See data below.
    record_name str
    The record name. This parameter specifies a filter condition for the query.
    record_type str
    The type of the DNS record, such as A/AAAA, CNAME, and TXT.
    site_id str
    The website ID.
    auth_conf RecordAuthConfArgs
    The origin authentication information of the CNAME record. See auth_conf below.
    biz_name str
    The business scenario of the record for acceleration. Leave the parameter empty if your record is not proxied. Valid values:
    comment str
    The comment of the record. The maximum length is 100 characters.
    host_policy str
    The origin host policy. This policy takes effect when the record type is CNAME. You can set the policy in two modes:
    proxied bool
    Specifies whether to proxy the record. Only CNAME and A/AAAA records can be proxied. Valid values:
    source_type str
    The origin type for the CNAME record. This parameter is required when you add a CNAME record. Valid values:

    • OSS: OSS bucket.
    • S3: S3 bucket.
    • LB: load balancer.
    • OP: origin pool.
    • Domain: domain name.
    • If you do not pass this parameter or if you leave its value empty, Domain is used by default.
    ttl int
    The TTL of the record. Unit: seconds. If the value is 1, the TTL of the record is determined by the system.
    data Property Map
    The DNS record information. The format of this field varies based on the record type. For more information, see References. See data below.
    recordName String
    The record name. This parameter specifies a filter condition for the query.
    recordType String
    The type of the DNS record, such as A/AAAA, CNAME, and TXT.
    siteId String
    The website ID.
    authConf Property Map
    The origin authentication information of the CNAME record. See auth_conf below.
    bizName String
    The business scenario of the record for acceleration. Leave the parameter empty if your record is not proxied. Valid values:
    comment String
    The comment of the record. The maximum length is 100 characters.
    hostPolicy String
    The origin host policy. This policy takes effect when the record type is CNAME. You can set the policy in two modes:
    proxied Boolean
    Specifies whether to proxy the record. Only CNAME and A/AAAA records can be proxied. Valid values:
    sourceType String
    The origin type for the CNAME record. This parameter is required when you add a CNAME record. Valid values:

    • OSS: OSS bucket.
    • S3: S3 bucket.
    • LB: load balancer.
    • OP: origin pool.
    • Domain: domain name.
    • If you do not pass this parameter or if you leave its value empty, Domain is used by default.
    ttl Number
    The TTL of the record. Unit: seconds. If the value is 1, the TTL of the record is determined by the system.

    Outputs

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

    CreateTime string
    The time when the record was created. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.
    Id string
    The provider-assigned unique ID for this managed resource.
    CreateTime string
    The time when the record was created. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.
    Id string
    The provider-assigned unique ID for this managed resource.
    createTime String
    The time when the record was created. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.
    id String
    The provider-assigned unique ID for this managed resource.
    createTime string
    The time when the record was created. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.
    id string
    The provider-assigned unique ID for this managed resource.
    create_time str
    The time when the record was created. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.
    id str
    The provider-assigned unique ID for this managed resource.
    createTime String
    The time when the record was created. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.
    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,
            auth_conf: Optional[RecordAuthConfArgs] = None,
            biz_name: Optional[str] = None,
            comment: Optional[str] = None,
            create_time: Optional[str] = None,
            data: Optional[RecordDataArgs] = None,
            host_policy: Optional[str] = None,
            proxied: Optional[bool] = None,
            record_name: Optional[str] = None,
            record_type: Optional[str] = None,
            site_id: Optional[str] = None,
            source_type: Optional[str] = None,
            ttl: Optional[int] = 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)
    resources:  _:    type: alicloud:esa:Record    get:      id: ${id}
    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:
    AuthConf Pulumi.AliCloud.Esa.Inputs.RecordAuthConf
    The origin authentication information of the CNAME record. See auth_conf below.
    BizName string
    The business scenario of the record for acceleration. Leave the parameter empty if your record is not proxied. Valid values:
    Comment string
    The comment of the record. The maximum length is 100 characters.
    CreateTime string
    The time when the record was created. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.
    Data Pulumi.AliCloud.Esa.Inputs.RecordData
    The DNS record information. The format of this field varies based on the record type. For more information, see References. See data below.
    HostPolicy string
    The origin host policy. This policy takes effect when the record type is CNAME. You can set the policy in two modes:
    Proxied bool
    Specifies whether to proxy the record. Only CNAME and A/AAAA records can be proxied. Valid values:
    RecordName string
    The record name. This parameter specifies a filter condition for the query.
    RecordType string
    The type of the DNS record, such as A/AAAA, CNAME, and TXT.
    SiteId string
    The website ID.
    SourceType string
    The origin type for the CNAME record. This parameter is required when you add a CNAME record. Valid values:

    • OSS: OSS bucket.
    • S3: S3 bucket.
    • LB: load balancer.
    • OP: origin pool.
    • Domain: domain name.
    • If you do not pass this parameter or if you leave its value empty, Domain is used by default.
    Ttl int
    The TTL of the record. Unit: seconds. If the value is 1, the TTL of the record is determined by the system.
    AuthConf RecordAuthConfArgs
    The origin authentication information of the CNAME record. See auth_conf below.
    BizName string
    The business scenario of the record for acceleration. Leave the parameter empty if your record is not proxied. Valid values:
    Comment string
    The comment of the record. The maximum length is 100 characters.
    CreateTime string
    The time when the record was created. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.
    Data RecordDataArgs
    The DNS record information. The format of this field varies based on the record type. For more information, see References. See data below.
    HostPolicy string
    The origin host policy. This policy takes effect when the record type is CNAME. You can set the policy in two modes:
    Proxied bool
    Specifies whether to proxy the record. Only CNAME and A/AAAA records can be proxied. Valid values:
    RecordName string
    The record name. This parameter specifies a filter condition for the query.
    RecordType string
    The type of the DNS record, such as A/AAAA, CNAME, and TXT.
    SiteId string
    The website ID.
    SourceType string
    The origin type for the CNAME record. This parameter is required when you add a CNAME record. Valid values:

    • OSS: OSS bucket.
    • S3: S3 bucket.
    • LB: load balancer.
    • OP: origin pool.
    • Domain: domain name.
    • If you do not pass this parameter or if you leave its value empty, Domain is used by default.
    Ttl int
    The TTL of the record. Unit: seconds. If the value is 1, the TTL of the record is determined by the system.
    authConf RecordAuthConf
    The origin authentication information of the CNAME record. See auth_conf below.
    bizName String
    The business scenario of the record for acceleration. Leave the parameter empty if your record is not proxied. Valid values:
    comment String
    The comment of the record. The maximum length is 100 characters.
    createTime String
    The time when the record was created. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.
    data RecordData
    The DNS record information. The format of this field varies based on the record type. For more information, see References. See data below.
    hostPolicy String
    The origin host policy. This policy takes effect when the record type is CNAME. You can set the policy in two modes:
    proxied Boolean
    Specifies whether to proxy the record. Only CNAME and A/AAAA records can be proxied. Valid values:
    recordName String
    The record name. This parameter specifies a filter condition for the query.
    recordType String
    The type of the DNS record, such as A/AAAA, CNAME, and TXT.
    siteId String
    The website ID.
    sourceType String
    The origin type for the CNAME record. This parameter is required when you add a CNAME record. Valid values:

    • OSS: OSS bucket.
    • S3: S3 bucket.
    • LB: load balancer.
    • OP: origin pool.
    • Domain: domain name.
    • If you do not pass this parameter or if you leave its value empty, Domain is used by default.
    ttl Integer
    The TTL of the record. Unit: seconds. If the value is 1, the TTL of the record is determined by the system.
    authConf RecordAuthConf
    The origin authentication information of the CNAME record. See auth_conf below.
    bizName string
    The business scenario of the record for acceleration. Leave the parameter empty if your record is not proxied. Valid values:
    comment string
    The comment of the record. The maximum length is 100 characters.
    createTime string
    The time when the record was created. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.
    data RecordData
    The DNS record information. The format of this field varies based on the record type. For more information, see References. See data below.
    hostPolicy string
    The origin host policy. This policy takes effect when the record type is CNAME. You can set the policy in two modes:
    proxied boolean
    Specifies whether to proxy the record. Only CNAME and A/AAAA records can be proxied. Valid values:
    recordName string
    The record name. This parameter specifies a filter condition for the query.
    recordType string
    The type of the DNS record, such as A/AAAA, CNAME, and TXT.
    siteId string
    The website ID.
    sourceType string
    The origin type for the CNAME record. This parameter is required when you add a CNAME record. Valid values:

    • OSS: OSS bucket.
    • S3: S3 bucket.
    • LB: load balancer.
    • OP: origin pool.
    • Domain: domain name.
    • If you do not pass this parameter or if you leave its value empty, Domain is used by default.
    ttl number
    The TTL of the record. Unit: seconds. If the value is 1, the TTL of the record is determined by the system.
    auth_conf RecordAuthConfArgs
    The origin authentication information of the CNAME record. See auth_conf below.
    biz_name str
    The business scenario of the record for acceleration. Leave the parameter empty if your record is not proxied. Valid values:
    comment str
    The comment of the record. The maximum length is 100 characters.
    create_time str
    The time when the record was created. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.
    data RecordDataArgs
    The DNS record information. The format of this field varies based on the record type. For more information, see References. See data below.
    host_policy str
    The origin host policy. This policy takes effect when the record type is CNAME. You can set the policy in two modes:
    proxied bool
    Specifies whether to proxy the record. Only CNAME and A/AAAA records can be proxied. Valid values:
    record_name str
    The record name. This parameter specifies a filter condition for the query.
    record_type str
    The type of the DNS record, such as A/AAAA, CNAME, and TXT.
    site_id str
    The website ID.
    source_type str
    The origin type for the CNAME record. This parameter is required when you add a CNAME record. Valid values:

    • OSS: OSS bucket.
    • S3: S3 bucket.
    • LB: load balancer.
    • OP: origin pool.
    • Domain: domain name.
    • If you do not pass this parameter or if you leave its value empty, Domain is used by default.
    ttl int
    The TTL of the record. Unit: seconds. If the value is 1, the TTL of the record is determined by the system.
    authConf Property Map
    The origin authentication information of the CNAME record. See auth_conf below.
    bizName String
    The business scenario of the record for acceleration. Leave the parameter empty if your record is not proxied. Valid values:
    comment String
    The comment of the record. The maximum length is 100 characters.
    createTime String
    The time when the record was created. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.
    data Property Map
    The DNS record information. The format of this field varies based on the record type. For more information, see References. See data below.
    hostPolicy String
    The origin host policy. This policy takes effect when the record type is CNAME. You can set the policy in two modes:
    proxied Boolean
    Specifies whether to proxy the record. Only CNAME and A/AAAA records can be proxied. Valid values:
    recordName String
    The record name. This parameter specifies a filter condition for the query.
    recordType String
    The type of the DNS record, such as A/AAAA, CNAME, and TXT.
    siteId String
    The website ID.
    sourceType String
    The origin type for the CNAME record. This parameter is required when you add a CNAME record. Valid values:

    • OSS: OSS bucket.
    • S3: S3 bucket.
    • LB: load balancer.
    • OP: origin pool.
    • Domain: domain name.
    • If you do not pass this parameter or if you leave its value empty, Domain is used by default.
    ttl Number
    The TTL of the record. Unit: seconds. If the value is 1, the TTL of the record is determined by the system.

    Supporting Types

    RecordAuthConf, RecordAuthConfArgs

    AccessKey string
    The access key of the account to which the origin server belongs. This parameter is required when the SourceType is OSS, and AuthType is private_cross_account, or when the SourceType is S3 and AuthType is private.
    AuthType string
    The authentication type of the origin server. Different origins support different authentication types. The type of origin refers to the SourceType parameter in this operation. If the type of origin is OSS or S3, you must specify the authentication type of the origin. Valid values:
    Region string
    The region of the origin. If the origin type is S3, you must specify this value. You can get the region information from the official website of S3.
    SecretKey string
    The secret access key of the account to which the origin server belongs. This parameter is required when the SourceType is OSS, and AuthType is private_same_account, or when the SourceType is S3 and AuthType is private.
    Version string
    The version of the signature algorithm. This parameter is required when the origin type is S3 and AuthType is private. The following two types are supported:
    AccessKey string
    The access key of the account to which the origin server belongs. This parameter is required when the SourceType is OSS, and AuthType is private_cross_account, or when the SourceType is S3 and AuthType is private.
    AuthType string
    The authentication type of the origin server. Different origins support different authentication types. The type of origin refers to the SourceType parameter in this operation. If the type of origin is OSS or S3, you must specify the authentication type of the origin. Valid values:
    Region string
    The region of the origin. If the origin type is S3, you must specify this value. You can get the region information from the official website of S3.
    SecretKey string
    The secret access key of the account to which the origin server belongs. This parameter is required when the SourceType is OSS, and AuthType is private_same_account, or when the SourceType is S3 and AuthType is private.
    Version string
    The version of the signature algorithm. This parameter is required when the origin type is S3 and AuthType is private. The following two types are supported:
    accessKey String
    The access key of the account to which the origin server belongs. This parameter is required when the SourceType is OSS, and AuthType is private_cross_account, or when the SourceType is S3 and AuthType is private.
    authType String
    The authentication type of the origin server. Different origins support different authentication types. The type of origin refers to the SourceType parameter in this operation. If the type of origin is OSS or S3, you must specify the authentication type of the origin. Valid values:
    region String
    The region of the origin. If the origin type is S3, you must specify this value. You can get the region information from the official website of S3.
    secretKey String
    The secret access key of the account to which the origin server belongs. This parameter is required when the SourceType is OSS, and AuthType is private_same_account, or when the SourceType is S3 and AuthType is private.
    version String
    The version of the signature algorithm. This parameter is required when the origin type is S3 and AuthType is private. The following two types are supported:
    accessKey string
    The access key of the account to which the origin server belongs. This parameter is required when the SourceType is OSS, and AuthType is private_cross_account, or when the SourceType is S3 and AuthType is private.
    authType string
    The authentication type of the origin server. Different origins support different authentication types. The type of origin refers to the SourceType parameter in this operation. If the type of origin is OSS or S3, you must specify the authentication type of the origin. Valid values:
    region string
    The region of the origin. If the origin type is S3, you must specify this value. You can get the region information from the official website of S3.
    secretKey string
    The secret access key of the account to which the origin server belongs. This parameter is required when the SourceType is OSS, and AuthType is private_same_account, or when the SourceType is S3 and AuthType is private.
    version string
    The version of the signature algorithm. This parameter is required when the origin type is S3 and AuthType is private. The following two types are supported:
    access_key str
    The access key of the account to which the origin server belongs. This parameter is required when the SourceType is OSS, and AuthType is private_cross_account, or when the SourceType is S3 and AuthType is private.
    auth_type str
    The authentication type of the origin server. Different origins support different authentication types. The type of origin refers to the SourceType parameter in this operation. If the type of origin is OSS or S3, you must specify the authentication type of the origin. Valid values:
    region str
    The region of the origin. If the origin type is S3, you must specify this value. You can get the region information from the official website of S3.
    secret_key str
    The secret access key of the account to which the origin server belongs. This parameter is required when the SourceType is OSS, and AuthType is private_same_account, or when the SourceType is S3 and AuthType is private.
    version str
    The version of the signature algorithm. This parameter is required when the origin type is S3 and AuthType is private. The following two types are supported:
    accessKey String
    The access key of the account to which the origin server belongs. This parameter is required when the SourceType is OSS, and AuthType is private_cross_account, or when the SourceType is S3 and AuthType is private.
    authType String
    The authentication type of the origin server. Different origins support different authentication types. The type of origin refers to the SourceType parameter in this operation. If the type of origin is OSS or S3, you must specify the authentication type of the origin. Valid values:
    region String
    The region of the origin. If the origin type is S3, you must specify this value. You can get the region information from the official website of S3.
    secretKey String
    The secret access key of the account to which the origin server belongs. This parameter is required when the SourceType is OSS, and AuthType is private_same_account, or when the SourceType is S3 and AuthType is private.
    version String
    The version of the signature algorithm. This parameter is required when the origin type is S3 and AuthType is private. The following two types are supported:

    RecordData, RecordDataArgs

    Algorithm int
    The encryption algorithm used for the record, specified within the range from 0 to 255. This parameter is required when you add CERT or SSHFP records.
    Certificate string
    The public key of the certificate. This parameter is required when you add CERT, SMIMEA, or TLSA records.
    Fingerprint string
    The public key fingerprint of the record. This parameter is required when you add a SSHFP record.
    Flag int
    The flag bit of the record. The Flag for a CAA record indicates its priority and how it is processed, specified within the range of 0 to 255. This parameter is required when you add a CAA record.
    KeyTag int
    The public key identification for the record, specified within the range of 0 to 65,535. This parameter is required when you add a CAA record.
    MatchingType int
    The algorithm policy used to match or validate the certificate, specified within the range 0 to 255. This parameter is required when you add SMIMEA or TLSA records.
    Port int
    The port of the record, specified within the range of 0 to 65,535. This parameter is required when you add an SRV record.
    Priority int
    The priority of the record, specified within the range of 0 to 65,535. A smaller value indicates a higher priority. This parameter is required when you add MX, SRV, and URI records.
    Selector int
    The type of certificate or public key, specified within the range of 0 to 255. This parameter is required when you add SMIMEA or TLSA records.
    Tag string
    The label of the record. The Tag of a CAA record indicate its specific type and usage. This parameter is required when you add a CAA record. Valid values:
    Type int
    The certificate type of the record (in CERT records), or the public key type (in SSHFP records). This parameter is required when you add CERT or SSHFP records.
    Usage int
    The usage identifier of the record, specified within the range of 0 to 255. This parameter is required when you add SMIMEA or TLSA records.
    Value string
    Record value or part of the record content. This parameter is required when you add A/AAAA, CNAME, NS, MX, TXT, CAA, SRV, and URI records. It has different meanings based on types of records:

    • A/AAAA: the IP address(es). Separate IP addresses with commas (,). You must have at least one IPv4 address.
    • CNAME: the target domain name.
    • NS: the name servers for the domain name.
    • MX: a valid domain name of the target mail server.
    • TXT: a valid text string.
    • CAA: a valid domain name of the certificate authority.
    • SRV: a valid domain name of the target host.
    • URI: a valid URI string.
    Weight int
    The weight of the record, specified within the range of 0 to 65,535. This parameter is required when you add SRV or URI records.
    Algorithm int
    The encryption algorithm used for the record, specified within the range from 0 to 255. This parameter is required when you add CERT or SSHFP records.
    Certificate string
    The public key of the certificate. This parameter is required when you add CERT, SMIMEA, or TLSA records.
    Fingerprint string
    The public key fingerprint of the record. This parameter is required when you add a SSHFP record.
    Flag int
    The flag bit of the record. The Flag for a CAA record indicates its priority and how it is processed, specified within the range of 0 to 255. This parameter is required when you add a CAA record.
    KeyTag int
    The public key identification for the record, specified within the range of 0 to 65,535. This parameter is required when you add a CAA record.
    MatchingType int
    The algorithm policy used to match or validate the certificate, specified within the range 0 to 255. This parameter is required when you add SMIMEA or TLSA records.
    Port int
    The port of the record, specified within the range of 0 to 65,535. This parameter is required when you add an SRV record.
    Priority int
    The priority of the record, specified within the range of 0 to 65,535. A smaller value indicates a higher priority. This parameter is required when you add MX, SRV, and URI records.
    Selector int
    The type of certificate or public key, specified within the range of 0 to 255. This parameter is required when you add SMIMEA or TLSA records.
    Tag string
    The label of the record. The Tag of a CAA record indicate its specific type and usage. This parameter is required when you add a CAA record. Valid values:
    Type int
    The certificate type of the record (in CERT records), or the public key type (in SSHFP records). This parameter is required when you add CERT or SSHFP records.
    Usage int
    The usage identifier of the record, specified within the range of 0 to 255. This parameter is required when you add SMIMEA or TLSA records.
    Value string
    Record value or part of the record content. This parameter is required when you add A/AAAA, CNAME, NS, MX, TXT, CAA, SRV, and URI records. It has different meanings based on types of records:

    • A/AAAA: the IP address(es). Separate IP addresses with commas (,). You must have at least one IPv4 address.
    • CNAME: the target domain name.
    • NS: the name servers for the domain name.
    • MX: a valid domain name of the target mail server.
    • TXT: a valid text string.
    • CAA: a valid domain name of the certificate authority.
    • SRV: a valid domain name of the target host.
    • URI: a valid URI string.
    Weight int
    The weight of the record, specified within the range of 0 to 65,535. This parameter is required when you add SRV or URI records.
    algorithm Integer
    The encryption algorithm used for the record, specified within the range from 0 to 255. This parameter is required when you add CERT or SSHFP records.
    certificate String
    The public key of the certificate. This parameter is required when you add CERT, SMIMEA, or TLSA records.
    fingerprint String
    The public key fingerprint of the record. This parameter is required when you add a SSHFP record.
    flag Integer
    The flag bit of the record. The Flag for a CAA record indicates its priority and how it is processed, specified within the range of 0 to 255. This parameter is required when you add a CAA record.
    keyTag Integer
    The public key identification for the record, specified within the range of 0 to 65,535. This parameter is required when you add a CAA record.
    matchingType Integer
    The algorithm policy used to match or validate the certificate, specified within the range 0 to 255. This parameter is required when you add SMIMEA or TLSA records.
    port Integer
    The port of the record, specified within the range of 0 to 65,535. This parameter is required when you add an SRV record.
    priority Integer
    The priority of the record, specified within the range of 0 to 65,535. A smaller value indicates a higher priority. This parameter is required when you add MX, SRV, and URI records.
    selector Integer
    The type of certificate or public key, specified within the range of 0 to 255. This parameter is required when you add SMIMEA or TLSA records.
    tag String
    The label of the record. The Tag of a CAA record indicate its specific type and usage. This parameter is required when you add a CAA record. Valid values:
    type Integer
    The certificate type of the record (in CERT records), or the public key type (in SSHFP records). This parameter is required when you add CERT or SSHFP records.
    usage Integer
    The usage identifier of the record, specified within the range of 0 to 255. This parameter is required when you add SMIMEA or TLSA records.
    value String
    Record value or part of the record content. This parameter is required when you add A/AAAA, CNAME, NS, MX, TXT, CAA, SRV, and URI records. It has different meanings based on types of records:

    • A/AAAA: the IP address(es). Separate IP addresses with commas (,). You must have at least one IPv4 address.
    • CNAME: the target domain name.
    • NS: the name servers for the domain name.
    • MX: a valid domain name of the target mail server.
    • TXT: a valid text string.
    • CAA: a valid domain name of the certificate authority.
    • SRV: a valid domain name of the target host.
    • URI: a valid URI string.
    weight Integer
    The weight of the record, specified within the range of 0 to 65,535. This parameter is required when you add SRV or URI records.
    algorithm number
    The encryption algorithm used for the record, specified within the range from 0 to 255. This parameter is required when you add CERT or SSHFP records.
    certificate string
    The public key of the certificate. This parameter is required when you add CERT, SMIMEA, or TLSA records.
    fingerprint string
    The public key fingerprint of the record. This parameter is required when you add a SSHFP record.
    flag number
    The flag bit of the record. The Flag for a CAA record indicates its priority and how it is processed, specified within the range of 0 to 255. This parameter is required when you add a CAA record.
    keyTag number
    The public key identification for the record, specified within the range of 0 to 65,535. This parameter is required when you add a CAA record.
    matchingType number
    The algorithm policy used to match or validate the certificate, specified within the range 0 to 255. This parameter is required when you add SMIMEA or TLSA records.
    port number
    The port of the record, specified within the range of 0 to 65,535. This parameter is required when you add an SRV record.
    priority number
    The priority of the record, specified within the range of 0 to 65,535. A smaller value indicates a higher priority. This parameter is required when you add MX, SRV, and URI records.
    selector number
    The type of certificate or public key, specified within the range of 0 to 255. This parameter is required when you add SMIMEA or TLSA records.
    tag string
    The label of the record. The Tag of a CAA record indicate its specific type and usage. This parameter is required when you add a CAA record. Valid values:
    type number
    The certificate type of the record (in CERT records), or the public key type (in SSHFP records). This parameter is required when you add CERT or SSHFP records.
    usage number
    The usage identifier of the record, specified within the range of 0 to 255. This parameter is required when you add SMIMEA or TLSA records.
    value string
    Record value or part of the record content. This parameter is required when you add A/AAAA, CNAME, NS, MX, TXT, CAA, SRV, and URI records. It has different meanings based on types of records:

    • A/AAAA: the IP address(es). Separate IP addresses with commas (,). You must have at least one IPv4 address.
    • CNAME: the target domain name.
    • NS: the name servers for the domain name.
    • MX: a valid domain name of the target mail server.
    • TXT: a valid text string.
    • CAA: a valid domain name of the certificate authority.
    • SRV: a valid domain name of the target host.
    • URI: a valid URI string.
    weight number
    The weight of the record, specified within the range of 0 to 65,535. This parameter is required when you add SRV or URI records.
    algorithm int
    The encryption algorithm used for the record, specified within the range from 0 to 255. This parameter is required when you add CERT or SSHFP records.
    certificate str
    The public key of the certificate. This parameter is required when you add CERT, SMIMEA, or TLSA records.
    fingerprint str
    The public key fingerprint of the record. This parameter is required when you add a SSHFP record.
    flag int
    The flag bit of the record. The Flag for a CAA record indicates its priority and how it is processed, specified within the range of 0 to 255. This parameter is required when you add a CAA record.
    key_tag int
    The public key identification for the record, specified within the range of 0 to 65,535. This parameter is required when you add a CAA record.
    matching_type int
    The algorithm policy used to match or validate the certificate, specified within the range 0 to 255. This parameter is required when you add SMIMEA or TLSA records.
    port int
    The port of the record, specified within the range of 0 to 65,535. This parameter is required when you add an SRV record.
    priority int
    The priority of the record, specified within the range of 0 to 65,535. A smaller value indicates a higher priority. This parameter is required when you add MX, SRV, and URI records.
    selector int
    The type of certificate or public key, specified within the range of 0 to 255. This parameter is required when you add SMIMEA or TLSA records.
    tag str
    The label of the record. The Tag of a CAA record indicate its specific type and usage. This parameter is required when you add a CAA record. Valid values:
    type int
    The certificate type of the record (in CERT records), or the public key type (in SSHFP records). This parameter is required when you add CERT or SSHFP records.
    usage int
    The usage identifier of the record, specified within the range of 0 to 255. This parameter is required when you add SMIMEA or TLSA records.
    value str
    Record value or part of the record content. This parameter is required when you add A/AAAA, CNAME, NS, MX, TXT, CAA, SRV, and URI records. It has different meanings based on types of records:

    • A/AAAA: the IP address(es). Separate IP addresses with commas (,). You must have at least one IPv4 address.
    • CNAME: the target domain name.
    • NS: the name servers for the domain name.
    • MX: a valid domain name of the target mail server.
    • TXT: a valid text string.
    • CAA: a valid domain name of the certificate authority.
    • SRV: a valid domain name of the target host.
    • URI: a valid URI string.
    weight int
    The weight of the record, specified within the range of 0 to 65,535. This parameter is required when you add SRV or URI records.
    algorithm Number
    The encryption algorithm used for the record, specified within the range from 0 to 255. This parameter is required when you add CERT or SSHFP records.
    certificate String
    The public key of the certificate. This parameter is required when you add CERT, SMIMEA, or TLSA records.
    fingerprint String
    The public key fingerprint of the record. This parameter is required when you add a SSHFP record.
    flag Number
    The flag bit of the record. The Flag for a CAA record indicates its priority and how it is processed, specified within the range of 0 to 255. This parameter is required when you add a CAA record.
    keyTag Number
    The public key identification for the record, specified within the range of 0 to 65,535. This parameter is required when you add a CAA record.
    matchingType Number
    The algorithm policy used to match or validate the certificate, specified within the range 0 to 255. This parameter is required when you add SMIMEA or TLSA records.
    port Number
    The port of the record, specified within the range of 0 to 65,535. This parameter is required when you add an SRV record.
    priority Number
    The priority of the record, specified within the range of 0 to 65,535. A smaller value indicates a higher priority. This parameter is required when you add MX, SRV, and URI records.
    selector Number
    The type of certificate or public key, specified within the range of 0 to 255. This parameter is required when you add SMIMEA or TLSA records.
    tag String
    The label of the record. The Tag of a CAA record indicate its specific type and usage. This parameter is required when you add a CAA record. Valid values:
    type Number
    The certificate type of the record (in CERT records), or the public key type (in SSHFP records). This parameter is required when you add CERT or SSHFP records.
    usage Number
    The usage identifier of the record, specified within the range of 0 to 255. This parameter is required when you add SMIMEA or TLSA records.
    value String
    Record value or part of the record content. This parameter is required when you add A/AAAA, CNAME, NS, MX, TXT, CAA, SRV, and URI records. It has different meanings based on types of records:

    • A/AAAA: the IP address(es). Separate IP addresses with commas (,). You must have at least one IPv4 address.
    • CNAME: the target domain name.
    • NS: the name servers for the domain name.
    • MX: a valid domain name of the target mail server.
    • TXT: a valid text string.
    • CAA: a valid domain name of the certificate authority.
    • SRV: a valid domain name of the target host.
    • URI: a valid URI string.
    weight Number
    The weight of the record, specified within the range of 0 to 65,535. This parameter is required when you add SRV or URI records.

    Import

    ESA Record can be imported using the id, e.g.

    $ pulumi import alicloud:esa/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.92.0 published on Wednesday, Jan 14, 2026 by Pulumi
      Meet Neo: Your AI Platform Teammate