All Products
Search
Document Center

ApsaraVideo VOD:SetVodDomainSSLCertificate

Last Updated:Jul 21, 2026

Sets whether the certificate feature is enabled for a specified domain name and updates the certificate information.

Operation description

  • This operation currently supports only the China East 2 (Shanghai) region.

  • Maximum calls per user: 30 calls per second.

  • Request method: POST.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

vod:SetVodDomainSSLCertificate

update

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

DomainName

string

Yes

The accelerated domain name for ApsaraVideo VOD.

example.com

CertName

string

No

The certificate name.

cert_name

CertId

integer

No

The certificate ID.

12342707

CertType

string

No

The certificate type. Valid values:

  • upload: an uploaded certificate.

  • cas: a certificate from SSL Certificates Service.

cas

SSLProtocol

string

Yes

Specifies whether to enable the HTTPS certificate. Valid values:

  • on: Enabled.

  • off: Disabled.

off

SSLPub

string

No

The content of the security certificate. If you do not enable the certificate, you do not need to specify this parameter. If you configure a certificate, enter the certificate content.

****

SSLPri

string

No

The content of the private key. If you do not enable the certificate, you do not need to specify this parameter. If you configure a certificate, enter the private key content.

****

CertRegion

string

No

The certificate region. Valid values:

  • ap-southeast-1 (Singapore)

  • cn-hangzhou (Hangzhou)

Default value: cn-hangzhou.

cn-hangzhou

Env

string

No

Specifies whether to distribute the certificate in a canary release environment. Valid values:

  • staging: distributes the certificate in a canary release environment.

If this parameter is not specified or set to any other value, the certificate is formally distributed.

staging

Response elements

Element

Type

Description

Example

object

RequestId

string

The request ID.

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

Examples

Success response

JSON format

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

Error codes

HTTP status code

Error code

Error message

Description

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. Failed to verify domain ownership.
403 DomainInProtectedMode The domain is in protection mode. To request permission, contact Customer Service.
404 CertName.MissingParameter You must specify CertName.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.