Lists information about the versions of the specified managed policy, including the version that is currently set as the policy's default version.
Marker | For pagination, the value of the Marker element in the response that you received to indicate where the next call should start. |
MaxItems | Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true and Marker contains a value to include in the subsequent call that tells the service where to continue from. |
PolicyArn | ARN of the IAM Managed policy to list. |
This call has no restrictions.
No Request Payload
Field | Description | Type | Notes |
ListPolicyVersionsResponse | |||
ListPolicyVersionsResult | |||
PolicyVersions | Get policyVersions |
0-* Elements |
|
Marker | When IsTruncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent pagination request. | String | |
ResponseMetadata | |||
RequestId | String |
POST https://192.168.0.0:4443/iam?Action=ListPolicyVersions&PolicyArn=urn:ecs:iam::ns:policy/FinanceTeamPolicy Accept: application/xml X-SDS-AUTH-TOKEN: <AUTH_TOKEN> x-emc-namespace: <namespace>
HTTP/1.1 200 OK <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns2:ListPolicyVersionsResponse xmlns:ns2="none"> <ResponseMetadata> <RequestId>0af9f5b8:17178fe9282:f50f:7b</RequestId> </ResponseMetadata> <ListPolicyVersionsResult> <IsTruncated>false</IsTruncated> <PolicyVersions> <member> <CreateDate>2020-04-15T21:43:59Z</CreateDate> <Document>%7B%22Version%22%3A%222012-10-17%22%2C%22Statement%22%3A%5B%7B%22Action%22%3A%5B%22s3%3AListBucket%22%2C%22s3%3AListAllMyBuckets%22%2C%22s3%3AGetObject%22%2C%22s3%3AGetObjectAcl%22%2C%22s3%3AGetObjectTagging%22%2C%22s3%3AGetObjectVersion%22%2C%22s3%3AGetObjectVersionAcl%22%2C%22s3%3AGetObjectVersionTagging%22%2C%22s3%3AListMultipartUploadParts%22%2C%22s3%3AListBucketVersions%22%2C%22s3%3AGetBucketVersioning%22%2C%22s3%3AGetBucketAcl%22%2C%22s3%3AGetBucketCORS%22%2C%22s3%3AGetLifecycleConfiguration%22%2C%22s3%3AListBucketMultipartUploads%22%2C%22s3%3AGetBucketPolicy%22%2C%22s3%3ACreateBucket%22%2C%22s3%3ADeleteBucket%22%2C%22s3%3APutBucketCORS%22%2C%22s3%3APutBucketVersioning%22%2C%22s3%3APutLifecycleConfiguration%22%2C%22s3%3APutObject%22%2C%22s3%3ADeleteObject%22%2C%22s3%3ADeleteObjectVersion%22%2C%22s3%3AAbortMultipartUpload%22%2C%22s3%3APutObjectTagging%22%2C%22s3%3APutObjectVersionTagging%22%2C%22s3%3ADeleteObjectTagging%22%2C%22s3%3ADeleteObjectVersionTagging%22%2C%22s3%3APutBucketAcl%22%2C%22s3%3APutBucketPolicy%22%2C%22s3%3ADeleteBucketPolicy%22%2C%22s3%3APutObjectAcl%22%2C%22s3%3APutObjectVersionAcl%22%5D%2C%22Resource%22%3A%22*%22%2C%22Effect%22%3A%22Allow%22%2C%22Sid%22%3A%22VisualEditor0%22%7D%5D%7D</Document> <IsDefaultVersion>true</IsDefaultVersion> <VersionId>v1</VersionId> </member> </PolicyVersions> </ListPolicyVersionsResult> </ns2:ListPolicyVersionsResponse>