Skip to content

azureNativeResourceGroups

Retrieves a paginated list of all Azure Native Resource Groups.

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.
sortBy AzureNativeCommonResourceGroupSortFields Sort fields for listing Azure resource groups.
sortOrder SortOrder Sorts the order of results.
commonResourceGroupFilters AzureNativeCommonResourceGroupFilters Filters for listing Azure resource groups.
protectedObjectTypes [WorkloadLevelHierarchy!] List of protected object types.
azureNativeProtectionFeatures [AzureNativeProtectionFeature!] The type of Azure Native features that RSC supports.

Returns

AzureNativeResourceGroupConnection!

Sample

query {
  azureNativeResourceGroups(first: 10) {
    nodes {
      authorizedOperations
      azureSqlDatabaseCount
      azureSqlManagedInstanceDbCount
      azureStorageAccountCount
      azureSubscriptionRubrikId
      disksCount
      id
      isProtectable
      name
      numWorkloadDescendants
      objectType
      region
      rscPendingObjectPauseAssignment
      slaAssignment
      slaPauseStatus
      vmsCount
    }
    pageInfo {
      hasNextPage
      endCursor
    }
  }
}
{}
{
  "data": {
    "azureNativeResourceGroups": {
      "nodes": [
        [
          {
            "authorizedOperations": [
              "MANAGE_DATA_SOURCE"
            ],
            "azureSqlDatabaseCount": 0,
            "azureSqlManagedInstanceDbCount": 0,
            "azureStorageAccountCount": 0,
            "azureSubscriptionRubrikId": "00000000-0000-0000-0000-000000000000",
            "disksCount": 0
          }
        ]
      ],
      "pageInfo": {
        "endCursor": "example-string",
        "hasNextPage": true,
        "hasPreviousPage": true,
        "startCursor": "example-string"
      }
    }
  }
}