Skip to main content

index_endpoints

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

Overview

Nameindex_endpoints
TypeResource
Idgoogle.aiplatform.index_endpoints

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringOutput only. The resource name of the IndexEndpoint.
createTimestring (google-datetime)Output only. Timestamp when this IndexEndpoint was created.
deployedIndexesarrayOutput only. The indexes deployed in this endpoint.
descriptionstringThe description of the IndexEndpoint.
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.
encryptionSpecobjectImmutable. 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)
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.
privateServiceConnectConfigobjectOptional. Configuration for private service connect. network and private_service_connect_config are mutually exclusive. (id: GoogleCloudAiplatformV1PrivateServiceConnectConfig)
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.
updateTimestring (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:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, indexEndpointsIdGets an IndexEndpoint.
listselectprojectsId, locationsIdfilter, pageSize, pageToken, readMaskLists IndexEndpoints in a Location.
createinsertprojectsId, locationsIdCreates an IndexEndpoint.
patchupdateprojectsId, locationsId, indexEndpointsIdupdateMaskUpdates an IndexEndpoint.
deletedeleteprojectsId, locationsId, indexEndpointsIdDeletes an IndexEndpoint.
deploy_indexexecprojectsId, locationsId, indexEndpointsIdDeploys an Index into this IndexEndpoint, creating a DeployedIndex within it.
undeploy_indexexecprojectsId, locationsId, indexEndpointsIdUndeploys an Index from an IndexEndpoint, removing a DeployedIndex from it, and freeing all resources it's using.
mutate_deployed_indexexecprojectsId, locationsId, indexEndpointsIdUpdate an existing DeployedIndex under an IndexEndpoint.
find_neighborsexecprojectsId, locationsId, indexEndpointsIdFinds the nearest neighbors of each vector within the request.
read_index_datapointsexecprojectsId, locationsId, indexEndpointsIdReads 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.

NameDatatypeDescription
indexEndpointsIdstring
locationsIdstring
projectsIdstring
filterstring
pageSizeinteger (int32)
pageTokenstring
readMaskstring (google-fieldmask)
updateMaskstring (google-fieldmask)

SELECT examples

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;

INSERT examples

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
;

UPDATE examples

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

Deletes an IndexEndpoint.

DELETE FROM google.aiplatform.index_endpoints
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND indexEndpointsId = '{{ indexEndpointsId }}' --required;

Lifecycle Methods

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 }}"
}';