Skip to main content

Endpoint

View as Markdown

Endpoint object​

An AI Search endpoint — compute infrastructure that hosts AI Search indexes and serves queries against them. Customers create, query, and delete endpoints; the system manages provisioning, scaling, and health status.

namestringIDImmutable

Full resource name of the endpoint, in the form workspaces/{workspace_id}/endpoints/{endpoint_id}. On create, the server composes it from parent and endpoint_id and ignores any value supplied in the request body.

Example: workspaces/1234567890123456/endpoints/docs-endpoint

creatorstringOutput only

User name of the principal that created the endpoint. For a user, it is the user's email address; for any other principal, it is the principal's unique name.

Example: john@example.com

create_timestringOutput only

Time the endpoint was created.

Example: 2023-12-08T05:31:52.061Z

update_timestringOutput only

Time the endpoint was last updated.

Example: 2023-12-08T05:31:52.061Z

endpoint_typestringImmutable

Type of endpoint. Required on create and immutable thereafter.

Values:

  • STORAGE_OPTIMIZED
  • STANDARD
last_updated_userstringOutput only

User name of the principal that last updated the endpoint, in the same format as creator.

Example: john@example.com

idstringOutput only

System-generated UUID that uniquely identifies the endpoint.

Example: c56bf0a9-4929-4bd4-8bd5-d82ca62f9c76

endpoint_statusobjectOutput only

Current lifecycle state of the endpoint, with an optional message that explains it.

Show child attributesHide child attributes
statestringOutput only

Current lifecycle state of the endpoint. See State for the meaning of each value.

Values:

  • PROVISIONING
  • ONLINE
  • OFFLINE
  • RED_STATE
  • YELLOW_STATE
  • DELETED

Example: PROVISIONING

messagestringOutput only

Human-readable detail about the endpoint's current state or the reason for a state transition.

index_countint32Output only

Number of indexes on the endpoint

budget_policy_idstring

ID of the serverless budget policy to apply to the endpoint. The caller must have permission to use the policy. Set either this field or usage_policy_id, not both. Responses do not echo this field; they report the applied policy in effective_budget_policy_id.

Example: 8b0444ff-8b60-48b0-9d31-e391f6126e0f

effective_budget_policy_idstringOutput only

ID of the budget policy that is currently applied to the endpoint.

Example: 8b0444ff-8b60-48b0-9d31-e391f6126e0f

custom_tagsarray of object

Custom tags assigned to the endpoint. On update, the list replaces all of the endpoint's existing tags.

Show child attributesHide child attributes
keystring

Key field for an AI Search endpoint tag.

valuestring

[Optional] Value field for an AI Search endpoint tag.

throughput_infoobjectOutput only

Throughput information for the endpoint

Show child attributesHide child attributes
requested_concurrencydouble

The requested concurrency (total CPU) for the endpoint

Example: 10

current_concurrencydoubleOutput only

The current concurrency (total CPU) allocated to the endpoint

Example: 8

current_concurrency_utilization_percentagedoubleOutput only

The current utilization of concurrency as a percentage (0-100)

Example: 75.5

minimal_concurrency_alloweddouble

The minimum concurrency allowed for this endpoint

Example: 2

maximum_concurrency_alloweddouble

The maximum concurrency allowed for this endpoint

Example: 140

change_request_statestringOutput only

The state of the most recent throughput change request

Values:

  • CHANGE_SUCCESS
  • CHANGE_FAILED
  • CHANGE_REACHED_MINIMUM
  • CHANGE_REACHED_MAXIMUM
  • CHANGE_IN_PROGRESS
  • CHANGE_ADJUSTED

Example: CHANGE_SUCCESS

change_request_messagestringOutput only

Additional information about the throughput change request

Example: Throughput successfully adjusted to 10 vCPUs

requested_num_replicasint32

The requested number of replicas for the endpoint

Example: 2

current_num_replicasint32Output only

The current number of replicas allocated to the endpoint

Example: 1

scaling_infoobjectOutput only

Scaling information for the endpoint

Show child attributesHide child attributes
statestringOutput only

