Skip to main content

index_endpoints

Creates, updates, deletes, gets or lists a index_endpoints resource.

Overview

Nameindex_endpoints
TypeResource
Idgoogle.aiplatform.index_endpoints

Fields

NameDatatypeDescription
namestringOutput only. The resource name of the IndexEndpoint.
descriptionstringThe description of the IndexEndpoint.
createTimestringOutput only. Timestamp when this IndexEndpoint was created.
deployedIndexesarrayOutput only. The indexes deployed in this endpoint.
displayNamestringRequired. The display name of the IndexEndpoint. The name can be up to 128 characters long and can consist of any UTF-8 characters.
enablePrivateServiceConnectbooleanOptional. Deprecated: If true, expose the IndexEndpoint via private service connect. Only one of the fields, network or enable_private_service_connect, can be set.
encryptionSpecobjectRepresents a customer-managed encryption key spec that can be applied to a top-level resource.
etagstringUsed to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens.
labelsobjectThe 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.
networkstringOptional. 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.
privateServiceConnectConfigobjectRepresents configuration for private service connect.
publicEndpointDomainNamestringOutput only. If public_endpoint_enabled is true, this field will be populated with the domain name to use for this index endpoint.
publicEndpointEnabledbooleanOptional. If true, the deployed index will be accessible through public endpoint.
satisfiesPzibooleanOutput only. Reserved for future use.
satisfiesPzsbooleanOutput only. Reserved for future use.
updateTimestringOutput 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

NameAccessible byRequired ParamsDescription
getSELECTindexEndpointsId, locationsId, projectsIdGets an IndexEndpoint.
listSELECTlocationsId, projectsIdLists IndexEndpoints in a Location.
createINSERTlocationsId, projectsIdCreates an IndexEndpoint.
deleteDELETEindexEndpointsId, locationsId, projectsIdDeletes an IndexEndpoint.
patchUPDATEindexEndpointsId, locationsId, projectsIdUpdates an IndexEndpoint.
deploy_indexEXECindexEndpointsId, locationsId, projectsIdDeploys an Index into this IndexEndpoint, creating a DeployedIndex within it. Only non-empty Indexes can be deployed.
find_neighborsEXECindexEndpointsId, locationsId, projectsIdFinds the nearest neighbors of each vector within the request.
mutate_deployed_indexEXECindexEndpointsId, locationsId, projectsIdUpdate an existing DeployedIndex under an IndexEndpoint.
read_index_datapointsEXECindexEndpointsId, locationsId, projectsIdReads the datapoints/vectors of the given IDs. A maximum of 1000 datapoints can be retrieved in a batch.
undeploy_indexEXECindexEndpointsId, locationsId, projectsIdUndeploys an Index from an IndexEndpoint, removing a DeployedIndex from it, and freeing all resources it's using.

SELECT examples

Lists IndexEndpoints in a Location.

SELECT
name,
description,
createTime,
deployedIndexes,
displayName,
enablePrivateServiceConnect,
encryptionSpec,
etag,
labels,
network,
privateServiceConnectConfig,
publicEndpointDomainName,
publicEndpointEnabled,
satisfiesPzi,
satisfiesPzs,
updateTime
FROM google.aiplatform.index_endpoints
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

INSERT example

Use the following StackQL query and manifest file to create a new index_endpoints resource.

/*+ create */
INSERT INTO google.aiplatform.index_endpoints (
locationsId,
projectsId,
encryptionSpec,
publicEndpointEnabled,
network,
privateServiceConnectConfig,
labels,
displayName,
description,
etag,
enablePrivateServiceConnect
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}',
'{{ encryptionSpec }}',
{{ publicEndpointEnabled }},
'{{ network }}',
'{{ privateServiceConnectConfig }}',
'{{ labels }}',
'{{ displayName }}',
'{{ description }}',
'{{ etag }}',
{{ enablePrivateServiceConnect }}
;

UPDATE example

Updates a index_endpoints resource.

/*+ update */
UPDATE google.aiplatform.index_endpoints
SET
encryptionSpec = '{{ encryptionSpec }}',
publicEndpointEnabled = true|false,
network = '{{ network }}',
privateServiceConnectConfig = '{{ privateServiceConnectConfig }}',
labels = '{{ labels }}',
displayName = '{{ displayName }}',
description = '{{ description }}',
etag = '{{ etag }}',
enablePrivateServiceConnect = true|false
WHERE
indexEndpointsId = '{{ indexEndpointsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

DELETE example

Deletes the specified index_endpoints resource.

/*+ delete */
DELETE FROM google.aiplatform.index_endpoints
WHERE indexEndpointsId = '{{ indexEndpointsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';