Obtaining Access Preview Details
Function
This API is used to obtain access preview details.
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:getPreview |
Read |
analyzer * |
g:ResourceTag/<tag-key> |
- |
- |
URI
GET /v5/analyzers/{analyzer_id}/access-previews/{access_preview_id}
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
analyzer_id |
Yes |
String |
Unique identifier of an analyzer Minimum: 1 Maximum: 36 |
|
access_preview_id |
Yes |
String |
Unique identifier of an access preview. Minimum: 1 Maximum: 36 |
Request Parameters
None
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
access_preview |
AccessPreview object |
An access preview. |
|
Parameter |
Type |
Description |
|---|---|---|
|
access_preview_id |
String |
Unique identifier of an access preview. |
|
analyzer_id |
String |
Unique identifier of an analyzer |
|
configurations |
Configuration object |
Preview access settings. |
|
created_at |
String |
Time when the access preview is created. |
|
status |
String |
Status of an access preview.
|
|
status_reason |
PreviewStatusReason object |
More details about the status of an access preview. |
|
Parameter |
Type |
Description |
|---|---|---|
|
iam_agency |
IAMAgency object |
IAM trust agency. |
|
obs_bucket |
OBSBucket object |
OBS bucket. |
|
kms_cmk |
KMSCmk object |
KMS key. |
Example Requests
Obtaining access preview details
GET https://{hostname}/v5/analyzers/{analyzer_id}/access-previews/{access_preview_id}
Example Responses
Status code: 200
OK
{
"access_preview" : {
"analyzer_id" : "{analyzer_id}",
"configurations" : {
"iam_agency" : {
"trust_policy" : "{\"Version\":\"5.0\",\"Statement\":[{\"Condition\":{\"StringMatch\":{\"g:PrincipalOrgId\":[\"org_id\"]}},\"Action\":[\"sts:agencies:assume\",\"sts::tagSession\",\"sts::setSourceIdentity\"],\"Effect\":\"Allow\",\"Principal\":{\"IAM\":[\"dd...\"]}}]}"
}
},
"created_at" : "2023-09-07T07:26:23.440Z",
"access_preview_id" : "{access_preview_id}",
"status" : "completed"
}
}
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