全部產品
Search
文件中心

ApsaraVideo Live:SetLiveDomainCertificate

更新時間:Jun 22, 2026

設定某網域下憑證功能是否啟用及修改憑證資訊。

介面說明

先取得直播網域,再呼叫本介面設定網域下憑證是否啟用和修改憑證資訊。

QPS 限制

本介面的單使用者 QPS 限制為 30 次/秒。超過限制,API 呼叫會被限流,這可能會影響您的業務,請合理呼叫。

調試

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

調試

授權資訊

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

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

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

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

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

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

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

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

操作

存取層級

資源類型

條件關鍵字

關聯操作

live:SetLiveDomainCertificate

update

*Domain

acs:cdn:*:{#accountId}:domain/{#DomainName}

請求參數

名稱

類型

必填

描述

樣本值

DomainName

string

指定憑證所屬加速網域。屬於https加速類型。

developer.aliyundoc.com

CertName

string

憑證名稱。

Cert-****

CertType

string

憑證類型。取值:

  • upload:上傳憑證。

  • cas:憑證中心憑證。

  • free:個人測試憑證(免費版)。

枚舉值:

  • cas :

    憑證中心憑證。

  • upload :

    上傳憑證。

  • free :

    個人測試憑證。

free

SSLProtocol

string

HTTPS 憑證是否啟用。取值:

  • on:啟用。如果取值為 on,則必須同時設定請求參數 SSLPub 和 SSLPri。

  • off(預設值):不啟用。

off

SSLPub

string

公鑰內容。

說明

當 SSLProtocol 取值為 on 時,本參數才必填。

****

SSLPri

string

私鑰內容。

說明

當 SSLProtocol 取值為 on 時,本參數才必填。

****

ForceSet

string

忽略憑證名稱重複的校驗,覆蓋原有同名憑證資訊。固定取值:1

1

返回參數

名稱

類型

描述

樣本值

object

RequestId

string

請求 ID。

16A96B9A-F203-4EC5-8E43-CB92E68F4CD8

樣本

正常返回樣本

JSON格式

{
  "RequestId": "16A96B9A-F203-4EC5-8E43-CB92E68F4CD8"
}

錯誤碼

HTTP status code

錯誤碼

錯誤資訊

描述

400 InvalidSSLProtocol.ValueNotSupported The specified value of parameter SSLProtocol is not supported.
400 SSLPub.MissingParameter An input parameter "SSLPub" that is mandatory for processing the request is not supplied.
400 SSLPri.MissingParameter An input parameter "SSLPri" that is mandatory for processing the request is not supplied.
400 InvalidSSLPub The SSLPub you provided is malformed!
400 InvalidSSLPri The SSLPri you provided is malformed!
400 Certificate.MissMatch The SSLPri does not math the specified Certificate!
400 InvalidCertificate.TooLong The Certificate you provided is over the max length!
400 InvalidCertName.TooLong The Certificate name you provided is over the max length 128!
400 IllegalOperationDomain You are not authorized to operate the domain.
400 Certificate.NotPermittedOff Turn off certificate will change domain scheduling, please contact customer service
400 Certificate.SettedNotEffect Certificate was successfully setted but does't take effect for protecting current service, please contact customer service
400 Certificate.NotFind Not find the certificate info.
400 AuthenticationFailed Authentication failed.
400 SetDomainCertificate.ParameterError Parameters have error.
400 InvalidSSLPubOrInvalidSSLPri The SSLPri or SSLPub you provided is malformed!
400 Certificate.StatusError Certificate is not exist or its status is error.
400 DeleteFailed Delete certificate is failed.
400 Certificate.Duplicated The certificate name is duplicated.
400 Certificate.FormatError The certificate format is error.
400 Certificate.KeyNull The private key is not null.
400 Key.Malformed The private key format is error.
400 CertStorage.failed The certificate storage failed.
400 CertificateContent.Duplicated The certificate is already uploaded, please don't upload again.
400 Certificate.Expired The certificate is expired.
400 InvalidDomain.notOnline The domain is not online, please check the domain status and try again later.
400 Decode.Error The certificate sslpub or sslpri decode error.
400 sslPub.Error The SSLPub encoded failed.
400 sslPri.Error The SSLPri encoded failed.
400 DomainInSafeMode This domain is in the safe mode. if you want to do this operation, please contact us!
400 DomainInProtectedMode This domain is in the protected mode. if you want to do this operation, please contact us!
400 FunctionMutex Function is mutex with other function.
400 DomainOffline The domain is not online, please check the domain status and try again later.
403 IllegalOperation Illegal domain operate is not permitted.
404 CertName.MissingParameter The CertName parameter is required.

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

變更歷史

更多資訊,參考變更詳情