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 this parameter is empty, no more pages are available. |
aWQj********MCMy |
| MaxResults |
integer |
No |
The number of results 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 backup feature type. Valid values:
Valid values:
|
ECS_FILE |
| ResourceId |
string |
No |
The resource ID.
|
i-wz95************7zrd |
| Skip |
integer |
No |
The number of entries to skip for paging. If the number of skipped entries exceeds the total number of conditional entries, an empty list is returned. The number of skipped entries must be a multiple of MaxResults. |
10 |
| HasSnapshot |
boolean |
No |
Specifies whether the resource has backup points. |
true |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
EB09****-****-****-****-********6C38 |
| Code |
string |
The return code. A value of 200 indicates success. |
200 |
| Message |
string |
The returned message. The value "successful" is returned for a successful request. An error message is returned for a failed request. |
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 |
The protected resource. |
||
| SourceType |
string |
The backup feature type. Valid values:
|
ECS_FILE |
| ResourceId |
string |
The resource ID.
|
i-wz95************7zrd |
| ResourceOwnerId |
integer |
The UID of the user who owns the resource. |
1024********0703 |
| CreatedByProduct |
string |
The product capability to which the resource belongs. Valid values:
|
BASIC |
| SnapshotCount |
integer |
The number of backups. |
30 |
| ProtectedResourceId |
string |
The ID of the protected resource. |
pr-0004************gs61 |
| ProtectedDataSize |
integer |
The amount of protected data, in bytes. Currently, only ECS File Backup Essential Edition is supported.
|
107374182400 |
| ResourceRegionId |
string |
The region ID of the resource. |
cn-hangzhou |
| BackupPlanCount |
integer |
The number of backup plans. |
1 |
| MaxResults |
integer |
The number of results per query. Valid values: 10 to 100. Default value: 10. |
10 |
| NextToken |
string |
The pagination token for the next page. If this parameter is empty, no more pages are available. |
eyJJ************MX0= |
Examples
Success response
JSON format
{
"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="
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.