All Products
Search
Document Center

CloudSSO:DeleteAccessConfiguration

Last Updated:Jun 14, 2024

Deletes an access configuration.

Operation description

This topic provides an example on how to delete the access configuration whose ID is ac-001j9mcm3k7335bc****.

Prerequisites

The access configuration that you want to delete is de-provisioned from the accounts in your resource directory. For more information, see DeprovisionAccessConfiguration .

Debugging

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

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
cloudsso:DeleteAccessConfigurationWrite
  • AccessConfiguration
    acs:cloudsso:{#regionId}:{#accountId}:directory/{#DirectoryId}/access-configuration/{#AccessConfigurationId}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
AccessConfigurationIdstringYes

The ID of the access configuration.

ac-001j9mcm3k7335bc****
DirectoryIdstringYes

The ID of the directory.

d-00fc2p61****
ForceRemovePermissionPoliciesbooleanNo

Specifies whether to forcibly remove system policies and inline policies. Valid values:

  • true: When you delete the access configuration, the associated system policies and inline policies are forcibly removed.
  • false: When you delete the access configuration, the associated system policies and inline policies are not forcibly removed. This is the default value. If these policies exist in the access configuration, the deletion fails. Before you delete the access configuration, you must remove the system policies and inline policies. For more information, see RemovePermissionPolicyFromAccessConfiguration .
false

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request.

9B13E4EE-3853-5852-9165-597C32AD8FB7

Examples

Sample success responses

JSONformat

{
  "RequestId": "9B13E4EE-3853-5852-9165-597C32AD8FB7"
}

Error codes

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