- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- IAM Permissions
- Try it!
Retrieves information about the specified reservation slot.
HTTP request
GET https://compute.googleapis.com/compute/beta/projects/{project}/zones/{zone}/{parentName=reservations/*/reservationBlocks/*/reservationSubBlocks/*}/reservationSlots/{reservationSlot}
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 |
The project ID for this request. |
zone |
The name of the zone for this request, formatted as RFC1035. |
parentName |
The name of the parent reservation and parent block, formatted as reservations/{reservationName}/reservationBlocks/{reservation_block_name}/reservationSubBlocks/{reservation_sub_block_name} |
reservationSlot |
The name of the reservation slot, formatted as RFC1035 or a resource ID number. |
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, "physicalTopology": { "cluster": string, "block": string, "subBlock": string, "host": string }, "state": enum, "status": { "physicalTopology": { "cluster": string, "block": string, "subBlock": string, "host": string }, "rdmaIpAddresses": [ string ], "runningInstances": [ string ] }, "shareSettings": { "shareType": enum, "projects": [ string ], "projectMap": { string: { "projectId": string }, ... } } } } |
| Fields | |
|---|---|
resource |
|
resource.kind |
Output only. The type of resource. Always |
resource.id |
Output only. The unique identifier for this resource. This identifier is defined by the server. |
resource.creationTimestamp |
Output only. The creation timestamp, formatted as RFC3339 text. |
resource.name |
Output only. The name of the reservation slot. |
resource.zone |
Output only. The zone in which the reservation slot resides. |
resource.selfLink |
Output only. A server-defined fully-qualified URL for this resource. |
resource.selfLinkWithId |
Output only. A server-defined URL for this resource with the resource ID. |
resource.physicalTopology |
Output only. The physical topology of the reservation slot. |
resource.physicalTopology |
The cluster name of the reservation sub-block. |
resource.physicalTopology |
The unique identifier of the capacity block within the cluster. |
resource.physicalTopology |
The unique identifier of the capacity sub-block within the capacity block. |
resource.physicalTopology |
The unique identifier of the capacity host within the capacity sub-block. |
resource.state |
Output only. The state of the reservation slot. |
resource.status |
Output only. The status of the reservation slot. |
resource.status.physicalTopology |
Output only. The physical topology of the reservation sub-block. |
resource.status.physicalTopology.cluster |
The cluster name of the reservation sub-block. |
resource.status.physicalTopology.block |
The unique identifier of the capacity block within the cluster. |
resource.status.physicalTopology.subBlock |
The unique identifier of the capacity sub-block within the capacity block. |
resource.status.physicalTopology.host |
The unique identifier of the capacity host within the capacity sub-block. |
resource.status.rdmaIpAddresses[] |
Output only. The RDMA IP address of the physical host. |
resource.status.runningInstances[] |
Output only. The URIs of the instances currently running on this slot. |
resource.shareSettings |
Specify share settings to create a shared slot. Set to empty to inherit the share settings from a parent resource. |
resource.shareSettings.shareType |
Type of sharing for this shared-reservation |
resource.shareSettings.projects[] |
A reservationSlots.list of Project names to specify consumer projects for this shared-reservation. This is only valid when shareType's value is SPECIFIC_PROJECTS. |
resource.shareSettings.projectMap[] |
A map of project id and project config. This is only valid when shareType's value is SPECIFIC_PROJECTS. |
resource.shareSettings.projectMap[].projectId |
The project ID, should be same as the key of this project config in the parent map. |
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/compute.readonlyhttps://www.googleapis.com/auth/computehttps://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
IAM Permissions
In addition to any permissions specified on the fields above, authorization requires one or more of the following IAM permissions:
compute.reservationSlots.get
To find predefined roles that contain those permissions, see Compute Engine IAM Roles.