Get
|
|||||
|
|
Retrieves all information of the specified reservation
Authorization
To use this building block you will have to grant access to at least one of the following scopes:
- View and manage your data across Google Cloud Platform services
- View and manage your Google Compute Engine resources
- View your Google Compute Engine resources
Input
This building block consumes 3 input parameters
Name | Format | Description |
---|---|---|
project Required |
STRING |
Project ID for this request |
zone Required |
STRING |
Name of the zone for this request |
reservation Required |
STRING |
Name of the reservation to retrieve |
= Parameter name
= Format
project STRING Required Project ID for this request |
zone STRING Required Name of the zone for this request |
reservation STRING Required Name of the reservation to retrieve |
Output
This building block provides 22 output parameters
Name | Format | Description |
---|---|---|
commitment |
STRING |
[OutputOnly] Full or partial url for parent commitment for reservations which are tied to a commitment |
creationTimestamp |
STRING |
[Output Only] Creation timestamp in RFC3339 text format |
description |
STRING |
An optional description of this resource. Provide this property when you create the resource |
id |
INTEGER |
[Output Only] The unique identifier for the resource. This identifier is defined by the server |
kind |
STRING |
[Output Only] Type of the resource. Always compute#reservations for reservations |
name |
STRING |
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 |
selfLink |
STRING |
[Output Only] Server-defined fully-qualified URL for this resource |
specificReservation |
OBJECT |
This reservation type allows to pre allocate specific instance configuration |
specificReservation.count |
INTEGER |
Specifies number of resources that are allocated |
specificReservation.inUseCount |
INTEGER |
[OutputOnly] Indicates how many resource are in use |
specificReservation.instanceProperties |
OBJECT |
Properties of the SKU instances being reserved |
specificReservation.instanceProperties.guestAccelerators[] |
OBJECT |
A specification of the type and number of accelerator cards attached to the instance |
specificReservation.instanceProperties.guestAccelerators[].acceleratorCount |
INTEGER |
The number of the guest accelerator cards exposed to this instance |
specificReservation.instanceProperties.guestAccelerators[].acceleratorType |
STRING |
Full or partial URL of the accelerator type resource to attach to this instance. For example: projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100 If you are creating an instance template, specify only the accelerator name. See GPUs on Compute Engine for a full list of accelerator types |
specificReservation.instanceProperties.localSsds[] |
OBJECT |
|
specificReservation.instanceProperties.localSsds[].diskSizeGb |
INTEGER |
Specifies the size of the disk in base-2 GB |
specificReservation.instanceProperties.localSsds[].interface |
ENUMERATION |
Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI. For performance characteristics of SCSI over NVMe, see Local SSD performance |
specificReservation.instanceProperties.machineType |
STRING |
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.minCpuPlatform |
STRING |
Minimum cpu platform the reservation |
specificReservationRequired |
BOOLEAN |
Indicates whether the reservation can be consumed by VMs with "any reservation" defined. If the field is set, then only VMs that target the reservation by name using --reservation-affinity can consume this reservation |
status |
ENUMERATION |
[Output Only] The status of the reservation |
zone |
STRING |
Zone in which the reservation resides, must be provided if reservation is created with commitment creation |
= Parameter name
= Format
commitment STRING [OutputOnly] Full or partial url for parent commitment for reservations which are tied to a commitment |
creationTimestamp STRING [Output Only] Creation timestamp in RFC3339 text format |
description STRING An optional description of this resource. Provide this property when you create the resource |
id INTEGER [Output Only] The unique identifier for the resource. This identifier is defined by the server |
kind STRING [Output Only] Type of the resource. Always compute#reservations for reservations |
name STRING 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 |
selfLink STRING [Output Only] Server-defined fully-qualified URL for this resource |
specificReservation OBJECT This reservation type allows to pre allocate specific instance configuration |
specificReservation.count INTEGER Specifies number of resources that are allocated |
specificReservation.inUseCount INTEGER [OutputOnly] Indicates how many resource are in use |
specificReservation.instanceProperties OBJECT Properties of the SKU instances being reserved |
specificReservation.instanceProperties.guestAccelerators[] OBJECT A specification of the type and number of accelerator cards attached to the instance |
specificReservation.instanceProperties.guestAccelerators[].acceleratorCount INTEGER The number of the guest accelerator cards exposed to this instance |
specificReservation.instanceProperties.guestAccelerators[].acceleratorType STRING Full or partial URL of the accelerator type resource to attach to this instance. For example: projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100 If you are creating an instance template, specify only the accelerator name. See GPUs on Compute Engine for a full list of accelerator types |
specificReservation.instanceProperties.localSsds[] OBJECT |
specificReservation.instanceProperties.localSsds[].diskSizeGb INTEGER Specifies the size of the disk in base-2 GB |
specificReservation.instanceProperties.localSsds[].interface ENUMERATION Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI. For performance characteristics of SCSI over NVMe, see Local SSD performance |
specificReservation.instanceProperties.machineType STRING 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.minCpuPlatform STRING Minimum cpu platform the reservation |
specificReservationRequired BOOLEAN Indicates whether the reservation can be consumed by VMs with "any reservation" defined. If the field is set, then only VMs that target the reservation by name using --reservation-affinity can consume this reservation |
status ENUMERATION [Output Only] The status of the reservation |
zone STRING Zone in which the reservation resides, must be provided if reservation is created with commitment creation |