ListInstanceResources
Lists the resources configured for an instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
pairec:ListInstanceResources |
list |
*All Resource
|
None | None |
Request syntax
GET /api/v1/instances/{InstanceId}/resources HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID. You can obtain the instance ID by calling the ListInstances operation. |
pairec-cn-test1 |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Category |
string |
No |
The category of the resource. Valid values:
|
DataManagement |
| Group |
string |
No |
The group of the resource. If
If
If
|
storage |
| Type |
string |
No |
The type of the resource. If specified, only resources of this type are returned.
|
OSS |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response object. |
||
| RequestId |
string |
The request ID. |
9763624B-5FBB-5E3A-9193-B1ADB554CEAE |
| TotalCount |
integer |
The total number of resources. |
10 |
| Resources |
array<object> |
A list of resource objects. |
|
|
object |
The details of a resource. |
||
| ResourceId |
string |
The resource ID. |
reso-2s416t*** |
| Category |
string |
The category of the resource. Valid values:
|
DataManagement |
| Group |
string |
The group of the resource. If
If
If
|
storage |
| Type |
string |
The type of the resource.
|
OSS |
| Uri |
string |
The resource URI. |
bucket-test-123 |
| Config |
string |
The configuration of the resource. |
{} |
| GmtCreateAt |
string |
The creation time. |
2020-10-13 17:34:52 |
| GmtModifiedAt |
string |
The update time. |
2020-10-13 17:34:52 |
Examples
Success response
JSON format
{
"RequestId": "9763624B-5FBB-5E3A-9193-B1ADB554CEAE",
"TotalCount": 10,
"Resources": [
{
"ResourceId": "reso-2s416t***\n",
"Category": "DataManagement",
"Group": "storage",
"Type": "OSS",
"Uri": "bucket-test-123",
"Config": "{}",
"GmtCreateAt": "2020-10-13 17:34:52\n",
"GmtModifiedAt": "2020-10-13 17:34:52\n"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.