Starting Policy Scan for Specified Resources
Function
This API is used to immediately start a scan of the policies applied to the specified resource.
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:scan |
Write |
analyzer * |
g:ResourceTag/<tag-key> |
- |
- |
URI
POST /v5/analyzers/{analyzer_id}/scan
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
analyzer_id |
Yes |
String |
Unique identifier of an analyzer Minimum: 1 Maximum: 36 |
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
resource_id |
No |
String |
Unique identifier of a resource Minimum: 1 Maximum: 36 |
|
resource_owner_account |
Yes |
String |
ID of the account that owns resources. |
|
resource_project_id |
No |
String |
Identifier of the project that the resource belongs to. Maximum: 36 |
|
resource_urn |
Yes |
String |
Unique identifier of a resource. |
|
finding_type |
No |
String |
Finding type.
|
Response Parameters
Status code: 200
OK
None
Example Requests
Immediately starting a scan of the policies applied to the specified resource
POST https://{hostname}/v5/analyzers/{analyzer_id}/scan
{
"resource_owner_account" : "{analyzer_id}",
"resource_urn" : "iam::{domain_id}:agency:{agency_name}",
"resource_id" : "{agency_id}"
}
Example Responses
None
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
OK |
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