GetInstanceResource
Retrieves the details of a specific 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 instance ID. You can call the ListInstances operation to obtain the instance ID. |
pairec-cn-test1 |
| ResourceId |
string |
Yes |
The resource ID. |
reso-2s416t*** |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response object. |
||
| RequestId |
string |
The request ID. |
D75C43DC-3D3A-5CC8-9AAC-8C77306C433B |
| ResourceId |
string |
The resource ID. |
reso-2s416t*** |
| Category |
string |
The resource category. Valid values:
|
DataManagement |
| Group |
string |
The resource group. If
If
If
|
storage |
| Type |
string |
The resource type. Valid values:
|
OSS |
| Uri |
string |
The resource URI. |
bucket-test-123 |
| Config |
string |
The resource configuration. |
{} |
| GmtCreateTime |
string |
The creation time. |
2020-10-13 17:34:52 |
| GmtModifiedTime |
string |
The last modification time. |
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.