All cloud services available for GraphQL Cost Reallocation
search cancel

All cloud services available for GraphQL Cost Reallocation

book

Article ID: 395544

calendar_today

Updated On:

Products

CloudHealth

Issue/Introduction

List details of all services available for all clouds using API

Resolution

GraphQL query (cloud set to AWS):

query {
  cloudServices(
        cloud: AWS,
        filterRules: [
            {
                field: "isDirect",
                filterType: EQ,
                filterValues: ["true"]
            }
        ]
    ) {
    edges {
      node {
        id
        name
        parent
        cloud
        isDirect
      }
    }
    pageInfo {
      hasNextPage
      hasPreviousPage
      endCursor
      startCursor
    }
  }
}


Document for reference: https://help.cloudhealthtech.com/graphql-api/#metadata-api-cloud-services