CreateGroup#

Description#

Creates a new IAM group.

Request Parameters#

  • GroupName — The name of the group.

    • Type: String

    • Required: Yes

  • Type — The group type.

    • Type: String

    • Required: Yes

Response Elements#

  • Group — New group details.

Examples#

Request

https://iam.k2.cloud/?Action=CreateGroup
&GroupName=group-1
&Type=global

Response

<CreateGroupResponse>
    <CreateGroupResult>
        <Group>
            <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>
        </Group>
    </CreateGroupResult>
    <requestId>b11cd05e-1450-4c45-8288-7d7fcb05cb83</requestId>
    <ResponseMetadata>
        <RequestId>b11cd05e-1450-4c45-8288-7d7fcb05cb83</RequestId>
    </ResponseMetadata>
</CreateGroupResponse>
c2-iam CreateGroup GroupName group-2 Type project