Creating a User Group

Last updated: 2020-06-05 19:19:16

    Note:

    This is a legacy API which has been hidden and will no longer be updated. We recommend using the new CAM API 3.0 which is standardized and faster.

    API Description

    This API (CreateGroup) is used to create a user group.

    Request domain name:

    cam.api.qcloud.com

    Input Parameters

    The following request parameter list only provides the API request parameters. Other parameters can be found in Common Request Parameters.

    Parameter Name Type Required Description
    groupName string No User group name
    remark string No User group description

    Output Parameters

    Parameter Name Type Description
    groupId int User group ID

    Example

    Input

    https://cam.api.qcloud.com/v2/index.php
    ?groupName=testgroupname
    &remark=testre123
    &SignatureMethod=HmacSHA256
    &Action=CreateGroup
    &Region=gz
    &SecretId=AKIDWwGVed95Zu693ltdoopjcKrDct20DKky
    &Nonce=38803
    &Timestamp=1512702940
    &RequestClient=SDK_PHP_1.1
    &Signature=p4APCiYw5pHhjVk9Fwjk6U9n2%2FuTTaVGzSehd2G4YZc%3D

    Output

    {
        "code": 0,
        "message": "",
        "codeDesc": "Success",
        "data": {
            "groupId": 28791
        }
    }

    Error Codes

    For more information, see Error Codes.

    Was this page helpful?

    Was this page helpful?

    • Not at all
    • Not very helpful
    • Somewhat helpful
    • Very helpful
    • Extremely helpful
    Send Feedback
    Help