Codevisor Docs
Api reference

List the account-wide roles this machine runs for or watches, with Codevisor Cloud's holders and ranked candidates

GET/v1/roles

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/v1/roles"
{  "machineId": "string",  "roles": [    {      "role": "string",      "version": 0,      "holder": "string",      "held": true    }  ],  "cloud": [    {      "role": "string",      "version": 0,      "holder": "string",      "leaseExpiresAt": "string",      "handingOff": true,      "candidates": [        {          "deviceId": "string",          "name": "string",          "availability": "always-on",          "online": true,          "onlineSince": "string",          "recentDrops": 0,          "rank": 0        }      ]    }  ],  "cloudError": "string"}
{  "error": "string"}
{  "error": "string"}
{  "error": "string"}
{  "error": "string"}
{  "error": "string"}
{  "error": "string"}