Skip to content

allResourceGroupsFromAzure

Retrieves a list og all resource groups in the specified account.

Arguments

Argument Type Description
cloudAccountId (required) UUID! The Rubrik ID of the cloud account.
azureSubscriptionNativeId (required) UUID! The Native ID of the subscription.
feature (required) CloudAccountFeature! A cloud account feature of Rubrik Security Cloud.

Returns

[AzureResourceGroup!]!

Sample

query AllResourceGroupsFromAzure($cloudAccountId: UUID!, $azureSubscriptionNativeId: UUID!, $feature: CloudAccountFeature!) {
  allResourceGroupsFromAzure(
    cloudAccountId: $cloudAccountId
    azureSubscriptionNativeId: $azureSubscriptionNativeId
    feature: $feature
  ) {
    name
    nativeId
    region
  }
}
{
  "cloudAccountId": "00000000-0000-0000-0000-000000000000",
  "azureSubscriptionNativeId": "00000000-0000-0000-0000-000000000000",
  "feature": "ALL"
}
{
  "data": {
    "allResourceGroupsFromAzure": [
      {
        "name": "example-string",
        "nativeId": "example-string",
        "region": "AUSTRALIA_CENTRAL",
        "tags": [
          {
            "key": "example-string",
            "value": "example-string"
          }
        ]
      }
    ]
  }
}