调用ListWebHostingCustomDomains查询当前静态网站绑定的自定义域名。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | ListWebHostingCustomDomains |
系统规定参数。取值:ListWebHostingCustomDomains。 |
SpaceId | String | 是 | 0e16bb12-14af-4635-b24c-5ac1a9a***** |
服务空间ID。 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
Data | Array of Data |
返回数据。 |
|
AccessControlAllowOrigin | String | https://*.example.com, https://*.example.org |
跨域规则 |
Cname | String | www.test.com.w.kunlungr.com |
别名记录值。 |
CreateTime | Long | 1590470646000 |
创建时间。 |
Description | String | 测试域名 |
域名描述。 |
Domain | String | www.test.com |
域名。 |
EnableCors | Boolean | true |
当前是否开启跨域 |
ForceRedirectType | String | HTTPS_FORCE |
可选参数为:
|
SslProtocol | String | off |
HTTPS开启状态。
|
Status | String | online |
域名状态。
|
UpdateTime | Long | 1590470646143 |
修改时间。 |
RequestId | String | 93FC5921-2A54-408B-B360-2E5C93488CF4 |
唯一请求ID。 |
示例
请求示例
http(s)://[Endpoint]/?Action=ListWebHostingCustomDomains
&SpaceId=0e16bb12-14af-4635-b24c-5ac1a9a*****
&<公共请求参数>
正常返回示例
XML
格式
<ListWebHostingCustomDomainsResponse>
<RequestId>93FC5921-2A54-408B-B360-2E5C93488CF4</RequestId>
<HttpStatusCode>200</HttpStatusCode>
<Data>
<Status>online</Status>
<EnableCors>true</EnableCors>
<SslProtocol>off</SslProtocol>
<ForceRedirectType>OFF</ForceRedirectType>
<Description>测试域名</Description>
<CreateTime>1590470646000</CreateTime>
<UpdateTime>1590470646143</UpdateTime>
<AccessControlAllowOrigin>https://*.example.com, https://*.example.org</AccessControlAllowOrigin>
<Domain>www.test.com</Domain>
<Cname>www.test.com.w.kunlungr.com</Cname>
</Data>
<Code>success</Code>
<Success>true</Success>
</ListWebHostingCustomDomainsResponse>
JSON
格式
{
"RequestId": "93FC5921-2A54-408B-B360-2E5C93488CF4",
"HttpStatusCode": "200",
"Data": [
{
"Status": "online",
"EnableCors": true,
"SslProtocol": "off",
"ForceRedirectType": "OFF",
"Description": "测试域名",
"CreateTime": "1590470646000",
"UpdateTime": "1590470646143",
"AccessControlAllowOrigin": "https://*.example.com, https://*.example.org",
"Domain": "www.test.com",
"Cname": "www.test.com.w.kunlungr.com"
}
],
"Code": "success",
"Success": "true"
}