DeleteResource

Updated at:

Deletes a resource.

Operation description

You can visit the API Explorer to view resource documentation and try out 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

DELETE /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}/{resourceId}

Variables in the request path:

provider: The cloud provider. Currently, only Aliyun is supported.

product: The product code.

resourceType: The resource type. If the resource has a parent resource, the format is {parent resource type code}/parent resource ID/{resource type code}.

resourceId: The resource ID.

Without a parent resource: /api/v1/providers/Aliyun/products/Redis/resources/DBInstance/r-2ze8v41uei31lo**** With a parent resource: /api/v1/providers/Aliyun/products/Redis/resources/DBInstance/r-2ze8v41uei31lo****/Account/user****

Request parameters

Parameter

Type

Required

Description

Example

regionId

string

No

The region ID. This parameter is required for regional cloud services.

cn-beijing

clientToken

string

No

The client token. This parameter takes effect if the cloud service supports idempotence.

1e810dfe1468721d0664a49b9d9f74f4

filter

object

No

The additional resource properties required for the delete operation, represented as a JSON object. The property names and values are determined by the delete operation definition of the target resource type.

{"ClientToken":"550e8400e29b41d4a716446655440000"}

Response elements

Element

Type

Description

Example

object

The response structure.

requestId

string

The request ID.

473469C7-AA6F-4DC5-B3DB-A3DC0DE3****

taskId

string

The ID of the asynchronous task. This field is returned when the operation is asynchronous, and the HTTP status code is 202.

task-433aead756057fff8189a7ce5****

Examples

Success response

JSON format

{
  "requestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3****",
  "taskId": "task-433aead756057fff8189a7ce5****"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.