Get group list
    • PDF

    Get group list

    • PDF

    Article summary

    Available in Classic and VPC

    Get the group list.

    Request

    This section describes the request format. The method and URI are as follows:

    MethodURI
    GET/api/v1/groups

    Request headers

    For information about the headers common to all Sub Account APIs, see Sub Account request headers.

    Request query parameters

    You can use the following query parameters with your request:

    FieldTypeRequiredDescription
    pageIntegerOptionalPage number
    • 0-N (default: 0)
    sizeIntegerOptionalPage output count
    • 1-N (default: 10)

    Request example

    The request example is as follows:

    curl --location --request GET 'https://subaccount.apigw.ntruss.com/api/v1/groups' \
    --header 'x-ncp-apigw-timestamp: {Timestamp}' \
    --header 'x-ncp-iam-access-key: {Access Key}' \
    --header 'x-ncp-apigw-signature-v2: {API Gateway Signature}' \
    --header 'Accept: application/json'
    

    Response

    This section describes the response format.

    Response body

    The response body includes the following data:

    FieldTypeRequiredDescription
    pageInteger-Page number
    totalPagesInteger-Total number of pages
    totalItemsInteger-Number of response results
    hasPreviousBoolean-Whether previous page exists
    • true | false
      • true: It exists
      • false: It doesn't exist
    hasNextBoolean-Whether next page exists
    • true | false
      • true: It exists
      • false: It doesn't exist
    itemsArray-Group list
    isFirstBoolean-Whether it is the first page
    • true | false
      • true: first page
      • false: not a first page
    isLastBoolean-Whether it is the last page
    • true | false
      • true: last page
      • false: not a last page

    items

    The following describes items.

    FieldTypeRequiredDescription
    groupIdString-Group ID
    groupNameString-Group name
    nrnString-NAVER Cloud Platform resource identification value for group

    Response status codes

    For information about the HTTP status codes common to all Sub Account APIs, see Sub Account status codes.

    Response example

    The response example is as follows:

    {
        "page": 0,
        "totalPages": 1,
        "totalItems": 2,
        "hasPrevious": false,
        "hasNext": false,
        "items": [
            {
                "groupId": "50b77400-****-****-****-246e96591a38",
                "groupName": "group001",
                "nrn": "nrn:PUB:IAM::2768364:Group/50b77400-****-****-****-246e96591a38"
            },
            {
                "groupId": "c046b960-****-****-****-246e96591594",
                "groupName": "group",
                "nrn": "nrn:PUB:IAM::2768364:Group/c046b960-****-****-****-246e96591594"
            }
        ],
        "isFirst": true,
        "isLast": true
    }
    

    Was this article helpful?

    What's Next
    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.