Mengkueri sumber daya yang dilindungi.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
hbr:ListProtectedResources |
list |
*全部资源
|
None | None |
Sintaks permintaan
GET HTTP/1.1
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| NextToken |
string |
No |
Token untuk mengambil halaman hasil berikutnya. Nilai kosong menunjukkan bahwa semua hasil telah dikembalikan. |
aWQj********MCMy |
| MaxResults |
integer |
No |
Jumlah maksimum entri yang dikembalikan per permintaan. Nilai valid: 10 hingga 100. Nilai default: 10. |
10 |
| CreatedByProduct |
string |
No |
Produk yang digunakan untuk melindungi sumber daya. Nilai valid:
|
BASIC |
| SourceType |
string |
No |
Tipe sumber data. Nilai valid:
|
ECS_FILE |
| ResourceId |
string |
No |
ID sumber daya.
|
i-wz95************7zrd |
| Skip |
integer |
No |
Jumlah entri yang dilewati dalam kueri berhalaman. Jika nilai ini melebihi jumlah total hasil, daftar kosong akan dikembalikan. Nilai harus merupakan kelipatan dari |
10 |
| HasSnapshot |
boolean |
No |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The response body. |
||
| RequestId |
string |
The request ID. |
EB09****-****-****-****-********6C38 |
| Code |
string |
The HTTP status code. A value of |
200 |
| Message |
string |
The response message. Returns |
successful |
| Success |
boolean |
Indicates whether the request was successful.
|
true |
| TotalCount |
integer |
The total number of protected resources. |
3 |
| ProtectedResources |
array<object> |
The list of protected resources. |
|
|
object |
|||
| SourceType |
string |
The type of the data source.
|
ECS_FILE |
| ResourceId |
string |
The resource ID.
|
i-wz95************7zrd |
| ResourceOwnerId |
integer |
The user UID of the resource's owner. |
1024********0703 |
| CreatedByProduct |
string |
The product that protects the resource. Valid value:
|
BASIC |
| SnapshotCount |
integer |
The number of backups. |
30 |
| ProtectedResourceId |
string |
The ID of the protected resource. |
pr-0004************gs61 |
| ProtectedDataSize |
integer |
The size of the protected data, in bytes.
|
107374182400 |
| ResourceRegionId |
string |
cn-hangzhou |
|
| BackupPlanCount |
integer |
1 |
|
| MaxResults |
integer |
The number of entries to return on each page. Valid values: 10 to 100. Default value: 10. |
10 |
| NextToken |
string |
The token to retrieve the next page of results. An empty value for this parameter indicates that all results have been returned. |
eyJJ************MX0= |
Contoh
Respons sukses
JSONformat
{
"RequestId": "EB09****-****-****-****-********6C38",
"Code": "200",
"Message": "successful",
"Success": true,
"TotalCount": 3,
"ProtectedResources": [
{
"SourceType": "ECS_FILE",
"ResourceId": "i-wz95************7zrd",
"ResourceOwnerId": 0,
"CreatedByProduct": "BASIC",
"SnapshotCount": 30,
"ProtectedResourceId": "pr-0004************gs61",
"ProtectedDataSize": 107374182400,
"ResourceRegionId": "cn-hangzhou",
"BackupPlanCount": 1
}
],
"MaxResults": 10,
"NextToken": "eyJJ************MX0="
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.