Install the gcloud cli tool

  1. follow the up-to-date instructions here to install and configure the gcloud cli tool
  2. use the following command to test out the confirmation by interacting with the Google Vertex AI text endpoint:
curl -X POST \  
    -H "Authorization: Bearer $(gcloud auth print-access-token)" \  
    -H "Content-Type: application/json; charset=utf-8" \  
    -d @request.json \  
    "https://us-central1-aiplatform.googleapis.com/v1/projects/__PROJECT_ID__/locations/us-central1/publishers/google/models/text-bison:predict"