Applicable to:
- SolusVM 2
Question
How to use API in SolusVM 2?
Answer
- Create an API token in SolusVM 2 UI > Setitnfs > API
- Logon to the manager node via ssh
- Add created token as variable
# $API_TOKEN=<TOKEN STRING HERE>
- 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
Comments
0 commentsPlease sign in to leave a comment.