ListPolicies#

Description#

Returns the list of all available IAM policies.

Request Parameters#

  • Owner — The owner of the policy.

    • Type: String

    • Valid values: provider | self

    • Required: No

  • Type — The type of the policy.

    • Type: String

    • Valid values: global | project

    • Required: No

Response Elements#

  • Policies — The list of policies.

    • Type: List of Policy objects

Examples#

Request

https://iam.k2.cloud/?Action=ListPolicies
&Owner=self
&Type=global

Response

<ListPoliciesResponse>
    <ListPoliciesResult>
        <Policies>
            <member>
                <PolicyArn>arn:c2:iam::c2dev:policy/policy-1</PolicyArn>
                <PolicyId>2cec7683-7ecf-470f-b3f1-498a140752da</PolicyId>
                <PolicyName>policy-1</PolicyName>
                <Owner>self</Owner>
                <Type>global</Type>
                <CreateDate>1724418895</CreateDate>
                <UpdateDate>1724419323</UpdateDate>
                <Description>new description</Description>
            </member>
        </Policies>
    </ListPoliciesResult>
    <requestId>1956f0df-1463-4636-a60e-2e5571944492</requestId>
    <ResponseMetadata>
        <RequestId>1956f0df-1463-4636-a60e-2e5571944492</RequestId>
    </ResponseMetadata>
</ListPoliciesResponse>
c2-iam ListPolicies

c2-iam ListPolicies Type global

c2-iam ListPolicies Owner self