Skip to main content

invoke

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

Overview​

Nameinvoke
TypeResource
Idgoogle.aiplatform.invoke

Fields​

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
invokeexecprojectsId, locationsId, endpointsId, deployedModelId, invokeIdForwards arbitrary HTTP requests for both streaming and non-streaming cases. To use this method, invoke_route_prefix must be set to allow the paths that will be specified in the request.

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
deployedModelIdstring
endpointsIdstring
invokeIdstring
locationsIdstring
projectsIdstring

Lifecycle Methods​

Forwards arbitrary HTTP requests for both streaming and non-streaming cases. To use this method, invoke_route_prefix must be set to allow the paths that will be specified in the request.

EXEC google.aiplatform.invoke.invoke
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@endpointsId='{{ endpointsId }}' --required,
@deployedModelId='{{ deployedModelId }}' --required,
@invokeId='{{ invokeId }}' --required
@@json=
'{
"deployedModelId": "{{ deployedModelId }}",
"httpBody": "{{ httpBody }}"
}'
;