GraphQL to retrieve Azure Subscription assignments at the Sub-Organization level
search cancel

GraphQL to retrieve Azure Subscription assignments at the Sub-Organization level

book

Article ID: 433392

calendar_today

Updated On:

Products

CloudHealth

Issue/Introduction

Currently, the UI does not support bulk retrieval of subscription assignment details at the sub-organization level. Users are forced to navigate to each sub-org individually to capture this data, a process that is both tedious and time-consuming.

Resolution

Users can use GraphQL to pull subscription assignments in bulk at the sub-org level. This is a much faster alternative to the current manual UI process.

 

Refer: https://help.cloudhealthtech.com/graphql-api/#organizations

 

{ 
  organizations { 
    edges { 
      node { 
         name 
        description 
        parentOrganizationCRN 
        defaultOrganization 
        flexOrg 
        azureSubscriptions { 
          edges { 
            node { 
              id 
              name 
              accountId
              azureId
            } 
          } 
        } 
      } 
    } 
  } 
}