Disables the resource directory. This operation is irreversible. Proceed with caution.
Operation description
Before disabling the resource directory, ensure that the following operations are completed:
All members of the cloud account type have been removed from the resource directory. For more information, see RemoveCloudAccount.
All folders except the Root folder have been deleted from the resource directory. For more information, see DeleteFolder.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
resourcemanager:DestroyResourceDirectory |
delete |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response. |
||
| RequestId |
string |
The request ID. |
9B34724D-54B0-4A51-B34D-4512372FE1BE |
Examples
Success response
JSON format
{
"RequestId": "9B34724D-54B0-4A51-B34D-4512372FE1BE"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 404 | EntityNotExists.ResourceDirectory | The resource directory for the account is not enabled. We recommend that you first enable the resource directory for the account. | The account is not used to enable a resource directory. Use the account to enable a resource directory first. |
| 409 | DeleteConflict.ResourceDirectory.Account | Failed to delete the resource directory because one or more member accounts exist. We recommend that you first remove these member accounts. | One or more members exist in the resource directory. Remove or delete the members first. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.