- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- IAM Permissions
- Try it!
Returns a specified storage pool. Gets a list of available storage pools by making a list()
request.
HTTP request
GET https://compute.googleapis.com/compute/v1/projects/{project}/zones/{zone}/storagePools/{storagePool}
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
project |
Project ID for this request. |
zone |
The name of the zone for this request. |
storagePool |
Name of the storage pool to return. |
Request body
The request body must be empty.
Response body
Represents a zonal storage pool resource.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{ "kind": string, "id": string, "creationTimestamp": string, "name": string, "description": string, "poolProvisionedCapacityGb": string, "poolProvisionedIops": string, "poolProvisionedThroughput": string, "zone": string, "state": enum, "selfLink": string, "selfLinkWithId": string, "labels": { string: string, ... }, "labelFingerprint": string, "resourceStatus": { "lastResizeTimestamp": string, "diskCount": string, "poolUsedCapacityBytes": string, "poolUserWrittenBytes": string, "totalProvisionedDiskCapacityGb": string, "maxTotalProvisionedDiskCapacityGb": string, "poolUsedIops": string, "totalProvisionedDiskIops": string, "poolUsedThroughput": string, "totalProvisionedDiskThroughput": string }, "storagePoolType": string, "status": { "lastResizeTimestamp": string, "diskCount": string, "poolUsedCapacityBytes": string, "poolUserWrittenBytes": string, "totalProvisionedDiskCapacityGb": string, "maxTotalProvisionedDiskCapacityGb": string, "poolUsedIops": string, "totalProvisionedDiskIops": string, "poolUsedThroughput": string, "totalProvisionedDiskThroughput": string }, "capacityProvisioningType": enum, "performanceProvisioningType": enum } |
Fields | |
---|---|
kind |
[Output Only] Type of the resource. Always |
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. |
name |
Name of the resource. Provided by the client when the resource is created. The 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 |
description |
An optional description of this resource. Provide this property when you create the resource. |
poolProvisionedCapacityGb |
Size, in GiB, of the storage pool. For more information about the size limits, see https://cloud.google.com/compute/docs/disks/storage-pools. |
poolProvisionedIops |
Provisioned IOPS of the storage pool. Only relevant if the storage pool type is hyperdisk-balanced. |
poolProvisionedThroughput |
Provisioned throughput of the storage pool. Only relevant if the storage pool type is hyperdisk-balanced or hyperdisk-throughput. |
zone |
[Output Only] URL of the zone where the storage pool resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. |
state |
[Output Only] The status of storage pool creation.
|
selfLink |
[Output Only] Server-defined fully-qualified URL for this resource. |
selfLinkWithId |
[Output Only] Server-defined URL for this resource's resource id. |
labels |
Labels to apply to this storage pool. These can be later modified by the |
labelFingerprint |
A fingerprint for the labels being applied to this storage pool, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error To see the latest fingerprint, make a A base64-encoded string. |
resourceStatus |
[Output Only] Status information for the storage pool resource. |
resourceStatus.lastResizeTimestamp |
[Output Only] Timestamp of the last successful resize in RFC3339 text format. |
resourceStatus.diskCount |
[Output Only] Number of disks used. |
resourceStatus.poolUsedCapacityBytes |
[Output Only] Space used by data stored in disks within the storage pool (in bytes). This will reflect the total number of bytes written to the disks in the pool, in contrast to the capacity of those disks. |
resourceStatus.poolUserWrittenBytes |
[Output Only] Amount of data written into the pool, before it is compacted. |
resourceStatus.totalProvisionedDiskCapacityGb |
[Output Only] Sum of all the capacity provisioned in disks in this storage pool. A disk's provisioned capacity is the same as its total capacity. |
resourceStatus.maxTotalProvisionedDiskCapacityGb |
[Output Only] Maximum allowed aggregate disk size in gigabytes. |
resourceStatus.poolUsedIops |
[Output Only] Sum of all the disks' provisioned IOPS, minus some amount that is allowed per disk that is not counted towards pool's IOPS capacity. For more information, see https://cloud.google.com/compute/docs/disks/storage-pools. |
resourceStatus.totalProvisionedDiskIops |
[Output Only] Sum of all the disks' provisioned IOPS. |
resourceStatus.poolUsedThroughput |
[Output Only] Sum of all the disks' provisioned throughput in MB/s. |
resourceStatus.totalProvisionedDiskThroughput |
[Output Only] Sum of all the disks' provisioned throughput in MB/s, minus some amount that is allowed per disk that is not counted towards pool's throughput capacity. |
storagePoolType |
Type of the storage pool. |
status |
[Output Only] Status information for the storage pool resource. |
status.lastResizeTimestamp |
[Output Only] Timestamp of the last successful resize in RFC3339 text format. |
status.diskCount |
[Output Only] Number of disks used. |
status.poolUsedCapacityBytes |
[Output Only] Space used by data stored in disks within the storage pool (in bytes). This will reflect the total number of bytes written to the disks in the pool, in contrast to the capacity of those disks. |
status.poolUserWrittenBytes |
[Output Only] Amount of data written into the pool, before it is compacted. |
status.totalProvisionedDiskCapacityGb |
[Output Only] Sum of all the capacity provisioned in disks in this storage pool. A disk's provisioned capacity is the same as its total capacity. |
status.maxTotalProvisionedDiskCapacityGb |
[Output Only] Maximum allowed aggregate disk size in gigabytes. |
status.poolUsedIops |
[Output Only] Sum of all the disks' provisioned IOPS, minus some amount that is allowed per disk that is not counted towards pool's IOPS capacity. For more information, see https://cloud.google.com/compute/docs/disks/storage-pools. |
status.totalProvisionedDiskIops |
[Output Only] Sum of all the disks' provisioned IOPS. |
status.poolUsedThroughput |
[Output Only] Sum of all the disks' provisioned throughput in MB/s. |
status.totalProvisionedDiskThroughput |
[Output Only] Sum of all the disks' provisioned throughput in MB/s, minus some amount that is allowed per disk that is not counted towards pool's throughput capacity. |
capacityProvisioningType |
Provisioning type of the byte capacity of the pool. |
performanceProvisioningType |
Provisioning type of the performance-related parameters of the pool, such as throughput and IOPS. |
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.
IAM Permissions
In addition to any permissions specified on the fields above, authorization requires one or more of the following IAM permissions:
compute.storagePools.get
To find predefined roles that contain those permissions, see Compute Engine IAM Roles.