CapacityAdviceRequest

A request to provide Assistant Scores. These scores determine VM obtainability and preemption likelihood.

ComputeGoogle CloudInfrastructure-as-a-ServiceInfrastructureVirtual Machines

Properties

Name Type Description
size integer The number of VM instances to request.
distributionPolicy object Policy specifying the distribution of instances across zones within the requested region.
instanceProperties object Instance properties for this request.
instanceFlexibilityPolicy object Policy for instance selectors.
View JSON Schema on GitHub

JSON Schema

google-cloud-compute-engine-capacity-advice-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-cloud-compute-engine/json-schema/google-cloud-compute-engine-capacity-advice-request-schema.json",
  "title": "CapacityAdviceRequest",
  "description": "A request to provide Assistant Scores. These scores determine VM\nobtainability and preemption likelihood.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-cloud-compute-engine-advice-api-openapi.yml#/components/schemas/CapacityAdviceRequest",
  "properties": {
    "size": {
      "type": "integer",
      "description": "The number of VM instances to request.",
      "format": "int32"
    },
    "distributionPolicy": {
      "$ref": "#/$defs/CapacityAdviceRequestDistributionPolicy",
      "description": "Policy specifying the distribution of instances across\nzones within the requested region."
    },
    "instanceProperties": {
      "$ref": "#/$defs/CapacityAdviceRequestInstanceProperties",
      "description": "Instance properties for this request."
    },
    "instanceFlexibilityPolicy": {
      "$ref": "#/$defs/CapacityAdviceRequestInstanceFlexibilityPolicy",
      "description": "Policy for instance selectors."
    }
  },
  "type": "object",
  "$defs": {
    "AcceleratorConfig": {
      "type": "object",
      "properties": {
        "acceleratorCount": {
          "type": "integer",
          "format": "int32",
          "description": "The number of the guest accelerator cards exposed to this instance."
        },
        "acceleratorType": {
          "description": "Full or partial URL of the accelerator type resource to attach to this\ninstance. For example:projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100\nIf you are creating an instance template, specify only the\naccelerator name.\nSee GPUs on Compute Engine\nfor a full list of accelerator types.",
          "type": "string"
        }
      },
      "description": "A specification of the type and number of accelerator cards attached to the\ninstance."
    },
    "CapacityAdviceRequestDistributionPolicy": {
      "properties": {
        "targetShape": {
          "description": "Target distribution shape. You can specify the following values:ANY, ANY_SINGLE_ZONE, or BALANCED.",
          "enum": [
            "ANY",
            "ANY_SINGLE_ZONE",
            "BALANCED",
            "TARGET_SHAPE_UNSPECIFIED"
          ],
          "type": "string"
        },
        "zones": {
          "description": "Zones where Capacity Advisor looks for capacity.",
          "items": {
            "$ref": "#/$defs/CapacityAdviceRequestDistributionPolicyZoneConfiguration"
          },
          "type": "array"
        }
      },
      "description": "Distribution policy.",
      "type": "object"
    },
    "CapacityAdviceRequestDistributionPolicyZoneConfiguration": {
      "type": "object",
      "description": "Zone configuration for the distribution policy.",
      "properties": {
        "zone": {
          "type": "string",
          "description": "The URL of the zone. It can be a\npartial or full URL. For example, the following are valid values: \n   \n   \n     - https://www.googleapis.com/compute/v1/projects/project/zones/zone \n   - projects/project/zones/zone \n   - zones/zone"
        }
      }
    },
    "CapacityAdviceRequestInstanceFlexibilityPolicy": {
      "properties": {
        "instanceSelections": {
          "additionalProperties": {
            "$ref": "#/$defs/CapacityAdviceRequestInstanceFlexibilityPolicyInstanceSelection"
          },
          "type": "object",
          "description": "Named instance selections to configure properties.\nThe key is an arbitrary, unique RFC1035 string that identifies the\ninstance selection."
        }
      },
      "description": "Specification of alternative, flexible instance configurations.",
      "type": "object"
    },
    "CapacityAdviceRequestInstanceFlexibilityPolicyInstanceSelection": {
      "type": "object",
      "properties": {
        "guestAccelerators": {
          "items": {
            "$ref": "#/$defs/AcceleratorConfig"
          },
          "type": "array",
          "description": "Accelerators configuration."
        },
        "disks": {
          "items": {
            "$ref": "#/$defs/CapacityAdviceRequestInstanceFlexibilityPolicyInstanceSelectionAttachedDisk"
          },
          "type": "array",
          "description": "Local SSDs."
        },
        "machineTypes": {
          "description": "Full machine-type names, e.g. \"n1-standard-16\".",
          "items": {
            "type": "string"
          },
          "type": "array"
        }
      },
      "description": "Machine specification."
    },
    "CapacityAdviceRequestInstanceFlexibilityPolicyInstanceSelectionAttachedDisk": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "description": "Specifies the type of the disk.",
          "enum": [
            "DISK_TYPE_UNSPECIFIED",
            "SCRATCH"
          ]
        }
      },
      "description": "Attached disk configuration."
    },
    "CapacityAdviceRequestInstanceProperties": {
      "description": "Instance provisioning properties.",
      "type": "object",
      "properties": {
        "scheduling": {
          "$ref": "#/$defs/CapacityAdviceRequestInstancePropertiesScheduling",
          "description": "Specifies the scheduling options."
        }
      }
    },
    "CapacityAdviceRequestInstancePropertiesScheduling": {
      "description": "Defines the instance scheduling options.",
      "properties": {
        "provisioningModel": {
          "type": "string",
          "description": "Specifies the provisioning model.",
          "enum": [
            "FLEX_START",
            "RESERVATION_BOUND",
            "SPOT",
            "STANDARD"
          ]
        }
      },
      "type": "object"
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/google-cloud-compute-engine-capacity-advice-request"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.