Show / Hide Table of Contents

Class AlidnsRecord

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 Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
public MyStack()
{
    // Create a new Domain Record
    var record = new AliCloud.Dns.AlidnsRecord("record", new AliCloud.Dns.AlidnsRecordArgs
    {
        DomainName = "domainname",
        Remark = "Test new alidns record.",
        Rr = "@",
        Status = "ENABLE",
        Type = "A",
        Value = "192.168.99.99",
    });
}

}
Inheritance
System.Object
Resource
CustomResource
AlidnsRecord
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.AliCloud.Dns
Assembly: Pulumi.AliCloud.dll
Syntax
public class AlidnsRecord : CustomResource

Constructors

View Source

AlidnsRecord(String, AlidnsRecordArgs, CustomResourceOptions)

Create a AlidnsRecord resource with the given unique name, arguments, and options.

Declaration
public AlidnsRecord(string name, AlidnsRecordArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

AlidnsRecordArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

DomainName

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.

Declaration
public Output<string> DomainName { get; }
Property Value
Type Description
Output<System.String>
View Source

Lang

User language.

Declaration
public Output<string> Lang { get; }
Property Value
Type Description
Output<System.String>
View Source

Line

The resolution line of domain record. Valid values: default, telecom, unicom, mobile, oversea, edu, drpeng, btvn. 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.

Declaration
public Output<string> Line { get; }
Property Value
Type Description
Output<System.String>
View Source

Priority

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

Declaration
public Output<int?> Priority { get; }
Property Value
Type Description
Output<System.Nullable<System.Int32>>
View Source

Remark

The remark of the domain record.

Declaration
public Output<string> Remark { get; }
Property Value
Type Description
Output<System.String>
View Source

Rr

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

Declaration
public Output<string> Rr { get; }
Property Value
Type Description
Output<System.String>
View Source

Status

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

Declaration
public Output<string> Status { get; }
Property Value
Type Description
Output<System.String>
View Source

Ttl

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.

Declaration
public Output<int?> Ttl { get; }
Property Value
Type Description
Output<System.Nullable<System.Int32>>
View Source

Type

The type of domain record. Valid values: A,NS,MX,TXT,CNAME,SRV,AAAA,CAA, REDIRECT_URL and FORWORD_URL.

Declaration
public Output<string> Type { get; }
Property Value
Type Description
Output<System.String>
View Source

UserClientIp

The IP address of the client.

Declaration
public Output<string> UserClientIp { get; }
Property Value
Type Description
Output<System.String>
View Source

Value

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.

Declaration
public Output<string> Value { get; }
Property Value
Type Description
Output<System.String>

Methods

View Source

Get(String, Input<String>, AlidnsRecordState, CustomResourceOptions)

Get an existing AlidnsRecord resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static AlidnsRecord Get(string name, Input<string> id, AlidnsRecordState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

AlidnsRecordState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
AlidnsRecord
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.