Deleting an Account
Function
This API is used to delete an account.
Authorization Information
Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions.
- If you are using role/policy-based authorization, see Permissions Policies and Supported Actions for details on the required permissions.
- If you are using identity policy-based authorization, no identity policy-based permission required for calling this API.
URI
DELETE /v5/setting/account/accounts
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| enterprise_project_id | No | String | ID of the enterprise project that a server belongs. An enterprise project can be configured only after the enterprise project function is enabled. Enterprise project ID. The value 0 indicates the default enterprise project. To query servers in all enterprise projects, set this parameter to all_granted_eps. If you have only the permission on an enterprise project, you need to transfer the enterprise project ID to query the server in the enterprise project. Otherwise, an error is reported due to insufficient permission. |
Request Parameters
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| X-Security-Token | No | String | Security token (session token) of your temporary security credentials. If a temporary security credential is used, this header is required. |
| X-Auth-Token | Yes | String | User token. It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is the user token. |
| region | No | String | Region ID |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| organization_id | Yes | String | Organization ID. |
| account_id | Yes | String | Account ID. |
| project_id | Yes | String | Tenant project ID. |
Response Parameters
Status code: 200
Request succeeded.
None
Example Requests
Delete the account whose project_id is 94b5266c14ce489fa6549817f032dc61, organization_id is o-jbg8sokerqszi0zdo6vvaulwdsenonxz, and account_id is 6a321faa6e6c4a18b5bf19dd954377b5.
DELETE https://{endpoint}/v5/setting/account/accounts?enterprise_project_id=all_granted_eps
{
"account_id" : "6a321faa6e6c4a18b5bf19dd954377b5",
"organization_id" : "o-jbg8sokerqszi0zdo6vvaulwdsenonxz",
"project_id" : "2349ba469daf4b7daf268bb0261d18b0"
} Example Responses
None
Status Codes
| Status Code | Description |
|---|---|
| 200 | Request succeeded. |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot