Skip to content

azureDevOpsOrganizations

Query Azure DevOps organization objects.

Arguments

Argument Type Description
first Int Returns the first n elements from the list.
after String An opaque cursor returned from a previous query's endCursor field. Pass this value verbatim to retrieve the next page of results.
last Int Returns the last n elements from the list.
before String An opaque cursor returned from a previous query's startCursor field. Pass this value verbatim to retrieve the previous page of results.
queryType (required) QueryType! The type of query to perform (CHILDREN or DESCENDANTS).
ancestorId (required) String! Ancestor object/root ID.
filter (required) [Filter!]! The hierarchy object filter.
sortBy HierarchySortByField Sort hierarchy objects according to the hierarchy field.
sortOrder SortOrder Sorts the order of results.
workloadHierarchy WorkloadLevelHierarchy Each enumeration value represents the hierarchy of a specific workload type for RBAC and SLA Domain assignments. A value of 'None' represents the hierarchy of all workload types.

Returns

AzureDevOpsOrganizationConnection!

Sample

query AzureDevOpsOrganizations($queryType: QueryType!, $ancestorId: String!, $filter: [Filter!]!) {
  azureDevOpsOrganizations(
    queryType: $queryType
    ancestorId: $ancestorId
    filter: $filter
    first: 10
  ) {
    nodes {
      authenticationMechanism
      authorizedOperations
      backupLocationId
      backupLocationName
      backupRegion
      clientId
      connectionStatus
      devOpsOrgType
      exocomputeHostName
      exocomputeId
      id
      isRelic
      lastRefreshTime
      legallyHeldSnapshotCount
      name
      nativeId
      numWorkloadDescendants
      objectType
      projectCount
      repoCount
      repoHostType
      rscPendingObjectPauseAssignment
      slaAssignment
      slaPauseStatus
      tenantId
      tenantUuid
    }
    pageInfo {
      hasNextPage
      endCursor
    }
  }
}
{
  "queryType": "CHILDREN",
  "ancestorId": "example-string",
  "filter": [
    {}
  ]
}
{
  "data": {
    "azureDevOpsOrganizations": {
      "nodes": [
        [
          {
            "authenticationMechanism": "DEVOPS_AUTH_MECHANISM_NON_OAUTH",
            "authorizedOperations": [
              "ACCESS_CDM_CLUSTER"
            ],
            "backupLocationId": "example-string",
            "backupLocationName": "example-string",
            "backupRegion": "example-string",
            "clientId": "example-string"
          }
        ]
      ],
      "pageInfo": {
        "endCursor": "example-string",
        "hasNextPage": true,
        "hasPreviousPage": true,
        "startCursor": "example-string"
      }
    }
  }
}