All Products
Search
Document Center

Resource Management:SetMemberDeletionPermission

Last Updated:Jun 25, 2024

Enables or disables the member deletion feature.

Operation description

Members of the resource account type can be deleted only after the member deletion feature is enabled.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
StatusstringYes

Specifies whether to enable the member deletion feature. Valid values:

  • Enabled: enables the member deletion feature.
  • Disabled: disables the member deletion feature.
Enabled

Response parameters

ParameterTypeDescriptionExample
object

The returned result.

RequestIdstring

The ID of the request.

C55A4CAA-9039-1DDF-91CE-FCC134513D29
MemberDeletionStatusstring

The status of the member deletion feature. Valid values:

  • Enabled: The feature is enabled.
  • Disabled: The feature is disabled.
Enabled
ManagementAccountIdstring

The ID of the management account of the resource directory.

151266687691****
ResourceDirectoryIdstring

The ID of the resource directory.

rd-3G****

Examples

Sample success responses

JSONformat

{
  "RequestId": "C55A4CAA-9039-1DDF-91CE-FCC134513D29",
  "MemberDeletionStatus": "Enabled",
  "ManagementAccountId": "151266687691****",
  "ResourceDirectoryId": "rd-3G****"
}

Error codes

HTTP status codeError codeError messageDescription
400InvalidParameter.StatusThe specified Status is invalid.The specified Status is invalid.
403MemberAccountAccessDeniedThe member account is not allowed to perform the operation.A member cannot be used to perform this operation.
404EntityNotExists.ResourceDirectoryThe 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.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history