instances
Creates, updates, deletes, gets or lists an instances
resource.
Overview
Name | instances |
Type | Resource |
Id | google.parallelstore.instances |
Fields
The following fields are returned by SELECT
queries:
- get
- list
Successful response
Name | Datatype | Description |
---|---|---|
name | string | Identifier. The resource name of the instance, in the format projects/{project}/locations/{location}/instances/{instance_id} . |
accessPoints | array | Output only. A list of IPv4 addresses used for client side configuration. |
capacityGib | string (int64) | Required. Immutable. The instance's storage capacity in Gibibytes (GiB). Allowed values are between 12000 and 100000, in multiples of 4000; e.g., 12000, 16000, 20000, ... |
createTime | string (google-datetime) | Output only. The time when the instance was created. |
daosVersion | string | Output only. Deprecated: The version of DAOS software running in the instance. |
deploymentType | string | Optional. Immutable. The deployment type of the instance. Allowed values are: * SCRATCH : the instance is a scratch instance. * PERSISTENT : the instance is a persistent instance. |
description | string | Optional. The description of the instance. 2048 characters or less. |
directoryStripeLevel | string | Optional. Immutable. Stripe level for directories. Allowed values are: * DIRECTORY_STRIPE_LEVEL_MIN : recommended when directories contain a small number of files. * DIRECTORY_STRIPE_LEVEL_BALANCED : balances performance for workloads involving a mix of small and large directories. * DIRECTORY_STRIPE_LEVEL_MAX : recommended for directories with a large number of files. |
effectiveReservedIpRange | string | Output only. Immutable. The ID of the IP address range being used by the instance's VPC network. This field is populated by the service and contains the value currently used by the service. |
fileStripeLevel | string | Optional. Immutable. Stripe level for files. Allowed values are: * FILE_STRIPE_LEVEL_MIN : offers the best performance for small size files. * FILE_STRIPE_LEVEL_BALANCED : balances performance for workloads involving a mix of small and large files. * FILE_STRIPE_LEVEL_MAX : higher throughput performance for larger files. |
labels | object | Optional. Cloud Labels are a flexible and lightweight mechanism for organizing cloud resources into groups that reflect a customer's organizational needs and deployment strategies. See https://cloud.google.com/resource-manager/docs/labels-overview for details. |
network | string | Optional. Immutable. The name of the Compute Engine VPC network to which the instance is connected. |
reservedIpRange | string | Optional. Immutable. The ID of the IP address range being used by the instance's VPC network. See Configure a VPC network. If no ID is provided, all ranges are considered. |
state | string | Output only. The instance state. |
updateTime | string (google-datetime) | Output only. The time when the instance was updated. |
Successful response
Name | Datatype | Description |
---|---|---|
name | string | Identifier. The resource name of the instance, in the format projects/{project}/locations/{location}/instances/{instance_id} . |
accessPoints | array | Output only. A list of IPv4 addresses used for client side configuration. |
capacityGib | string (int64) | Required. Immutable. The instance's storage capacity in Gibibytes (GiB). Allowed values are between 12000 and 100000, in multiples of 4000; e.g., 12000, 16000, 20000, ... |
createTime | string (google-datetime) | Output only. The time when the instance was created. |
daosVersion | string | Output only. Deprecated: The version of DAOS software running in the instance. |
deploymentType | string | Optional. Immutable. The deployment type of the instance. Allowed values are: * SCRATCH : the instance is a scratch instance. * PERSISTENT : the instance is a persistent instance. |
description | string | Optional. The description of the instance. 2048 characters or less. |
directoryStripeLevel | string | Optional. Immutable. Stripe level for directories. Allowed values are: * DIRECTORY_STRIPE_LEVEL_MIN : recommended when directories contain a small number of files. * DIRECTORY_STRIPE_LEVEL_BALANCED : balances performance for workloads involving a mix of small and large directories. * DIRECTORY_STRIPE_LEVEL_MAX : recommended for directories with a large number of files. |
effectiveReservedIpRange | string | Output only. Immutable. The ID of the IP address range being used by the instance's VPC network. This field is populated by the service and contains the value currently used by the service. |
fileStripeLevel | string | Optional. Immutable. Stripe level for files. Allowed values are: * FILE_STRIPE_LEVEL_MIN : offers the best performance for small size files. * FILE_STRIPE_LEVEL_BALANCED : balances performance for workloads involving a mix of small and large files. * FILE_STRIPE_LEVEL_MAX : higher throughput performance for larger files. |
labels | object | Optional. Cloud Labels are a flexible and lightweight mechanism for organizing cloud resources into groups that reflect a customer's organizational needs and deployment strategies. See https://cloud.google.com/resource-manager/docs/labels-overview for details. |
network | string | Optional. Immutable. The name of the Compute Engine VPC network to which the instance is connected. |
reservedIpRange | string | Optional. Immutable. The ID of the IP address range being used by the instance's VPC network. See Configure a VPC network. If no ID is provided, all ranges are considered. |
state | string | Output only. The instance state. |
updateTime | string (google-datetime) | Output only. The time when the instance was updated. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get | select | projectsId , locationsId , instancesId | Gets details of a single instance. | |
list | select | projectsId , locationsId | pageSize , pageToken , filter , orderBy | Lists all instances in a given project and location. |
create | insert | projectsId , locationsId | instanceId , requestId | Creates a Parallelstore instance in a given project and location. |
patch | update | projectsId , locationsId , instancesId | updateMask , requestId | Updates the parameters of a single instance. |
delete | delete | projectsId , locationsId , instancesId | requestId | Deletes a single instance. |
import_data | exec | projectsId , locationsId , instancesId | Copies data from Cloud Storage to Parallelstore. | |
export_data | exec | projectsId , locationsId , instancesId | Copies data from Parallelstore to Cloud Storage. |
Parameters
Parameters can be passed in the WHERE
clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
Name | Datatype | Description |
---|---|---|
instancesId | string | |
locationsId | string | |
projectsId | string | |
filter | string | |
instanceId | string | |
orderBy | string | |
pageSize | integer (int32) | |
pageToken | string | |
requestId | string | |
updateMask | string (google-fieldmask) |
SELECT
examples
- get
- list
Gets details of a single instance.
SELECT
name,
accessPoints,
capacityGib,
createTime,
daosVersion,
deploymentType,
description,
directoryStripeLevel,
effectiveReservedIpRange,
fileStripeLevel,
labels,
network,
reservedIpRange,
state,
updateTime
FROM google.parallelstore.instances
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND instancesId = '{{ instancesId }}' -- required;
Lists all instances in a given project and location.
SELECT
name,
accessPoints,
capacityGib,
createTime,
daosVersion,
deploymentType,
description,
directoryStripeLevel,
effectiveReservedIpRange,
fileStripeLevel,
labels,
network,
reservedIpRange,
state,
updateTime
FROM google.parallelstore.instances
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}'
AND filter = '{{ filter }}'
AND orderBy = '{{ orderBy }}';
INSERT
examples
- create
- Manifest
Creates a Parallelstore instance in a given project and location.
INSERT INTO google.parallelstore.instances (
data__name,
data__description,
data__labels,
data__capacityGib,
data__network,
data__reservedIpRange,
data__fileStripeLevel,
data__directoryStripeLevel,
data__deploymentType,
projectsId,
locationsId,
instanceId,
requestId
)
SELECT
'{{ name }}',
'{{ description }}',
'{{ labels }}',
'{{ capacityGib }}',
'{{ network }}',
'{{ reservedIpRange }}',
'{{ fileStripeLevel }}',
'{{ directoryStripeLevel }}',
'{{ deploymentType }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ instanceId }}',
'{{ requestId }}'
RETURNING
name,
done,
error,
metadata,
response
;
# Description fields are for documentation purposes
- name: instances
props:
- name: projectsId
value: string
description: Required parameter for the instances resource.
- name: locationsId
value: string
description: Required parameter for the instances resource.
- name: name
value: string
description: >
Identifier. The resource name of the instance, in the format `projects/{project}/locations/{location}/instances/{instance_id}`.
- name: description
value: string
description: >
Optional. The description of the instance. 2048 characters or less.
- name: labels
value: object
description: >
Optional. Cloud Labels are a flexible and lightweight mechanism for organizing cloud resources into groups that reflect a customer's organizational needs and deployment strategies. See https://cloud.google.com/resource-manager/docs/labels-overview for details.
- name: capacityGib
value: string
description: >
Required. Immutable. The instance's storage capacity in Gibibytes (GiB). Allowed values are between 12000 and 100000, in multiples of 4000; e.g., 12000, 16000, 20000, ...
- name: network
value: string
description: >
Optional. Immutable. The name of the Compute Engine [VPC network](https://cloud.google.com/vpc/docs/vpc) to which the instance is connected.
- name: reservedIpRange
value: string
description: >
Optional. Immutable. The ID of the IP address range being used by the instance's VPC network. See [Configure a VPC network](https://cloud.google.com/parallelstore/docs/vpc#create_and_configure_the_vpc). If no ID is provided, all ranges are considered.
- name: fileStripeLevel
value: string
description: >
Optional. Immutable. Stripe level for files. Allowed values are: * `FILE_STRIPE_LEVEL_MIN`: offers the best performance for small size files. * `FILE_STRIPE_LEVEL_BALANCED`: balances performance for workloads involving a mix of small and large files. * `FILE_STRIPE_LEVEL_MAX`: higher throughput performance for larger files.
valid_values: ['FILE_STRIPE_LEVEL_UNSPECIFIED', 'FILE_STRIPE_LEVEL_MIN', 'FILE_STRIPE_LEVEL_BALANCED', 'FILE_STRIPE_LEVEL_MAX']
- name: directoryStripeLevel
value: string
description: >
Optional. Immutable. Stripe level for directories. Allowed values are: * `DIRECTORY_STRIPE_LEVEL_MIN`: recommended when directories contain a small number of files. * `DIRECTORY_STRIPE_LEVEL_BALANCED`: balances performance for workloads involving a mix of small and large directories. * `DIRECTORY_STRIPE_LEVEL_MAX`: recommended for directories with a large number of files.
valid_values: ['DIRECTORY_STRIPE_LEVEL_UNSPECIFIED', 'DIRECTORY_STRIPE_LEVEL_MIN', 'DIRECTORY_STRIPE_LEVEL_BALANCED', 'DIRECTORY_STRIPE_LEVEL_MAX']
- name: deploymentType
value: string
description: >
Optional. Immutable. The deployment type of the instance. Allowed values are: * `SCRATCH`: the instance is a scratch instance. * `PERSISTENT`: the instance is a persistent instance.
valid_values: ['DEPLOYMENT_TYPE_UNSPECIFIED', 'SCRATCH', 'PERSISTENT']
- name: instanceId
value: string
- name: requestId
value: string
UPDATE
examples
- patch
Updates the parameters of a single instance.
UPDATE google.parallelstore.instances
SET
data__name = '{{ name }}',
data__description = '{{ description }}',
data__labels = '{{ labels }}',
data__capacityGib = '{{ capacityGib }}',
data__network = '{{ network }}',
data__reservedIpRange = '{{ reservedIpRange }}',
data__fileStripeLevel = '{{ fileStripeLevel }}',
data__directoryStripeLevel = '{{ directoryStripeLevel }}',
data__deploymentType = '{{ deploymentType }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND instancesId = '{{ instancesId }}' --required
AND updateMask = '{{ updateMask}}'
AND requestId = '{{ requestId}}'
RETURNING
name,
done,
error,
metadata,
response;
DELETE
examples
- delete
Deletes a single instance.
DELETE FROM google.parallelstore.instances
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND instancesId = '{{ instancesId }}' --required
AND requestId = '{{ requestId }}';
Lifecycle Methods
- import_data
- export_data
Copies data from Cloud Storage to Parallelstore.
EXEC google.parallelstore.instances.import_data
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@instancesId='{{ instancesId }}' --required
@@json=
'{
"sourceGcsBucket": "{{ sourceGcsBucket }}",
"destinationParallelstore": "{{ destinationParallelstore }}",
"requestId": "{{ requestId }}",
"serviceAccount": "{{ serviceAccount }}",
"metadataOptions": "{{ metadataOptions }}"
}';
Copies data from Parallelstore to Cloud Storage.
EXEC google.parallelstore.instances.export_data
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@instancesId='{{ instancesId }}' --required
@@json=
'{
"sourceParallelstore": "{{ sourceParallelstore }}",
"destinationGcsBucket": "{{ destinationGcsBucket }}",
"requestId": "{{ requestId }}",
"serviceAccount": "{{ serviceAccount }}",
"metadataOptions": "{{ metadataOptions }}"
}';