Manage the deployed application

You can list ReasoningEngine instances, get a ReasoningEngine instance, or delete a ReasoningEngine instance.

List ReasoningEngine instances

Vertex AI SDK for Python

The following command lists all ReasoningEngine instances for a given project and location:

reasoning_engines.ReasoningEngine.list()

The following code filters the list of ReasoningEngine instances by display_name:

reasoning_engines.ReasoningEngine.list(filter='display_name="DISPLAY_NAME"')

For example, py reasoning_engines.ReasoningEngine.list(filter='display_name="Demo Langchain Application"')

REST

Execute the following curl command to list all ReasoningEngine instances for a given project and location:

curl \
-H "Authorization: Bearer $(gcloud auth print-access-token)" \
-H "Content-Type: application/json" \
https://LOCATION-aiplatform.googleapis.com/v1beta1/projects/PROJECT_ID/locations/LOCATION/reasoningEngines

Get a ReasoningEngine instance

Each ReasoningEngine instance has a unique RESOURCE_ID identifier. To learn more, see Deploy the application.

Vertex AI SDK for Python

The following code lets you get a specific ReasoningEngine resource:

remote_app = reasoning_engines.ReasoningEngine("RESOURCE_ID")

Alternately, you can provide the entire resource name:

remote_app = reasoning_engines.ReasoningEngine(
"projects/PROJECT_ID/locations/LOCATION/reasoningEngines/RESOURCE_ID"
)

REST

Execute the following curl command to get a specific ReasoningEngine resource:

curl \
-H "Authorization: Bearer $(gcloud auth print-access-token)" \
-H "Content-Type: application/json" \
https://LOCATION-aiplatform.googleapis.com/v1beta1/projects/PROJECT_ID/locations/LOCATION/reasoningEngines/RESOURCE_ID

Delete a ReasoningEngine instance

Vertex AI SDK for Python

The following code lets you delete a ReasoningEngine instance that was set to the remote_app variable:

remote_app.delete()

REST

Each ReasoningEngine instance has a unique RESOURCE_ID identifier. To learn more, see Deploy the application.

Execute the following curl command to delete a specific ReasoningEngine instance:

curl \
-X DELETE \
-H "Authorization: Bearer $(gcloud auth print-access-token)" \
-H "Content-Type: application/json" \
https://LOCATION-aiplatform.googleapis.com/v1beta1/projects/PROJECT_ID/locations/LOCATION/reasoningEngines/RESOURCE_ID