ListGroups#

Description#

Returns the list of all available IAM groups.

Request Parameters#

  • Owner — The owner of the group.

    • Type: String

    • Valid values: provider | self

    • Required: No

  • Type — The group type.

    • Type: String

    • Valid values: global | project

    • Required: No

Response Elements#

  • Groups — The list of groups.

    • Type: List of Group objects

Examples#

Request

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

Response

<ListGroupsResponse>
    <ListGroupsResult>
        <Groups>
            <member>
                <GroupArn>arn:c2:iam::c2dev:group/group-1</GroupArn>
                <GroupId>95df37d6-02e6-40f9-8d13-7c521e068c79</GroupId>
                <GroupName>group-1</GroupName>
                <Owner>self</Owner>
                <Type>global</Type>
                <CreateDate>1724423267</CreateDate>
            </member>
        </Groups>
    </ListGroupsResult>
    <requestId>ca94167c-8943-480f-9c3f-191e8bb93d03</requestId>
    <ResponseMetadata>
        <RequestId>ca94167c-8943-480f-9c3f-191e8bb93d03</RequestId>
    </ResponseMetadata>
</ListGroupsResponse>
c2-iam ListGroups

c2-iam ListGroups Type global

c2-iam ListGroups Owner self