How to use API in SolusVM 2

Have more questions? Submit a request

Applicable to:

  • SolusVM 2

Question

How to use API in SolusVM 2?

Answer

  1. Create an API token in SolusVM 2 UI > Setitnfs > API
  2. Logon to the manager node via ssh
  3. Add created token as variable

    # $API_TOKEN=<TOKEN STRING HERE>

  4. Use the token to build a request - https://docs.solusvm.com/v2/api-reference/api.html

Example:

# curl -k -X GET -H "authorization: Bearer $API_TOKEN" https://example.com:443/api/v1/os_images

Articles in this section

Was this article helpful?
0 out of 0 found this helpful
Share

Comments

0 comments

Please sign in to leave a comment.