调用DescribeVodDomainDetail获取指定点播域名配置的基本信息。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | DescribeVodDomainDetail |
系统规定参数。取值:DescribeVodDomainDetail。 |
DomainName | String | 是 | example.com |
点播加速域名名称。 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
DomainDetail | Struct |
域名配置的基本信息。 |
|
CertName | String | **** |
如果开启https,此处为证书名称。 |
Cname | String | www.example.com.alikunlun.net |
为加速域名生成的一个CNAME域名,需要在域名解析服务商处将加速域名CNAME解析到该域名。 |
Description | String | **** |
点播加速域名描述。 |
DomainName | String | www.example.com |
点播加速域名。 |
DomainStatus | String | online |
加速域名运行状态。取值意义:
|
GmtCreated | String | 2017-11-27T06:51:26Z |
创建时间。格式为:yyyy-MM-ddTHH:mm:ssZ(UTC时间)。 |
GmtModified | String | 2017-11-27T06:55:26Z |
最近修改时间。格式为:yyyy-MM-ddTHH:mm:ssZ(UTC时间)。 |
SSLProtocol | String | on |
是否开启ssl证书。取值:
|
SSLPub | String | **** |
如果开启https,此处为证书公钥。 |
Scope | String | domestic |
国际用户、国内L3及以上用户设置有效。 取值:
|
Sources | Array of Source |
源站信息。 |
|
Source | |||
Content | String | ****.oss-cn-hangzhou.aliyuncs.com |
回源地址。 |
Enabled | String | online |
源站状态。取值:
|
Port | Integer | 80 |
端口。支持443和80。 |
Priority | String | 50 |
优先级。 |
Type | String | oss |
源站类型。取值:
|
Weight | String | 1 |
权重。 |
RequestId | String | 09ABE829-6CD3-4FE0-****-556113E29727 |
请求ID。 |
示例
请求示例
https://vod.aliyuncs.com/?Action=DescribeVodDomainDetail
&DomainName=example.com
&<公共请求参数>
正常返回示例
XML
格式
<DescribeVodDomainDetailResponse>
<RequestId>09ABE829-6CD3-4FE0-****-556113E29727</RequestId>
<DomainDetail>
<Cname>www.example.com.alikunlun.net</Cname>
<DomainStatus>online</DomainStatus>
<DomainName>www.example.com</DomainName>
<Sources>
<Source>
<Enabled>online</Enabled>
<Port>80</Port>
<Type>oss</Type>
<Content>****.oss-cn-hangzhou.aliyuncs.com</Content>
<Priority>50</Priority>
</Source>
</Sources>
<GmtModified>2017-11-27T06:55:26Z</GmtModified>
<GmtCreated>2017-11-27T06:51:25Z</GmtCreated>
</DomainDetail>
</DescribeVodDomainDetailResponse>
JSON
格式
{
"RequestId": "09ABE829-6CD3-4FE0-****-556113E29727",
"DomainDetail": {
"Cname": "www.example.com.alikunlun.net",
"DomainStatus": "online",
"DomainName": "www.example.com",
"Sources": {
"Source": [
{
"Enabled": "online",
"Port": 80,
"Type": "oss",
"Content": "****.oss-cn-hangzhou.aliyuncs.com",
"Priority": "50"
}
]
},
"GmtModified": "2017-11-27T06:55:26Z",
"GmtCreated": "2017-11-27T06:51:25Z"
}
}
错误码
访问错误中心查看更多错误码。
下表列举了本接口特有的错误码。视频点播通用的错误码信息,请参见错误码表。
错误代码 |
错误信息 |
HTTP 状态码 |
说明 |
|
---|---|---|---|---|
InvalidDomain.NotFound |
The domain provided does not belong to you. |
404 |
域名不存在或不属于当前用户。 |
|
ServiceBusy |
The specified Domain is configuring, please retry again later. |
403 |
域名正在配置中, 请稍后再试。 |
在文档使用中是否遇到以下问题
更多建议
匿名提交