CreateInstanceResource
Creates a configuration resource for a specified instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
pairec:CreateInstanceResource |
create |
*All Resource
|
None | None |
Request syntax
POST /api/v1/instances/{InstanceId}/resources HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID. You can obtain this ID by calling the ListInstances operation. |
pairec-cn-test1 |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body parameters. |
|
| Category |
string |
Yes |
The resource category. Valid values:
|
DataManagement |
| Group |
string |
Yes |
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 |
Yes |
The resource type. Valid values:
|
OSS |
| Uri |
string |
Yes |
The resource URI. |
bucket-test-123 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response schema. |
||
| RequestId |
string |
The request ID. |
6CF1E160-3F36-5E73-A170-C75504F05BBC |
| ResourceId |
string |
The resource ID. |
reso-2s416t*** |
Examples
Success response
JSON format
{
"RequestId": "6CF1E160-3F36-5E73-A170-C75504F05BBC",
"ResourceId": "reso-2s416t***"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.