全部產品
Search
文件中心

ApsaraVideo VOD:SetVodDomainSSLCertificate - 設定點播網域名稱認證

更新時間:Aug 01, 2025

調用本介面用於設定某網域名稱下認證功能是否啟用及更新認證資訊。

介面說明

  • 本介面目前僅支援 華東 2(上海) 地區。

  • 單使用者調用頻率:30 次/秒。

  • 調用方式:POST。

調試

您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。

調試

授權資訊

下表是API對應的授權資訊,可以在RAM權限原則語句的Action元素中使用,用來給RAM使用者或RAM角色授予調用此API的許可權。具體說明如下:

  • 操作:是指具體的許可權點。

  • 存取層級:是指每個操作的存取層級,取值為寫入(Write)、讀取(Read)或列出(List)。

  • 資源類型:是指操作中支援授權的資源類型。具體說明如下:

    • 對於必選的資源類型,用前面加 * 表示。

    • 對於不支援資源級授權的操作,用全部資源表示。

  • 條件關鍵字:是指雲產品自身定義的條件關鍵字。

  • 關聯操作:是指成功執行操作所需要的其他許可權。操作者必須同時具備關聯操作的許可權,操作才能成功。

操作

存取層級

資源類型

條件關鍵字

關聯操作

vod:SetVodDomainSSLCertificate

update

*全部資源

*

請求參數

名稱

類型

必填

描述

樣本值

DomainName

string

點播加速網域名稱。

example.com

CertName

string

認證名稱。

cert_name

CertId

integer

認證 id

12342707

CertType

string

認證類型。

  • upload:上傳認證。

  • cas:認證中心認證。

cas

SSLProtocol

string

HTTPS 認證是否啟用。取值:

  • on:啟用。

  • off:不啟用。

off

SSLPub

string

安全性憑證內容。不啟用認證則無需輸入,配置認證請輸入認證內容。

****

SSLPri

string

私密金鑰內容。不啟用認證則無需輸入,配置認證請輸入私密金鑰內容。

****

CertRegion

string

認證 Region。取值:

  • ap-southeast-1(新加坡)

  • cn-hangzhou(杭州)

預設值為cn-hangzhou

cn-hangzhou

Env

string

是否灰階下發認證。 取值:staging:灰階下發認證。 不傳或者傳任何其他值,都是正式下發認證。

staging

返回參數

名稱

類型

描述

樣本值

object

RequestId

string

請求 ID。

F4C6D5BE-BF13-45*****6C-516EA8906DCD

樣本

正常返回樣本

JSON格式

{
  "RequestId": "F4C6D5BE-BF13-45*****6C-516EA8906DCD"
}

錯誤碼

HTTP status code

錯誤碼

錯誤資訊

描述

400 InvalidSSLProtocol.ValueNotSupported The specified SSLProtocol is invalid.
400 SSLPub.MissingParameter The SSLPub parameter is required.
400 SSLPri.MissingParameter The SSLPri parameter is required.
400 InvalidSSLPub The specified SSLPub is invalid.
400 InvalidSSLPri The specified SSLPri is invalid.
400 Certificate.MissMatch The SSLPri does not match the certificate.
400 InvalidCertificate.TooLong The maximum length of the certificate is exceeded.
400 InvalidCertName.TooLong The length of the certificate name cannot exceed 128 characters.
400 AuthenticationFailed Error performing verification.
400 SetDomainCertificate.ParameterError The specified parameters are invalid.
400 Certificate.StatusError The status of the certificate is invalid.
400 DeleteFailed Error deleting the certificate.
400 Certificate.NotFind The certificate does not exist.
400 Certificate.Duplicated The certificate name already exists.
400 Certificate.FormatError The format of the certificate is invalid.
400 Certificate.KeyNull The private key is required.
400 Key.Malformed The specified Key format is invalid.
400 CertStorage.failed Error saving the certificate.
400 CertificateContent.Duplicated The certificate has been uploaded; do not upload again.
400 Certificate.Expired The certificate has expired.
400 InvalidDomain.notOnline The domain is offline. Check the status of the domain and try again later.
400 Decode.Error Error decoding the SSLPub or SSLPri certificate.
400 sslPub.Error Error encoding SSLPub.
400 sslPri.Error Error encoding SSLPri.
400 DomainInSafeMode The domain is in safe mode. To request permission, contact Customer Service.
400 CreateCertificateFailed Create certificate failed,please try again.
400 Abs.CertRegion.ValueNotSupported CertRegion is not supported.
400 CertNameAlreadyExists The CertName already exists.
400 InvalidDomain.Offline The domain provided is offline.
400 DomainOwnerVerifyFail Owner verification of the root domain failed. 網域名稱驗證失敗。
403 DomainInProtectedMode The domain is in protection mode. To request permission, contact Customer Service.
404 CertName.MissingParameter You must specify CertName.

訪問錯誤中心查看更多錯誤碼。

變更歷史

更多資訊,參考變更詳情