调用DescribeDcdnUserDomainsByFunc通过FuncId查询用户名下所有配置了指定功能的全站加速域名。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | DescribeDcdnUserDomainsByFunc |
系统规定参数,取值:DescribeDcdnUserDomainsByFunc。 |
FuncId | Integer | 是 | 7 |
功能ID,您可在域名配置功能参数文档,根据功能名称搜索查询。 例如:配置回源HOST(set_req_host_header)功能ID为18。 |
FuncFilter | String | 否 | config |
是否开通funcid功能。
|
DomainName | String | 否 | example.com |
加速域名。 |
PageNumber | Integer | 否 | 1 |
页码,默认值:1。 取值范围:1~100000。 |
PageSize | Integer | 否 | 20 |
单页显示域名的数量,默认值:20。 取值范围:1~500。 |
ResourceGroupId | String | 否 | rg-acfmyuji4b6r4** |
资源组ID。 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
Domains | Array of PageData |
由PageData组成的数组格式,返回加速域名的状态信息。 |
|
PageData | |||
Cname | String | example.com.w.alikunlun.net |
加速域名对应的CNAME域名。 |
Description | String | audit failed |
审核失败原因。 |
DomainName | String | example.com |
加速域名名称。 |
DomainStatus | String | configure_failed |
加速域名状态。取值:
|
GmtCreated | String | 2015-10-28T09:32:51Z |
加速域名创建时间。 |
GmtModified | String | 2015-10-28T11:05:50Z |
加速域名修改时间。 |
ResourceGroupId | String | rg-acfmyuji4b6r4** |
资源组ID。 |
Sandbox | String | normal |
沙箱。 |
Sources | Array of Source |
源站信息。 |
|
Source | |||
Content | String | image.developer.aliyundoc.com |
源站地址。 |
Port | Integer | 80 |
源站端口。 |
Priority | String | 20 |
优先级。 |
Type | String | oss |
源站类型。 |
Weight | String | 20 |
回源权重。 |
SslProtocol | String | on |
HTTPS开关。取值:
|
PageNumber | Long | 1 |
页码。 |
PageSize | Long | 5 |
单页显示域名的数量。 |
RequestId | String | AA75AADB-5E25-4970-B480-EAA1F5658483 |
请求ID。 |
TotalCount | Long | 16 |
域名总个数。 |
示例
请求示例
http(s)://dcdn.aliyuncs.com/?Action=DescribeDcdnUserDomainsByFunc
&FuncId=7
&<公共请求参数>
正常返回示例
XML
格式
<DescribeDcdnUserDomainsByFuncResponse>
<PageNumber>1</PageNumber>
<TotalCount>16</TotalCount>
<PageSize>5</PageSize>
<RequestId>AA75AADB-5E25-4970-B480-EAA1F5658483</RequestId>
<Domains>
<PageData>
<DomainStatus>configure_failed</DomainStatus>
<DomainName>example.com</DomainName>
<GmtModified>2015-10-28T11:05:52Z</GmtModified>
<GmtCreated>2015-10-28T09:32:51Z</GmtCreated>
<Description>audit failed</Description>
<ResourceGroupId>rg-xxxxx</ResourceGroupId>
</PageData>
<PageData>
<DomainStatus>configure_failed</DomainStatus>
<DomainName>example.org</DomainName>
<GmtModified>2015-10-28T11:05:50Z</GmtModified>
<GmtCreated>2015-10-28T09:31:59Z</GmtCreated>
<ResourceGroupId>rg-xxxxx</ResourceGroupId>
</PageData>
<PageData>
<Cname>example.net.w.alikunlun.net</Cname>
<DomainStatus>online</DomainStatus>
<DomainName>example.net</DomainName>
<GmtModified>2015-10-27T06:26:34Z</GmtModified>
<GmtCreated>2015-10-23T09:30:00Z</GmtCreated>
<ResourceGroupId>rg-xxxxx</ResourceGroupId>
</PageData>
<PageData>
<Cname>example.edu.w.kunlunAr.com</Cname>
<DomainStatus>online</DomainStatus>
<DomainName>example.edu</DomainName>
<GmtModified>2015-10-23T09:23:29Z</GmtModified>
<GmtCreated>2015-10-23T09:23:20Z</GmtCreated>
<ResourceGroupId>rg-xxxxx</ResourceGroupId>
</PageData>
<PageData>
<Cname>aliyundoc.com.w.alikunlun.com</Cname>
<DomainStatus>online</DomainStatus>
<DomainName>aliyundoc.com</DomainName>
<GmtModified>2015-10-23T09:02:11Z</GmtModified>
<GmtCreated>2015-10-23T09:01:57Z</GmtCreated>
<ResourceGroupId>rg-xxxxx</ResourceGroupId>
</PageData>
</Domains>
</DescribeDcdnUserDomainsByFuncResponse>
JSON
格式
{
"PageNumber": 1,
"TotalCount": 16,
"PageSize": 5,
"RequestId": "AA75AADB-5E25-4970-B480-EAA1F5658483",
"Domains": {
"PageData": [
{
"DomainStatus": "configure_failed",
"DomainName": "example.com",
"GmtModified": "2015-10-28T11:05:52Z",
"GmtCreated": "2015-10-28T09:32:51Z",
"Description": "audit failed",
"ResourceGroupId":"rg-xxxxx"
},
{
"DomainStatus": "configure_failed",
"DomainName": "example.org",
"GmtModified": "2015-10-28T11:05:50Z",
"GmtCreated": "2015-10-28T09:31:59Z",
"ResourceGroupId":"rg-xxxxx"
},
{
"Cname": "example.net.w.alikunlun.net",
"DomainStatus": "online",
"DomainName": "example.net",
"GmtModified": "2015-10-27T06:26:34Z",
"GmtCreated": "2015-10-23T09:30:00Z",
"ResourceGroupId":"rg-xxxxx"
},
{
"Cname": "example.edu.w.kunlunAr.com",
"DomainStatus": "online",
"DomainName": "example.edu",
"GmtModified": "2015-10-23T09:23:29Z",
"GmtCreated": "2015-10-23T09:23:20Z",
"ResourceGroupId":"rg-xxxxx"
},
{
"Cname": "aliyundoc.com.w.alikunlun.com",
"DomainStatus": "online",
"DomainName": "aliyundoc.com",
"GmtModified": "2015-10-23T09:02:11Z",
"GmtCreated": "2015-10-23T09:01:57Z",
"ResourceGroupId":"rg-xxxxx"
}
]
}
}
错误码
HttpCode | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | InvalidPageNumber.ValueNotSupported | The specified value of PageNumber is not supported. | 页码参数错误,请重新填写。 |
400 | InvalidPageSize.ValueNotSupported | The specified value of PageSize is invalid. | PageSize参数错误,请重新填写。 |
400 | InvalidDomainStatus.ValueNotSupported | The specified value of DomainStatus is invalid. | DomainStatus值错误,请重新填写。 |
400 | InvalidDomainName.Malformed | The specified DomainName is invalid. | 域名格式错误。 |
400 | InvalidDomainSearchType.ValueNotSupported | The specified value of DomainSearchType is invalid. | DomainSearchType值错误,请重新填写。 |
400 | InvalidChangeStartTime.Malformed | The specified ChangeStartTime is invalid. | 更新开始时间非法。 |
400 | InvalidChangeEndTime.Malformed | The specified ChangeEndTime is invalid. | 更新结束时间非法。 |
访问错误中心查看更多错误码。