DeleteWorkspaceResource
Deletes references to resources from a workspace without deleting the underlying resources.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
paiworkspace:DeleteWorkspaceResource |
delete |
*All Resource
|
None | None |
Request syntax
DELETE /api/v1/workspaces/{WorkspaceId}/resources HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| WorkspaceId |
string |
Yes |
The workspace ID. For information about how to obtain the workspace ID, see ListWorkspaces. |
123 |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ProductType |
string |
No |
[Deprecated] This field is deprecated and will be retired. Use the ResourceType field. |
DLC |
| GroupName |
string |
No |
The name of the resource group. To obtain the name of the resource group, see ListResources. |
group |
| Option |
string |
No |
The deletion behavior. Valid values:
|
DetachAndDelete |
| ResourceType |
string |
No |
The list of resource types. Valid values:
|
DLC |
| Labels |
string |
No |
The list of tags, separated by commas. |
system.supported.eas=true |
| ResourceIds |
string |
No |
The IDs of the resources, separated by commas. The GroupName of these resource IDs must be the same. GroupName and ResourceIds cannot be empty at the same time, but both can be specified. |
Resource-dks******jkf,Resource-adf******dss |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response struct. |
||
| RequestId |
string |
The request ID. |
5A14FA81-DD4E-******-6343FE44B941 |
| ResourceIds |
array |
The list of affected resource IDs. |
|
|
string |
The affected resource ID. |
Resource-dks******jkf |
Examples
Success response
JSON format
{
"RequestId": "5A14FA81-DD4E-******-6343FE44B941",
"ResourceIds": [
"Resource-dks******jkf"
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.