REST Resource: reservations

Resource: Allocation

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. (== NextID: 13 ==)

JSON representation
{
  "id": string,
  "creationTimestamp": string,
  "selfLink": string,
  "zone": string,
  "description": string,
  "name": string,
  "commitment": string,
  "specificReservationRequired": boolean,
  "status": enum,
  "kind": string,
  "specificReservation": {
    "instanceProperties": {
      "machineType": string,
      "guestAccelerators": [
        {
          "acceleratorType": string,
          "acceleratorCount": number
        }
      ],
      "minCpuPlatform": string,
      "localSsds": [
        {
          "diskSizeGb": string,
          "interface": enum
        }
      ]
    },
    "count": string,
    "inUseCount": string
  }
}
Fields
id

string (fixed64 format)

[Output Only] The unique identifier for the resource. This identifier is defined by the server.

creationTimestamp

string

[Output Only] Creation timestamp in RFC3339 text format.

zone

string

Zone in which the reservation resides, must be provided if reservation is created with commitment creation.

description

string

An optional description of this resource. Provide this property when you create the resource.

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 [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

commitment

string

[OutputOnly] Full or partial url for parent commitment for reservations which are tied to a commitment.

specificReservationRequired

boolean

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

enum

[Output Only] The status of the reservation.

kind

string

[Output Only] Type of the resource. Always compute#reservations for reservations.

specificReservation

object

Reservation for instances with specific machine shapes.

specificReservation.instanceProperties

object

The instance properties for this specific sku reservation.

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.guestAccelerators[]

object

Specifies accelerator type and count.

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.guestAccelerators[].acceleratorCount

number

The number of the guest accelerator cards exposed to this instance.

specificReservation.instanceProperties.minCpuPlatform

string

Minimum cpu platform the reservation.

specificReservation.instanceProperties.localSsds[]

object

Specifies amount of local ssd to reserve with each instance. The type of disk is local-ssd.

specificReservation.instanceProperties.localSsds[].diskSizeGb

string (int64 format)

Specifies the size of the disk in base-2 GB.

specificReservation.instanceProperties.localSsds[].interface

enum

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.count

string (int64 format)

Specifies number of resources that are allocated.

specificReservation.inUseCount

string (int64 format)

[OutputOnly] Indicates how many resource are in use.

Methods

aggregatedList

Retrieves an aggregated list of reservations.

delete

Deletes the specified reservation.

get

Retrieves all information of the specified reservation.

getIamPolicy

Gets the access control policy for a resource.

insert

Creates a new reservation.

list

A list all the reservations that have been configured for the specified project in specified zone.

resize

Resizes the reservation (applicable to standalone reservations only)

setIamPolicy

Sets the access control policy on the specified resource.

testIamPermissions

Returns permissions that a caller has on the specified resource.
หน้านี้มีประโยชน์ไหม โปรดแสดงความคิดเห็น