persistent_resources
Creates, updates, deletes, gets or lists a persistent_resources
resource.
Overview
Name | persistent_resources |
Type | Resource |
Id | google.aiplatform.persistent_resources |
Fields
The following fields are returned by SELECT
queries:
- get
- list
Successful response
Name | Datatype | Description |
---|---|---|
name | string | Immutable. Resource name of a PersistentResource. |
createTime | string (google-datetime) | Output only. Time when the PersistentResource was created. |
displayName | string | Optional. The display name of the PersistentResource. The name can be up to 128 characters long and can consist of any UTF-8 characters. |
encryptionSpec | object | Optional. Customer-managed encryption key spec for a PersistentResource. If set, this PersistentResource and all sub-resources of this PersistentResource will be secured by this key. (id: GoogleCloudAiplatformV1EncryptionSpec) |
error | object | The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC. Each Status message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the API Design Guide. (id: GoogleRpcStatus) |
labels | object | Optional. The labels with user-defined metadata to organize PersistentResource. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information and examples of labels. |
network | string | Optional. The full name of the Compute Engine network to peered with Vertex AI to host the persistent resources. For example, projects/12345/global/networks/myVPC . Format is of the form projects/{project}/global/networks/{network} . Where {project} is a project number, as in 12345 , and {network} is a network name. To specify this field, you must have already configured VPC Network Peering for Vertex AI. If this field is left unspecified, the resources aren't peered with any network. |
pscInterfaceConfig | object | Optional. Configuration for PSC-I for PersistentResource. (id: GoogleCloudAiplatformV1PscInterfaceConfig) |
reservedIpRanges | array | Optional. A list of names for the reserved IP ranges under the VPC network that can be used for this persistent resource. If set, we will deploy the persistent resource within the provided IP ranges. Otherwise, the persistent resource is deployed to any IP ranges under the provided VPC network. Example: ['vertex-ai-ip-range']. |
resourcePools | array | Required. The spec of the pools of different resources. |
resourceRuntime | object | Output only. Runtime information of the Persistent Resource. (id: GoogleCloudAiplatformV1ResourceRuntime) |
resourceRuntimeSpec | object | Optional. Persistent Resource runtime spec. For example, used for Ray cluster configuration. (id: GoogleCloudAiplatformV1ResourceRuntimeSpec) |
satisfiesPzi | boolean | Output only. Reserved for future use. |
satisfiesPzs | boolean | Output only. Reserved for future use. |
startTime | string (google-datetime) | Output only. Time when the PersistentResource for the first time entered the RUNNING state. |
state | string | Output only. The detailed state of a Study. |
updateTime | string (google-datetime) | Output only. Time when the PersistentResource was most recently updated. |
Successful response
Name | Datatype | Description |
---|---|---|
name | string | Immutable. Resource name of a PersistentResource. |
createTime | string (google-datetime) | Output only. Time when the PersistentResource was created. |
displayName | string | Optional. The display name of the PersistentResource. The name can be up to 128 characters long and can consist of any UTF-8 characters. |
encryptionSpec | object | Optional. Customer-managed encryption key spec for a PersistentResource. If set, this PersistentResource and all sub-resources of this PersistentResource will be secured by this key. (id: GoogleCloudAiplatformV1EncryptionSpec) |
error | object | The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC. Each Status message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the API Design Guide. (id: GoogleRpcStatus) |
labels | object | Optional. The labels with user-defined metadata to organize PersistentResource. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information and examples of labels. |
network | string | Optional. The full name of the Compute Engine network to peered with Vertex AI to host the persistent resources. For example, projects/12345/global/networks/myVPC . Format is of the form projects/{project}/global/networks/{network} . Where {project} is a project number, as in 12345 , and {network} is a network name. To specify this field, you must have already configured VPC Network Peering for Vertex AI. If this field is left unspecified, the resources aren't peered with any network. |
pscInterfaceConfig | object | Optional. Configuration for PSC-I for PersistentResource. (id: GoogleCloudAiplatformV1PscInterfaceConfig) |
reservedIpRanges | array | Optional. A list of names for the reserved IP ranges under the VPC network that can be used for this persistent resource. If set, we will deploy the persistent resource within the provided IP ranges. Otherwise, the persistent resource is deployed to any IP ranges under the provided VPC network. Example: ['vertex-ai-ip-range']. |
resourcePools | array | Required. The spec of the pools of different resources. |
resourceRuntime | object | Output only. Runtime information of the Persistent Resource. (id: GoogleCloudAiplatformV1ResourceRuntime) |
resourceRuntimeSpec | object | Optional. Persistent Resource runtime spec. For example, used for Ray cluster configuration. (id: GoogleCloudAiplatformV1ResourceRuntimeSpec) |
satisfiesPzi | boolean | Output only. Reserved for future use. |
satisfiesPzs | boolean | Output only. Reserved for future use. |
startTime | string (google-datetime) | Output only. Time when the PersistentResource for the first time entered the RUNNING state. |
state | string | Output only. The detailed state of a Study. |
updateTime | string (google-datetime) | Output only. Time when the PersistentResource was most recently updated. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get | select | projectsId , locationsId , persistentResourcesId | Gets a PersistentResource. | |
list | select | projectsId , locationsId | pageSize , pageToken | Lists PersistentResources in a Location. |
create | insert | projectsId , locationsId | persistentResourceId | Creates a PersistentResource. |
patch | update | projectsId , locationsId , persistentResourcesId | updateMask | Updates a PersistentResource. |
delete | delete | projectsId , locationsId , persistentResourcesId | Deletes a PersistentResource. | |
reboot | exec | projectsId , locationsId , persistentResourcesId | Reboots a PersistentResource. |
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 |
---|---|---|
locationsId | string | |
persistentResourcesId | string | |
projectsId | string | |
pageSize | integer (int32) | |
pageToken | string | |
persistentResourceId | string | |
updateMask | string (google-fieldmask) |
SELECT
examples
- get
- list
Gets a PersistentResource.
SELECT
name,
createTime,
displayName,
encryptionSpec,
error,
labels,
network,
pscInterfaceConfig,
reservedIpRanges,
resourcePools,
resourceRuntime,
resourceRuntimeSpec,
satisfiesPzi,
satisfiesPzs,
startTime,
state,
updateTime
FROM google.aiplatform.persistent_resources
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND persistentResourcesId = '{{ persistentResourcesId }}' -- required;
Lists PersistentResources in a Location.
SELECT
name,
createTime,
displayName,
encryptionSpec,
error,
labels,
network,
pscInterfaceConfig,
reservedIpRanges,
resourcePools,
resourceRuntime,
resourceRuntimeSpec,
satisfiesPzi,
satisfiesPzs,
startTime,
state,
updateTime
FROM google.aiplatform.persistent_resources
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}';
INSERT
examples
- create
- Manifest
Creates a PersistentResource.
INSERT INTO google.aiplatform.persistent_resources (
data__name,
data__displayName,
data__resourcePools,
data__labels,
data__network,
data__pscInterfaceConfig,
data__encryptionSpec,
data__resourceRuntimeSpec,
data__reservedIpRanges,
projectsId,
locationsId,
persistentResourceId
)
SELECT
'{{ name }}',
'{{ displayName }}',
'{{ resourcePools }}',
'{{ labels }}',
'{{ network }}',
'{{ pscInterfaceConfig }}',
'{{ encryptionSpec }}',
'{{ resourceRuntimeSpec }}',
'{{ reservedIpRanges }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ persistentResourceId }}'
RETURNING
name,
done,
error,
metadata,
response
;
# Description fields are for documentation purposes
- name: persistent_resources
props:
- name: projectsId
value: string
description: Required parameter for the persistent_resources resource.
- name: locationsId
value: string
description: Required parameter for the persistent_resources resource.
- name: name
value: string
description: >
Immutable. Resource name of a PersistentResource.
- name: displayName
value: string
description: >
Optional. The display name of the PersistentResource. The name can be up to 128 characters long and can consist of any UTF-8 characters.
- name: resourcePools
value: array
description: >
Required. The spec of the pools of different resources.
- name: labels
value: object
description: >
Optional. The labels with user-defined metadata to organize PersistentResource. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information and examples of labels.
- name: network
value: string
description: >
Optional. The full name of the Compute Engine [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) to peered with Vertex AI to host the persistent resources. For example, `projects/12345/global/networks/myVPC`. [Format](https://cloud.google.com/compute/docs/reference/rest/v1/networks/insert) is of the form `projects/{project}/global/networks/{network}`. Where {project} is a project number, as in `12345`, and {network} is a network name. To specify this field, you must have already [configured VPC Network Peering for Vertex AI](https://cloud.google.com/vertex-ai/docs/general/vpc-peering). If this field is left unspecified, the resources aren't peered with any network.
- name: pscInterfaceConfig
value: object
description: >
Optional. Configuration for PSC-I for PersistentResource.
- name: encryptionSpec
value: object
description: >
Optional. Customer-managed encryption key spec for a PersistentResource. If set, this PersistentResource and all sub-resources of this PersistentResource will be secured by this key.
- name: resourceRuntimeSpec
value: object
description: >
Optional. Persistent Resource runtime spec. For example, used for Ray cluster configuration.
- name: reservedIpRanges
value: array
description: >
Optional. A list of names for the reserved IP ranges under the VPC network that can be used for this persistent resource. If set, we will deploy the persistent resource within the provided IP ranges. Otherwise, the persistent resource is deployed to any IP ranges under the provided VPC network. Example: ['vertex-ai-ip-range'].
- name: persistentResourceId
value: string
UPDATE
examples
- patch
Updates a PersistentResource.
UPDATE google.aiplatform.persistent_resources
SET
data__name = '{{ name }}',
data__displayName = '{{ displayName }}',
data__resourcePools = '{{ resourcePools }}',
data__labels = '{{ labels }}',
data__network = '{{ network }}',
data__pscInterfaceConfig = '{{ pscInterfaceConfig }}',
data__encryptionSpec = '{{ encryptionSpec }}',
data__resourceRuntimeSpec = '{{ resourceRuntimeSpec }}',
data__reservedIpRanges = '{{ reservedIpRanges }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND persistentResourcesId = '{{ persistentResourcesId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
done,
error,
metadata,
response;
DELETE
examples
- delete
Deletes a PersistentResource.
DELETE FROM google.aiplatform.persistent_resources
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND persistentResourcesId = '{{ persistentResourcesId }}' --required;
Lifecycle Methods
- reboot
Reboots a PersistentResource.
EXEC google.aiplatform.persistent_resources.reboot
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@persistentResourcesId='{{ persistentResourcesId }}' --required;