Creating an Analyzer
Function
This API is used to create an analyzer for your account or organization.
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:create |
Write |
analyzer * |
- |
- |
iam:agencies:createServiceLinkedAgencyV5 |
|
- |
|
URI
POST /v5/analyzers
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
configuration |
No |
AnalyzerConfiguration object |
Analyzer settings. |
|
name |
Yes |
String |
Name of an analyzer |
|
tags |
No |
Array of Tag objects |
List of custom tags. Array Length: 1 - 20 |
|
type |
Yes |
String |
Type of an access analyzer.
|
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
unused_access |
No |
unused_access object |
Settings of an unused access analyzer. |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
unused_access_age |
No |
Integer |
Preset number of days for generating findings. Minimum: 1 Maximum: 180 Default: 90 |
|
unused_analysis_rule |
No |
UnusedAnalysisRule object |
Unused analysis rule. |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
exclusions |
No |
Array of UnusedAnalysisRuleCriteria objects |
Exclusion rule. |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
account_ids |
No |
Array of strings |
Account ID list. Minimum: 1 Maximum: 36 Array Length: 1 - 2000 |
|
resource_tags |
No |
Array of Tag objects |
Resource tag list. Array Length: 1 - 20 |
Response Parameters
Status code: 201
|
Parameter |
Type |
Description |
|---|---|---|
|
id |
String |
Unique identifier of an analyzer |
|
urn |
String |
Unique resource identifier of an analyzer. |
Example Requests
Creating an analyzer for your account or organization
POST https://{hostname}/v5/analyzers
{
"name" : "my-analyzer",
"tags" : [ {
"key" : "key-1",
"value" : "value-1"
} ],
"type" : "account"
}
Example Responses
Status code: 201
Created
{
"id" : "{analyzer_id}",
"urn" : "AccessAnalyzer:{region_id}:{domain_id}:analyzer:{analyzer_id}"
}
Status Codes
|
Status Code |
Description |
|---|---|
|
201 |
Created |
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