全部产品
Search
文档中心

ApsaraVideo VOD:SetVodDomainCertificate

更新时间:Dec 15, 2025

Mengaktifkan atau menonaktifkan sertifikat untuk sebuah nama domain serta memodifikasi informasi sertifikat tersebut.

Deskripsi operasi

Catatan

Operasi ini hanya tersedia di wilayah China (Shanghai).

Coba sekarang

Coba API ini di OpenAPI Explorer tanpa perlu penandatanganan manual. Panggilan yang berhasil akan secara otomatis menghasilkan contoh kode SDK sesuai dengan parameter Anda. Unduh kode tersebut dengan kredensial bawaan yang aman untuk penggunaan lokal.

Test

RAM authorization

Tabel berikut menjelaskan otorisasi yang diperlukan untuk memanggil API ini. Anda dapat menentukannya dalam kebijakan Resource Access Management (RAM). Kolom pada tabel dijelaskan sebagai berikut:

  • Action: Aksi yang dapat digunakan dalam elemen Action pada pernyataan kebijakan izin RAM untuk memberikan izin guna melakukan operasi tersebut.

  • API: API yang dapat Anda panggil untuk melakukan aksi tersebut.

  • Access level: Tingkat akses yang telah ditentukan untuk setiap API. Nilai yang valid: create, list, get, update, dan delete.

  • Resource type: Jenis resource yang mendukung otorisasi untuk melakukan aksi tersebut. Ini menunjukkan apakah aksi tersebut mendukung izin tingkat resource. Resource yang ditentukan harus kompatibel dengan aksi tersebut. Jika tidak, kebijakan tersebut tidak akan berlaku.

    • Untuk API dengan izin tingkat resource, jenis resource yang diperlukan ditandai dengan tanda bintang (*). Tentukan Nama Sumber Daya Alibaba Cloud (ARN) yang sesuai dalam elemen Resource pada kebijakan.

    • Untuk API tanpa izin tingkat resource, ditampilkan sebagai All Resources. Gunakan tanda bintang (*) dalam elemen Resource pada kebijakan.

  • Condition key: Kunci kondisi yang didefinisikan oleh layanan. Kunci ini memungkinkan kontrol granular, berlaku baik hanya untuk aksi maupun untuk aksi yang terkait dengan resource tertentu. Selain kunci kondisi spesifik layanan, Alibaba Cloud menyediakan serangkaian common condition keys yang berlaku di semua layanan yang didukung RAM.

  • Dependent action: Aksi dependen yang diperlukan untuk menjalankan aksi tersebut. Untuk menyelesaikan aksi tersebut, pengguna RAM atau role RAM harus memiliki izin untuk melakukan semua aksi dependen.

Action

Access level

Resource type

Condition key

Dependent action

vod:SetVodDomainCertificate

create

*All Resource

*

None None

Parameter permintaan

Parameter

Type

Required

Description

Example

DomainName

string

Yes

Nama domain yang diamankan oleh sertifikat. Nama domain harus menggunakan akselerasi HTTPS.

example.com

CertName

string

No

Nama sertifikat.

cert_name

SSLProtocol

string

Yes

Menentukan apakah akan mengaktifkan sertifikat SSL. Nilai default: off. Nilai yang valid:

  • on

  • off

off

SSLPub

string

No

Konten sertifikat. Parameter ini wajib hanya jika Anda mengaktifkan sertifikat SSL.

****

SSLPri

string

No

Kunci privat. Parameter ini wajib hanya jika Anda mengaktifkan sertifikat SSL.

****

Elemen respons

Element

Type

Description

Example

object

RequestId

string

ID permintaan.

04F0F334-1335-436C-****-6C044FE73368

Contoh

Respons sukses

JSONformat

{
  "RequestId": "04F0F334-1335-436C-****-6C044FE73368"
}

Kode kesalahan

HTTP status code

Error code

Error message

Description

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 Certificate.NotPermittedOff Turn off certificate will change domain scheduling, please contact customer service
400 Certificate.SetNotEffect Certificate was successfully set but doesn't take effect for protecting current service. Please contact customer service.
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.NotFind Not find the certificate info.
400 Certificate.Duplicated The certificate name is duplicated. The certificate name already exists.
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!
403 IllegalOperation Illegal domain operate is not permitted.
403 ServiceBusy The specified Domain is configuring, please retry later

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.