Cloud Enterprise Object Storage REST API

Search (SHIFT+S)




List Policies

POST ListPolicies

Lists IAM Managed Policies in user's namespace or x-emc-namespace header if provided. Path prefix is not supported.


Query Parameters

MarkerMarker is obtained from paginated response from the previous query. Use this only if the response indicates it is truncated.
MaxItemsIndicates the maximum number of elements to be returned in the response.
OnlyAttachedA flag to filter the results to only the attached policies.
PathPrefixPath prefix for filtering the results. Optional, default to "/". Only "/" is allowed.
PolicyUsageFilterThe policy usage method to use for filtering the results. Values {PermissionsPolicy, PermissionsBoundary}
PolicyScopeThe scope to use for filtering the results. One of {All, ECS, AWS, Local}

Required Roles

This call has no restrictions.


Request Payload

No Request Payload


Response Body

Field Description Type Notes
ListPoliciesResponse
ListPoliciesResult    
Policies Get policies 0-* Elements
IsTruncated A flag that indicates whether there are more items to return. Boolean
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

Examples

Request
POST https://192.168.0.0::4443/iam?Action=ListPolicies
Accept: appliction/xml
X-SDS-AUTH-TOKEN: <AUTH_TOKEN>
x-emc-namespace: <namespace>
Response
HTTP/1.1 200 OK
Content-Type: application/xml

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns2:ListPoliciesResponse xmlns:ns2="none">
    <ResponseMetadata>
        <RequestId>0af9f5b8:171648dacb1:1b843:0</RequestId>
    </ResponseMetadata>
    <ListPoliciesResult>
        <Policies>
            <member>
                <Arn>urn:ecs:iam::ns:policy/CustomFInancePolicy1</Arn>
                <AttachmentCount>0</AttachmentCount>
                <CreateDate>2020-04-13T20:07:53Z</CreateDate>
                <DefaultVersionId>v3</DefaultVersionId>
                <Description>For the Finance team.</Description>
                <IsAttachable>true</IsAttachable>
                <Path>/</Path>
                <PermissionsBoundaryUsageCount>0</PermissionsBoundaryUsageCount>
                <PolicyId>ANPA2DF3E77DE8703D43</PolicyId>
                <PolicyName>CustomFInancePolicy1</PolicyName>
                <UpdateDate>2020-04-13T20:35:01Z</UpdateDate>
            </member>
            <member>
                <Arn>urn:ecs:iam:::policy/ECSDenyAll</Arn>
                <AttachmentCount>0</AttachmentCount>
                <CreateDate>2020-04-13T18:57:20Z</CreateDate>
                <DefaultVersionId>v1</DefaultVersionId>
                <Description>Deny all access.</Description>
                <IsAttachable>true</IsAttachable>
                <Path>/</Path>
                <PermissionsBoundaryUsageCount>0</PermissionsBoundaryUsageCount>
                <PolicyId>ANPA8CDF8A406EFDD7E7</PolicyId>
                <PolicyName>ECSDenyAll</PolicyName>
                <UpdateDate>2020-04-13T18:57:20Z</UpdateDate>
            </member>
            <member>
                <Arn>urn:ecs:iam:::policy/ECSS3FullAccess</Arn>
                <AttachmentCount>0</AttachmentCount>
                <CreateDate>2020-04-13T18:57:21Z</CreateDate>
                <DefaultVersionId>v1</DefaultVersionId>
                <Description>Provides full access to all buckets.</Description>
                <IsAttachable>true</IsAttachable>
                <Path>/</Path>
                <PermissionsBoundaryUsageCount>0</PermissionsBoundaryUsageCount>
                <PolicyId>ANPA4B7C846859110BF9</PolicyId>
                <PolicyName>ECSS3FullAccess</PolicyName>
                <UpdateDate>2020-04-13T18:57:21Z</UpdateDate>
            </member>
            <member>
                <Arn>urn:ecs:iam:::policy/ECSS3ReadOnlyAccess</Arn>
                <AttachmentCount>0</AttachmentCount>
                <CreateDate>2020-04-13T18:57:20Z</CreateDate>
                <DefaultVersionId>v1</DefaultVersionId>
                <Description>Provides read only access to all buckets.</Description>
                <IsAttachable>true</IsAttachable>
                <Path>/</Path>
                <PermissionsBoundaryUsageCount>0</PermissionsBoundaryUsageCount>
                <PolicyId>ANPAC6E7CC2BE0DF58BA</PolicyId>
                <PolicyName>ECSS3ReadOnlyAccess</PolicyName>
                <UpdateDate>2020-04-13T18:57:20Z</UpdateDate>
            </member>
            <member>
                <Arn>urn:ecs:iam::ns:policy/FinanceTeamPolicy</Arn>
                <AttachmentCount>0</AttachmentCount>
                <CreateDate>2020-04-13T20:22:53Z</CreateDate>
                <DefaultVersionId>v1</DefaultVersionId>
                <Description>Policy_for_the_finaince_team.</Description>
                <IsAttachable>true</IsAttachable>
                <Path>/</Path>
                <PermissionsBoundaryUsageCount>0</PermissionsBoundaryUsageCount>
                <PolicyId>ANPA3A9A5604CF9266D2</PolicyId>
                <PolicyName>FinanceTeamPolicy</PolicyName>
                <UpdateDate>2020-04-13T20:22:53Z</UpdateDate>
            </member>
            <member>
                <Arn>urn:ecs:iam::ns:policy/FinanceTeamPolicy2</Arn>
                <AttachmentCount>0</AttachmentCount>
                <CreateDate>2020-04-13T20:26:34Z</CreateDate>
                <DefaultVersionId>v1</DefaultVersionId>
                <Description>Policy_for_the_finaince_team.</Description>
                <IsAttachable>true</IsAttachable>
                <Path>/</Path>
                <PermissionsBoundaryUsageCount>0</PermissionsBoundaryUsageCount>
                <PolicyId>ANPAF7171284F0D2D45D</PolicyId>
                <PolicyName>FinanceTeamPolicy2</PolicyName>
                <UpdateDate>2020-04-13T20:26:34Z</UpdateDate>
            </member>
            <member>
                <Arn>urn:ecs:iam:::policy/IAMFullAccess</Arn>
                <AttachmentCount>0</AttachmentCount>
                <CreateDate>2020-04-13T18:57:20Z</CreateDate>
                <DefaultVersionId>v1</DefaultVersionId>
                <Description>Provides full access to IAM.</Description>
                <IsAttachable>true</IsAttachable>
                <Path>/</Path>
                <PermissionsBoundaryUsageCount>0</PermissionsBoundaryUsageCount>
                <PolicyId>ANPA7C8D35751A80D39B</PolicyId>
                <PolicyName>IAMFullAccess</PolicyName>
                <UpdateDate>2020-04-13T18:57:20Z</UpdateDate>
            </member>
            <member>
                <Arn>urn:ecs:iam:::policy/IAMReadOnlyAccess</Arn>
                <AttachmentCount>0</AttachmentCount>
                <CreateDate>2020-04-13T18:57:20Z</CreateDate>
                <DefaultVersionId>v1</DefaultVersionId>
                <Description>Provides read only access to IAM.</Description>
                <IsAttachable>true</IsAttachable>
                <Path>/</Path>
                <PermissionsBoundaryUsageCount>0</PermissionsBoundaryUsageCount>
                <PolicyId>ANPA3013E53883B9AB0F</PolicyId>
                <PolicyName>IAMReadOnlyAccess</PolicyName>
                <UpdateDate>2020-04-13T18:57:20Z</UpdateDate>
            </member>
        </Policies>
        <IsTruncated>false</IsTruncated>
        <Marker></Marker>
    </ListPoliciesResult>
</ns2:ListPoliciesResponse>