ListProtectedResources
Queries the list of protected resources.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
hbr:ListProtectedResources |
list |
*All Resource
|
None | None |
Request syntax
GET HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| NextToken |
string |
No |
The pagination token for the next page. If NextToken is empty, no next page exists. |
aWQj********MCMy |
| MaxResults |
integer |
No |
The maximum number of results to return per query. Valid values: 10 to 100. Default value: 10. |
10 |
| CreatedByProduct |
string |
No |
The product capability to which the resource belongs. Valid values:
|
BASIC |
| SourceType |
string |
No |
The type of backup feature. Valid values:
Valid values:
|
ECS_FILE |
| ResourceId |
string |
No |
The resource ID. The meaning of this parameter varies based on the value of SourceType:
|
i-wz95************7zrd |
| Skip |
integer |
No |
The number of entries to skip for a paged query. If the number of skipped entries exceeds the total number of matched entries, an empty list is returned. The number of skipped entries must be a multiple of MaxResults. |
10 |
| HasSnapshot |
boolean |
No |
Specifies whether backup points exist. |
true |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| Code |
string |
The return code. A value of 200 indicates success. |
200 |
| MaxResults |
integer |
The maximum number of results to return per query. Valid values: 10 to 100. Default value: 10. |
10 |
| Message |
string |
The return message. A value of successful indicates success. If an error occurs, the corresponding error message is returned. |
successful |
| NextToken |
string |
The pagination token for the next page. If NextToken is empty, no next page exists. |
eyJJ************MX0= |
| ProtectedResources |
array<object> |
The list of protected resources. |
|
|
object |
The protected resource. |
||
| BackupPlanCount |
integer |
The number of backup plans. |
1 |
| CreatedByProduct |
string |
The product capability to which the resource belongs. Valid values:
|
BASIC |
| ProtectedDataSize |
integer |
The protected data volume, in bytes. This parameter is supported only for ECS File Backup Essential Edition.
|
107374182400 |
| ProtectedResourceId |
string |
The ID of the protected resource. |
pr-0004************gs61 |
| ResourceId |
string |
The resource ID. The meaning of this parameter varies based on the value of SourceType:
|
i-wz95************7zrd |
| ResourceOwnerId |
integer |
The UID of the user to whom the resource belongs. |
1024********0703 |
| ResourceRegionId |
string |
The ID of the region to which the resource belongs. |
cn-hangzhou |
| SnapshotCount |
integer |
The number of backup snapshots. |
30 |
| SourceType |
string |
The type of backup feature. Valid values:
|
ECS_FILE |
| RequestId |
string |
The request ID. |
EB09****-****-****-****-********6C38 |
| Success |
boolean |
Indicates whether the request is successful.
|
true |
| TotalCount |
integer |
The total number of protected resources. |
3 |
Examples
Success response
JSON format
{
"Code": "200",
"MaxResults": 10,
"Message": "successful",
"NextToken": "eyJJ************MX0=",
"ProtectedResources": [
{
"BackupPlanCount": 1,
"CreatedByProduct": "BASIC",
"ProtectedDataSize": 107374182400,
"ProtectedResourceId": "pr-0004************gs61",
"ResourceId": "i-wz95************7zrd",
"ResourceOwnerId": 0,
"ResourceRegionId": "cn-hangzhou",
"SnapshotCount": 30,
"SourceType": "ECS_FILE"
}
],
"RequestId": "EB09****-****-****-****-********6C38",
"Success": true,
"TotalCount": 3
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.