All Products
Search
Document Center

Cloud Control API:CreateResource

Last Updated:Aug 28, 2026

Creates a resource.

Operation description

Visit OpenAPI Explorer to view resource documentation and try Cloud Control API.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

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.