How do I terminate an instance using the Cloud API?

You can terminate instances from the command line using the Cloud API:

  1. Generate an API key if you haven’t already generated one.

  2. Create a file that contains the necessary payload. For example:

      "instance_ids": [
  3. Run the following command:

    curl -u API-KEY: -d @INSTANCE-IDS -H "Content-Type: application/json" | jq .

    Replace API-KEY with your actual API key. Don’t remove the trailing colon (:).

    Replace INSTANCE-IDS with the name of the payload file you created in the previous step.

Last modified October 3, 2023: Add PDF of Vector quickstart guide (63985d8)