Resource: Reservation
Represents a reservation resource. A reservation ensures that capacity is held in a specific zone even if the reserved VMs are not running. For more information, read Reserving zonal resources.
JSON representation |
---|
{ "kind": string, "id": string, "creationTimestamp": string, "selfLink": string, "zone": string, "description": string, "name": string, "commitment": string, "specificReservationRequired": boolean, "status": enum, "shareSettings": { "shareType": enum, "projectMap": { string: { "projectId": string }, ... } }, "satisfiesPzs": boolean, "resourcePolicies": { string: string, ... }, "resourceStatus": { "specificSkuAllocation": { "sourceInstanceTemplateId": string } }, // Union field |
Fields | |
---|---|
kind |
[Output Only] Type of the resource. Always |
id |
[Output Only] The unique identifier for the resource. This identifier is defined by the server. |
creationTimestamp |
[Output Only] Creation timestamp in RFC3339 text format. |
selfLink |
[Output Only] Server-defined fully-qualified URL for this resource. |
zone |
Zone in which the reservation resides. A zone must be provided if the reservation is created within a commitment. |
description |
An optional description of this resource. Provide this property when you create the resource. |
name |
The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression |
commitment |
[Output Only] Full or partial URL to a parent commitment. This field displays for reservations that are tied to a commitment. |
specificReservationRequired |
Indicates whether the reservation can be consumed by VMs with affinity for "any" reservation. If the field is set, then only VMs that target the reservation by name can consume from this reservation. |
status |
[Output Only] The status of the reservation.
|
shareSettings |
Specify share-settings to create a shared reservation. This property is optional. For more information about the syntax and options for this field and its subfields, see the guide for creating a shared reservation. |
shareSettings.shareType |
Type of sharing for this shared-reservation |
shareSettings.projectMap[] |
A map of project id and project config. This is only valid when shareType's value is SPECIFIC_PROJECTS. |
shareSettings.projectMap[].projectId |
The project ID, should be same as the key of this project config in the parent map. |
satisfiesPzs |
[Output Only] Reserved for future use. |
resourcePolicies |
Resource policies to be added to this reservation. The key is defined by user, and the value is resource policy url. This is to define placement policy with reservation. |
resourceStatus |
[Output Only] Status information for Reservation resource. |
resourceStatus.specificSkuAllocation |
Allocation Properties of this reservation. |
resourceStatus.specificSkuAllocation.sourceInstanceTemplateId |
ID of the instance template used to populate reservation properties. |
Union field
|
|
specificReservation |
Reservation for instances with specific machine shapes. |
specificReservation.instanceProperties |
The instance properties for the reservation. |
specificReservation.instanceProperties.machineType |
Specifies type of machine (name only) which has fixed number of vCPUs and fixed amount of memory. This also includes specifying custom machine type following custom-NUMBER_OF_CPUS-AMOUNT_OF_MEMORY pattern. |
specificReservation.instanceProperties.guestAccelerators[] |
Specifies accelerator type and count. |
specificReservation.instanceProperties.guestAccelerators[].acceleratorType |
Full or partial URL of the accelerator type resource to attach to this instance. For example: |
specificReservation.instanceProperties.guestAccelerators[].acceleratorCount |
The number of the guest accelerator cards exposed to this instance. |
specificReservation.instanceProperties.minCpuPlatform |
Minimum cpu platform the reservation. |
specificReservation.instanceProperties.localSsds[] |
Specifies amount of local ssd to reserve with each instance. The type of disk is local-ssd. |
specificReservation.instanceProperties.localSsds[].diskSizeGb |
Specifies the size of the disk in base-2 GB. |
specificReservation.instanceProperties.localSsds[].interface |
Specifies the disk interface to use for attaching this disk, which is either |
specificReservation.instanceProperties.locationHint |
An opaque location hint used to place the allocation close to other resources. This field is for use by internal tools that use the public API. |
specificReservation.count |
Specifies the number of resources that are allocated. |
specificReservation.inUseCount |
[Output Only] Indicates how many instances are in use. |
specificReservation.assuredCount |
[Output Only] Indicates how many instances are actually usable currently. |
specificReservation.sourceInstanceTemplate |
Specifies the instance template to create the reservation. If you use this field, you must exclude the This field is optional, and it can be a full or partial URL. For example, the following are all valid URLs to an instance template:
|
aggregateReservation |
Reservation for aggregated resources, providing shape flexibility. |
aggregateReservation.vmFamily |
The VM family that all instances scheduled against this reservation must belong to. |
aggregateReservation.reservedResources[] |
reservations.list of reserved resources (CPUs, memory, accelerators). |
aggregateReservation.reservedResources[].accelerator |
Properties of accelerator resources in this reservation. |
aggregateReservation.reservedResources[].accelerator.acceleratorCount |
Number of accelerators of specified type. |
aggregateReservation.reservedResources[].accelerator.acceleratorType |
Full or partial URL to accelerator type. e.g. "projects/{PROJECT}/zones/{ZONE}/acceleratorTypes/ct4l" |
aggregateReservation.inUseResources[] |
[Output only] reservations.list of resources currently in use. |
aggregateReservation.inUseResources[].accelerator |
Properties of accelerator resources in this reservation. |
aggregateReservation.inUseResources[].accelerator.acceleratorCount |
Number of accelerators of specified type. |
aggregateReservation.inUseResources[].accelerator.acceleratorType |
Full or partial URL to accelerator type. e.g. "projects/{PROJECT}/zones/{ZONE}/acceleratorTypes/ct4l" |
aggregateReservation.workloadType |
The workload type of the instances that will target this reservation. |
Methods |
|
---|---|
|
Retrieves an aggregated list of reservations. |
|
Deletes the specified reservation. |
|
Retrieves information about the specified reservation. |
|
Gets the access control policy for a resource. |
|
Creates a new reservation. |
|
A list of all the reservations that have been configured for the specified project in specified zone. |
|
Resizes the reservation (applicable to standalone reservations only). |
|
Sets the access control policy on the specified resource. |
|
Returns permissions that a caller has on the specified resource. |
|
Update share settings of the reservation. |