調用OpenCdnService開通CDN服務。開通服務後才能進行網域名稱操作。
介面說明
一個使用者只能開通一次,且要求阿里雲帳號已通過實名認證。
單使用者調用頻率:5 次/秒。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
cdn:OpenCdnService |
none |
*全部資源
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| InternetChargeType |
string |
是 |
開通服務的計費類型。取值為 PayByTraffic,表示按流量計費。 |
PayByTraffic |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
響應資料結構。 |
||
| RequestId |
string |
請求 ID。 |
97C68796-EB7F-4D41-9D5B-12B909D76508 |
樣本
正常返回樣本
JSON格式
{
"RequestId": "97C68796-EB7F-4D41-9D5B-12B909D76508"
}
異常返回樣本
JSON格式
{"RequestId":"16A96B9A-F203-4EC5-8E43-CB92E68F4CD8","HostId":"cdn.aliyuncs.com","Code":"InternalError","Message":"The request processing has failed due to some unknown error."}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | InvalidInternetChargeType.ValueNotSupported | The specified value of parameter InternetChargeType is not valid. | |
| 400 | CdnService.HasOpened | Your cdn service has opened. | CDN服務已開通,請勿重複開通。 |
| 400 | InsufficientBalance | Your account does not have enough balance. | |
| 400 | NoRealNameAuthentication | Real name authentication is needed. | 您的賬戶未開通實名認證。 |
| 400 | VertifyFailInvalidPayMethod | INVALID PAY METHOD | |
| 400 | VertifyFailUserProfileComplete | MISSING USERPROFILE | |
| 400 | CreateOrderFailed | Create order failed | |
| 400 | QueryInfoError | Create order failed | |
| 400 | MissingParameter | The input parameter OwnerId or OwnerAccount that is mandatory for processing this request is not supplied. | |
| 403 | Forbidden.Intl | User not authorized to open Intl service. | |
| 403 | Forbidden.BidUser | Bid user is limited to open service. |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。