Skip to content

allAzureNativeSecurityGroupsByRegionFromAzure

Retrieves all security groups in the specified region and subscription. Security groups enable you to configure network security as a natural extension of an application's structure, allowing you to group virtual machines and define network security policies based on those groups. For more information, see https://docs.microsoft.com/en-us/azure/virtual-network/application-security-groups.

Arguments

Argument Type Description
azureSubscriptionRubrikId (required) UUID! Rubrik ID of the Azure Subscription.
region (required) AzureNativeRegion! The azure region.

Returns

[AzureNativeSecurityGroup!]!

Sample

query AllAzureNativeSecurityGroupsByRegionFromAzure($azureSubscriptionRubrikId: UUID!, $region: AzureNativeRegion!) {
  allAzureNativeSecurityGroupsByRegionFromAzure(
    azureSubscriptionRubrikId: $azureSubscriptionRubrikId
    region: $region
  ) {
    name
    nativeId
    resourceGroupName
  }
}
{
  "azureSubscriptionRubrikId": "00000000-0000-0000-0000-000000000000",
  "region": "AUSTRALIA_CENTRAL"
}
{
  "data": {
    "allAzureNativeSecurityGroupsByRegionFromAzure": [
      {
        "name": "example-string",
        "nativeId": "example-string",
        "resourceGroupName": "example-string"
      }
    ]
  }
}