The current state of the scaling change request.

Values:

  • SCALING_CHANGE_UNSPECIFIED
  • SCALING_CHANGE_APPLIED
  • SCALING_CHANGE_IN_PROGRESS

Example: SCALING_CHANGE_APPLIED

requested_target_qpsint64

The requested QPS target for the endpoint. Best-effort; the system does not guarantee this QPS will be achieved.

Example: 500

estimated_completion_timestringBetaOutput only

Estimated time at which the in-progress scaling change will complete. The estimate may change as the scaling change progresses. Unset when no scaling change is in progress, when no estimate is available, or when the change is delayed (see delayed_reason).

Example: 2026-10-04T18:00:00Z

phasestringBetaOutput only

Current phase of the in-progress scaling change. Unset when no scaling change is in progress or the phase is not available.

Values:

  • ADJUSTING_CAPACITY
  • INITIALIZING_INDEX
  • ESTIMATING
  • FINALIZING

Example: INITIALIZING_INDEX

index_initialization_percentageint32BetaOutput only

Percentage of index initialization completed, from 0 to 100. Set only during the INITIALIZING_INDEX phase; unset in other phases or when progress is not available.

Example: 40

delayed_reasonstringBetaOutput only

Reason the in-progress scaling change is delayed. When set, estimated_completion_time is unset. Unset when the change is not delayed or no scaling change is in progress.

Values:

  • CAPACITY_UNAVAILABLE
  • SCALE_DOWN_BLOCKED
  • TAKING_LONGER_THAN_EXPECTED

Example: CAPACITY_UNAVAILABLE

target_qps_change_allowed_after_timestringBetaOutput only

Earliest time a new Target QPS change is accepted. Set only while a scaling change is in progress, the change lock is on, and the endpoint has a recorded last throughput change; may be in the past once the lock has expired.

Example: 2026-10-04T18:00:00Z

usage_policy_idstring

ID of the usage policy to apply to the endpoint. The server treats it as the same setting as budget_policy_id, so set only one of the two.

replica_countint32

The client-supplied desired number of replicas for the endpoint, applied at create/update time. Mutually exclusive with target_qps.

target_qpsint32

Target QPS for the endpoint. Mutually exclusive with replica_count. Best-effort; the system does not guarantee this QPS will be achieved. Responses report the requested value in scaling_info.requested_target_qps.

Get an AI Search endpoint GA​

