Updated on 2025-11-06 GMT+08:00

Deleting the Resource Analysis Configuration

Function

This API is used to delete the resource analysis configuration of a specified analyzer.

Authorization Information

Each account has all the permissions required to call all APIs, but IAM users must be assigned the following required identity policy-based permissions. For details about the required permissions, see Permissions Policies and Supported Actions.

Action

Access Level

Resource Type (*: required)

Condition Key

Alias

Dependencies

AccessAnalyzer:analyzer:deleteResourceConfigurations

Write

analyzer *

g:ResourceTag/<tag-key>

-

-

URI

POST /v5/analyzers/{analyzer_id}/resource-configurations/delete

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

analyzer_id

Yes

String

Unique identifier of an analyzer

Minimum: 1

Maximum: 36

Request Parameters

Table 2 Request body parameters

Parameter

Mandatory

Type

Description

resources

Yes

Array of strings

List of resources to be deleted.

Array Length: 1 - 20

Response Parameters

Status code: 200

OK

Status code: 400

Table 3 Response body parameters

Parameter

Type

Description

error_code

String

Error code.

error_msg

String

Error message.

request_id

String

Request ID.

encoded_authorization_message

String

Authentication information.

Status code: 403

Table 4 Response body parameters

Parameter

Type

Description

error_code

String

Error code.

error_msg

String

Error message.

request_id

String

Request ID.

encoded_authorization_message

String

Authentication information.

Status code: 404

Table 5 Response body parameters

Parameter

Type

Description

error_code

String

Error code.

error_msg

String

Error message.

request_id

String

Request ID.

encoded_authorization_message

String

Authentication information.

Status code: 409

Table 6 Response body parameters

Parameter

Type

Description

error_code

String

Error code.

error_msg

String

Error message.

request_id

String

Request ID.

encoded_authorization_message

String

Authentication information.

Example Requests

Deleting the resource analysis configuration of a specified analyzer

POST https://{hostname}/v5/analyzers/{analyzer_id}/resource-configurations/delete

{
  "resources" : [ "iam::{domain_id}:agency:{agency_name}" ]
}

Example Responses

None

Status Codes

Status Code

Description

200

OK

400

Bad request

403

Forbidden

404

Not found

409

Conflict

Error Codes

See Error Codes.