Mengubah kebijakan perlindungan.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
bdrc:UpdateProtectionPolicy |
update |
*All Resource
|
None | None |
Sintaks permintaan
PATCH /api/v1/protection-policies/{ProtectionPolicyId} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ProtectionPolicyId |
string |
Yes |
ID kebijakan perlindungan. |
p-123***7890 |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| ClientToken |
string |
No |
Token klien yang digunakan untuk memastikan idempotensi permintaan. Anda dapat menggunakan Klien untuk menghasilkan token, tetapi Anda harus memastikan token tersebut unik di antara permintaan yang berbeda. Token hanya boleh berisi karakter ASCII. Jika Anda tidak menentukan parameter ini, sistem secara otomatis menggunakan ID permintaan sebagai token klien. ID permintaan dapat berbeda untuk setiap permintaan. |
a1b2c3d4-****-****-****-a1b2c3d4f5e6 |
| ProtectionPolicyName |
string |
No |
Nama kebijakan perlindungan. |
My***Policy |
| BoundResourceCategoryIds |
array |
No |
Daftar ID kategori Sumber daya terkait. |
|
|
string |
No |
The associated resource category ID. |
rc-123***7890 |
|
| SubProtectionPolicies |
array<object> |
No |
Daftar sub-kebijakan perlindungan yang diaktifkan. |
|
|
object |
No |
The sub-protection policy. |
||
| SubProtectionPolicyType |
string |
No |
The sub-protection policy type. |
ECS_AUTO_SNAPSHOT_POLICY |
| Config |
string |
No |
The sub-protection policy configuration. |
{\"autoSnapshotPolicyId\":\"sp-123***7890\"} |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The unique ID of the request. |
86DEBAC9-AB6A-59AB-9E5C-A540E579ECC9 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "86DEBAC9-AB6A-59AB-9E5C-A540E579ECC9"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.