Google Cloud Compute Engine Instance Settings API
The InstanceSettings API from Google Cloud Compute Engine — 1 operation(s) for instancesettings.
The InstanceSettings API from Google Cloud Compute Engine — 1 operation(s) for instancesettings.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.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.curl "https://apis.io/api/v1/apis/google-cloud-compute-engine:google-cloud-compute-engine-instancesettings-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a 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.
openapi: 3.2.0
info:
title: Compute Engine Instance Settings API
version: v1
description: Generated from Google's published Discovery document for Compute Engine API (compute v1, revision 20261106). 2 operation(s).
contact:
name: Google
url: https://developers.google.com/
termsOfService: https://developers.google.com/terms
servers:
- url: https://compute.googleapis.com
tags:
- name: InstanceSettings
paths:
/compute/v1/projects/{project}/zones/{zone}/instanceSettings:
get:
operationId: compute.instanceSettings.get
summary: Get instanceSettings
description: Get Instance settings.
parameters:
- name: project
in: path
required: true
description: Project ID for this request.
schema:
pattern: (?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))
type: string
- name: zone
in: path
required: true
description: Name of the zone for this request.
schema:
pattern: '[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?'
type: string
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/InstanceSettings'
4XX:
content:
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
default:
content:
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: Error response (google.rpc.Status)
security:
- oauth2:
- https://www.googleapis.com/auth/cloud-platform
- https://www.googleapis.com/auth/compute
- https://www.googleapis.com/auth/compute.readonly
- apiKey: []
tags:
- InstanceSettings
patch:
operationId: compute.instanceSettings.patch
summary: Patch instanceSettings
description: Patch Instance settings
parameters:
- name: project
in: path
required: true
description: Project ID for this request.
schema:
pattern: (?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))
type: string
- name: zone
in: path
required: true
description: The zone scoping this request. It should conform to RFC1035.
schema:
type: string
- name: requestId
in: query
required: false
description: 'An optional request ID to identify requests. Specify a unique request ID so
that if you must retry your request, the server will know to ignore the
request if it has already been completed.
For example, consider a situation where you make an initial request and
the request times out. If you make the request again with the same
request ID, the server can check if original operation with the same
request ID was received, and if so, will ignore the second request. This
prevents clients from accidentally creating duplicate commitments.
The request ID must be
a valid UUID with the exception that zero UUID is not supported
(00000000-0000-0000-0000-000000000000).'
schema:
type: string
- name: updateMask
in: query
required: false
description: update_mask indicates fields to be updated as part of this request.
schema:
type: string
format: google-fieldmask
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/InstanceSettings'
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/Operation'
4XX:
content:
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
default:
content:
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: Error response (google.rpc.Status)
security:
- oauth2:
- https://www.googleapis.com/auth/cloud-platform
- https://www.googleapis.com/auth/compute
- apiKey: []
tags:
- InstanceSettings
components:
schemas:
QuotaExceededInfo:
description: Additional details for quota exceeded error for resource quota.
type: object
properties:
metricName:
description: The Compute Engine quota metric name.
type: string
futureLimit:
description: "Future quota limit being rolled out. The limit's unit depends on the quota\n type or metric."
format: double
type: number
dimensions:
additionalProperties:
type: string
description: The map holding related quota dimensions.
type: object
limit:
description: 'Current effective quota limit. The limit''s unit depends on the quota type
or metric.'
format: double
type: number
limitName:
type: string
description: The name of the quota limit.
rolloutStatus:
type: string
enum:
- IN_PROGRESS
- ROLLOUT_STATUS_UNSPECIFIED
description: Rollout status of the future quota limit.
Status:
properties:
details:
items:
additionalProperties:
description: Properties of the object. Contains field @type with type URL.
type: object
format: google.protobuf.Any
type: array
description: 'A list of messages that carry the error details. There is a common set of
message types for APIs to use.'
message:
type: string
description: 'A developer-facing error message, which should be in English. Any
user-facing error message should be localized and sent in the
google.rpc.Status.details field, or localized by the client.'
code:
type: integer
description: The status code, which should be an enum value of google.rpc.Code.
format: int32
type: object
description: 'The `Status` type defines a logical error model that is suitable for
different programming environments, including REST APIs and RPC APIs. It is
used by [gRPC](https://github.com/grpc). Each `Status` message contains
three pieces of data: error code, error message, and error details.
You can find out more about this error model and how to work with it in the
[API Design Guide](https://cloud.google.com/apis/design/errors).'
BulkInsertOperationStatus:
type: object
properties:
status:
type: string
enum:
- CREATING
- DONE
- ROLLING_BACK
- STATUS_UNSPECIFIED
description: '[Output Only] Creation status of BulkInsert operation - information
if the flow is rolling forward or rolling back.'
failedToCreateVmCount:
format: int32
description: '[Output Only] Count of VMs that started creating but encountered an
error.'
type: integer
deletedVmCount:
format: int32
type: integer
description: '[Output Only] Count of VMs that got deleted during rollback.'
createdVmCount:
format: int32
type: integer
description: '[Output Only] Count of VMs successfully created so far.'
targetVmCount:
type: integer
format: int32
description: '[Output Only] Count of VMs originally planned to be created.'
InstanceSettingsMetadata:
properties:
items:
type: object
additionalProperties:
type: string
description: 'A metadata key/value items map.
The total size of all keys and values must be less than 512KB.'
kind:
type: string
default: compute#metadata
readOnly: true
description: 'Output only. [Output Only] Type of the resource. Always compute#metadata
for metadata.'
type: object
SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo:
properties:
state:
type: string
enum:
- ABANDONED
- DONE
- FAILED
- PROPAGATED
- PROPAGATING
- UNSPECIFIED
description: '[Output Only] Status of the action, which can be one of the following:
`PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.'
error:
$ref: '#/components/schemas/Status'
description: '[Output Only] If state is `ABANDONED` or `FAILED`, this field is
populated.'
type: object
HelpLink:
properties:
url:
type: string
description: The URL of the link.
description:
description: Describes what the link offers.
type: string
type: object
description: Describes a URL link.
LocalizedMessage:
description: 'Provides a localized error message that is safe to return to the user
which can be attached to an RPC error.'
type: object
properties:
message:
type: string
description: The localized error message in the above locale.
locale:
description: 'The locale used following the specification defined at
https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
Examples are: "en-US", "fr-CH", "es-MX"'
type: string
GetHealthOperationMetadataHealthInfo:
properties:
updateTime:
format: google-datetime
readOnly: true
type: string
description: Output only. The time when health info was updated.
availabilitySloStatus:
readOnly: true
enum:
- AVAILABILITY_SLO_STATUS_IN_SLO
- AVAILABILITY_SLO_STATUS_OUT_OF_SLO
- AVAILABILITY_SLO_STATUS_SLO_UNKNOWN
- AVAILABILITY_SLO_STATUS_UNSPECIFIED
type: string
description: Output only. The availability SLO status.
unhealthyReason:
description: Output only. The reason for unhealthy status.
type: string
readOnly: true
enum:
- UNHEALTHY_REASON_PENDING_USER_APPROVAL
- UNHEALTHY_REASON_REPAIRING
- UNHEALTHY_REASON_UNSCHEDULABLE
- UNHEALTHY_REASON_UNSPECIFIED
healthStatus:
description: Output only. The health status.
enum:
- HEALTH_STATUS_HEALTHY
- HEALTH_STATUS_UNHEALTHY
- HEALTH_STATUS_UNSPECIFIED
readOnly: true
type: string
repairCategory:
type: string
description: Output only. The repair category.
readOnly: true
enum:
- REPAIR_CATEGORY_CRITICAL_FAILURE
- REPAIR_CATEGORY_EMERGENT_MAINTENANCE
- REPAIR_CATEGORY_PLANNED_MAINTENANCE
- REPAIR_CATEGORY_UNSPECIFIED
- REPAIR_CATEGORY_USER_REPORTED_FAULT
description: Health information.
type: object
Operation:
description: "Represents an Operation resource.\n\nGoogle Compute Engine has three Operation resources:\n\n* [Global](/compute/docs/reference/rest/v1/globalOperations)\n* [Regional](/compute/docs/reference/rest/v1/regionOperations)\n* [Zonal](/compute/docs/reference/rest/v1/zoneOperations)\n\nYou can use an operation resource to manage asynchronous API requests.\nFor more information, readHandling\nAPI responses.\n\nOperations can be global, regional or zonal.\n \n - For global operations, use the `globalOperations`\n resource. \n - For regional operations, use the\n `regionOperations` resource. \n - For zonal operations, use\n the `zoneOperations` resource.\n\n\n\nFor more information, read\nGlobal, Regional, and Zonal Resources.\n\nNote that completed Operation resources have a limited \nretention period."
type: object
properties:
progress:
format: int32
description: '[Output Only] An optional progress indicator that ranges from 0 to 100.
There is no requirement that this be linear or support any granularity of
operations. This should not be used to guess when the operation will be
complete. This number should monotonically increase as the operation
progresses.'
type: integer
insertTime:
type: string
description: '[Output Only] The time that this operation was requested.
This value is inRFC3339
text format.'
setCommonInstanceMetadataOperationMetadata:
$ref: '#/components/schemas/SetCommonInstanceMetadataOperationMetadata'
description: 'Output only. [Output Only] If the operation is for projects.setCommonInstanceMetadata,
this field will contain information on all underlying zonal actions and
their state.'
httpErrorStatusCode:
type: integer
format: int32
description: '[Output Only] If the operation fails, this field contains the HTTP error
status code that was returned. For example, a `404` means the
resource was not found.'
targetLink:
description: '[Output Only] The URL of the resource that the operation modifies. For
operations related to creating a snapshot, this points to the disk
that the snapshot was created from.'
type: string
httpErrorMessage:
type: string
description: '[Output Only] If the operation fails, this field contains the HTTP error
message that was returned, such as `NOT FOUND`.'
selfLink:
type: string
description: '[Output Only] Server-defined URL for the resource.'
instancesBulkInsertOperationMetadata:
$ref: '#/components/schemas/InstancesBulkInsertOperationMetadata'
startTime:
description: '[Output Only] The time that this operation was started by the server.
This value is inRFC3339
text format.'
type: string
zone:
type: string
description: '[Output Only] The URL of the zone where the operation resides. Only
applicable when performing per-zone operations.'
warnings:
type: array
items:
type: object
properties:
data:
type: array
items:
type: object
properties:
key:
description: '[Output Only] A key that provides more detail on the warning being
returned. For example, for warnings where there are no results in a list
request for a particular zone, this key might be scope and
the key value might be the zone name. Other examples might be a key
indicating a deprecated resource and a suggested replacement, or a
warning about invalid network settings (for example, if an instance
attempts to perform IP forwarding but is not enabled for IP forwarding).'
type: string
value:
description: '[Output Only] A warning data value corresponding to the key.'
type: string
description: "[Output Only] Metadata about this warning in key:\nvalue format. For example:\n\n\"data\": [\n {\n \"key\": \"scope\",\n \"value\": \"zones/us-east1-d\"\n }]"
message:
description: '[Output Only] A human-readable description of the warning code.'
type: string
code:
type: string
enum:
- CLEANUP_FAILED
- DEPRECATED_RESOURCE_USED
- DEPRECATED_TYPE_USED
- DISK_SIZE_LARGER_THAN_IMAGE_SIZE
- EXPERIMENTAL_TYPE_USED
- EXTERNAL_API_WARNING
- FIELD_VALUE_OVERRIDEN
- INJECTED_KERNELS_DEPRECATED
- INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB
- LARGE_DEPLOYMENT_WARNING
- LIST_OVERHEAD_QUOTA_EXCEED
- MISSING_TYPE_DEPENDENCY
- NEXT_HOP_ADDRESS_NOT_ASSIGNED
- NEXT_HOP_CANNOT_IP_FORWARD
- NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE
- NEXT_HOP_INSTANCE_NOT_FOUND
- NEXT_HOP_INSTANCE_NOT_ON_NETWORK
- NEXT_HOP_NOT_RUNNING
- NOT_CRITICAL_ERROR
- NO_RESULTS_ON_PAGE
- PARTIAL_SUCCESS
- QUOTA_INFO_UNAVAILABLE
- REQUIRED_TOS_AGREEMENT
- RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING
- RESOURCE_NOT_DELETED
- SCHEMA_VALIDATION_IGNORED
- SINGLE_INSTANCE_PROPERTY_TEMPLATE
- UNDECLARED_PROPERTIES
- UNREACHABLE
description: '[Output Only] A warning code, if applicable. For example, Compute
Engine returns NO_RESULTS_ON_PAGE if there
are no results in the response.'
description: '[Output Only] If warning messages are generated during processing of the
operation, this field will be populated.'
endTime:
type: string
description: '[Output Only] The time that this operation was completed. This value is inRFC3339
text format.'
operationType:
type: string
description: '[Output Only] The type of operation, such as `insert`,
`update`, or `delete`, and so on.'
operationGroupId:
description: 'Output only. [Output Only] An ID that represents a group of operations, such as when a
group of operations results from a `bulkInsert` API request.'
readOnly: true
type: string
targetId:
format: uint64
type: string
description: '[Output Only] The unique target ID, which identifies a specific incarnation
of the target resource.'
user:
type: string
description: '[Output Only] User who requested the operation, for example:
`user@example.com` or
`alice_smith_identifier (global/workforcePools/example-com-us-employees)`.'
region:
description: '[Output Only] The URL of the region where the operation resides. Only
applicable when performing regional operations.'
type: string
getVersionOperationMetadata:
$ref: '#/components/schemas/GetVersionOperationMetadata'
id:
description: '[Output Only] The unique identifier for the operation. This identifier is
defined by the server.'
format: uint64
type: string
kind:
description: 'Output only. [Output Only] Type of the resource. Always `compute#operation` for
Operation resources.'
default: compute#operation
type: string
readOnly: true
name:
description: '[Output Only] Name of the operation.'
type: string
getHealthOperationMetadata:
$ref: '#/components/schemas/GetHealthOperationMetadata'
description: Output only. Metadata for GetHealth operations.
creationTimestamp:
description: '[Deprecated] This field is deprecated.'
type: string
clientOperationId:
description: '[Output Only] The value of `requestId` if you provided it in the request.
Not present otherwise.'
type: string
statusMessage:
type: string
description: '[Output Only] An optional textual description of the current status of the
operation.'
error:
type: object
description: '[Output Only] If errors are generated during processing of the operation,
this field will be populated.'
properties:
errors:
items:
type: object
properties:
message:
description: '[Output Only] An optional, human-readable error message.'
type: string
code:
type: string
description: '[Output Only] The error type identifier for this error.'
errorDetails:
type: array
description: '[Output Only] An optional list of messages that contain the error
details. There is a set of defined message types to use for providing
details.The syntax depends on the error code. For example,
QuotaExceededInfo will have details when the error code is
QUOTA_EXCEEDED.'
items:
description: 'Container for structured error details providing additional context
specific to the encountered error code.'
properties:
localizedMessage:
$ref: '#/components/schemas/LocalizedMessage'
description: A localized human-readable error message intended for end users.
quotaInfo:
$ref: '#/components/schemas/QuotaExceededInfo'
description: Details about quota limits and metrics when a quota is exceeded.
errorInfo:
$ref: '#/components/schemas/ErrorInfo'
description: Error information containing structured domain, reason, and metadata.
help:
$ref: '#/components/schemas/Help'
description: Links and information to help the user resolve the error.
type: object
location:
description: '[Output Only] Indicates the field in the request that caused the error.
This property is optional.'
type: string
description: 'Represents a single error encountered during the processing of an
operation.'
description: '[Output Only] The array of errors encountered while processing this
operation.'
type: array
status:
description: '[Output Only] The status of the operation, which can be one of the
following:
`PENDING`, `RUNNING`, or `DONE`.'
enum:
- DONE
- PENDING
- RUNNING
type: string
description:
type: string
description: '[Output Only] A textual description of the operation, which is
set when the operation is created.'
GetVersionOperationMetadata:
properties:
inlineSbomInfo:
$ref: '#/components/schemas/GetVersionOperationMetadataSbomInfo'
type: object
ErrorInfo:
properties:
domain:
type: string
description: 'The logical grouping to which the "reason" belongs. The error domain
is typically the registered service name of the tool or product that
generates the error. Example: "pubsub.googleapis.com". If the error is
generated by some common infrastructure, the error domain must be a
globally unique value that identifies the infrastructure. For Google API
infrastructure, the error domain is "googleapis.com".'
reason:
type: string
description: 'The reason of the error. This is a constant value that identifies the
proximate cause of the error. Error reasons are unique within a particular
domain of errors. This should be at most 63 characters and match a
regular expression of `A-Z+[A-Z0-9]`, which represents
UPPER_SNAKE_CASE.'
metadatas:
description: 'Additional structured details about this error.
Keys must match a regular expression of `a-z+` but should
ideally be lowerCamelCase. Also, they must be limited to 64 characters in
length. When identifying the current value of an exceeded limit, the units
should be contained in the key, not the value. For example, rather than
`{"instanceLimit": "100/request"}`, should be returned as,
`{"instanceLimitPerRequest": "100"}`, if the client exceeds the number of
instances that can be created in a single (batch) request.'
type: object
additionalProperties:
type: string
type: object
description: "Describes the cause of the error with structured details.\n\nExample of an error when contacting the \"pubsub.googleapis.com\" API when it\nis not enabled:\n\n { \"reason\": \"API_DISABLED\"\n \"domain\": \"googleapis.com\"\n \"metadata\": {\n \"resource\": \"projects/123\",\n \"service\": \"pubsub.googleapis.com\"\n }\n }\n\nThis response indicates that the pubsub.googleapis.com API is not enabled.\n\nExample of an error that is returned when attempting to create a Spanner\ninstance in a region that is out of stock:\n\n { \"reason\": \"STOCKOUT\"\n \"domain\": \"spanner.googleapis.com\",\n \"metadata\": {\n \"availableRegions\": \"us-central1,us-east2\"\n }\n }"
InstanceSettings:
type: object
description: 'Represents a Instance Settings resource. You can use instance settings to
configure default settings for Compute Engine VM instances. For example, you
can use it to configure default machine type of Compute Engine VM instances.'
properties:
fingerprint:
description: 'Specifies a fingerprint for instance settings, which is essentially a hash
of the instance settings resource''s contents and used for optimistic
locking. The fingerprint is initially generated by Compute Engine and
changes after every request to modify or update the instance settings
resource. You must always provide an up-to-date fingerprint hash in order
to update or change the resource, otherwise the request will fail with
error 412 conditionNotMet.
To see the latest fingerprint, make a get() request to
retrieve the resource.'
format: byte
type: string
metadata:
$ref: '#/components/schemas/InstanceSettingsMetadata'
description: 'The metadata key/value pairs assigned to all the instances in the
corresponding scope.'
kind:
type: string
readOnly: true
default: compute#instanceSettings
description: Output only. [Output Only] Type of the resource. Alwayscompute#instance_settings for instance settings.
zone:
type: string
description: 'Output only. [Output Only] URL of the zone where the resource resides
You must specify this field as part of the HTTP request URL. It is not
settable as a field in the request body.'
readOnly: true
GoogleRpcError:
type: object
description: The error envelope every Google API returns.
properties:
error:
type: object
properties:
code:
type: integer
message:
type: string
status:
type: string
details:
type: array
items:
type: object
SetCommonInstanceMetadataOperationMetadata:
type: object
properties:
clientOperationId:
description: '[Output Only] The client operation id.'
type: string
perLocationOperations:
type: object
additionalProperties:
$ref: '#/components/schemas/SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo'
description: '[Output Only] Status information per location (location name is key).
Example key: zones/us-central1-a'
GetHealthOperationMetadata:
description: Metadata for GetHealth operations.
properties:
healthInfo:
$ref: '#/components/schemas/GetHealthOperationMetadataHealthInfo'
description: Output only. The health information.
type: object
InstancesBulkInsertOperationMetadata:
properties:
perLocationStatus:
additionalProperties:
$ref: '#/components/schemas/BulkInsertOperationStatus'
type: object
description: 'Status information per location (location name is key).
Example key: zones/us-central1-a'
type: object
Help:
properties:
links:
items:
$ref: '#/components/schemas/HelpLink'
type: array
description: URL(s) pointing to additional information on handling the current error.
type: object
description: 'Provides links to documentation or for performing an out of band action.
For example, if a quota check failed with an error indicating the calling
project hasn''t enabled the accessed service, this can contain a URL pointing
directly to the right place in the developer console to flip the bit.'
GetVersionOperationMetadataSbomInfo:
properties:
currentComponentVersions:
type: object
additionalProperties:
type: string
description: 'A mapping of components to their currently-applied versions or other
appropriate identifiers.'
targetComponentVersions:
description: 'A mapping of components to their target versions or other appropriate
identifiers.'
additionalProperties:
type: string
type: object
type: object
securitySchemes:
apiKey:
type: apiKey
in: query
name: key
description: API key; accepted by methods that do not need user data.
oauth2:
type: oauth2
flows:
authorizationCode:
authorizationUrl: https://accounts.google.com/o/oauth2/auth
tokenUrl: https://oauth2.googleapis.com/token
scopes:
https://www.googleapis.com/auth/devstorage.read_only: View your data in Google Cloud Storage
https://www.googleapis.com/auth/compute: View and manage your Google Compute Engine resources
https://www.googleapis.com/auth/devstorage.read_write: Manage your data in Cloud Storage and see the email address of your Google Account
https://www.googleapis.com/auth/cloud-platform: See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
https://www.googleapis.com/auth/compute.readonly: View your Google Compute Engine resources
https://www.googleapis.com/auth/devstorage.full_control: Manage your data and permissions in Cloud Storage and see the email address for your Google Account
externalDocs:
url: https://cloud.google.com/compute/
x-provenance:
method: harvested
publisher: Google
source: https://www.googleapis.com/discovery/v1/apis/compute/v1/rest
note: converted by discovery-to-openapi.py from Google's Discovery document (revision 20261106)