- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- Try it!
Retrieves information about the specified reservation block.
HTTP request
GET https://compute.googleapis.com/compute/beta/projects/{project}/zones/{zone}/reservations/{reservation}/reservationBlocks/{reservationBlock}
The URL uses gRPC Transcoding syntax. To know more about valid error responses that can be thrown by this HTTP request, please refer to the service error catalog
Path parameters
| Parameters | |
|---|---|
| project | 
 Project ID for this request. | 
| zone | 
 Name of the zone for this request. Zone name should conform to RFC1035. | 
| reservation | 
 The name of the reservation. Name should conform to RFC1035 or be a resource ID. Authorization requires the following IAM permission on the specified resource  
 | 
| reservationBlock | 
 The name of the reservation block. Name should conform to RFC1035 or be a resource ID. | 
Query parameters
| Parameters | |
|---|---|
| view | 
 View of the Block. | 
Request body
The request body must be empty.
Response body
If successful, the response body contains data with the following structure:
| JSON representation | 
|---|
| { "resource": { "kind": string, "id": string, "creationTimestamp": string, "name": string, "zone": string, "selfLink": string, "selfLinkWithId": string, "count": integer, "inUseCount": integer, "reservationMaintenance": { "upcomingGroupMaintenance": { "type": enum, "canReschedule": boolean, "windowStartTime": string, "windowEndTime": string, "latestWindowStartTime": string, "maintenanceStatus": enum, "maintenanceOnShutdown": boolean, "maintenanceReasons": [ enum ] }, "maintenanceOngoingCount": integer, "maintenancePendingCount": integer, "schedulingType": enum, "subblockInfraMaintenanceOngoingCount": integer, "subblockInfraMaintenancePendingCount": integer, "instanceMaintenanceOngoingCount": integer, "instanceMaintenancePendingCount": integer }, "status": enum, "physicalTopology": { "cluster": string, "block": string, "instances": [ { "instanceId": string, "projectId": string, "physicalHostTopology": { "subBlock": string, "host": string } } ] }, "reservationSubBlockCount": integer, "reservationSubBlockInUseCount": integer, "inUseHostCount": integer, "healthInfo": { "healthStatus": enum, "healthySubBlockCount": integer, "degradedSubBlockCount": integer } } } | 
| Fields | |
|---|---|
| resource | 
 | 
| resource.kind | 
 [Output Only] Type of the resource. Always  | 
| resource.id | 
 [Output Only] The unique identifier for the resource. This identifier is defined by the server. | 
| resource.creationTimestamp | 
 [Output Only] Creation timestamp in RFC3339 text format. | 
| resource.name | 
 [Output Only] The name of this reservation block generated by Google Compute Engine. The name must be 1-63 characters long, and comply with RFC1035 @pattern a-z? | 
| resource.zone | 
 [Output Only] Zone in which the reservation block resides. | 
| resource.selfLink | 
 [Output Only] Server-defined fully-qualified URL for this resource. | 
| resource.selfLinkWithId | 
 [Output Only] Server-defined URL for this resource with the resource id. | 
| resource.count | 
 [Output Only] The number of resources that are allocated in this reservation block. | 
| resource.inUseCount | 
 [Output Only] The number of instances that are currently in use on this reservation block. | 
| resource.reservationMaintenance | 
 [Output Only] Maintenance information for this reservation block. | 
| resource.reservationMaintenance.upcomingGroupMaintenance | 
 Maintenance information on this group of VMs. | 
| resource.reservationMaintenance.upcomingGroupMaintenance.type | 
 Defines the type of maintenance. | 
| resource.reservationMaintenance.upcomingGroupMaintenance.canReschedule | 
 Indicates if the maintenance can be customer triggered. | 
| resource.reservationMaintenance.upcomingGroupMaintenance.windowStartTime | 
 The current start time of the maintenance window. This timestamp value is in RFC3339 text format. | 
| resource.reservationMaintenance.upcomingGroupMaintenance.windowEndTime | 
 The time by which the maintenance disruption will be completed. This timestamp value is in RFC3339 text format. | 
