Dedicated Servers API
The Dedicated Servers API is a software interface that allows you to manage Dedicated servers through HTTPS requests.
Authorization
A Keystone token (for the account) or a Selectel token (API key) are used to work with the Dedicated servers API.
The token is passed in each request in the header:
- X-Auth-Token – Keystone token;
- X-Token – Selectel token.
URL: https://api.selectel.ru/servers/v2
Example queries to obtain the list of resources:
-
curl -i \ -H 'X-Auth-Token: <keystone_token>' \ -H 'Content-Type: application/json' \ 'https://api.selectel.ru/servers/v2/resource'
Specify
<keystone_token>
— a Keystone token. -
curl -i \ -H 'X-Token: <selectel_token>' \ -H 'Content-Type: application/json' \ 'https://api.selectel.ru/servers/v2/resource'
Specify
<selectel_token>
— a Selectel token.