persistent_resources
Creates, updates, deletes, gets or lists a persistent_resources
resource.
Overview
Name | persistent_resources |
Type | Resource |
Id | google.aiplatform.persistent_resources |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Immutable. Resource name of a PersistentResource. |
createTime | string | 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 | Represents a customer-managed encryption key spec that can be applied to a top-level resource. |
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. |
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. |
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 | Persistent Cluster runtime information as output |
resourceRuntimeSpec | object | Configuration for the runtime on a PersistentResource instance, including but not limited to: Service accounts used to run the workloads. Whether to make it a dedicated Ray Cluster. |
satisfiesPzi | boolean | Output only. Reserved for future use. |
satisfiesPzs | boolean | Output only. Reserved for future use. |
startTime | string | 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 | Output only. Time when the PersistentResource was most recently updated. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | locationsId, persistentResourcesId, projectsId | Gets a PersistentResource. |
list | SELECT | locationsId, projectsId | Lists PersistentResources in a Location. |
create | INSERT | locationsId, projectsId | Creates a PersistentResource. |
delete | DELETE | locationsId, persistentResourcesId, projectsId | Deletes a PersistentResource. |
patch | UPDATE | locationsId, persistentResourcesId, projectsId | Updates a PersistentResource. |
reboot | EXEC | locationsId, persistentResourcesId, projectsId | Reboots a PersistentResource. |
SELECT
examples
Lists PersistentResources in a Location.
SELECT
name,
createTime,
displayName,
encryptionSpec,
error,
labels,
network,
reservedIpRanges,
resourcePools,
resourceRuntime,
resourceRuntimeSpec,
satisfiesPzi,
satisfiesPzs,
startTime,
state,
updateTime
FROM google.aiplatform.persistent_resources
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new persistent_resources
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.aiplatform.persistent_resources (
locationsId,
projectsId,
encryptionSpec,
labels,
resourceRuntimeSpec,
name,
reservedIpRanges,
network,
resourcePools,
displayName
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}',
'{{ encryptionSpec }}',
'{{ labels }}',
'{{ resourceRuntimeSpec }}',
'{{ name }}',
'{{ reservedIpRanges }}',
'{{ network }}',
'{{ resourcePools }}',
'{{ displayName }}'
;
- name: your_resource_model_name
props:
- name: state
value: string
- name: encryptionSpec
value:
- name: kmsKeyName
value: string
- name: satisfiesPzs
value: boolean
- name: error
value:
- name: code
value: integer
- name: message
value: string
- name: details
value:
- object
- name: satisfiesPzi
value: boolean
- name: createTime
value: string
- name: labels
value: object
- name: startTime
value: string
- name: resourceRuntimeSpec
value:
- name: raySpec
value:
- name: imageUri
value: string
- name: rayMetricSpec
value:
- name: disabled
value: boolean
- name: resourcePoolImages
value: object
- name: headNodeResourcePoolId
value: string
- name: rayLogsSpec
value:
- name: disabled
value: boolean
- name: serviceAccountSpec
value:
- name: serviceAccount
value: string
- name: enableCustomServiceAccount
value: boolean
- name: name
value: string
- name: reservedIpRanges
value:
- string
- name: network
value: string
- name: resourcePools
value:
- - name: replicaCount
value: string
- name: diskSpec
value:
- name: bootDiskType
value: string
- name: bootDiskSizeGb
value: integer
- name: usedReplicaCount
value: string
- name: machineSpec
value:
- name: acceleratorCount
value: integer
- name: tpuTopology
value: string
- name: machineType
value: string
- name: acceleratorType
value: string
- name: reservationAffinity
value:
- name: reservationAffinityType
value: string
- name: values
value:
- string
- name: key
value: string
- name: id
value: string
- name: autoscalingSpec
value:
- name: maxReplicaCount
value: string
- name: minReplicaCount
value: string
- name: displayName
value: string
- name: resourceRuntime
value:
- name: accessUris
value: object
- name: updateTime
value: string
UPDATE
example
Updates a persistent_resources
resource.
/*+ update */
UPDATE google.aiplatform.persistent_resources
SET
encryptionSpec = '{{ encryptionSpec }}',
labels = '{{ labels }}',
resourceRuntimeSpec = '{{ resourceRuntimeSpec }}',
name = '{{ name }}',
reservedIpRanges = '{{ reservedIpRanges }}',
network = '{{ network }}',
resourcePools = '{{ resourcePools }}',
displayName = '{{ displayName }}'
WHERE
locationsId = '{{ locationsId }}'
AND persistentResourcesId = '{{ persistentResourcesId }}'
AND projectsId = '{{ projectsId }}';
DELETE
example
Deletes the specified persistent_resources
resource.
/*+ delete */
DELETE FROM google.aiplatform.persistent_resources
WHERE locationsId = '{{ locationsId }}'
AND persistentResourcesId = '{{ persistentResourcesId }}'
AND projectsId = '{{ projectsId }}';