Mengubah sertifikat untuk Sumber daya yang dikelola oleh WAF dalam mode cloud native.
Coba sekarang
Test
RAM authorization
Sintaks permintaan
POST HTTP/1.1
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
ID Instans WAF. Catatan
Panggil operasi DescribeInstance untuk mengkueri ID Instans WAF. |
waf_v2_public_cn-*** |
ResourceProduct
deprecated
|
string |
No |
Tipe produk cloud. Nilai valid:
|
clb4 |
ResourceInstanceId
deprecated
|
string |
No |
ID Instans produk cloud. |
lb-bp1*****jqnnqk5uj2p |
Port
deprecated
|
integer |
No |
Port produk cloud yang ditambahkan ke WAF. |
443 |
| Certificates |
array<object> |
Yes |
Daftar sertifikat. Catatan
Masukkan semua ID sertifikat. Ini mencakup sertifikat default dan semua sertifikat tambahan. Setelah Anda mengirimkan permintaan, WAF membandingkan ID yang dikirimkan dengan ID yang sudah ada. WAF menambahkan sertifikat baru dan menghapus sertifikat yang tidak ada dalam daftar Anda. Menghapus sertifikat dapat memengaruhi layanan terkait. |
|
|
object |
Yes |
The list of certificates. |
||
| CertificateId |
string |
Yes |
The ID of the certificate. |
232***-cn-hangzhou |
| AppliedType |
string |
Yes |
The type of the certificate for the HTTPS protocol. Valid values:
|
default |
| RegionId |
string |
Yes |
Wilayah tempat Instans WAF berada. Nilai valid:
|
cn-hangzhou |
| CloudResourceId |
string |
No |
ID Sumber daya yang ditambahkan ke WAF. WAF secara otomatis menghasilkan ID ini saat Anda menambahkan Sumber daya dalam mode cloud native. Catatan
Panggil operasi CreateCloudResource untuk menambahkan Sumber daya. Lalu, Tampilan ID Sumber daya di tanggapan. |
lb-bp*********k5uj2p-443-clb7 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The response schema. |
||
| RequestId |
string |
The ID of the request. |
A47D2DC0-7151-51EF-BFB7-*** |
Contoh
Respons sukses
JSONformat
{
"RequestId": "A47D2DC0-7151-51EF-BFB7-***"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Waf.Pullin.CertNotExist | Certificate does not exist in SSL Certificate Center, certificate type:%s, certificate ID:%s. | Certificate does not exist in SSL Certificate Center, certificate type:%s, certificate ID:%s. |
| 400 | Waf.Pullin.OnlyBeOneDefaultCert | There can be only one default certificate. | There can be only one default certificate. |
| 400 | Waf.Pullin.MaxCertCountLimit | The number of selected certificate IDs exceeds the maximum number in the system. | The number of selected certificate IDs exceeds the maximum number in the system. |
| 400 | Waf.Pullin.CertExpired | Certificate expired, certificate ID:%s . | |
| 400 | Waf.Pullin.CloudResourceInvalid | CloudResourceId parameter is illegal. | CloudResourceId parameter is illegal |
| 400 | Waf.Pullin.CloudProductParamEmpty | The resource Id of the cloud product accessing WAF is null or null values exist in the three input parameters of the cloud product name, port, and cloud product instance. | The resource Id of the cloud product accessing WAF is null or null values exist in the three input parameters of the cloud product name, port, and cloud product instance. |
| 400 | Waf.Pullin.CloudProductParamNotMatch | The value of the cloud product, port, instance, and input parameter to which the resource ID of the cloud product is connected to WAF does not match. | The value of the cloud product, port, instance, and input parameter to which the resource ID of the cloud product is connected to WAF does not match. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.