Mengambil kebijakan perlindungan.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
bdrc:GetProtectionPolicy |
get |
*All Resource
|
None | None |
Sintaks permintaan
GET /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 |
Tidak ada parameter yang diperlukan.
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Parameter respons. |
||
| Data |
object |
Data yang dikembalikan. |
|
| ProtectionPolicyRegionId |
string |
ID wilayah kebijakan perlindungan. |
cn-hangzhou |
| ProtectionPolicyId |
string |
ID kebijakan perlindungan. |
p-123***7890 |
| ProtectionPolicyName |
string |
Nama kebijakan perlindungan. |
MyProtectionPolicy |
| BoundResourceCategoryIds |
array |
Daftar ID kategori sumber daya yang terkait. |
|
|
string |
ID kategori sumber daya. |
rc-123***7890 |
|
| SubProtectionPolicies |
array<object> |
Daftar sub-kebijakan perlindungan yang dikonfigurasi. |
|
|
object |
Daftar sub-kebijakan perlindungan yang diaktifkan. |
||
| SubProtectionPolicyType |
string |
The sub-protection policy type. |
ECS_AUTO_SNAPSHOT_POLICY |
| Config |
string |
The sub-protection policy configuration. |
{\"autoSnapshotPolicyId\":\"sp-123***7890\"} |
| LatestApplyTime |
integer |
Waktu ketika kebijakan terakhir kali diterapkan. |
1742167218 |
| LatestTaskId |
string |
ID tugas penerapan terbaru. |
t-123***7890 |
| RequestId |
string |
ID unik dari permintaan. |
AE43C4CB-8074-5EBD-9806-8CA6D12800B1 |
Contoh
Respons sukses
JSONformat
{
"Data": {
"ProtectionPolicyRegionId": "cn-hangzhou",
"ProtectionPolicyId": "p-123***7890",
"ProtectionPolicyName": "MyProtectionPolicy",
"BoundResourceCategoryIds": [
"rc-123***7890"
],
"SubProtectionPolicies": [
{
"SubProtectionPolicyType": "ECS_AUTO_SNAPSHOT_POLICY",
"Config": "{\\\"autoSnapshotPolicyId\\\":\\\"sp-123***7890\\\"}"
}
],
"LatestApplyTime": 1742167218,
"LatestTaskId": "t-123***7890"
},
"RequestId": "AE43C4CB-8074-5EBD-9806-8CA6D12800B1"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.