index_endpoints
Creates, updates, deletes, gets or lists an index_endpoints
resource.
Overview
Name | index_endpoints |
Type | Resource |
Id | google.aiplatform.index_endpoints |
Fields
The following fields are returned by SELECT
queries:
- get
- list
Successful response
Name | Datatype | Description |
---|---|---|
name | string | Output only. The resource name of the IndexEndpoint. |
createTime | string (google-datetime) | Output only. Timestamp when this IndexEndpoint was created. |
deployedIndexes | array | Output only. The indexes deployed in this endpoint. |
description | string | The description of the IndexEndpoint. |
displayName | string | Required. The display name of the IndexEndpoint. The name can be up to 128 characters long and can consist of any UTF-8 characters. |
enablePrivateServiceConnect | boolean | Optional. Deprecated: If true, expose the IndexEndpoint via private service connect. Only one of the fields, network or enable_private_service_connect, can be set. |
encryptionSpec | object | Immutable. Customer-managed encryption key spec for an IndexEndpoint. If set, this IndexEndpoint and all sub-resources of this IndexEndpoint will be secured by this key. (id: GoogleCloudAiplatformV1EncryptionSpec) |
etag | string | Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens. |
labels | object | The labels with user-defined metadata to organize your IndexEndpoints. 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 Google Compute Engine network to which the IndexEndpoint should be peered. Private services access must already be configured for the network. If left unspecified, the Endpoint is not peered with any network. network and private_service_connect_config are mutually exclusive. Format: projects/{project}/global/networks/{network} . Where {project} is a project number, as in '12345', and {network} is network name. |
privateServiceConnectConfig | object | Optional. Configuration for private service connect. network and private_service_connect_config are mutually exclusive. (id: GoogleCloudAiplatformV1PrivateServiceConnectConfig) |
publicEndpointDomainName | string | Output only. If public_endpoint_enabled is true, this field will be populated with the domain name to use for this index endpoint. |
publicEndpointEnabled | boolean | Optional. If true, the deployed index will be accessible through public endpoint. |
satisfiesPzi | boolean | Output only. Reserved for future use. |
satisfiesPzs | boolean | Output only. Reserved for future use. |
updateTime | string (google-datetime) | Output only. Timestamp when this IndexEndpoint was last updated. This timestamp is not updated when the endpoint's DeployedIndexes are updated, e.g. due to updates of the original Indexes they are the deployments of. |
Successful response
Name | Datatype | Description |
---|---|---|
name | string | Output only. The resource name of the IndexEndpoint. |
createTime | string (google-datetime) | Output only. Timestamp when this IndexEndpoint was created. |
deployedIndexes | array | Output only. The indexes deployed in this endpoint. |
description | string | The description of the IndexEndpoint. |
displayName | string | Required. The display name of the IndexEndpoint. The name can be up to 128 characters long and can consist of any UTF-8 characters. |
enablePrivateServiceConnect | boolean | Optional. Deprecated: If true, expose the IndexEndpoint via private service connect. Only one of the fields, network or enable_private_service_connect, can be set. |
encryptionSpec | object | Immutable. Customer-managed encryption key spec for an IndexEndpoint. If set, this IndexEndpoint and all sub-resources of this IndexEndpoint will be secured by this key. (id: GoogleCloudAiplatformV1EncryptionSpec) |
etag | string | Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens. |
labels | object | The labels with user-defined metadata to organize your IndexEndpoints. 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 Google Compute Engine network to which the IndexEndpoint should be peered. Private services access must already be configured for the network. If left unspecified, the Endpoint is not peered with any network. network and private_service_connect_config are mutually exclusive. Format: projects/{project}/global/networks/{network} . Where {project} is a project number, as in '12345', and {network} is network name. |
privateServiceConnectConfig | object | Optional. Configuration for private service connect. network and private_service_connect_config are mutually exclusive. (id: GoogleCloudAiplatformV1PrivateServiceConnectConfig) |
publicEndpointDomainName | string | Output only. If public_endpoint_enabled is true, this field will be populated with the domain name to use for this index endpoint. |
publicEndpointEnabled | boolean | Optional. If true, the deployed index will be accessible through public endpoint. |
satisfiesPzi | boolean | Output only. Reserved for future use. |
satisfiesPzs | boolean | Output only. Reserved for future use. |
updateTime | string (google-datetime) | Output only. Timestamp when this IndexEndpoint was last updated. This timestamp is not updated when the endpoint's DeployedIndexes are updated, e.g. due to updates of the original Indexes they are the deployments of. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get | select | projectsId , locationsId , indexEndpointsId | Gets an IndexEndpoint. | |
list | select | projectsId , locationsId | filter , pageSize , pageToken , readMask | Lists IndexEndpoints in a Location. |
create | insert | projectsId , locationsId | Creates an IndexEndpoint. | |
patch | update | projectsId , locationsId , indexEndpointsId | updateMask | Updates an IndexEndpoint. |
delete | delete | projectsId , locationsId , indexEndpointsId | Deletes an IndexEndpoint. | |
deploy_index | exec | projectsId , locationsId , indexEndpointsId | Deploys an Index into this IndexEndpoint, creating a DeployedIndex within it. | |
undeploy_index | exec | projectsId , locationsId , indexEndpointsId | Undeploys an Index from an IndexEndpoint, removing a DeployedIndex from it, and freeing all resources it's using. | |
mutate_deployed_index | exec | projectsId , locationsId , indexEndpointsId | Update an existing DeployedIndex under an IndexEndpoint. | |
find_neighbors | exec | projectsId , locationsId , indexEndpointsId | Finds the nearest neighbors of each vector within the request. | |
read_index_datapoints | exec | projectsId , locationsId , indexEndpointsId | Reads the datapoints/vectors of the given IDs. A maximum of 1000 datapoints can be retrieved in a batch. |
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 |
---|---|---|
indexEndpointsId | string | |
locationsId | string | |
projectsId | string | |
filter | string | |
pageSize | integer (int32) | |
pageToken | string | |
readMask | string (google-fieldmask) | |
updateMask | string (google-fieldmask) |
SELECT
examples
- get
- list
Gets an IndexEndpoint.
SELECT
name,
createTime,
deployedIndexes,
description,
displayName,
enablePrivateServiceConnect,
encryptionSpec,
etag,
labels,
network,
privateServiceConnectConfig,
publicEndpointDomainName,
publicEndpointEnabled,
satisfiesPzi,
satisfiesPzs,
updateTime
FROM google.aiplatform.index_endpoints
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND indexEndpointsId = '{{ indexEndpointsId }}' -- required;
Lists IndexEndpoints in a Location.
SELECT
name,
createTime,
deployedIndexes,
description,
displayName,
enablePrivateServiceConnect,
encryptionSpec,
etag,
labels,
network,
privateServiceConnectConfig,
publicEndpointDomainName,
publicEndpointEnabled,
satisfiesPzi,
satisfiesPzs,
updateTime
FROM google.aiplatform.index_endpoints
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND filter = '{{ filter }}'
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}'
AND readMask = '{{ readMask }}';
INSERT
examples
- create
- Manifest
Creates an IndexEndpoint.
INSERT INTO google.aiplatform.index_endpoints (
data__displayName,
data__description,
data__etag,
data__labels,
data__network,
data__enablePrivateServiceConnect,
data__privateServiceConnectConfig,
data__publicEndpointEnabled,
data__encryptionSpec,
projectsId,
locationsId
)
SELECT
'{{ displayName }}',
'{{ description }}',
'{{ etag }}',
'{{ labels }}',
'{{ network }}',
{{ enablePrivateServiceConnect }},
'{{ privateServiceConnectConfig }}',
{{ publicEndpointEnabled }},
'{{ encryptionSpec }}',
'{{ projectsId }}',
'{{ locationsId }}'
RETURNING
name,
done,
error,
metadata,
response
;
# Description fields are for documentation purposes
- name: index_endpoints
props:
- name: projectsId
value: string
description: Required parameter for the index_endpoints resource.
- name: locationsId
value: string
description: Required parameter for the index_endpoints resource.
- name: displayName
value: string
description: >
Required. The display name of the IndexEndpoint. The name can be up to 128 characters long and can consist of any UTF-8 characters.
- name: description
value: string
description: >
The description of the IndexEndpoint.
- name: etag
value: string
description: >
Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens.
- name: labels
value: object
description: >
The labels with user-defined metadata to organize your IndexEndpoints. 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 Google Compute Engine [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) to which the IndexEndpoint should be peered. Private services access must already be configured for the network. If left unspecified, the Endpoint is not peered with any network. network and private_service_connect_config are mutually exclusive. [Format](https://cloud.google.com/compute/docs/reference/rest/v1/networks/insert): `projects/{project}/global/networks/{network}`. Where {project} is a project number, as in '12345', and {network} is network name.
- name: enablePrivateServiceConnect
value: boolean
description: >
Optional. Deprecated: If true, expose the IndexEndpoint via private service connect. Only one of the fields, network or enable_private_service_connect, can be set.
- name: privateServiceConnectConfig
value: object
description: >
Optional. Configuration for private service connect. network and private_service_connect_config are mutually exclusive.
- name: publicEndpointEnabled
value: boolean
description: >
Optional. If true, the deployed index will be accessible through public endpoint.
- name: encryptionSpec
value: object
description: >
Immutable. Customer-managed encryption key spec for an IndexEndpoint. If set, this IndexEndpoint and all sub-resources of this IndexEndpoint will be secured by this key.
UPDATE
examples
- patch
Updates an IndexEndpoint.
UPDATE google.aiplatform.index_endpoints
SET
data__displayName = '{{ displayName }}',
data__description = '{{ description }}',
data__etag = '{{ etag }}',
data__labels = '{{ labels }}',
data__network = '{{ network }}',
data__enablePrivateServiceConnect = {{ enablePrivateServiceConnect }},
data__privateServiceConnectConfig = '{{ privateServiceConnectConfig }}',
data__publicEndpointEnabled = {{ publicEndpointEnabled }},
data__encryptionSpec = '{{ encryptionSpec }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND indexEndpointsId = '{{ indexEndpointsId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
createTime,
deployedIndexes,
description,
displayName,
enablePrivateServiceConnect,
encryptionSpec,
etag,
labels,
network,
privateServiceConnectConfig,
publicEndpointDomainName,
publicEndpointEnabled,
satisfiesPzi,
satisfiesPzs,
updateTime;
DELETE
examples
- delete
Deletes an IndexEndpoint.
DELETE FROM google.aiplatform.index_endpoints
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND indexEndpointsId = '{{ indexEndpointsId }}' --required;
Lifecycle Methods
- deploy_index
- undeploy_index
- mutate_deployed_index
- find_neighbors
- read_index_datapoints
Deploys an Index into this IndexEndpoint, creating a DeployedIndex within it.
EXEC google.aiplatform.index_endpoints.deploy_index
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@indexEndpointsId='{{ indexEndpointsId }}' --required
@@json=
'{
"deployedIndex": "{{ deployedIndex }}"
}';
Undeploys an Index from an IndexEndpoint, removing a DeployedIndex from it, and freeing all resources it's using.
EXEC google.aiplatform.index_endpoints.undeploy_index
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@indexEndpointsId='{{ indexEndpointsId }}' --required
@@json=
'{
"deployedIndexId": "{{ deployedIndexId }}"
}';
Update an existing DeployedIndex under an IndexEndpoint.
EXEC google.aiplatform.index_endpoints.mutate_deployed_index
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@indexEndpointsId='{{ indexEndpointsId }}' --required
@@json=
'{
"id": "{{ id }}",
"index": "{{ index }}",
"displayName": "{{ displayName }}",
"automaticResources": "{{ automaticResources }}",
"dedicatedResources": "{{ dedicatedResources }}",
"enableAccessLogging": {{ enableAccessLogging }},
"enableDatapointUpsertLogging": {{ enableDatapointUpsertLogging }},
"deployedIndexAuthConfig": "{{ deployedIndexAuthConfig }}",
"reservedIpRanges": "{{ reservedIpRanges }}",
"deploymentGroup": "{{ deploymentGroup }}",
"deploymentTier": "{{ deploymentTier }}",
"pscAutomationConfigs": "{{ pscAutomationConfigs }}"
}';
Finds the nearest neighbors of each vector within the request.
EXEC google.aiplatform.index_endpoints.find_neighbors
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@indexEndpointsId='{{ indexEndpointsId }}' --required
@@json=
'{
"deployedIndexId": "{{ deployedIndexId }}",
"queries": "{{ queries }}",
"returnFullDatapoint": {{ returnFullDatapoint }}
}';
Reads the datapoints/vectors of the given IDs. A maximum of 1000 datapoints can be retrieved in a batch.
EXEC google.aiplatform.index_endpoints.read_index_datapoints
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@indexEndpointsId='{{ indexEndpointsId }}' --required
@@json=
'{
"deployedIndexId": "{{ deployedIndexId }}",
"ids": "{{ ids }}"
}';