GET /api/2.0/ai-search/{name=workspaces/*/endpoints/*}

Get details for a single AI Search endpoint.

API scopes: ai-search

Parameters​

namestringRequiredpath

Full resource name of the endpoint. Format: workspaces/{workspace_id}/endpoints/{endpoint_id}

Response​

Returns the Endpoint object.

List AI Search endpoints GA​

GET /api/2.0/ai-search/{parent=workspaces/*}/endpoints

List AI Search endpoints in a workspace.

API scopes: ai-search

Parameters​

parentstringRequiredpath

The Workspace that owns this collection of endpoints. Format: workspaces/{workspace_id}

page_sizeint32query

Maximum number of endpoints to return in one page. The server applies its own page size limit, so a page can hold fewer endpoints than page_size even when more remain.

page_tokenstringquery

Page token from a previous response. If not provided, returns the first page.

Response​

Returns a list of Endpoint objects.

Create an AI Search endpoint GA​

POST /api/2.0/ai-search/{parent=workspaces/*}/endpoints

Create a new AI Search endpoint.

API scopes: ai-search

Parameters​

parentstringRequiredpath

The Workspace where this Endpoint will be created. Format: workspaces/{workspace_id}

endpoint_idstringquery

Short name of the endpoint, which becomes the last segment of name. The server rejects a request without it. The name can have at most 50 characters, can contain only lowercase letters, digits, hyphens, periods, and underscores, and must start and end with a letter or digit.

Example: docs-endpoint

Request body​

The Endpoint resource to create. Fields other than endpoint.name carry the desired configuration; endpoint.name is server-assigned from parent and endpoint_id.

namestringIDImmutable

Full resource name of the endpoint, in the form workspaces/{workspace_id}/endpoints/{endpoint_id}. On create, the server composes it from parent and endpoint_id and ignores any value supplied in the request body.

Example: workspaces/1234567890123456/endpoints/docs-endpoint

endpoint_typestringRequiredImmutable

Type of endpoint. Required on create and immutable thereafter.

Values:

  • STORAGE_OPTIMIZED
  • STANDARD
budget_policy_idstring

ID of the serverless budget policy to apply to the endpoint. The caller must have permission to use the policy. Set either this field or usage_policy_id, not both. Responses do not echo this field; they report the applied policy in effective_budget_policy_id.

Example: 8b0444ff-8b60-48b0-9d31-e391f6126e0f

custom_tagsarray of object

Custom tags assigned to the endpoint. On update, the list replaces all of the endpoint's existing tags.

Show child attributesHide child attributes
keystringRequired

Key field for an AI Search endpoint tag.

valuestring

[Optional] Value field for an AI Search endpoint tag.

usage_policy_idstring

ID of the usage policy to apply to the endpoint. The server treats it as the same setting as budget_policy_id, so set only one of the two.

replica_countint32

The client-supplied desired number of replicas for the endpoint, applied at create/update time. Mutually exclusive with target_qps.

target_qpsint32

Target QPS for the endpoint. Mutually exclusive with replica_count. Best-effort; the system does not guarantee this QPS will be achieved. Responses report the requested value in scaling_info.requested_target_qps.

Response​

Returns the Endpoint object.

Update an AI Search endpoint GA​

PATCH /api/2.0/ai-search/{name=workspaces/*/endpoints/*}

Update an existing AI Search endpoint. Only the fields named in update_mask change. The server applies a mask that spans several settings, such as budget_policy_id and custom_tags, one setting at a time, so if a later setting fails, the earlier ones may already have been applied.

API scopes: ai-search

Parameters​

namestringRequiredIDImmutablepath

Full resource name of the endpoint, in the form workspaces/{workspace_id}/endpoints/{endpoint_id}. On create, the server composes it from parent and endpoint_id and ignores any value supplied in the request body.

Example: workspaces/1234567890123456/endpoints/docs-endpoint

update_maskstringRequiredquery

Comma-separated list of Endpoint fields to update. The updatable fields are budget_policy_id, usage_policy_id, custom_tags, replica_count, and target_qps. The server rejects nested paths and unknown fields.

Request body​

The Endpoint resource to update. endpoint.name carries the full resource path.

endpoint_typestringRequiredImmutable

Type of endpoint. Required on create and immutable thereafter.

Values:

  • STORAGE_OPTIMIZED
  • STANDARD
budget_policy_idstring

ID of the serverless budget policy to apply to the endpoint. The caller must have permission to use the policy. Set either this field or usage_policy_id, not both. Responses do not echo this field; they report the applied policy in effective_budget_policy_id.

Example: 8b0444ff-8b60-48b0-9d31-e391f6126e0f

custom_tagsarray of object

Custom tags assigned to the endpoint. On update, the list replaces all of the endpoint's existing tags.

Show child attributesHide child attributes
keystringRequired

Key field for an AI Search endpoint tag.

valuestring

[Optional] Value field for an AI Search endpoint tag.

usage_policy_idstring

ID of the usage policy to apply to the endpoint. The server treats it as the same setting as budget_policy_id, so set only one of the two.

replica_countint32

The client-supplied desired number of replicas for the endpoint, applied at create/update time. Mutually exclusive with target_qps.

target_qpsint32

Target QPS for the endpoint. Mutually exclusive with replica_count. Best-effort; the system does not guarantee this QPS will be achieved. Responses report the requested value in scaling_info.requested_target_qps.

Response​

Returns the Endpoint object.

Delete an AI Search endpoint GA​

DELETE /api/2.0/ai-search/{name=workspaces/*/endpoints/*}

Delete an AI Search endpoint.

API scopes: ai-search

Parameters​

namestringRequiredpath

Full resource name of the endpoint to delete. Format: workspaces/{workspace_id}/endpoints/{endpoint_id}