調用本介面添加點播加速網域名稱。
介面說明
目前服務地址僅支援:華東 2(上海)。
建立加速網域名稱之前,您需要先開通點播服務,並且加速網域名稱必須已備案完成。
來源站點內容。如果不在阿里雲平台上,需要審核,審核工作會在下一工作日前完成。
每次只能提交一個加速網域名稱,一個使用者最多添加 20 個網域名稱。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
vod:AddVodDomain |
create |
*全部資源
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| DomainName |
string |
是 |
需要存取點播的加速網域名稱。支援泛網域名稱,以英文句號(.)開頭,如:.example.com。 |
example.com |
| Sources |
string |
是 |
回源地址清單。參數詳情,請參見下表 Sources。 |
[{"content":"1.1.1.1","type":"ipaddr","priority":"20","port":80}] |
| CheckUrl |
string |
否 |
健康檢測 URL。 |
www.example.com/test.html |
| Scope |
string |
否 |
國際使用者、中國內地 L3 及以上使用者佈建有效。 取值範圍:
|
domestic |
| TopLevelDomain |
string |
否 |
頂級接入域。 |
example.com |
Sources
| 名稱 | 類型 | 是否必需 | 描述 |
| type | String | 是 | 來源站點類型。取值: ipaddr:IP 來源站點。 domain:標題來源站。 oss:OSS Bucket 為來源站點。 |
| content | String | 是 | 回源地址,可以是 IP 或網域名稱。 |
| port | Integer | 否 | 連接埠號碼。可以指定 443、80。預設值 80。443 連接埠使用 HTTPS 回源。也可以自訂連接埠。 |
| priority | String | 否 | 來源站點地址對應的優先順序。支援 20 和 30,預設值為 20。20 是主源,30 是備源。 |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| RequestId |
string |
請求 ID。 |
15C66C7B-671A-4297-****-2C4477247A74 |
樣本
正常返回樣本
JSON格式
{
"RequestId": "15C66C7B-671A-4297-****-2C4477247A74"
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | InvalidDomainName.Malformed | Specified DomainName is malformed. | |
| 400 | MissingParameter | The input parameter cdnType that is mandatory for processing this request is not supplied. | |
| 400 | InvalidCdnType.Malformed | Specified CdnType is malformed. | |
| 400 | InvalidSources.Malformed | Specified Sources is malformed. | 來源站點資訊格式錯誤。 |
| 400 | InvalidSourceStr.Malformed | Specified SourceStr is malformed. | 傳入來源站點資訊格式錯誤。 |
| 400 | InvalidSourceType.Malformed | Specified CdnType is malformed. | |
| 400 | InvalidSource.Priority.Malformed | The specified Source Priority is invalid. | |
| 400 | InvalidTypeAndContent.MissMatch | The specified source type does not match the specified source content. | |
| 400 | InvalidScope.Malformed | Specified Scope is malformed. | |
| 400 | DomainOverLimit | The Number of Domain is over the limit | |
| 400 | DomainAlreadyExist | This domain name is exist already | |
| 400 | DomainNotRegistration | The Domain name is not registered | |
| 400 | InvaildParameter | Source name can not equal to domain name | |
| 400 | IllegalSources | The specified origin site information is invalid. | 加速標題來源站資訊錯誤。 |
| 400 | SourceIp.Exceed | The Certificate you provided is malformed! | |
| 400 | InvalidCertificate | The Certificate you provided is malformed! | |
| 400 | InvalidCertificate.TooLong | The Certificate you provided is over the max length! | |
| 400 | InnerAddDomainDenied | Your account haven't bind aoneId, can not add domain. | |
| 400 | CheckSourceHealthFailed | sources ip or source domain check health failed,please input right source. | |
| 400 | ExtensiveAndAllBothExist | Extensive domain and the domain begins with 'all.' can not exist at the same time. | |
| 400 | CdnTypeNotSupportExtensiveDomain | Extensive domain not supported for this cdn type. | |
| 400 | ExtensiveAndSpecificDomainConflict | Extensive domain and corresponding specific domain are mutually exclusive. | 泛網域名稱和同級精確網域名稱互斥,請重新添加。 |
| 400 | DomainReserved | The root domain of your domain is reserved by another account. Submit a ticket to contact customer support. | 當前根網域名稱已被使用。請提交工單諮詢。 |
| 400 | InvalidDomainNameLevel | Domain name suffixed with alicdn.com only support third level. | |
| 400 | InvalidTopLevelDomain.Malformed | Specified TopLevelDomain is malformed. | |
| 400 | TopLevelDomain.NotFound | The specified TopLevelDomain does not exist. | |
| 400 | EntityNotExists.ResourceGroup | The resource group does not exist. | |
| 400 | InvalidStatus.ResourceGroup | It's now allowed to do this operation because of the current status of resource-group. | |
| 400 | NotInternationRealIdentity | You need to do real name authentication when you use Chinese mainland resources. | 根據中華人民共和國法律規定,在中國境內購買使用資訊服務的使用者需要進行實名認證。 |
| 400 | TopLevelDomain.Mismatch | The specified TopLevelDomain does not match webSiteType. | |
| 400 | DomainOwnerVerifyFail | Owner verification of the root domain failed. | 網域名稱驗證失敗。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。