呼叫此介面新增隨選視訊加速網域。
介面說明
目前服務地址僅支援:華東 2(上海)。
建立加速網域之前,您需要先開通隨選視訊服務,並且加速網域必須已完成備案。
源站內容。如果不在阿里雲平台上,需要審核,審核工作會在下一個工作日前完成。
每次只能提交一個加速網域,一個使用者最多新增 20 個網域。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
vod:AddVodDomain |
create |
*All Resource
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| 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. |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。