Skip to content

azureNativeSubscriptions

Retrieves a paginated list of all Azure Native Subscriptions.

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.
sortBy AzureNativeSubscriptionSortFields Sort fields for list of Azure subscriptions.
sortOrder SortOrder Sorts the order of results.
subscriptionFilters AzureNativeSubscriptionFilters
authorizedOperationFilter Operation Filters the results to objects on which the caller is authorized to perform the specified operation. Only privilege operations are accepted.
workloadHierarchy WorkloadLevelHierarchy Workload hierarchy.
azureNativeProtectionFeature AzureNativeProtectionFeature The type of Azure Native feature that RSC supports.
azureNativeProtectionFeatures [AzureNativeProtectionFeature!] The type of Azure Native features that RSC supports.

Returns

AzureNativeSubscriptionConnection!

Sample

query {
  azureNativeSubscriptions(first: 10) {
    nodes {
      accountConnectionId
      authorizedOperations
      azureCloudType
      azureCosmosNosqlContainerCount
      azurePostgresFlexibleServerCount
      azureSqlDatabaseDbCount
      azureSqlManagedInstanceDbCount
      azureStorageAccountCount
      azureSubscriptionNativeId
      azureSubscriptionStatus
      cloudSlabDns
      disksCount
      id
      isProtectable
      lastRefreshedAt
      legallyHeldSnapshotCount
      name
      numWorkloadDescendants
      objectType
      rscPendingObjectPauseAssignment
      slaAssignment
      slaPauseStatus
      tenantId
      vmsCount
    }
    pageInfo {
      hasNextPage
      endCursor
    }
  }
}
{}
{
  "data": {
    "azureNativeSubscriptions": {
      "nodes": [
        [
          {
            "accountConnectionId": "example-string",
            "authorizedOperations": [
              "MANAGE_DATA_SOURCE"
            ],
            "azureCloudType": "AZURECHINACLOUD",
            "azureCosmosNosqlContainerCount": 0,
            "azurePostgresFlexibleServerCount": 0,
            "azureSqlDatabaseDbCount": 0
          }
        ]
      ],
      "pageInfo": {
        "endCursor": "example-string",
        "hasNextPage": true,
        "hasPreviousPage": true,
        "startCursor": "example-string"
      }
    }
  }
}