Calls this operation to create resources.
Operation description
You can go to OpenAPI Explorer to view the documentation and try out Cloud Control API.
Debugging
Authorization information
Request syntax
POST /api/v1/providers/{provider}/products/{product}/resources/* HTTP/1.1
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| requestPath | string | Yes | The request path. Specify this parameter in the following 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 code of the service. resourceType: the type of resources. If 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 |
| regionId | string | No | The region ID. This parameter is required if a cloud service is a regionalized. | cn-beijing |
| clientToken | string | No | The client token that is used to ensure the idempotence of the request. If a cloud service supports idempotence, the parameter takes effect. | 1e810dfe1468721d0664a49b9d9f74f4 |
| body | object | No | The request body. The property of the resource, which is specified in JSON format. | { "AccountName": "cctest", "AccountPassword": "Aa1234****" } |
Response parameters
Examples
Sample success responses
JSONformat
{
"requestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3****\n",
"resourceId": "cctest",
"resourcePath": "Instance/r-8vbf5abe31c9c4d4/Account/cctest",
"taskId": "task-433aead756057fff8189a7ce5****\n"
}Error codes
For a list of error codes, visit the Service error codes.
Change history
| Change time | Summary of changes | Operation |
|---|
