Calls the DescribeDNSSLBSubDomains operation to query subdomain names for which the weighted round-robin is enabled based on input parameters.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DescribeDNSSLBSubDomains

The operation that you want to perform. Set the value to DescribeDNSSLBSubDomains.

DomainName String Yes example.com

The domain name.

AccessKeyId String No your_accesskey_id

The AccessKey ID provided to you by Alibaba Cloud.

Lang String No en

The language type.

PageNumber Long No 1

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

PageSize Long No 20

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

UserClientIp String No 1.1.1.1

The IP address of the client.

Response parameters

Parameter Type Example Description
PageNumber Long 1

The page number of the returned page.

PageSize Long 1

The number of entries returned per page.

RequestId String 536E9CAD-DB30-4647-AC87-AA5CC38C5382

The ID of the request.

SlbSubDomains Array

The list of subdomain names for which the weighted round-robin is enabled.

SlbSubDomain

Details about a subdomain name for which the weighted round-robin is enabled.

Open Boolean true

The new status of the weighted round-robin.

RecordCount Long 3

The number of DNS records.

SubDomain String www.example.com

The subdomain name.

Type String LoadBalancer

The type of the DNS record.

TotalCount Long 1

The number of domain name groups.

Examples

Sample requests


http(s)://alidns.aliyuncs.com/?Action=DescribeDNSSLBSubDomains
&DomainName=example.com
&<Common request parameters>

Sample success responses

XML format

<DescribeDNSSLBSubDomainsResponse>
      <RequestId>536E9CAD-DB30-4647-AC87-AA5CC38C5382</RequestId>
      <TotalCount>1</TotalCount>
      <PageNumber>1</PageNumber>
      <PageSize>1</PageSize>
      <SlbSubDomains>
            <SlbSubDomain>
                  <SubDomain>www.example.com</SubDomain>
                  <RecordCount>3</RecordCount>
                  <Open>true</Open>
            </SlbSubDomain>
      </SlbSubDomains>
</DescribeDNSSLBSubDomainsResponse>

JSON format

{
	"SlbSubDomains":{
		"SlbSubDomain":[
			{
				"Open":true,
				"RecordCount":3,
				"SubDomain":"www.example.com"
			}
		]
	},
	"PageNumber":1,
	"TotalCount":1,
	"PageSize":1,
	"RequestId":"536E9CAD-DB30-4647-AC87-AA5CC38C5382"
}

Error codes

For a list of error codes, visit the API Error Center.