azureDevOpsRepositories
Query Azure DevOps repository objects.
Arguments
| Argument | Type | Description |
|---|---|---|
| first | Int | Returns the first n elements from the list. |
| after | String | Returns the elements in the list that occur after the specified cursor. |
| last | Int | Returns the last n elements from the list. |
| before | String | Returns the elements in the list that occur before the specified cursor. |
| 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
AzureDevOpsRepositoryConnection!
Sample
query AzureDevOpsRepositories($queryType: QueryType!, $ancestorId: String!, $filter: [Filter!]!) {
azureDevOpsRepositories(
queryType: $queryType
ancestorId: $ancestorId
filter: $filter
first: 10
) {
nodes {
authorizedOperations
id
isRelic
name
numWorkloadDescendants
objectType
onDemandSnapshotCount
orgId
orgName
projectId
projectName
rscPendingObjectPauseAssignment
size
slaAssignment
slaPauseStatus
url
}
pageInfo {
hasNextPage
endCursor
}
}
}
{
"data": {
"azureDevOpsRepositories": {
"nodes": [
[
{
"authorizedOperations": [
"ACCESS_CDM_CLUSTER"
],
"id": "00000000-0000-0000-0000-000000000000",
"isRelic": true,
"name": "example-string",
"numWorkloadDescendants": 0,
"objectType": "ACTIVE_DIRECTORY_DOMAIN"
}
]
],
"pageInfo": {
"endCursor": "example-string",
"hasNextPage": true,
"hasPreviousPage": true,
"startCursor": "example-string"
}
}
}
}