Endpoint
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.
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 fromparentandendpoint_idand ignores any value supplied in the request body.
- 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.
- create_timestringOutput only
Time the endpoint was created.
- update_timestringOutput only
Time the endpoint was last updated.
- endpoint_typestringImmutable
Type of endpoint. Required on create and immutable thereafter.
STORAGE_OPTIMIZEDSTANDARD
- last_updated_userstringOutput only
User name of the principal that last updated the endpoint, in the same format as
creator.
- idstringOutput only
System-generated UUID that uniquely identifies the endpoint.
- 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
Statefor the meaning of each value.PROVISIONINGONLINEOFFLINERED_STATEYELLOW_STATEDELETED
- 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 ineffective_budget_policy_id.
- effective_budget_policy_idstringOutput only
ID of the budget policy that is currently applied to the endpoint.
- 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
- current_concurrencydoubleOutput only
The current concurrency (total CPU) allocated to the endpoint
- current_concurrency_utilization_percentagedoubleOutput only
The current utilization of concurrency as a percentage (0-100)
- minimal_concurrency_alloweddouble
The minimum concurrency allowed for this endpoint
- maximum_concurrency_alloweddouble
The maximum concurrency allowed for this endpoint
- change_request_statestringOutput only
The state of the most recent throughput change request
CHANGE_SUCCESSCHANGE_FAILEDCHANGE_REACHED_MINIMUMCHANGE_REACHED_MAXIMUMCHANGE_IN_PROGRESSCHANGE_ADJUSTED
- change_request_messagestringOutput only
Additional information about the throughput change request
- requested_num_replicasint32
The requested number of replicas for the endpoint
- current_num_replicasint32Output only
The current number of replicas allocated to the endpoint
- scaling_infoobjectOutput only
Scaling information for the endpoint
Show child attributesHide child attributes
- statestringOutput only
The current state of the scaling change request.
SCALING_CHANGE_UNSPECIFIEDSCALING_CHANGE_APPLIEDSCALING_CHANGE_IN_PROGRESS
- requested_target_qpsint64
The requested QPS target for the endpoint. Best-effort; the system does not guarantee this QPS will be achieved.
- 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).
- phasestringBetaOutput only
Current phase of the in-progress scaling change. Unset when no scaling change is in progress or the phase is not available.
ADJUSTING_CAPACITYINITIALIZING_INDEXESTIMATINGFINALIZING
- index_initialization_percentageint32BetaOutput only
Percentage of index initialization completed, from 0 to 100. Set only during the
INITIALIZING_INDEXphase; unset in other phases or when progress is not available.
- delayed_reasonstringBetaOutput only
Reason the in-progress scaling change is delayed. When set,
estimated_completion_timeis unset. Unset when the change is not delayed or no scaling change is in progress.CAPACITY_UNAVAILABLESCALE_DOWN_BLOCKEDTAKING_LONGER_THAN_EXPECTED
- 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.
- 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 inscaling_info.requested_target_qps.
Get an AI Search endpoint GA
GET
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
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_sizeeven 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
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.
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 fromparentandendpoint_idand ignores any value supplied in the request body.
- endpoint_typestringRequiredImmutable
Type of endpoint. Required on create and immutable thereafter.
STORAGE_OPTIMIZEDSTANDARD
- 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 ineffective_budget_policy_id.
- 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 inscaling_info.requested_target_qps.
Response
Returns the Endpoint object.
Update an AI Search endpoint GA
PATCH
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 fromparentandendpoint_idand ignores any value supplied in the request body.
- update_maskstringRequiredquery
Comma-separated list of
Endpointfields to update. The updatable fields arebudget_policy_id,usage_policy_id,custom_tags,replica_count, andtarget_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.
STORAGE_OPTIMIZEDSTANDARD
- 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 ineffective_budget_policy_id.
- 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 inscaling_info.requested_target_qps.
Response
Returns the Endpoint object.