- Resource: Reservation
- JSON representation
- SpecificSKUReservation
- ReservedInstanceProperties
- ReservedDisk
- DiskInterface
- AggregateReservation
- VMFamily
- ReservedResourceInfo
- Accelerator
- WorkloadType
- Status
- ResourceStatus
- SpecificSKUAllocation
- HealthInfo
- HealthStatus
- ReservationSharingPolicy
- ServiceShareType
- DeploymentType
- AdvancedDeploymentControl
- ReservationOperationalMode
- Methods
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, "linkedCommitments": [ string ], "specificReservationRequired": boolean, "status": enum ( |
Fields | |
---|---|
kind |
[Output Only] Type of the resource. Always
for reservations. |
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. |
linkedCommitments[] |
[Output Only] Full or partial URL to parent commitments. This field displays for reservations that are tied to multiple commitments. |
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. |
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. |
reservationSharingPolicy |
Specify the reservation sharing policy. If unspecified, the reservation will not be shared with Trusted Cloud managed services. |
deploymentType |
Specifies the deployment strategy for this reservation. |
advancedDeploymentControl |
Advanced control for cluster management, applicable only to DENSE deployment type reservations. |
enableEmergentMaintenance |
Indicates whether Compute Engine allows unplanned maintenance for your VMs; for example, to fix hardware errors. |
schedulingType |
The type of maintenance for the reservation. |
Union field
|
|
specificReservation |
Reservation for instances with specific machine shapes. |
aggregateReservation |
Reservation for aggregated resources, providing shape flexibility. |
Union field
|
|
deleteAtTime |
Absolute time in future when the reservation will be auto-deleted by Compute Engine. Timestamp is represented in RFC3339 text format. |
deleteAfterDuration |
Duration time relative to reservation creation when Compute Engine will automatically delete this resource. |
SpecificSKUReservation
This reservation type allows to pre allocate specific instance configuration.
JSON representation |
---|
{
"instanceProperties": {
object ( |
Fields | |
---|---|
instanceProperties |
The instance properties for the reservation. |
count |
Specifies the number of resources that are allocated. |
inUseCount |
[Output Only] Indicates how many instances are in use. |
assuredCount |
[Output Only] Indicates how many instances are actually usable currently. |
sourceInstanceTemplate |
Specifies the instance template to create the reservation. If you use this field, you must exclude the
field. 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:
|
ReservedInstanceProperties
Properties of the SKU instances being reserved. Next ID: 9
JSON representation |
---|
{ "machineType": string, "guestAccelerators": [ { object ( |
Fields | |
---|---|
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. |
guestAccelerators[] |
Specifies accelerator type and count. |
minCpuPlatform |
Minimum cpu platform the reservation. |
localSsds[] |
Specifies amount of local ssd to reserve with each instance. The type of disk is local-ssd. |
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. |
ReservedDisk
JSON representation |
---|
{
"diskSizeGb": string,
"interface": enum ( |
Fields | |
---|---|
diskSizeGb |
Specifies the size of the disk in base-2 GB. |
interface |
Specifies the disk interface to use for attaching this disk, which is either
or
. The default is
. For performance characteristics of SCSI over NVMe, see Local SSD performance. |
DiskInterface
Enums | |
---|---|
SCSI |
|
NVME |
AggregateReservation
This reservation type is specified by total resource amounts (e.g. total count of CPUs) and can account for multiple instance SKUs. In other words, one can create instances of varying shapes against this reservation.
JSON representation |
---|
{ "vmFamily": enum ( |
Fields | |
---|---|
vmFamily |
The VM family that all instances scheduled against this reservation must belong to. |
reservedResources[] |
reservations.list of reserved resources (CPUs, memory, accelerators). |
inUseResources[] |
[Output only] reservations.list of resources currently in use. |
workloadType |
The workload type of the instances that will target this reservation. |
VMFamily
reservations.list of compute machine families and series for use with aggregate reservations. LINT.IfChange
Enums | |
---|---|
VM_FAMILY_CLOUD_TPU_POD_SLICE_CT4P |
|
VM_FAMILY_CLOUD_TPU_LITE_DEVICE_CT5L |
|
VM_FAMILY_CLOUD_TPU_LITE_POD_SLICE_CT5LP |
|
VM_FAMILY_CLOUD_TPU_POD_SLICE_CT5P |
|
VM_FAMILY_CLOUD_TPU_LITE_POD_SLICE_CT6E |
|
VM_FAMILY_CLOUD_TPU_DEVICE_CT3 |
|
VM_FAMILY_CLOUD_TPU_POD_SLICE_CT3P |
ReservedResourceInfo
JSON representation |
---|
{ // Union field |
Fields | |
---|---|
Union field
|
|
accelerator |
Properties of accelerator resources in this reservation. |
Accelerator
JSON representation |
---|
{ "acceleratorCount": integer, "acceleratorType": string } |
Fields | |
---|---|
acceleratorCount |
Number of accelerators of specified type. |
acceleratorType |
Full or partial URL to accelerator type. e.g. "projects/{PROJECT}/zones/{ZONE}/acceleratorTypes/ct4l" |
WorkloadType
Enums | |
---|---|
UNSPECIFIED |
|
SERVING |
Reserved resources will be optimized for SERVING workloads, such as ML inference. |
BATCH |
Reserved resources will be optimized for BATCH workloads, such as ML training. |
Status
Enums | |
---|---|
INVALID |
|
CREATING |
Reservation resources are being allocated. |
READY |
Reservation resources have been allocated, and the reservation is ready for use. |
DELETING |
Reservation deletion is in progress. |
UPDATING |
Reservation update is in progress. |
ResourceStatus
[Output Only] Contains output only fields.
JSON representation |
---|
{ "specificSkuAllocation": { object ( |
Fields | |
---|---|
specificSkuAllocation |
Allocation Properties of this reservation. |
reservationMaintenance |
Maintenance information for this reservation |
reservationBlockCount |
The number of reservation blocks associated with this reservation. |
healthInfo |
[Output only] Health information for the reservation. |
SpecificSKUAllocation
Contains Properties set for the reservation.
JSON representation |
---|
{ "sourceInstanceTemplateId": string, "utilizations": { string: string, ... } } |
Fields | |
---|---|
sourceInstanceTemplateId |
ID of the instance template used to populate reservation properties. |
utilizations |
Per service utilization breakdown. The Key is the Trusted Cloud managed service name. |
HealthInfo
Health information for the reservation.
JSON representation |
---|
{
"healthStatus": enum ( |
Fields | |
---|---|
healthStatus |
The health status of the reservation. |
healthyBlockCount |
The number of reservation blocks that are healthy. |
degradedBlockCount |
The number of reservation blocks that are degraded. |
HealthStatus
Enums | |
---|---|
HEALTH_STATUS_UNSPECIFIED |
The health status of the reservation is unspecified. |
HEALTHY |
The reservation is healthy. |
DEGRADED |
The reservation is degraded. |
ReservationSharingPolicy
JSON representation |
---|
{
"serviceShareType": enum ( |
Fields | |
---|---|
serviceShareType |
Sharing config for all Trusted Cloud services. |
DeploymentType
Indicates if the reservation allocation strategy is static or dynamic. Inherited from the future reservation which delivered this reservation.
Enums | |
---|---|
DEPLOYMENT_TYPE_UNSPECIFIED |
|
DENSE |
The reserved capacity is made up of densely deployed reservation blocks. |
AdvancedDeploymentControl
Advance control for cluster management, applicable only to DENSE deployment type reservations.
JSON representation |
---|
{
"reservationOperationalMode": enum ( |
Fields | |
---|---|
reservationOperationalMode |
Indicates chosen reservation operational mode for the reservation. |
ReservationOperationalMode
Defines the reservation operational mode for the reservation. This determines how Trusted Cloud manages the failure of machines and provides capacity.
Enums | |
---|---|
RESERVATION_OPERATIONAL_MODE_UNSPECIFIED |
|
HIGHLY_AVAILABLE_CAPACITY |
Trusted Cloud manages the failure of machines to provide high availability. |
ALL_CAPACITY |
Trusted Cloud does not manage the failure of machines, but provides additional capacity, which is not guaranteed to be available. |
Methods |
|
---|---|
|
The method compute.v1.AllocationsService.AggregatedList is not available in Trusted Cloud by S3NS. |
|
The method compute.v1.AllocationsService.Delete is not available in Trusted Cloud by S3NS. |
|
The method compute.v1.AllocationsService.Get is not available in Trusted Cloud by S3NS. |
|
The method compute.v1.AllocationsService.GetPolicy is not available in Trusted Cloud by S3NS. |
|
The method compute.v1.AllocationsService.Insert is not available in Trusted Cloud by S3NS. |
|
The method compute.v1.AllocationsService.List is not available in Trusted Cloud by S3NS. |
|
The method compute.v1.AllocationsService.PerformMaintenance is not available in Trusted Cloud by S3NS. |
|
The method compute.v1.AllocationsService.Resize is not available in Trusted Cloud by S3NS. |
|
The method compute.v1.AllocationsService.SetPolicy is not available in Trusted Cloud by S3NS. |
|
The method compute.v1.AllocationsService.TestPermissions is not available in Trusted Cloud by S3NS. |
|
The method compute.v1.AllocationsService.Update is not available in Trusted Cloud by S3NS. |