CreateAnalyzer

Updated at:

Creates an Analyzer to perform over-privilege or external access analysis on an account or resource directory.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request parameters

Parameter

Type

Required

Description

Example

AnalyzerName

string

Yes

The name of the analyzer.

MyAnalyzer

Type

string

No

The type of the Analyzer. Valid values:

  • ExternalAccess: external access.

  • OverPrivileged: over-privilege.

ExternalAccess

Scope

string

No

The scan scope of the Analyzer. Valid values:

  • Account: account.

  • ResourceDirectory: resource directory.

Account

Configuration

object

No

The configuration information of the Analyzer instance.

OverPrivilegedConfiguration

object

No

The configuration information for the OverPrivileged type.

UnusedAccessAge

integer

No

The unused access period. Default value: 90. Valid values: 1 to 365. Unit: days.

90

Response elements

Element

Type

Description

Example

object

Schema of Response

AnalyzerArn

string

The ARN of the Analyzer.

acs:accessanalyzer:cn-hangzhou:123456789012:analyzer/my-analyzer

RequestId

string

The request ID.

D1936189-2F04-56BE-868F-C06A0417E9EB

Examples

Success response

JSON format

{
  "AnalyzerArn": "acs:accessanalyzer:cn-hangzhou:123456789012:analyzer/my-analyzer",
  "RequestId": "D1936189-2F04-56BE-868F-C06A0417E9EB"
}

Error codes

HTTP status code

Error code

Error message

Description

400 IdempotentParameterMismatch The request uses the same client token as a previous, but non-identical request. Do not reuse a client token with different requests, unless the requests are identical.
400 EntityAlreadyExist.%s The %s already exists. The %s already exists.
400 ExceedLimit.%s The maximum number of %s is exceeded. The maximum number of %s is exceeded.
500 InternalError The request processing has failed due to some unknown error. An internal error occurred.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.