Mengubah sertifikat untuk sumber daya mode cloud native.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-waf:ModifyCloudResourceCert |
none |
*All Resource
|
None | None |
Sintaks permintaan
POST HTTP/1.1
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
ID instans dari instans WAF. Catatan
Anda dapat memanggil operasi DescribeInstance untuk mengkueri ID instans dari instans WAF. |
waf_v2_public_cn-*** |
ResourceProduct
deprecated
|
string |
No |
Tipe layanan cloud. Valid values:
|
clb4 |
ResourceInstanceId
deprecated
|
string |
No |
ID instans layanan cloud. |
lb-bp1*****jqnnqk5uj2p |
Port
deprecated
|
integer |
No |
Port layanan cloud yang terhubung ke WAF. |
443 |
| Certificates |
array<object> |
Yes |
Daftar sertifikat. Catatan
Tentukan semua ID sertifikat, termasuk ID sertifikat default dan semua ID sertifikat ekstensi. Setelah dikirimkan, WAF membandingkan ID sertifikat yang dikirimkan dengan yang sudah ada. Sertifikat yang baru ditambahkan akan dibuat, dan sertifikat yang hilang akan dihapus. Menghapus ID sertifikat dapat memengaruhi layanan terkait. |
|
|
object |
Yes |
Daftar sertifikat. |
||
| CertificateId |
string |
Yes |
ID sertifikat. |
232***-cn-hangzhou |
| AppliedType |
string |
Yes |
Tipe sertifikat untuk protokol HTTPS. Valid values:
|
default |
| RegionId |
string |
Yes |
Wilayah tempat instans WAF berada. Nilai valid:
|
cn-hangzhou |
| CloudResourceId |
string |
No |
ID sumber daya yang terhubung, yang dibuat secara otomatis oleh WAF saat koneksi mode cloud native. Catatan
Anda dapat memanggil operasi CreateCloudResource untuk menghubungkan sumber daya lalu melihat ID sumber daya di Tampilan respons. |
lb-bp*********k5uj2p-443-clb7 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Skema Respons. |
||
| RequestId |
string |
ID permintaan. |
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. | Sertifikat tidak ada di Layanan Sertifikat SSL. Tipe sertifikat: %s, ID sertifikat: %s. |
| 400 | Waf.Pullin.OnlyBeOneDefaultCert | There can be only one default certificate. | Hanya satu sertifikat default yang diizinkan. |
| 400 | Waf.Pullin.MaxCertCountLimit | The number of selected certificate IDs exceeds the maximum number in the system. | Jumlah ID sertifikat yang dipilih melebihi batas maksimum yang diizinkan oleh sistem. |
| 400 | Waf.Pullin.CertExpired | Certificate expired, certificate ID:%s . | Sertifikat telah kedaluwarsa. ID Sertifikat: %s. |
| 400 | Waf.Pullin.CloudResourceInvalid | CloudResourceId parameter is illegal. | Parameter CloudResourceId tidak valid. |
| 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. | ID Sumber daya untuk koneksi mode cloud native ke WAF kosong, atau salah satu parameter berikut kosong: nama layanan cloud, port, atau instans layanan cloud. |
| 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. | Layanan cloud, port, atau instans yang terkait dengan ID Sumber daya untuk koneksi mode cloud native ke WAF tidak cocok dengan nilai parameter yang ditentukan. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.