{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/linode/json-schema/linode-placement-group-schema.json",
  "title": "PlacementGroup",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/linode-placement-groups-api-openapi.yml#/components/schemas/PlacementGroup",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "description": "The unique ID of this placement group."
    },
    "label": {
      "type": "string",
      "description": "The label for this placement group."
    },
    "region": {
      "type": "string",
      "description": "The region for this placement group."
    },
    "placement_group_type": {
      "type": "string",
      "enum": [
        "anti_affinity:local"
      ],
      "description": "The placement group type."
    },
    "placement_group_policy": {
      "type": "string",
      "enum": [
        "strict",
        "flexible"
      ],
      "description": "The placement group enforcement policy."
    },
    "is_compliant": {
      "type": "boolean",
      "description": "Whether all members satisfy the placement policy."
    },
    "members": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "linode_id": {
            "type": "integer",
            "description": "The Linode ID."
          },
          "is_compliant": {
            "type": "boolean",
            "description": "Whether this member satisfies the policy."
          }
        }
      },
      "description": "The members of this placement group."
    }
  }
}