Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi
alicloud.dns.getAlidnsRecords
Explore with Pulumi AI
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+.
Example Usage
data "alicloud_alidns_records" "records_ds" {
  domain_name = "xiaozhu.top"
  ids         = ["1978593525779****"]
  type        = "A"
  output_file = "records.txt"
}
output "first_record_id" {
  value = "${data.alicloud_alidns_records.records_ds.records.0.record_id}"
}
Using getAlidnsRecords
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getAlidnsRecords(args: GetAlidnsRecordsArgs, opts?: InvokeOptions): Promise<GetAlidnsRecordsResult>
function getAlidnsRecordsOutput(args: GetAlidnsRecordsOutputArgs, opts?: InvokeOptions): Output<GetAlidnsRecordsResult>def get_alidns_records(direction: Optional[str] = None,
                       domain_name: Optional[str] = None,
                       group_id: Optional[int] = None,
                       ids: Optional[Sequence[str]] = None,
                       key_word: Optional[str] = None,
                       lang: Optional[str] = None,
                       line: Optional[str] = None,
                       order_by: Optional[str] = None,
                       output_file: Optional[str] = None,
                       rr_key_word: Optional[str] = None,
                       rr_regex: Optional[str] = None,
                       search_mode: Optional[str] = None,
                       status: Optional[str] = None,
                       type: Optional[str] = None,
                       type_key_word: Optional[str] = None,
                       value_key_word: Optional[str] = None,
                       value_regex: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetAlidnsRecordsResult
def get_alidns_records_output(direction: Optional[pulumi.Input[str]] = None,
                       domain_name: Optional[pulumi.Input[str]] = None,
                       group_id: Optional[pulumi.Input[int]] = None,
                       ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                       key_word: Optional[pulumi.Input[str]] = None,
                       lang: Optional[pulumi.Input[str]] = None,
                       line: Optional[pulumi.Input[str]] = None,
                       order_by: Optional[pulumi.Input[str]] = None,
                       output_file: Optional[pulumi.Input[str]] = None,
                       rr_key_word: Optional[pulumi.Input[str]] = None,
                       rr_regex: Optional[pulumi.Input[str]] = None,
                       search_mode: Optional[pulumi.Input[str]] = None,
                       status: Optional[pulumi.Input[str]] = None,
                       type: Optional[pulumi.Input[str]] = None,
                       type_key_word: Optional[pulumi.Input[str]] = None,
                       value_key_word: Optional[pulumi.Input[str]] = None,
                       value_regex: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetAlidnsRecordsResult]func GetAlidnsRecords(ctx *Context, args *GetAlidnsRecordsArgs, opts ...InvokeOption) (*GetAlidnsRecordsResult, error)
func GetAlidnsRecordsOutput(ctx *Context, args *GetAlidnsRecordsOutputArgs, opts ...InvokeOption) GetAlidnsRecordsResultOutput> Note: This function is named GetAlidnsRecords in the Go SDK.
public static class GetAlidnsRecords 
{
    public static Task<GetAlidnsRecordsResult> InvokeAsync(GetAlidnsRecordsArgs args, InvokeOptions? opts = null)
    public static Output<GetAlidnsRecordsResult> Invoke(GetAlidnsRecordsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetAlidnsRecordsResult> getAlidnsRecords(GetAlidnsRecordsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: alicloud:dns/getAlidnsRecords:getAlidnsRecords
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Domain
Name string - The domain name associated to the records.
 - Direction string
 - Sorting direction. Valid values: 
DESC,ASC. Default toAESC. - Group
Id int - Domain name group ID.
 - Ids List<string>
 - A list of record IDs.
 - Key
Word string - Keywords.
 - Lang string
 - User language.
 - Line string
 - ISP line. For checking all resolution lines enumeration please visit Alibaba Cloud DNS doc
 - Order
By string - Sort by. Sort from newest to oldest according to the time added by resolution.
 - Output
File string - File name where to save data source results (after running 
pulumi preview). - Rr
Key stringWord  - The keywords recorded by the host are searched according to the 
%RRKeyWord%mode, and are not case sensitive. - Rr
Regex string - Host record regex.
 - Search
Mode string - Search mode, Valid values: 
LIKE,EXACT,ADVANCED,LIKE(fuzzy),EXACT(accurate) search supports KeyWord field,ADVANCED(advanced) mode supports other fields. - Status string
 - Record status. Valid values: 
ENABLEandDISABLE. - Type string
 - Record type. Valid values: 
A,NS,MX,TXT,CNAME,SRV,AAAA,REDIRECT_URL,FORWORD_URL. - Type
Key stringWord  - Analyze type keywords, search by full match, not case sensitive.
 - Value
Key stringWord  - The keywords of the recorded value are searched according to the 
%ValueKeyWord%mode, and are not case sensitive. - Value
Regex string - Host record value regex.
 
- Domain
Name string - The domain name associated to the records.
 - Direction string
 - Sorting direction. Valid values: 
DESC,ASC. Default toAESC. - Group
Id int - Domain name group ID.
 - Ids []string
 - A list of record IDs.
 - Key
Word string - Keywords.
 - Lang string
 - User language.
 - Line string
 - ISP line. For checking all resolution lines enumeration please visit Alibaba Cloud DNS doc
 - Order
By string - Sort by. Sort from newest to oldest according to the time added by resolution.
 - Output
File string - File name where to save data source results (after running 
pulumi preview). - Rr
Key stringWord  - The keywords recorded by the host are searched according to the 
%RRKeyWord%mode, and are not case sensitive. - Rr
Regex string - Host record regex.
 - Search
Mode string - Search mode, Valid values: 
LIKE,EXACT,ADVANCED,LIKE(fuzzy),EXACT(accurate) search supports KeyWord field,ADVANCED(advanced) mode supports other fields. - Status string
 - Record status. Valid values: 
ENABLEandDISABLE. - Type string
 - Record type. Valid values: 
A,NS,MX,TXT,CNAME,SRV,AAAA,REDIRECT_URL,FORWORD_URL. - Type
Key stringWord  - Analyze type keywords, search by full match, not case sensitive.
 - Value
Key stringWord  - The keywords of the recorded value are searched according to the 
%ValueKeyWord%mode, and are not case sensitive. - Value
Regex string - Host record value regex.
 
- domain
Name String - The domain name associated to the records.
 - direction String
 - Sorting direction. Valid values: 
DESC,ASC. Default toAESC. - group
Id Integer - Domain name group ID.
 - ids List<String>
 - A list of record IDs.
 - key
Word String - Keywords.
 - lang String
 - User language.
 - line String
 - ISP line. For checking all resolution lines enumeration please visit Alibaba Cloud DNS doc
 - order
By String - Sort by. Sort from newest to oldest according to the time added by resolution.
 - output
File String - File name where to save data source results (after running 
pulumi preview). - rr
Key StringWord  - The keywords recorded by the host are searched according to the 
%RRKeyWord%mode, and are not case sensitive. - rr
Regex String - Host record regex.
 - search
Mode String - Search mode, Valid values: 
LIKE,EXACT,ADVANCED,LIKE(fuzzy),EXACT(accurate) search supports KeyWord field,ADVANCED(advanced) mode supports other fields. - status String
 - Record status. Valid values: 
ENABLEandDISABLE. - type String
 - Record type. Valid values: 
A,NS,MX,TXT,CNAME,SRV,AAAA,REDIRECT_URL,FORWORD_URL. - type
Key StringWord  - Analyze type keywords, search by full match, not case sensitive.
 - value
Key StringWord  - The keywords of the recorded value are searched according to the 
%ValueKeyWord%mode, and are not case sensitive. - value
Regex String - Host record value regex.
 
- domain
Name string - The domain name associated to the records.
 - direction string
 - Sorting direction. Valid values: 
DESC,ASC. Default toAESC. - group
Id number - Domain name group ID.
 - ids string[]
 - A list of record IDs.
 - key
Word string - Keywords.
 - lang string
 - User language.
 - line string
 - ISP line. For checking all resolution lines enumeration please visit Alibaba Cloud DNS doc
 - order
By string - Sort by. Sort from newest to oldest according to the time added by resolution.
 - output
File string - File name where to save data source results (after running 
pulumi preview). - rr
Key stringWord  - The keywords recorded by the host are searched according to the 
%RRKeyWord%mode, and are not case sensitive. - rr
Regex string - Host record regex.
 - search
Mode string - Search mode, Valid values: 
LIKE,EXACT,ADVANCED,LIKE(fuzzy),EXACT(accurate) search supports KeyWord field,ADVANCED(advanced) mode supports other fields. - status string
 - Record status. Valid values: 
ENABLEandDISABLE. - type string
 - Record type. Valid values: 
A,NS,MX,TXT,CNAME,SRV,AAAA,REDIRECT_URL,FORWORD_URL. - type
Key stringWord  - Analyze type keywords, search by full match, not case sensitive.
 - value
Key stringWord  - The keywords of the recorded value are searched according to the 
%ValueKeyWord%mode, and are not case sensitive. - value
Regex string - Host record value regex.
 
- domain_
name str - The domain name associated to the records.
 - direction str
 - Sorting direction. Valid values: 
DESC,ASC. Default toAESC. - group_
id int - Domain name group ID.
 - ids Sequence[str]
 - A list of record IDs.
 - key_
word str - Keywords.
 - lang str
 - User language.
 - line str
 - ISP line. For checking all resolution lines enumeration please visit Alibaba Cloud DNS doc
 - order_
by str - Sort by. Sort from newest to oldest according to the time added by resolution.
 - output_
file str - File name where to save data source results (after running 
pulumi preview). - rr_
key_ strword  - The keywords recorded by the host are searched according to the 
%RRKeyWord%mode, and are not case sensitive. - rr_
regex str - Host record regex.
 - search_
mode str - Search mode, Valid values: 
LIKE,EXACT,ADVANCED,LIKE(fuzzy),EXACT(accurate) search supports KeyWord field,ADVANCED(advanced) mode supports other fields. - status str
 - Record status. Valid values: 
ENABLEandDISABLE. - type str
 - Record type. Valid values: 
A,NS,MX,TXT,CNAME,SRV,AAAA,REDIRECT_URL,FORWORD_URL. - type_
key_ strword  - Analyze type keywords, search by full match, not case sensitive.
 - value_
key_ strword  - The keywords of the recorded value are searched according to the 
%ValueKeyWord%mode, and are not case sensitive. - value_
regex str - Host record value regex.
 
- domain
Name String - The domain name associated to the records.
 - direction String
 - Sorting direction. Valid values: 
DESC,ASC. Default toAESC. - group
Id Number - Domain name group ID.
 - ids List<String>
 - A list of record IDs.
 - key
Word String - Keywords.
 - lang String
 - User language.
 - line String
 - ISP line. For checking all resolution lines enumeration please visit Alibaba Cloud DNS doc
 - order
By String - Sort by. Sort from newest to oldest according to the time added by resolution.
 - output
File String - File name where to save data source results (after running 
pulumi preview). - rr
Key StringWord  - The keywords recorded by the host are searched according to the 
%RRKeyWord%mode, and are not case sensitive. - rr
Regex String - Host record regex.
 - search
Mode String - Search mode, Valid values: 
LIKE,EXACT,ADVANCED,LIKE(fuzzy),EXACT(accurate) search supports KeyWord field,ADVANCED(advanced) mode supports other fields. - status String
 - Record status. Valid values: 
ENABLEandDISABLE. - type String
 - Record type. Valid values: 
A,NS,MX,TXT,CNAME,SRV,AAAA,REDIRECT_URL,FORWORD_URL. - type
Key StringWord  - Analyze type keywords, search by full match, not case sensitive.
 - value
Key StringWord  - The keywords of the recorded value are searched according to the 
%ValueKeyWord%mode, and are not case sensitive. - value
Regex String - Host record value regex.
 
getAlidnsRecords Result
The following output properties are available:
- Domain
Name string - Name of the domain record belongs to.
 - Id string
 - The provider-assigned unique ID for this managed resource.
 - Ids List<string>
 - A list of record IDs.
 - Records
List<Pulumi.
Ali Cloud. Dns. Outputs. Get Alidns Records Record>  - A list of records. Each element contains the following attributes:
 - Direction string
 - Group
Id int - Key
Word string - Lang string
 - Line string
 - ISP line of the record.
 - Order
By string - Output
File string - Rr
Key stringWord  - Rr
Regex string - Search
Mode string - Status string
 - Status of the record.
 - Type string
 - Type of the record.
 - Type
Key stringWord  - Value
Key stringWord  - Value
Regex string 
- Domain
Name string - Name of the domain record belongs to.
 - Id string
 - The provider-assigned unique ID for this managed resource.
 - Ids []string
 - A list of record IDs.
 - Records
[]Get
Alidns Records Record  - A list of records. Each element contains the following attributes:
 - Direction string
 - Group
Id int - Key
Word string - Lang string
 - Line string
 - ISP line of the record.
 - Order
By string - Output
File string - Rr
Key stringWord  - Rr
Regex string - Search
Mode string - Status string
 - Status of the record.
 - Type string
 - Type of the record.
 - Type
Key stringWord  - Value
Key stringWord  - Value
Regex string 
- domain
Name String - Name of the domain record belongs to.
 - id String
 - The provider-assigned unique ID for this managed resource.
 - ids List<String>
 - A list of record IDs.
 - records
List<Get
Ali Records Record>  - A list of records. Each element contains the following attributes:
 - direction String
 - group
Id Integer - key
Word String - lang String
 - line String
 - ISP line of the record.
 - order
By String - output
File String - rr
Key StringWord  - rr
Regex String - search
Mode String - status String
 - Status of the record.
 - type String
 - Type of the record.
 - type
Key StringWord  - value
Key StringWord  - value
Regex String 
- domain
Name string - Name of the domain record belongs to.
 - id string
 - The provider-assigned unique ID for this managed resource.
 - ids string[]
 - A list of record IDs.
 - records
Get
Alidns Records Record[]  - A list of records. Each element contains the following attributes:
 - direction string
 - group
Id number - key
Word string - lang string
 - line string
 - ISP line of the record.
 - order
By string - output
File string - rr
Key stringWord  - rr
Regex string - search
Mode string - status string
 - Status of the record.
 - type string
 - Type of the record.
 - type
Key stringWord  - value
Key stringWord  - value
Regex string 
- domain_
name str - Name of the domain record belongs to.
 - id str
 - The provider-assigned unique ID for this managed resource.
 - ids Sequence[str]
 - A list of record IDs.
 - records
Sequence[Get
Alidns Records Record]  - A list of records. Each element contains the following attributes:
 - direction str
 - group_
id int - key_
word str - lang str
 - line str
 - ISP line of the record.
 - order_
by str - output_
file str - rr_
key_ strword  - rr_
regex str - search_
mode str - status str
 - Status of the record.
 - type str
 - Type of the record.
 - type_
key_ strword  - value_
key_ strword  - value_
regex str 
- domain
Name String - Name of the domain record belongs to.
 - id String
 - The provider-assigned unique ID for this managed resource.
 - ids List<String>
 - A list of record IDs.
 - records List<Property Map>
 - A list of records. Each element contains the following attributes:
 - direction String
 - group
Id Number - key
Word String - lang String
 - line String
 - ISP line of the record.
 - order
By String - output
File String - rr
Key StringWord  - rr
Regex String - search
Mode String - status String
 - Status of the record.
 - type String
 - Type of the record.
 - type
Key StringWord  - value
Key StringWord  - value
Regex String 
Supporting Types
GetAlidnsRecordsRecord   
- Domain
Name string - The domain name associated to the records.
 - Id string
 - ID of the resource.
 - Line string
 - ISP line. For checking all resolution lines enumeration please visit Alibaba Cloud DNS doc
 - Locked bool
 - Indicates whether the record is locked.
 - Priority int
 - Priority of the 
MXrecord. - Record
Id string - ID of the record.
 - Remark string
 - The remark of the domain record. NOTE: Available in 1.144.0+.
 - Rr string
 - Host record of the domain.
 - Status string
 - Record status. Valid values: 
ENABLEandDISABLE. - Ttl int
 - TTL of the record.
 - Type string
 - Record type. Valid values: 
A,NS,MX,TXT,CNAME,SRV,AAAA,REDIRECT_URL,FORWORD_URL. - Value string
 - Host record value of the domain.
 
- Domain
Name string - The domain name associated to the records.
 - Id string
 - ID of the resource.
 - Line string
 - ISP line. For checking all resolution lines enumeration please visit Alibaba Cloud DNS doc
 - Locked bool
 - Indicates whether the record is locked.
 - Priority int
 - Priority of the 
MXrecord. - Record
Id string - ID of the record.
 - Remark string
 - The remark of the domain record. NOTE: Available in 1.144.0+.
 - Rr string
 - Host record of the domain.
 - Status string
 - Record status. Valid values: 
ENABLEandDISABLE. - Ttl int
 - TTL of the record.
 - Type string
 - Record type. Valid values: 
A,NS,MX,TXT,CNAME,SRV,AAAA,REDIRECT_URL,FORWORD_URL. - Value string
 - Host record value of the domain.
 
- domain
Name String - The domain name associated to the records.
 - id String
 - ID of the resource.
 - line String
 - ISP line. For checking all resolution lines enumeration please visit Alibaba Cloud DNS doc
 - locked Boolean
 - Indicates whether the record is locked.
 - priority Integer
 - Priority of the 
MXrecord. - record
Id String - ID of the record.
 - remark String
 - The remark of the domain record. NOTE: Available in 1.144.0+.
 - rr String
 - Host record of the domain.
 - status String
 - Record status. Valid values: 
ENABLEandDISABLE. - ttl Integer
 - TTL of the record.
 - type String
 - Record type. Valid values: 
A,NS,MX,TXT,CNAME,SRV,AAAA,REDIRECT_URL,FORWORD_URL. - value String
 - Host record value of the domain.
 
- domain
Name string - The domain name associated to the records.
 - id string
 - ID of the resource.
 - line string
 - ISP line. For checking all resolution lines enumeration please visit Alibaba Cloud DNS doc
 - locked boolean
 - Indicates whether the record is locked.
 - priority number
 - Priority of the 
MXrecord. - record
Id string - ID of the record.
 - remark string
 - The remark of the domain record. NOTE: Available in 1.144.0+.
 - rr string
 - Host record of the domain.
 - status string
 - Record status. Valid values: 
ENABLEandDISABLE. - ttl number
 - TTL of the record.
 - type string
 - Record type. Valid values: 
A,NS,MX,TXT,CNAME,SRV,AAAA,REDIRECT_URL,FORWORD_URL. - value string
 - Host record value of the domain.
 
- domain_
name str - The domain name associated to the records.
 - id str
 - ID of the resource.
 - line str
 - ISP line. For checking all resolution lines enumeration please visit Alibaba Cloud DNS doc
 - locked bool
 - Indicates whether the record is locked.
 - priority int
 - Priority of the 
MXrecord. - record_
id str - ID of the record.
 - remark str
 - The remark of the domain record. NOTE: Available in 1.144.0+.
 - rr str
 - Host record of the domain.
 - status str
 - Record status. Valid values: 
ENABLEandDISABLE. - ttl int
 - TTL of the record.
 - type str
 - Record type. Valid values: 
A,NS,MX,TXT,CNAME,SRV,AAAA,REDIRECT_URL,FORWORD_URL. - value str
 - Host record value of the domain.
 
- domain
Name String - The domain name associated to the records.
 - id String
 - ID of the resource.
 - line String
 - ISP line. For checking all resolution lines enumeration please visit Alibaba Cloud DNS doc
 - locked Boolean
 - Indicates whether the record is locked.
 - priority Number
 - Priority of the 
MXrecord. - record
Id String - ID of the record.
 - remark String
 - The remark of the domain record. NOTE: Available in 1.144.0+.
 - rr String
 - Host record of the domain.
 - status String
 - Record status. Valid values: 
ENABLEandDISABLE. - ttl Number
 - TTL of the record.
 - type String
 - Record type. Valid values: 
A,NS,MX,TXT,CNAME,SRV,AAAA,REDIRECT_URL,FORWORD_URL. - value String
 - Host record value of the domain.
 
Package Details
- Repository
 - Alibaba Cloud pulumi/pulumi-alicloud
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
alicloudTerraform Provider.