Creates a resource.
Operation description
Visit OpenAPI Explorer to view resource documentation and try Cloud Control API.
Try it now
Test
RAM authorization
Request syntax
POST /api/v1/providers/{provider}/products/{product}/resources/* HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| requestPath |
string |
No |
The request path. Format: /api/v1/providers/{provider}/products/{product}/resources/{resourceType} Variables in the request path: provider: the cloud service provider. Only Aliyun is supported. product: the service code. resourceType: the resource type. If a parent resource is specified, the format is {parent resource type code}/{parent resource ID}/{resource type code}. |
/api/v1/providers/Aliyun/products/Redis/resources/DBInstance/r-8vbf5abe31cxxxxx/Account |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| regionId |
string |
No |
The region ID. Required if the cloud service is regionalized. |
cn-beijing |
| clientToken |
string |
No |
The client token for ensuring request idempotence. Takes effect only if the cloud service supports idempotence. |
1e810dfe1468721d0664a49b9d9f74f4 |
| body |
object |
No |
The request body. Resource properties in JSON format. |
{ "AccountName": "cctest", "AccountPassword": "Aa1234****" } |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| requestId |
string |
The request ID. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3**** |
| resourceId |
string |
The ID of the resource. |
cctest |
| resourcePath |
string |
The resource path, a relative resource ID that contains the complete resource location (parent resource/child resource). |
Instance/r-8vbf5abe31c9c4d4/Account/cctest |
| taskId |
string |
The asynchronous task ID. Returned only for asynchronous operations, with HTTP status code 202. |
task-433aead756057fff8189a7ce5**** |
Examples
Success response
JSON format
{
"requestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3****\n",
"resourceId": "cctest",
"resourcePath": "Instance/r-8vbf5abe31c9c4d4/Account/cctest",
"taskId": "task-433aead756057fff8189a7ce5****\n"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.