GetInstanceResource
Retrieves the details of a specified resource in a specified instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
pairec:GetInstanceResource |
none |
*All Resource
|
None | None |
Request syntax
GET /api/v1/instances/{InstanceId}/resources/{ResourceId} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The ID of the instance. You can call the ListInstances operation to obtain the instance ID. |
pairec-cn-test1 |
| ResourceId |
string |
Yes |
The ID of the resource. |
reso-2s416t*** |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The ID of the request. |
D75C43DC-3D3A-5CC8-9AAC-8C77306C433B |
| ResourceId |
string |
The ID of the resource. |
reso-2s416t*** |
| Category |
string |
The resource category. Valid values:
|
DataManagement |
| Group |
string |
The resource group. If the resource category is DataManagement, valid values are:
If the resource category is Engine, valid values are:
If the resource category is Monitor, valid values are:
|
storage |
| Type |
string |
The resource type. Valid values:
|
OSS |
| Uri |
string |
The resource URI. |
bucket-test-123 |
| Config |
string |
The configuration information of the resource. |
{} |
| GmtCreateTime |
string |
The creation time. The time is in the YYYY-MM-DD HH:mm:ss format. |
2020-10-13 17:34:52 |
| GmtModifiedTime |
string |
The update time. The time is in the YYYY-MM-DD HH:mm:ss format. |
2020-10-13 17:34:52 |
Examples
Success response
JSON format
{
"RequestId": "D75C43DC-3D3A-5CC8-9AAC-8C77306C433B",
"ResourceId": "reso-2s416t***",
"Category": "DataManagement",
"Group": "storage",
"Type": "OSS",
"Uri": "bucket-test-123",
"Config": "{}",
"GmtCreateTime": "2020-10-13 17:34:52",
"GmtModifiedTime": "2020-10-13 17:34:52"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.