API v2¶
v2 API for Racks is RESTful API implementation. With requests to that version of Racks API you become able to receive the full JSON-encoded object stored in Racks.
-
GET
/api/v2/
¶ API root
Example request:
GET /api/v2/ HTTP/1.1 X-Auth-Application: myapplication X-Auth-Token: mytoken
Example response:
HTTP 200 OK Allow: GET, HEAD, OPTIONS Content-Type: application/json Vary: Accept { "users": "http://racks/api/v2/users/", "objects": "http://racks/api/v2/objects/", "ipv4networks": "http://racks/api/v2/ipv4networks/" }
Request Headers: - X-Auth-Application – application name
- X-Auth-Token – application token
API v2 requires authentication by application token or cookies. Certain fields are only visible to user and groups assigned to objects and labs. Only superusers can modify fields, create and delete objects. To create acccess token, visit Account Applications page.