Disables a resource directory. This operation is irreversible. Proceed with caution.
Operation description
Before you disable a resource directory, make sure that the following requirements are met:
-
All cloud account type members are removed from the resource directory. To remove a cloud account type member, call the RemoveCloudAccount operation.
-
All folders except the Root folder are deleted from the resource directory. To delete a folder, call the DeleteFolder operation.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The returned result. |
||
| 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. | |
| 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. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.