{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/palo-alto-networks/main/json-schema/palo-alto-networks-account-group-model-schema.json",
  "title": "AccountGroupModel",
  "description": "Model for Account Group",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/palo-alto-networks-account-groups-api-openapi.yml#/components/schemas/AccountGroupModel",
  "properties": {
    "accountIds": {
      "description": "Cloud Account IDs",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "autoCreated": {
      "description": "Boolean read-only attribute to indicate if account group is automatically created",
      "readOnly": true,
      "type": "boolean"
    },
    "cloudAccountCount": {
      "description": "Number of cloud accounts associated with this account group",
      "format": "int32",
      "readOnly": true,
      "type": "integer"
    },
    "cloudAccountInfos": {
      "description": "Cloud account details of account associated with this account group",
      "items": {
        "$ref": "#/$defs/CloudAccountInfo"
      },
      "readOnly": true,
      "type": "array"
    },
    "description": {
      "description": "Description",
      "type": "string"
    },
    "id": {
      "description": "Account Group ID",
      "readOnly": true,
      "type": "string"
    },
    "lastModifiedBy": {
      "description": "Last Modified By",
      "readOnly": true,
      "type": "string"
    },
    "lastModifiedTs": {
      "description": "Last Modified Time",
      "format": "int64",
      "readOnly": true,
      "type": "integer"
    },
    "name": {
      "description": "Name",
      "type": "string"
    }
  },
  "required": [
    "accountIds",
    "name"
  ],
  "type": "object",
  "$defs": {
    "CloudAccountInfo": {
      "description": "Cloud account info linked to an account group",
      "properties": {
        "accountId": {
          "description": "Account ID",
          "type": "string"
        },
        "cloudType": {
          "description": "Cloud Type",
          "enum": [
            "ALL",
            "AWS",
            "AZURE",
            "GCP",
            "ALIBABA_CLOUD",
            "OCI",
            "OTHER"
          ],
          "type": "string"
        },
        "lastModifiedBy": {
          "description": "Last Modified By",
          "type": "string"
        }
      },
      "type": "object"
    }
  }
}