Deletes a resource reference from a workspace. This operation does not delete the underlying resource.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
paiworkspace:DeleteWorkspaceResource |
*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 more information, see ListWorkspaces. |
123 |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ProductType |
string |
No |
This field is deprecated and will be taken offline. Use the ResourceType field instead. |
DLC |
| GroupName |
string |
No |
The name of the resource group. For more information, see ListResources. |
group |
| Option |
string |
No |
The deletion behavior. Valid values:
|
DetachAndDelete |
| ResourceType |
string |
No |
The resource type. Valid values:
|
DLC |
| Labels |
string |
No |
The resource labels, separated by commas. |
system.supported.eas=true |
| ResourceIds |
string |
No |
The IDs of the resources, separated by commas. The resources must belong to the same group specified by GroupName. The GroupName and ResourceIds parameters cannot both be empty. You can specify values for both parameters. |
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 |
A list of affected resource IDs. |
|
|
string |
An 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.