| resource.reservationMaintenance.upcomingGroupMaintenance.latestWindowStartTime | 
 The latest time for the planned maintenance window to start. This timestamp value is in RFC3339 text format. | 
| resource.reservationMaintenance.upcomingGroupMaintenance.maintenanceStatus | 
 | 
| resource.reservationMaintenance.upcomingGroupMaintenance.maintenanceOnShutdown | 
 Indicates whether the UpcomingMaintenance will be triggered on VM shutdown. | 
| resource.reservationMaintenance.upcomingGroupMaintenance.maintenanceReasons[] | 
 The reasons for the maintenance. Only valid for vms. | 
| resource.reservationMaintenance.maintenanceOngoingCount | 
 Progress for ongoing maintenance for this group of VMs/hosts. Describes number of hosts in the block that have ongoing maintenance. | 
| resource.reservationMaintenance.maintenancePendingCount | 
 Progress for ongoing maintenance for this group of VMs/hosts. Describes number of hosts in the block that have pending maintenance. | 
| resource.reservationMaintenance.schedulingType | 
 The type of maintenance for the reservation. | 
| resource.reservationMaintenance.subblockInfraMaintenanceOngoingCount | 
 Describes number of subblock Infrastructure that has ongoing maintenance. Here, Subblock Infrastructure Maintenance pertains to upstream hardware contained in the Subblock that is necessary for a VM Family(e.g. NVLink Domains). Not all VM Families will support this field. | 
| resource.reservationMaintenance.subblockInfraMaintenancePendingCount | 
 Describes number of subblock Infrastructure that has pending maintenance. Here, Subblock Infrastructure Maintenance pertains to upstream hardware contained in the Subblock that is necessary for a VM Family (e.g. NVLink Domains). Not all VM Families will support this field. | 
| resource.reservationMaintenance.instanceMaintenanceOngoingCount | 
 Describes number of instances that have ongoing maintenance. | 
| resource.reservationMaintenance.instanceMaintenancePendingCount | 
 Describes number of instances that have pending maintenance. | 
| resource.status | 
 [Output Only] Status of the reservation block. | 
| resource.physicalTopology | 
 [Output Only] The physical topology of the reservation block. | 
| resource.physicalTopology.cluster | 
 The cluster name of the reservation block. | 
| resource.physicalTopology.block | 
 The hash of the capacity block within the cluster. | 
| resource.physicalTopology.instances[] | 
 The detailed instances information for a given Block | 
| resource.physicalTopology.instances[].instanceId | 
 The InstanceId of the instance | 
| resource.physicalTopology.instances[].projectId | 
 Project where the instance lives | 
| resource.physicalTopology.instances[].physicalHostTopology | 
 The PhysicalHostTopology of instances within a Block resource. | 
| resource.physicalTopology.instances[].physicalHostTopology.subBlock | 
 Sub block hash for a given instance | 
| resource.physicalTopology.instances[].physicalHostTopology.host | 
 Host hash for a given instance | 
| resource.reservationSubBlockCount | 
 [Output Only] The number of reservation subBlocks associated with this reservation block. | 
| resource.reservationSubBlockInUseCount | 
 [Output Only] The number of in-use reservation subBlocks associated with this reservation block. If at least one VM is running on a subBlock, it is considered in-use. | 
| resource.inUseHostCount | 
 Number of hosts currently in use. If there is one or more Instances running on the host, it is considered in use. | 
| resource.healthInfo | 
 [Output Only] Health information for the reservation block. | 
| resource.healthInfo.healthStatus | 
 The health status of the reservation block. | 
| resource.healthInfo.healthySubBlockCount | 
 The number of subBlocks that are healthy. | 
| resource.healthInfo.degradedSubBlockCount | 
 The number of subBlocks that are degraded. | 
Authorization scopes
Requires one of the following OAuth scopes:
- https://www.googleapis.com/auth/compute.readonly
- https://www.googleapis.com/auth/compute
- https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.