Module dns
This page documents the language specification for the alicloud package. If you're looking for help working with the inputs, outputs, or functions of alicloud resources in a Pulumi program, please see the resource documentation for examples and API reference.
This provider is a derived work of the Terraform Provider distributed under MPL 2.0. If you encounter a bug or missing feature, first check the
pulumi/pulumi-alicloudrepo; however, if that doesn’t turn up anything, please consult the sourceterraform-providers/terraform-provider-alicloudrepo.
Resources
- AlidnsRecord
- DdosBgpInstance
- DdosCooInstance
- DnsDomain
- Domain
- DomainAttachment
- DomainGroup
- Group
- Instance
- Record
Functions
- getAlidnsDomainGroups
- getAlidnsRecords
- getDomainGroups
- getDomainRecords
- getDomains
- getDomainTxtGuid
- getGroups
- getInstances
- getRecords
- getResolutionLines
Others
- AlidnsRecordArgs
- AlidnsRecordState
- DdosBgpInstanceArgs
- DdosBgpInstanceState
- DdosCooInstanceArgs
- DdosCooInstanceState
- DnsDomainArgs
- DnsDomainState
- DomainArgs
- DomainAttachmentArgs
- DomainAttachmentState
- DomainGroupArgs
- DomainGroupState
- DomainState
- GetAlidnsDomainGroupsArgs
- GetAlidnsDomainGroupsResult
- GetAlidnsRecordsArgs
- GetAlidnsRecordsResult
- GetDomainGroupsArgs
- GetDomainGroupsResult
- GetDomainRecordsArgs
- GetDomainRecordsResult
- GetDomainsArgs
- GetDomainsResult
- GetDomainTxtGuidArgs
- GetDomainTxtGuidResult
- GetGroupsArgs
- GetGroupsResult
- GetInstancesArgs
- GetInstancesResult
- GetRecordsArgs
- GetRecordsResult
- GetResolutionLinesArgs
- GetResolutionLinesResult
- GroupArgs
- GroupState
- InstanceArgs
- InstanceState
- RecordArgs
- RecordState
Resources
Resource AlidnsRecord
class AlidnsRecord extends CustomResourceProvides 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
typeneither supportsREDIRECT_URLnorREDIRECT_URL
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
// Create a new Domain Record
const record = new alicloud.dns.AlidnsRecord("record", {
domainName: "domainname",
remark: "Test new alidns record.",
rr: "@",
status: "ENABLE",
type: "A",
value: "192.168.99.99",
});constructor
new AlidnsRecord(name: string, args: AlidnsRecordArgs, opts?: pulumi.CustomResourceOptions)Create a AlidnsRecord resource with the given unique name, arguments, and options.
nameThe unique name of the resource.argsThe arguments to use to populate this resource's properties.optsA bag of options that control this resource's behavior.
method get
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: AlidnsRecordState, opts?: pulumi.CustomResourceOptions): AlidnsRecordGet an existing AlidnsRecord resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
method getProvider
getProvider(moduleMember: string): ProviderResource | undefinedmethod isInstance
public static isInstance(obj: any): obj is AlidnsRecordReturns true if the given object is an instance of AlidnsRecord. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.
property domainName
public domainName: pulumi.Output<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.
property id
id: Output<ID>;id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.
property lang
public lang: pulumi.Output<string | undefined>;User language.
property line
public line: pulumi.Output<string | undefined>;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.
property priority
public priority: pulumi.Output<number | undefined>;The priority of domain record. Valid values: [1-10]. When the type is MX, this parameter is required.
property remark
public remark: pulumi.Output<string | undefined>;The remark of the domain record.
property rr
public rr: pulumi.Output<string>;Host record for the domain record. This hostRecord 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 -.
property status
public status: pulumi.Output<string | undefined>;The status of the domain record. Valid values: ENABLE,DISABLE.
property ttl
public ttl: pulumi.Output<number | undefined>;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.
property type
public type: pulumi.Output<string>;The type of domain record. Valid values: A,NS,MX,TXT,CNAME,SRV,AAAA,CAA, REDIRECT_URL and FORWORD_URL.
property urn
urn: Output<URN>;urn is the stable logical URN used to distinctly address a resource, both before and after deployments.
property userClientIp
public userClientIp: pulumi.Output<string | undefined>;The IP address of the client.
property value
public value: pulumi.Output<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.
Resource DdosBgpInstance
class DdosBgpInstance extends CustomResourceconstructor
new DdosBgpInstance(name: string, args: DdosBgpInstanceArgs, opts?: pulumi.CustomResourceOptions)method get
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: DdosBgpInstanceState, opts?: pulumi.CustomResourceOptions): DdosBgpInstanceGet an existing DdosBgpInstance resource's state with the given name, ID, and optional extra
properties used to qualify the lookup.method getProvider
getProvider(moduleMember: string): ProviderResource | undefinedmethod isInstance
public static isInstance(obj: any): obj is DdosBgpInstanceReturns true if the given object is an instance of DdosBgpInstance. This is designed to work even
when multiple copies of the Pulumi SDK have been loaded into the same process.property bandwidth
public bandwidth: pulumi.Output<number>;Elastic defend bandwidth of the instance. This value must be larger than the base defend bandwidth. Valid values: 51,91,101,201,301. The unit is Gbps.property baseBandwidth
public baseBandwidth: pulumi.Output<number | undefined>;Base defend bandwidth of the instance. Valid values: 20. The unit is Gbps. Default to `20`.property id
id: Output<ID>;id is the provider-assigned unique ID for this managed resource. It is set during
deployments and may be missing (undefined) during planning phases.property ipCount
public ipCount: pulumi.Output<number>;IP count of the instance. Valid values: 100.property ipType
public ipType: pulumi.Output<string>;IP version of the instance. Valid values: IPv4,IPv6.property name
public name: pulumi.Output<string>;Name of the instance. This name can have a string of 1 to 63 characters.property period
public period: pulumi.Output<number | undefined>;The duration that you will buy Ddosbgp instance (in month). Valid values: [1~9], 12, 24, 36. Default to 12. At present, the provider does not support modify "period".property type
public type: pulumi.Output<string | undefined>;Type of the instance. Valid values: Enterprise,Professional. Default to `Enterprise`property urn
urn: Output<URN>;urn is the stable logical URN used to distinctly address a resource, both before and after
deployments.Resource DdosCooInstance
class DdosCooInstance extends CustomResourceconstructor
new DdosCooInstance(name: string, args: DdosCooInstanceArgs, opts?: pulumi.CustomResourceOptions)method get
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: DdosCooInstanceState, opts?: pulumi.CustomResourceOptions): DdosCooInstanceGet an existing DdosCooInstance resource's state with the given name, ID, and optional extra
properties used to qualify the lookup.method getProvider
getProvider(moduleMember: string): ProviderResource | undefinedmethod isInstance
public static isInstance(obj: any): obj is DdosCooInstanceReturns true if the given object is an instance of DdosCooInstance. This is designed to work even
when multiple copies of the Pulumi SDK have been loaded into the same process.property bandwidth
public bandwidth: pulumi.Output<string>;Elastic defend bandwidth of the instance. This value must be larger than the base defend bandwidth. Valid values: 30, 60, 100, 300, 400, 500, 600. The unit is Gbps. Only support upgrade.property baseBandwidth
public baseBandwidth: pulumi.Output<string>;Base defend bandwidth of the instance. Valid values: 30, 60, 100, 300, 400, 500, 600. The unit is Gbps. Only support upgrade.property domainCount
public domainCount: pulumi.Output<string>;Domain retransmission rule count of the instance. At least 50. Increase 5 per step, such as 55, 60, 65. Only support upgrade.property id
id: Output<ID>;id is the provider-assigned unique ID for this managed resource. It is set during
deployments and may be missing (undefined) during planning phases.property name
public name: pulumi.Output<string>;Name of the instance. This name can have a string of 1 to 63 characters.property period
public period: pulumi.Output<number | undefined>;The duration that you will buy Ddoscoo instance (in month). Valid values: [1~9], 12, 24, 36. Default to 1. At present, the provider does not support modify "period".property portCount
public portCount: pulumi.Output<string>;Port retransmission rule count of the instance. At least 50. Increase 5 per step, such as 55, 60, 65. Only support upgrade.property serviceBandwidth
public serviceBandwidth: pulumi.Output<string>;Business bandwidth of the instance. At leaset 100. Increased 100 per step, such as 100, 200, 300. The unit is Mbps. Only support upgrade.property urn
urn: Output<URN>;urn is the stable logical URN used to distinctly address a resource, both before and after
deployments.Resource DnsDomain
class DnsDomain extends CustomResourceconstructor
new DnsDomain(name: string, args: DnsDomainArgs, opts?: pulumi.CustomResourceOptions)Create a DnsDomain resource with the given unique name, arguments, and options.
* `name` The _unique_ name of the resource.
* `args` The arguments to use to populate this resource's properties.
* `opts` A bag of options that control this resource's behavior.method get
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: DnsDomainState, opts?: pulumi.CustomResourceOptions): DnsDomainGet an existing DnsDomain resource's state with the given name, ID, and optional extra
properties used to qualify the lookup.method getProvider
getProvider(moduleMember: string): ProviderResource | undefinedmethod isInstance
public static isInstance(obj: any): obj is DnsDomainReturns true if the given object is an instance of DnsDomain. This is designed to work even
when multiple copies of the Pulumi SDK have been loaded into the same process.property dnsServers
public dnsServers: pulumi.Output<string[]>;property domainId
public domainId: pulumi.Output<string>;The domain ID.property domainName
public domainName: pulumi.Output<string>;Name of the domain. This name without suffix can have a string of 1 to 63 characters(domain name subject, excluding suffix), 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.property groupId
public groupId: pulumi.Output<string | undefined>;Id of the group in which the domain will add. If not supplied, then use default group.property id
id: Output<ID>;id is the provider-assigned unique ID for this managed resource. It is set during
deployments and may be missing (undefined) during planning phases.property lang
public lang: pulumi.Output<string | undefined>;User language.property remark
public remark: pulumi.Output<string | undefined>;Remarks information for your domain name.property resourceGroupId
public resourceGroupId: pulumi.Output<string | undefined>;The Id of resource group which the dns domain belongs.property tags
public tags: pulumi.Output<{[key: string]: any} | undefined>;A mapping of tags to assign to the resource.
- Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
- Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string.property urn
urn: Output<URN>;urn is the stable logical URN used to distinctly address a resource, both before and after
deployments.Resource Domain
class Domain extends CustomResourceconstructor
new Domain(name: string, args?: DomainArgs, opts?: pulumi.CustomResourceOptions)method get
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: DomainState, opts?: pulumi.CustomResourceOptions): DomainGet an existing Domain resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
method getProvider
getProvider(moduleMember: string): ProviderResource | undefinedmethod isInstance
public static isInstance(obj: any): obj is DomainReturns true if the given object is an instance of Domain. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.
property dnsServers
public dnsServers: pulumi.Output<string[]>;A list of the dns server name.
property domainId
public domainId: pulumi.Output<string>;The domain ID.
property groupId
public groupId: pulumi.Output<string | undefined>;Id of the group in which the domain will add. If not supplied, then use default group.
property id
id: Output<ID>;id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.
property name
public name: pulumi.Output<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.
property resourceGroupId
public resourceGroupId: pulumi.Output<string | undefined>;The Id of resource group which the dns belongs.
property urn
urn: Output<URN>;urn is the stable logical URN used to distinctly address a resource, both before and after deployments.
Resource DomainAttachment
class DomainAttachment extends CustomResourceProvides bind the domain name to the DNS instance resource.
NOTE: Available in v1.80.0+.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const dns = new alicloud.dns.DomainAttachment("dns", {
domainNames: [
"test111.abc",
"test222.abc",
],
instanceId: "dns-cn-mp91lyq9xxxx",
});constructor
new DomainAttachment(name: string, args: DomainAttachmentArgs, opts?: pulumi.CustomResourceOptions)Create a DomainAttachment resource with the given unique name, arguments, and options.
nameThe unique name of the resource.argsThe arguments to use to populate this resource's properties.optsA bag of options that control this resource's behavior.
method get
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: DomainAttachmentState, opts?: pulumi.CustomResourceOptions): DomainAttachmentGet an existing DomainAttachment resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
method getProvider
getProvider(moduleMember: string): ProviderResource | undefinedmethod isInstance
public static isInstance(obj: any): obj is DomainAttachmentReturns true if the given object is an instance of DomainAttachment. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.
property domainNames
public domainNames: pulumi.Output<string[]>;The domain names bound to the DNS instance.
property id
id: Output<ID>;id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.
property instanceId
public instanceId: pulumi.Output<string>;The id of the DNS instance.
property urn
urn: Output<URN>;urn is the stable logical URN used to distinctly address a resource, both before and after deployments.
Resource DomainGroup
class DomainGroup extends CustomResourceProvides a Alidns Domain Group resource. For information about Alidns Domain Group and how to use it, see What is Resource Alidns Domain Group.
NOTE: Available in v1.84.0+.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
// Add a new Alinds Domain Group.
const example = new alicloud.dns.DomainGroup("example", {
groupName: "tf-testDG",
});constructor
new DomainGroup(name: string, args: DomainGroupArgs, opts?: pulumi.CustomResourceOptions)Create a DomainGroup resource with the given unique name, arguments, and options.
nameThe unique name of the resource.argsThe arguments to use to populate this resource's properties.optsA bag of options that control this resource's behavior.
method get
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: DomainGroupState, opts?: pulumi.CustomResourceOptions): DomainGroupGet an existing DomainGroup resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
method getProvider
getProvider(moduleMember: string): ProviderResource | undefinedmethod isInstance
public static isInstance(obj: any): obj is DomainGroupReturns true if the given object is an instance of DomainGroup. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.
property groupName
public groupName: pulumi.Output<string>;Name of the domain group.
property id
id: Output<ID>;id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.
property lang
public lang: pulumi.Output<string | undefined>;User language.
property urn
urn: Output<URN>;urn is the stable logical URN used to distinctly address a resource, both before and after deployments.
Resource Group
class Group extends CustomResourceconstructor
new Group(name: string, args?: GroupArgs, opts?: pulumi.CustomResourceOptions)Create a Group resource with the given unique name, arguments, and options.
nameThe unique name of the resource.argsThe arguments to use to populate this resource's properties.optsA bag of options that control this resource's behavior.
method get
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: GroupState, opts?: pulumi.CustomResourceOptions): GroupGet an existing Group resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
method getProvider
getProvider(moduleMember: string): ProviderResource | undefinedmethod isInstance
public static isInstance(obj: any): obj is GroupReturns true if the given object is an instance of Group. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.
property id
id: Output<ID>;id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.
property name
public name: pulumi.Output<string>;Name of the domain group.
property urn
urn: Output<URN>;urn is the stable logical URN used to distinctly address a resource, both before and after deployments.
Resource Instance
class Instance extends CustomResourceCreate an DNS Instance resource.
NOTE: Available in v1.80.0+.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const thisInstance = new alicloud.dns.Instance("this", {
dnsSecurity: "no",
domainNumbers: "2",
period: 1,
renewPeriod: 1,
renewalStatus: "ManualRenewal",
versionCode: "versionPersonal",
});constructor
new Instance(name: string, args: InstanceArgs, opts?: pulumi.CustomResourceOptions)Create a Instance resource with the given unique name, arguments, and options.
nameThe unique name of the resource.argsThe arguments to use to populate this resource's properties.optsA bag of options that control this resource's behavior.
method get
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: InstanceState, opts?: pulumi.CustomResourceOptions): InstanceGet an existing Instance resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
method getProvider
getProvider(moduleMember: string): ProviderResource | undefinedmethod isInstance
public static isInstance(obj: any): obj is InstanceReturns true if the given object is an instance of Instance. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.
property dnsSecurity
public dnsSecurity: pulumi.Output<string>;DNS security level. Valid values: no, basic, advanced.
property domainNumbers
public domainNumbers: pulumi.Output<string>;Number of domain names bound.
property id
id: Output<ID>;id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.
property period
public period: pulumi.Output<number | undefined>;Creating a pre-paid instance, it must be set, the unit is month, please enter an integer multiple of 12 for annually paid products.
property renewPeriod
public renewPeriod: pulumi.Output<number | undefined>;Automatic renewal period, the unit is month. When setting RenewalStatus to AutoRenewal, it must be set.
property renewalStatus
public renewalStatus: pulumi.Output<string | undefined>;Automatic renewal status. Valid values: AutoRenewal, ManualRenewal, default to ManualRenewal.
property urn
urn: Output<URN>;urn is the stable logical URN used to distinctly address a resource, both before and after deployments.
property versionCode
public versionCode: pulumi.Output<string>;Paid package version. Valid values: versionPersonal, versionEnterpriseBasic, versionEnterpriseAdvanced.
property versionName
public versionName: pulumi.Output<string>;Paid package version name.
Resource Record
class Record extends CustomResourceconstructor
new Record(name: string, args: RecordArgs, opts?: pulumi.CustomResourceOptions)Create a Record resource with the given unique name, arguments, and options.
nameThe unique name of the resource.argsThe arguments to use to populate this resource's properties.optsA bag of options that control this resource's behavior.
method get
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: RecordState, opts?: pulumi.CustomResourceOptions): RecordGet an existing Record resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
method getProvider
getProvider(moduleMember: string): ProviderResource | undefinedmethod isInstance
public static isInstance(obj: any): obj is RecordReturns true if the given object is an instance of Record. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.
property hostRecord
public hostRecord: pulumi.Output<string>;Host record for the domain record. This hostRecord 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 “-”.
property id
id: Output<ID>;id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.
property locked
public locked: pulumi.Output<boolean>;property name
public name: pulumi.Output<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.
property priority
public priority: pulumi.Output<number | undefined>;The priority of domain record. Valid values are [1-10]. When the type is MX, this parameter is required.
property routing
public routing: pulumi.Output<string | undefined>;The resolution line of domain record. Valid values are default, telecom, unicom, mobile, oversea, edu, drpeng, btvn, .etc. When the type is FORWORD_URL, this parameter must be default. Default value is default. For checking all resolution lines enumeration please visit Alibaba Cloud DNS doc or using alicloud.dns.getResolutionLines in data source to get the value.
property status
public status: pulumi.Output<string>;The record status. Enable or Disable.
property ttl
public ttl: pulumi.Output<number | undefined>;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.
property type
public type: pulumi.Output<string>;The type of domain record. Valid values are A,NS,MX,TXT,CNAME,SRV,AAAA,CAA, REDIRECT_URL and FORWORD_URL.
property urn
urn: Output<URN>;urn is the stable logical URN used to distinctly address a resource, both before and after deployments.
property value
public value: pulumi.Output<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.
Functions
Function getAlidnsDomainGroups
getAlidnsDomainGroups(args?: GetAlidnsDomainGroupsArgs, opts?: pulumi.InvokeOptions): Promise<GetAlidnsDomainGroupsResult>This data source provides a list of Alidns Domain Groups in an Alibaba Cloud account according to the specified filters.
NOTE: Available in 1.85.0+.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const example = pulumi.output(alicloud.dns.getAlidnsDomainGroups({
ids: ["c5ef2bc43064445787adf182af2****"],
}, { async: true }));
export const firstDomainGroupId = example.groups[0].id;Function getAlidnsRecords
getAlidnsRecords(args: GetAlidnsRecordsArgs, opts?: pulumi.InvokeOptions): Promise<GetAlidnsRecordsResult>This data source provides a list of Alidns Domain Records in an Alibaba Cloud account according to the specified filters.
NOTE: Available in 1.86.0+.
Function getDomainGroups
getDomainGroups(args?: GetDomainGroupsArgs, opts?: pulumi.InvokeOptions): Promise<GetDomainGroupsResult>Function getDomainRecords
getDomainRecords(args: GetDomainRecordsArgs, opts?: pulumi.InvokeOptions): Promise<GetDomainRecordsResult>Function getDomains
getDomains(args?: GetDomainsArgs, opts?: pulumi.InvokeOptions): Promise<GetDomainsResult>This data source provides a list of DNS Domains in an Alibaba Cloud account according to the specified filters.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const domainsDs = pulumi.output(alicloud.dns.getDomains({
domainNameRegex: "^hegu",
outputFile: "domains.txt",
}, { async: true }));
export const firstDomainId = domainsDs.domains[0].domainId;Function getDomainTxtGuid
getDomainTxtGuid(args: GetDomainTxtGuidArgs, opts?: pulumi.InvokeOptions): Promise<GetDomainTxtGuidResult>Provides the generation of txt records to realize the retrieval and verification of domain names.
NOTE: Available in v1.80.0+.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const thisDomainTxtGuid = pulumi.output(alicloud.dns.getDomainTxtGuid({
domainName: "test111.abc",
type: "ADD_SUB_DOMAIN",
}, { async: true }));
export const rr = thisDomainTxtGuid.rr;
export const value = thisDomainTxtGuid.value;Function getGroups
getGroups(args?: GetGroupsArgs, opts?: pulumi.InvokeOptions): Promise<GetGroupsResult>This data source provides a list of DNS Domain Groups in an Alibaba Cloud account according to the specified filters.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const groupsDs = pulumi.output(alicloud.dns.getGroups({
nameRegex: "^y[A-Za-z]+",
outputFile: "groups.txt",
}, { async: true }));
export const firstGroupName = groupsDs.groups[0].groupName;Function getInstances
getInstances(args?: GetInstancesArgs, opts?: pulumi.InvokeOptions): Promise<GetInstancesResult>This data source provides a list of DNS instances in an Alibaba Cloud account according to the specified filters.
NOTE: Available in 1.84.0+.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const example = pulumi.output(alicloud.dns.getInstances({
ids: ["dns-cn-oew1npk****"],
}, { async: true }));
export const firstInstanceId = example.instances[0].id;Function getRecords
getRecords(args: GetRecordsArgs, opts?: pulumi.InvokeOptions): Promise<GetRecordsResult>This data source provides a list of DNS Domain Records in an Alibaba Cloud account according to the specified filters.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const recordsDs = pulumi.output(alicloud.dns.getRecords({
domainName: "xiaozhu.top",
hostRecordRegex: "^@",
isLocked: false,
outputFile: "records.txt",
type: "A",
}, { async: true }));
export const firstRecordId = recordsDs.records[0].recordId;Function getResolutionLines
getResolutionLines(args?: GetResolutionLinesArgs, opts?: pulumi.InvokeOptions): Promise<GetResolutionLinesResult>This data source provides a list of DNS Resolution Lines in an Alibaba Cloud account according to the specified filters.
NOTE: Available in 1.60.0.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const resolutionLinesDs = pulumi.output(alicloud.dns.getResolutionLines({
lineCodes: ["cnUnicomShanxi"],
outputFile: "support_lines.txt",
}, { async: true }));
export const firstLineCode = resolutionLinesDs.lines[0].lineCode;Others
interface AlidnsRecordArgs
interface AlidnsRecordArgsThe set of arguments for constructing a AlidnsRecord resource.
property domainName
domainName: pulumi.Input<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.
property lang
lang?: pulumi.Input<string>;User language.
property line
line?: pulumi.Input<string>;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.
property priority
priority?: pulumi.Input<number>;The priority of domain record. Valid values: [1-10]. When the type is MX, this parameter is required.
property remark
remark?: pulumi.Input<string>;The remark of the domain record.
property rr
rr: pulumi.Input<string>;Host record for the domain record. This hostRecord 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 -.
property status
status?: pulumi.Input<string>;The status of the domain record. Valid values: ENABLE,DISABLE.
property ttl
ttl?: pulumi.Input<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.
property type
type: pulumi.Input<string>;The type of domain record. Valid values: A,NS,MX,TXT,CNAME,SRV,AAAA,CAA, REDIRECT_URL and FORWORD_URL.
property userClientIp
userClientIp?: pulumi.Input<string>;The IP address of the client.
property value
value: pulumi.Input<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.
interface AlidnsRecordState
interface AlidnsRecordStateInput properties used for looking up and filtering AlidnsRecord resources.
property domainName
domainName?: pulumi.Input<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.
property lang
lang?: pulumi.Input<string>;User language.
property line
line?: pulumi.Input<string>;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.
property priority
priority?: pulumi.Input<number>;The priority of domain record. Valid values: [1-10]. When the type is MX, this parameter is required.
property remark
remark?: pulumi.Input<string>;The remark of the domain record.
property rr
rr?: pulumi.Input<string>;Host record for the domain record. This hostRecord 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 -.
property status
status?: pulumi.Input<string>;The status of the domain record. Valid values: ENABLE,DISABLE.
property ttl
ttl?: pulumi.Input<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.
property type
type?: pulumi.Input<string>;The type of domain record. Valid values: A,NS,MX,TXT,CNAME,SRV,AAAA,CAA, REDIRECT_URL and FORWORD_URL.
property userClientIp
userClientIp?: pulumi.Input<string>;The IP address of the client.
property value
value?: pulumi.Input<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.
interface DdosBgpInstanceArgs
interface DdosBgpInstanceArgsThe set of arguments for constructing a DdosBgpInstance resource.
property bandwidth
bandwidth: pulumi.Input<number>;Elastic defend bandwidth of the instance. This value must be larger than the base defend bandwidth. Valid values: 51,91,101,201,301. The unit is Gbps.
property baseBandwidth
baseBandwidth?: pulumi.Input<number>;Base defend bandwidth of the instance. Valid values: 20. The unit is Gbps. Default to 20.
property ipCount
ipCount: pulumi.Input<number>;IP count of the instance. Valid values: 100.
property ipType
ipType: pulumi.Input<string>;IP version of the instance. Valid values: IPv4,IPv6.
property name
name?: pulumi.Input<string>;Name of the instance. This name can have a string of 1 to 63 characters.
property period
period?: pulumi.Input<number>;The duration that you will buy Ddosbgp instance (in month). Valid values: [1~9], 12, 24, 36. Default to 12. At present, the provider does not support modify “period”.
property type
type?: pulumi.Input<string>;Type of the instance. Valid values: Enterprise,Professional. Default to Enterprise
interface DdosBgpInstanceState
interface DdosBgpInstanceStateInput properties used for looking up and filtering DdosBgpInstance resources.
property bandwidth
bandwidth?: pulumi.Input<number>;Elastic defend bandwidth of the instance. This value must be larger than the base defend bandwidth. Valid values: 51,91,101,201,301. The unit is Gbps.
property baseBandwidth
baseBandwidth?: pulumi.Input<number>;Base defend bandwidth of the instance. Valid values: 20. The unit is Gbps. Default to 20.
property ipCount
ipCount?: pulumi.Input<number>;IP count of the instance. Valid values: 100.
property ipType
ipType?: pulumi.Input<string>;IP version of the instance. Valid values: IPv4,IPv6.
property name
name?: pulumi.Input<string>;Name of the instance. This name can have a string of 1 to 63 characters.
property period
period?: pulumi.Input<number>;The duration that you will buy Ddosbgp instance (in month). Valid values: [1~9], 12, 24, 36. Default to 12. At present, the provider does not support modify “period”.
property type
type?: pulumi.Input<string>;Type of the instance. Valid values: Enterprise,Professional. Default to Enterprise
interface DdosCooInstanceArgs
interface DdosCooInstanceArgsThe set of arguments for constructing a DdosCooInstance resource.
property bandwidth
bandwidth: pulumi.Input<string>;Elastic defend bandwidth of the instance. This value must be larger than the base defend bandwidth. Valid values: 30, 60, 100, 300, 400, 500, 600. The unit is Gbps. Only support upgrade.
property baseBandwidth
baseBandwidth: pulumi.Input<string>;Base defend bandwidth of the instance. Valid values: 30, 60, 100, 300, 400, 500, 600. The unit is Gbps. Only support upgrade.
property domainCount
domainCount: pulumi.Input<string>;Domain retransmission rule count of the instance. At least 50. Increase 5 per step, such as 55, 60, 65. Only support upgrade.
property name
name?: pulumi.Input<string>;Name of the instance. This name can have a string of 1 to 63 characters.
property period
period?: pulumi.Input<number>;The duration that you will buy Ddoscoo instance (in month). Valid values: [1~9], 12, 24, 36. Default to 1. At present, the provider does not support modify “period”.
property portCount
portCount: pulumi.Input<string>;Port retransmission rule count of the instance. At least 50. Increase 5 per step, such as 55, 60, 65. Only support upgrade.
property serviceBandwidth
serviceBandwidth: pulumi.Input<string>;Business bandwidth of the instance. At leaset 100. Increased 100 per step, such as 100, 200, 300. The unit is Mbps. Only support upgrade.
interface DdosCooInstanceState
interface DdosCooInstanceStateInput properties used for looking up and filtering DdosCooInstance resources.
property bandwidth
bandwidth?: pulumi.Input<string>;Elastic defend bandwidth of the instance. This value must be larger than the base defend bandwidth. Valid values: 30, 60, 100, 300, 400, 500, 600. The unit is Gbps. Only support upgrade.
property baseBandwidth
baseBandwidth?: pulumi.Input<string>;Base defend bandwidth of the instance. Valid values: 30, 60, 100, 300, 400, 500, 600. The unit is Gbps. Only support upgrade.
property domainCount
domainCount?: pulumi.Input<string>;Domain retransmission rule count of the instance. At least 50. Increase 5 per step, such as 55, 60, 65. Only support upgrade.
property name
name?: pulumi.Input<string>;Name of the instance. This name can have a string of 1 to 63 characters.
property period
period?: pulumi.Input<number>;The duration that you will buy Ddoscoo instance (in month). Valid values: [1~9], 12, 24, 36. Default to 1. At present, the provider does not support modify “period”.
property portCount
portCount?: pulumi.Input<string>;Port retransmission rule count of the instance. At least 50. Increase 5 per step, such as 55, 60, 65. Only support upgrade.
property serviceBandwidth
serviceBandwidth?: pulumi.Input<string>;Business bandwidth of the instance. At leaset 100. Increased 100 per step, such as 100, 200, 300. The unit is Mbps. Only support upgrade.
interface DnsDomainArgs
interface DnsDomainArgsThe set of arguments for constructing a DnsDomain resource.
property domainName
domainName: pulumi.Input<string>;Name of the domain. This name without suffix can have a string of 1 to 63 characters(domain name subject, excluding suffix), 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.
property groupId
groupId?: pulumi.Input<string>;Id of the group in which the domain will add. If not supplied, then use default group.
property lang
lang?: pulumi.Input<string>;User language.
property remark
remark?: pulumi.Input<string>;Remarks information for your domain name.
property resourceGroupId
resourceGroupId?: pulumi.Input<string>;The Id of resource group which the dns domain belongs.
property tags
tags?: pulumi.Input<{[key: string]: any}>;A mapping of tags to assign to the resource. - Key: It can be up to 64 characters in length. It cannot begin with “aliyun”, “acs:“, “http://“, or “https://“. It cannot be a null string. - Value: It can be up to 128 characters in length. It cannot begin with “aliyun”, “acs:“, “http://“, or “https://“. It can be a null string.
interface DnsDomainState
interface DnsDomainStateInput properties used for looking up and filtering DnsDomain resources.
property dnsServers
dnsServers?: pulumi.Input<pulumi.Input<string>[]>;property domainId
domainId?: pulumi.Input<string>;The domain ID.
property domainName
domainName?: pulumi.Input<string>;Name of the domain. This name without suffix can have a string of 1 to 63 characters(domain name subject, excluding suffix), 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.
property groupId
groupId?: pulumi.Input<string>;Id of the group in which the domain will add. If not supplied, then use default group.
property lang
lang?: pulumi.Input<string>;User language.
property remark
remark?: pulumi.Input<string>;Remarks information for your domain name.
property resourceGroupId
resourceGroupId?: pulumi.Input<string>;The Id of resource group which the dns domain belongs.
property tags
tags?: pulumi.Input<{[key: string]: any}>;A mapping of tags to assign to the resource. - Key: It can be up to 64 characters in length. It cannot begin with “aliyun”, “acs:“, “http://“, or “https://“. It cannot be a null string. - Value: It can be up to 128 characters in length. It cannot begin with “aliyun”, “acs:“, “http://“, or “https://“. It can be a null string.
interface DomainArgs
interface DomainArgsThe set of arguments for constructing a Domain resource.
property groupId
groupId?: pulumi.Input<string>;Id of the group in which the domain will add. If not supplied, then use default group.
property name
name?: pulumi.Input<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.
property resourceGroupId
resourceGroupId?: pulumi.Input<string>;The Id of resource group which the dns belongs.
interface DomainAttachmentArgs
interface DomainAttachmentArgsThe set of arguments for constructing a DomainAttachment resource.
property domainNames
domainNames: pulumi.Input<pulumi.Input<string>[]>;The domain names bound to the DNS instance.
property instanceId
instanceId: pulumi.Input<string>;The id of the DNS instance.
interface DomainAttachmentState
interface DomainAttachmentStateInput properties used for looking up and filtering DomainAttachment resources.
property domainNames
domainNames?: pulumi.Input<pulumi.Input<string>[]>;The domain names bound to the DNS instance.
property instanceId
instanceId?: pulumi.Input<string>;The id of the DNS instance.
interface DomainGroupArgs
interface DomainGroupArgsThe set of arguments for constructing a DomainGroup resource.
property groupName
groupName: pulumi.Input<string>;Name of the domain group.
property lang
lang?: pulumi.Input<string>;User language.
interface DomainGroupState
interface DomainGroupStateInput properties used for looking up and filtering DomainGroup resources.
property groupName
groupName?: pulumi.Input<string>;Name of the domain group.
property lang
lang?: pulumi.Input<string>;User language.
interface DomainState
interface DomainStateInput properties used for looking up and filtering Domain resources.
property dnsServers
dnsServers?: pulumi.Input<pulumi.Input<string>[]>;A list of the dns server name.
property domainId
domainId?: pulumi.Input<string>;The domain ID.
property groupId
groupId?: pulumi.Input<string>;Id of the group in which the domain will add. If not supplied, then use default group.
property name
name?: pulumi.Input<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.
property resourceGroupId
resourceGroupId?: pulumi.Input<string>;The Id of resource group which the dns belongs.
interface GetAlidnsDomainGroupsArgs
interface GetAlidnsDomainGroupsArgsA collection of arguments for invoking getAlidnsDomainGroups.
property ids
ids?: string[];A list of instance IDs.
property nameRegex
nameRegex?: undefined | string;A regex string to filter results by the domain group name.
property outputFile
outputFile?: undefined | string;interface GetAlidnsDomainGroupsResult
interface GetAlidnsDomainGroupsResultA collection of values returned by getAlidnsDomainGroups.
property groups
groups: GetAlidnsDomainGroupsGroup[];A list of instances. Each element contains the following attributes:
property id
id: string;The provider-assigned unique ID for this managed resource.
property ids
ids: string[];A list of instance IDs.
property nameRegex
nameRegex?: undefined | string;property names
names: string[];A list of domain group names.
property outputFile
outputFile?: undefined | string;interface GetAlidnsRecordsArgs
interface GetAlidnsRecordsArgsA collection of arguments for invoking getAlidnsRecords.
property direction
direction?: undefined | string;Sorting direction. Valid values: DESC,ASC. Default to AESC.
property domainName
domainName: string;The domain name associated to the records.
property groupId
groupId?: undefined | number;Domain name group ID.
property ids
ids?: string[];A list of record IDs.
property keyWord
keyWord?: undefined | string;Keywords.
property lang
lang?: undefined | string;User language.
property line
line?: undefined | string;ISP line. Valid values: default, telecom, unicom, mobile, oversea, edu, drpeng, btvn, .etc. For checking all resolution lines enumeration please visit Alibaba Cloud DNS doc
property orderBy
orderBy?: undefined | string;Sort by. Sort from newest to oldest according to the time added by resolution.
property outputFile
outputFile?: undefined | string;property rrKeyWord
rrKeyWord?: undefined | string;The keywords recorded by the host are searched according to the %RRKeyWord% mode, and are not case sensitive.
property rrRegex
rrRegex?: undefined | string;Host record regex.
property searchMode
searchMode?: undefined | string;Search mode, Valid values: LIKE, EXACT, ADVANCED, LIKE (fuzzy), EXACT (accurate) search supports KeyWord field, ADVANCED (advanced) mode supports other fields.
property status
status?: undefined | string;Record status. Valid values: ENABLE and DISABLE.
property type
type?: undefined | string;Record type. Valid values: A, NS, MX, TXT, CNAME, SRV, AAAA, REDIRECT_URL, FORWORD_URL .
property typeKeyWord
typeKeyWord?: undefined | string;Analyze type keywords, search by full match, not case sensitive.
property valueKeyWord
valueKeyWord?: undefined | string;The keywords of the recorded value are searched according to the %ValueKeyWord% mode, and are not case sensitive.
property valueRegex
valueRegex?: undefined | string;Host record value regex.
interface GetAlidnsRecordsResult
interface GetAlidnsRecordsResultA collection of values returned by getAlidnsRecords.
property direction
direction?: undefined | string;property domainName
domainName: string;Name of the domain record belongs to.
property groupId
groupId?: undefined | number;property id
id: string;The provider-assigned unique ID for this managed resource.
property ids
ids: string[];A list of record IDs.
property keyWord
keyWord?: undefined | string;property lang
lang?: undefined | string;property line
line?: undefined | string;ISP line of the record.
property orderBy
orderBy?: undefined | string;property outputFile
outputFile?: undefined | string;property records
records: GetAlidnsRecordsRecord[];A list of records. Each element contains the following attributes:
property rrKeyWord
rrKeyWord?: undefined | string;property rrRegex
rrRegex?: undefined | string;property searchMode
searchMode?: undefined | string;property status
status?: undefined | string;Status of the record.
property type
type?: undefined | string;Type of the record.
property typeKeyWord
typeKeyWord?: undefined | string;property valueKeyWord
valueKeyWord?: undefined | string;property valueRegex
valueRegex?: undefined | string;interface GetDomainGroupsArgs
interface GetDomainGroupsArgsA collection of arguments for invoking getDomainGroups.
property ids
ids?: string[];property nameRegex
nameRegex?: undefined | string;property outputFile
outputFile?: undefined | string;interface GetDomainGroupsResult
interface GetDomainGroupsResultA collection of values returned by getDomainGroups.
property groups
groups: GetDomainGroupsGroup[];property id
id: string;The provider-assigned unique ID for this managed resource.
property ids
ids: string[];property nameRegex
nameRegex?: undefined | string;property names
names: string[];property outputFile
outputFile?: undefined | string;interface GetDomainRecordsArgs
interface GetDomainRecordsArgsA collection of arguments for invoking getDomainRecords.
property domainName
domainName: string;property hostRecordRegex
hostRecordRegex?: undefined | string;property ids
ids?: string[];property isLocked
isLocked?: undefined | false | true;property line
line?: undefined | string;property outputFile
outputFile?: undefined | string;property status
status?: undefined | string;property type
type?: undefined | string;property valueRegex
valueRegex?: undefined | string;interface GetDomainRecordsResult
interface GetDomainRecordsResultA collection of values returned by getDomainRecords.
property domainName
domainName: string;property hostRecordRegex
hostRecordRegex?: undefined | string;property id
id: string;The provider-assigned unique ID for this managed resource.
property ids
ids: string[];property isLocked
isLocked?: undefined | false | true;property line
line?: undefined | string;property outputFile
outputFile?: undefined | string;property records
records: GetDomainRecordsRecord[];property status
status?: undefined | string;property type
type?: undefined | string;property urls
urls: string[];property valueRegex
valueRegex?: undefined | string;interface GetDomainsArgs
interface GetDomainsArgsA collection of arguments for invoking getDomains.
property aliDomain
aliDomain?: undefined | false | true;Specifies whether the domain is from Alibaba Cloud or not.
property domainNameRegex
domainNameRegex?: undefined | string;A regex string to filter results by the domain name.
property groupNameRegex
groupNameRegex?: undefined | string;A regex string to filter results by the group name.
property ids
ids?: string[];- A list of domain IDs.
property instanceId
instanceId?: undefined | string;Cloud analysis product ID.
property outputFile
outputFile?: undefined | string;property resourceGroupId
resourceGroupId?: undefined | string;The Id of resource group which the dns belongs.
property versionCode
versionCode?: undefined | string;Cloud analysis version code.
interface GetDomainsResult
interface GetDomainsResultA collection of values returned by getDomains.
property aliDomain
aliDomain?: undefined | false | true;Indicates whether the domain is an Alibaba Cloud domain.
property domainNameRegex
domainNameRegex?: undefined | string;property domains
domains: GetDomainsDomain[];A list of domains. Each element contains the following attributes:
property groupNameRegex
groupNameRegex?: undefined | string;property id
id: string;The provider-assigned unique ID for this managed resource.
property ids
ids: string[];A list of domain IDs.
property instanceId
instanceId?: undefined | string;Cloud analysis product ID of the domain.
property names
names: string[];A list of domain names.
property outputFile
outputFile?: undefined | string;property resourceGroupId
resourceGroupId?: undefined | string;The Id of resource group which the dns belongs.
property versionCode
versionCode?: undefined | string;Cloud analysis version code of the domain.
interface GetDomainTxtGuidArgs
interface GetDomainTxtGuidArgsA collection of arguments for invoking getDomainTxtGuid.
property domainName
domainName: string;Verified domain name.
property lang
lang?: undefined | string;User language.
property outputFile
outputFile?: undefined | string;property type
type: string;Txt verification function. Value:ADD_SUB_DOMAIN, RETRIEVAL.
interface GetDomainTxtGuidResult
interface GetDomainTxtGuidResultA collection of values returned by getDomainTxtGuid.
property domainName
domainName: string;property id
id: string;The provider-assigned unique ID for this managed resource.
property lang
lang?: undefined | string;property outputFile
outputFile?: undefined | string;property rr
rr: string;Host record.
property type
type: string;property value
value: string;Record the value.
interface GetGroupsArgs
interface GetGroupsArgsA collection of arguments for invoking getGroups.
property ids
ids?: string[];A list of group IDs.
property nameRegex
nameRegex?: undefined | string;A regex string to filter results by group name.
property outputFile
outputFile?: undefined | string;interface GetGroupsResult
interface GetGroupsResultA collection of values returned by getGroups.
property groups
groups: GetGroupsGroup[];A list of groups. Each element contains the following attributes:
property id
id: string;The provider-assigned unique ID for this managed resource.
property ids
ids: string[];A list of group IDs.
property nameRegex
nameRegex?: undefined | string;property names
names: string[];A list of group names.
property outputFile
outputFile?: undefined | string;interface GetInstancesArgs
interface GetInstancesArgsA collection of arguments for invoking getInstances.
property ids
ids?: string[];A list of instance IDs.
property outputFile
outputFile?: undefined | string;interface GetInstancesResult
interface GetInstancesResultA collection of values returned by getInstances.
property id
id: string;The provider-assigned unique ID for this managed resource.
property ids
ids: string[];A list of instance IDs.
property instances
instances: GetInstancesInstance[];A list of instances. Each element contains the following attributes:
property outputFile
outputFile?: undefined | string;interface GetRecordsArgs
interface GetRecordsArgsA collection of arguments for invoking getRecords.
property domainName
domainName: string;The domain name associated to the records.
property hostRecordRegex
hostRecordRegex?: undefined | string;Host record regex.
property ids
ids?: string[];A list of record IDs.
property isLocked
isLocked?: undefined | false | true;Whether the record is locked or not.
property line
line?: undefined | string;ISP line. Valid items are default, telecom, unicom, mobile, oversea, edu, drpeng, btvn, .etc. For checking all resolution lines enumeration please visit Alibaba Cloud DNS doc
property outputFile
outputFile?: undefined | string;property status
status?: undefined | string;Record status. Valid items are ENABLE and DISABLE.
property type
type?: undefined | string;Record type. Valid items are A, NS, MX, TXT, CNAME, SRV, AAAA, REDIRECT_URL, FORWORD_URL .
property valueRegex
valueRegex?: undefined | string;Host record value regex.
interface GetRecordsResult
interface GetRecordsResultA collection of values returned by getRecords.
property domainName
domainName: string;Name of the domain the record belongs to.
property hostRecordRegex
hostRecordRegex?: undefined | string;property id
id: string;The provider-assigned unique ID for this managed resource.
property ids
ids: string[];A list of record IDs.
property isLocked
isLocked?: undefined | false | true;property line
line?: undefined | string;ISP line of the record.
property outputFile
outputFile?: undefined | string;property records
records: GetRecordsRecord[];A list of records. Each element contains the following attributes:
property status
status?: undefined | string;Status of the record.
property type
type?: undefined | string;Type of the record.
property urls
urls: string[];A list of entire URLs. Each item format as <host_record>.<domain_name>.
property valueRegex
valueRegex?: undefined | string;interface GetResolutionLinesArgs
interface GetResolutionLinesArgsA collection of arguments for invoking getResolutionLines.
property domainName
domainName?: undefined | string;Domain Name.
property lang
lang?: undefined | string;language.
property lineCodes
lineCodes?: string[];A list of lines codes.
property lineDisplayNames
lineDisplayNames?: string[];A list of line display names.
property lineNames
lineNames?: string[];property outputFile
outputFile?: undefined | string;property userClientIp
userClientIp?: undefined | string;The ip of user client.
interface GetResolutionLinesResult
interface GetResolutionLinesResultA collection of values returned by getResolutionLines.
property domainName
domainName?: undefined | string;property id
id: string;The provider-assigned unique ID for this managed resource.
property lang
lang?: undefined | string;property lineCodes
lineCodes: string[];Line code.
property lineDisplayNames
lineDisplayNames: string[];A list of line display names.
property lineNames
lineNames?: string[];property lines
lines: GetResolutionLinesLine[];A list of cloud resolution line. Each element contains the following attributes:
property outputFile
outputFile?: undefined | string;property userClientIp
userClientIp?: undefined | string;interface GroupArgs
interface GroupArgsThe set of arguments for constructing a Group resource.
property name
name?: pulumi.Input<string>;Name of the domain group.
interface GroupState
interface GroupStateInput properties used for looking up and filtering Group resources.
property name
name?: pulumi.Input<string>;Name of the domain group.
interface InstanceArgs
interface InstanceArgsThe set of arguments for constructing a Instance resource.
property dnsSecurity
dnsSecurity: pulumi.Input<string>;DNS security level. Valid values: no, basic, advanced.
property domainNumbers
domainNumbers: pulumi.Input<string>;Number of domain names bound.
property period
period?: pulumi.Input<number>;Creating a pre-paid instance, it must be set, the unit is month, please enter an integer multiple of 12 for annually paid products.
property renewPeriod
renewPeriod?: pulumi.Input<number>;Automatic renewal period, the unit is month. When setting RenewalStatus to AutoRenewal, it must be set.
property renewalStatus
renewalStatus?: pulumi.Input<string>;Automatic renewal status. Valid values: AutoRenewal, ManualRenewal, default to ManualRenewal.
property versionCode
versionCode: pulumi.Input<string>;Paid package version. Valid values: versionPersonal, versionEnterpriseBasic, versionEnterpriseAdvanced.
interface InstanceState
interface InstanceStateInput properties used for looking up and filtering Instance resources.
property dnsSecurity
dnsSecurity?: pulumi.Input<string>;DNS security level. Valid values: no, basic, advanced.
property domainNumbers
domainNumbers?: pulumi.Input<string>;Number of domain names bound.
property period
period?: pulumi.Input<number>;Creating a pre-paid instance, it must be set, the unit is month, please enter an integer multiple of 12 for annually paid products.
property renewPeriod
renewPeriod?: pulumi.Input<number>;Automatic renewal period, the unit is month. When setting RenewalStatus to AutoRenewal, it must be set.
property renewalStatus
renewalStatus?: pulumi.Input<string>;Automatic renewal status. Valid values: AutoRenewal, ManualRenewal, default to ManualRenewal.
property versionCode
versionCode?: pulumi.Input<string>;Paid package version. Valid values: versionPersonal, versionEnterpriseBasic, versionEnterpriseAdvanced.
property versionName
versionName?: pulumi.Input<string>;Paid package version name.
interface RecordArgs
interface RecordArgsThe set of arguments for constructing a Record resource.
property hostRecord
hostRecord: pulumi.Input<string>;Host record for the domain record. This hostRecord 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 “-”.
property name
name?: pulumi.Input<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.
property priority
priority?: pulumi.Input<number>;The priority of domain record. Valid values are [1-10]. When the type is MX, this parameter is required.
property routing
routing?: pulumi.Input<string>;The resolution line of domain record. Valid values are default, telecom, unicom, mobile, oversea, edu, drpeng, btvn, .etc. When the type is FORWORD_URL, this parameter must be default. Default value is default. For checking all resolution lines enumeration please visit Alibaba Cloud DNS doc or using alicloud.dns.getResolutionLines in data source to get the value.
property ttl
ttl?: pulumi.Input<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.
property type
type: pulumi.Input<string>;The type of domain record. Valid values are A,NS,MX,TXT,CNAME,SRV,AAAA,CAA, REDIRECT_URL and FORWORD_URL.
property value
value: pulumi.Input<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.
interface RecordState
interface RecordStateInput properties used for looking up and filtering Record resources.
property hostRecord
hostRecord?: pulumi.Input<string>;Host record for the domain record. This hostRecord 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 “-”.
property locked
locked?: pulumi.Input<boolean>;property name
name?: pulumi.Input<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.
property priority
priority?: pulumi.Input<number>;The priority of domain record. Valid values are [1-10]. When the type is MX, this parameter is required.
property routing
routing?: pulumi.Input<string>;The resolution line of domain record. Valid values are default, telecom, unicom, mobile, oversea, edu, drpeng, btvn, .etc. When the type is FORWORD_URL, this parameter must be default. Default value is default. For checking all resolution lines enumeration please visit Alibaba Cloud DNS doc or using alicloud.dns.getResolutionLines in data source to get the value.
property status
status?: pulumi.Input<string>;The record status. Enable or Disable.
property ttl
ttl?: pulumi.Input<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.
property type
type?: pulumi.Input<string>;The type of domain record. Valid values are A,NS,MX,TXT,CNAME,SRV,AAAA,CAA, REDIRECT_URL and FORWORD_URL.
property value
value?: pulumi.Input<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.