All Products
Search
Document Center

Alibaba Cloud DNS:DescribeDomains

Last Updated:Mar 15, 2024

Calls the DescribeDomains operation to query domain names of a user based on input parameters.

Operation description

  • You can specify the PageNumber and PageSize parameters to query domain names.
  • You can specify the KeyWord parameter to query domain names that contain the specified keyword.
  • By default, the domain names in a list are sorted in descending order of the time they were added.
  • You can specify the GroupId parameter. If you do not specify this parameter, all domain names are queried by default.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
alidns:DescribeDomainsREAD
  • domain
    acs:alidns::{#accountId}:domain/*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
LangstringNo

The language type.

en
KeyWordstringNo

The keyword for searches in "%KeyWord%" mode. The value is not case-sensitive.

com
GroupIdstringNo

The ID of the domain name group. If you do not specify this parameter, all domain names are queried by default.

2223
PageNumberlongNo

The number of the page to return. Pages start from page 1. Default value: 1.

1
PageSizelongNo

The number of entries to return on each page. Maximum value: 100. Default value: 20.

20
SearchModestringNo

The search mode. Valid values:

  • LIKE: fuzzy match.
  • EXACT: exact match.
LIKE
ResourceGroupIdstringNo

The ID of the resource group.

rg-resourcegroupid01
StarmarkbooleanNo

Specifies whether to query the starmark of the domain name.

true

Response parameters

ParameterTypeDescriptionExample
object
Domainsobject []

The domain names.

Remarkstring

The description of the domain name.

remark
CreateTimestring

The time when the domain name was added.

2019-01-30T05:25Z
RecordCountlong

The number of Domain Name System (DNS) records added for the domain name.

100
Tagsobject []

The tags added to the resource.

Keystring

The key of the tag added to the resource.

Valuestring

The value of the tag added to the resource.

InstanceIdstring

The ID of the Alibaba Cloud DNS instance.

i-7bg
DomainNamestring

The domain name.

abc.com
DomainIdstring

The ID of the domain name.

00efd71a-770e-4255-b54e-6fe5659baffe
AliDomainboolean

Indicates whether the domain name was registered in Alibaba Cloud.

true
GroupIdstring

The ID of the domain name group.

2223
GroupNamestring

The name of the domain name group.

mygroup
ResourceGroupIdstring

The ID of the resource group to which the domain name belongs.

rg-acf
InstanceEndTimestring

The time when the Alibaba Cloud DNS instance expires.

2020-03-14T16:00Z
InstanceExpiredboolean

Indicates whether the Alibaba Cloud DNS instance expires.

false
VersionNamestring

The edition of Alibaba Cloud DNS.

DnsServersarray

The names of the DNS servers configured for the domain name.

string

The name of the DNS server configured for the domain name.

{"DnsServer": ["ns1.alidns.com","ns2.alidns.com"]}
VersionCodestring

The edition code of Alibaba Cloud DNS.

version_enterprise_basic
PunyCodestring

The Punycode for the domain name. This parameter is returned only for Chinese domain names.

abc.com
RegistrantEmailstring

The email address of the registrant.

test@example.com
CreateTimestamplong

The time when the domain name was added. This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC.

1660546144000
Starmarkboolean

Indicates whether the domain name was added to favorites.

true
TotalCountlong

The total number of domain names.

2
PageSizelong

The number of entries returned per page.

2
RequestIdstring

The ID of the request.

68386699-8B9E-4D5B-BC4C-75A28F6C2A00
PageNumberlong

The page number of the returned page.

1

Examples

Sample success responses

JSONformat

{
  "Domains": {
    "Domain": [
      {
        "Remark": "remark",
        "CreateTime": "2019-01-30T05:25Z",
        "RecordCount": 100,
        "Tags": {
          "Tag": [
            {
              "Key": "",
              "Value": ""
            }
          ]
        },
        "InstanceId": "i-7bg",
        "DomainName": "abc.com",
        "DomainId": "00efd71a-770e-4255-b54e-6fe5659baffe",
        "AliDomain": true,
        "GroupId": "2223",
        "GroupName": "mygroup",
        "ResourceGroupId": "rg-acf",
        "InstanceEndTime": "2020-03-14T16:00Z",
        "InstanceExpired": false,
        "VersionName": "",
        "DnsServers": {
          "DnsServer": [
            "{\"DnsServer\": [\"ns1.alidns.com\",\"ns2.alidns.com\"]}"
          ]
        },
        "VersionCode": "version_enterprise_basic",
        "PunyCode": "abc.com",
        "RegistrantEmail": "test@example.com",
        "CreateTimestamp": 1660546144000,
        "Starmark": true,
        "DomainLoggingSwitchStatus": ""
      }
    ]
  },
  "TotalCount": 2,
  "PageSize": 2,
  "RequestId": "68386699-8B9E-4D5B-BC4C-75A28F6C2A00",
  "PageNumber": 1
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2024-01-17The response structure of the API has changedsee changesets
Change itemChange content
Output ParametersThe response structure of the API has changed.