After you create an app you must deploy the app to be able to stream and analyze data.
Deploy an application
After you have built an end-to-end application with all the necessary components, you must deploy the app to start using it.
Console
Open the Applications tab of the Gemini Enterprise Agent Platform Vision dashboard.
Select View app next to the name of your application from the list.
From the application graph builder page click the Deploy button.
In the Deploy application menu that opens, select any options and click Deploy.
After deployment completes there will be green check marks next to the nodes.
REST & CMD LINE
To deploy your application for use, send a POST request using the projects.locations.applications.deploy method.
Before using any of the request data, make the following replacements:
- PROJECT: Your Google Cloud project ID or project number.
- LOCATION_ID: The region where you are using
Agent Platform Vision. For example:
us-central1,europe-west4. See available regions. - APPLICATION_ID: The ID of your target application.
HTTP method and URL:
POST https://visionai.googleapis.com/v1/projects/PROJECT_NUMBER/locations/LOCATION_ID/applications/APPLICATION_ID:deploy
To send your request, choose one of these options:
curl
Execute the following command:
curl -X POST \
-H "Authorization: Bearer $(gcloud auth print-access-token)" \
-H "Content-Type: application/json; charset=utf-8" \
-d "" \
"https://visionai.googleapis.com/v1/projects/PROJECT_NUMBER/locations/LOCATION_ID/applications/APPLICATION_ID:deploy"
PowerShell
Execute the following command:
$cred = gcloud auth print-access-token