Get All Azure Management Group

POST /connectors/v1.0/org/azure/management-groups/

API to fetch all the Azure management groups for the provided customer accounts.

Input ParameterInput Parameter

Parameter

Mandatory/Optional

Data Type

Description

tenantId

Mandatory

String

The Tenant ID of the Azure account of the tenant.

applicationId

Mandatory

String

Unique identifier of the application you create on Azure portal.

pageSize

Optional

Integer

The number of records per page to be included in the response.

pageNumber

Optional

Integer

The page to be returned.

Sample: Get a Management GroupSample: Get a Management Group

API request

curl --x "POST" --location 'https://<QualysGatewayURL>/connectors/v1.0/org/azure/management-groups/
      
--header 'Authorization: Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxx' \
      
--header 'Content-Type: application/json' \
      

Request POST data

 {
    "tenantId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
    "applicationId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",   
}

Response

      {
      
    "currentPage": 0,
      
    "currentPageSize": 6,
      
    "totalPages": 1,
      
    "numberOfElements": 6,
      
    "content": [
      
        "Test",
      
        "testing2",
      
        "testing3",
      
        "testing4",
      
        "testing5",
      
        "testing6"
      
    ],
      
    "hasContent": true,
      
    "hasNext": false,
      
    "hasPrevious": false,
      
    "first": true,
      
    "last": true
      
}