{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/azure-container-instances/json-schema/azure-container-instances-sandbox-group-schema.json",
  "title": "SandboxGroup",
  "description": "A SandboxGroup tracked resource.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/azure-container-instances-sandboxgroups-api-openapi.yml#/components/schemas/SandboxGroup",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/SandboxGroupProperties",
      "description": "The resource-specific properties for this resource."
    },
    "identity": {
      "$ref": "#/$defs/ManagedServiceIdentity",
      "description": "The managed service identities assigned to this resource."
    }
  },
  "allOf": [
    {
      "$ref": "#/$defs/TrackedResource"
    }
  ],
  "$defs": {
    "ManagedServiceIdentity": {
      "type": "object",
      "description": "Managed service identity (system assigned and/or user assigned identities)",
      "properties": {
        "principalId": {
          "type": "string",
          "format": "uuid",
          "description": "The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.",
          "readOnly": true
        },
        "tenantId": {
          "type": "string",
          "format": "uuid",
          "description": "The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity.",
          "readOnly": true
        },
        "type": {
          "$ref": "#/$defs/ManagedServiceIdentityType"
        },
        "userAssignedIdentities": {
          "$ref": "#/$defs/UserAssignedIdentities"
        }
      },
      "required": [
        "type"
      ]
    },
    "SandboxGroupNetworkProfile": {
      "type": "object",
      "description": "The network profile for a SandboxGroup.",
      "properties": {
        "subnets": {
          "type": "array",
          "description": "The list of subnets associated with the SandboxGroup.",
          "items": {
            "$ref": "#/$defs/SubnetReference"
          }
        }
      }
    },
    "SandboxGroupProperties": {
      "type": "object",
      "description": "Properties of a SandboxGroup.",
      "properties": {
        "provisioningState": {
          "$ref": "#/$defs/SandboxGroupProvisioningState",
          "description": "The status of the last operation.",
          "readOnly": true
        },
        "networkProfile": {
          "$ref": "#/$defs/SandboxGroupNetworkProfile",
          "description": "The network profile of the SandboxGroup.",
          "x-ms-mutability": [
            "read",
            "create"
          ]
        },
        "managementResourceGroupId": {
          "type": "string",
          "format": "arm-id",
          "description": "The ARM resource ID of the management resource group associated with this SandboxGroup.",
          "readOnly": true
        }
      }
    },
    "SandboxGroupProvisioningState": {
      "type": "string",
      "description": "The provisioning state of a SandboxGroup resource.",
      "enum": [
        "Succeeded",
        "Failed",
        "Canceled",
        "Updating",
        "Deleting",
        "Accepted"
      ],
      "x-ms-enum": {
        "name": "SandboxGroupProvisioningState",
        "modelAsString": true,
        "values": [
          {
            "name": "Succeeded",
            "value": "Succeeded",
            "description": "Resource has been created."
          },
          {
            "name": "Failed",
            "value": "Failed",
            "description": "Resource creation failed."
          },
          {
            "name": "Canceled",
            "value": "Canceled",
            "description": "Resource creation was canceled."
          },
          {
            "name": "Updating",
            "value": "Updating",
            "description": "The resource is being updated."
          },
          {
            "name": "Deleting",
            "value": "Deleting",
            "description": "The resource is being deleted."
          },
          {
            "name": "Accepted",
            "value": "Accepted",
            "description": "The resource provisioning request was accepted but not yet started."
          }
        ]
      }
    },
    "SubnetReference": {
      "type": "object",
      "description": "A reference to a subnet resource.",
      "properties": {
        "id": {
          "type": "string",
          "format": "arm-id",
          "description": "The ARM resource ID of the subnet. The caller must have `Microsoft.Network/virtualNetworks/subnets/join/action` permission on this subnet (enforced via a linked access check at create/update time).",
          "x-ms-arm-id-details": {
            "allowedResources": [
              {
                "type": "Microsoft.Network/virtualNetworks/subnets"
              }
            ]
          }
        }
      },
      "required": [
        "id"
      ]
    },
    "TrackedResource": {
      "type": "object",
      "title": "Tracked Resource",
      "description": "The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'",
      "properties": {
        "tags": {
          "type": "object",
          "description": "Resource tags.",
          "additionalProperties": {
            "type": "string"
          },
          "x-ms-mutability": [
            "read",
            "create",
            "update"
          ]
        },
        "location": {
          "type": "string",
          "description": "The geo-location where the resource lives",
          "x-ms-mutability": [
            "read",
            "create"
          ]
        }
      },
      "required": [
        "location"
      ],
      "allOf": [
        {
          "$ref": "#/$defs/Resource"
        }
      ]
    },
    "UserAssignedIdentities": {
      "type": "object",
      "description": "The list of user identities associated with the container group. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.",
      "properties": {
        "principalId": {
          "type": "string",
          "description": "The principal id of user assigned identity.",
          "readOnly": true
        },
        "clientId": {
          "type": "string",
          "description": "The client id of user assigned identity.",
          "readOnly": true
        }
      }
    }
  }
}