Routes and commands
Every route of the native API with the CLI command that calls it, and the routes without a command.
Routes and commands
Routes without a command
| Route | Reason |
|---|---|
POST /v1/auth/login | browser login: sets the refresh cookie and needs the CSRF double submit; the CLI logs in through /v1/identity/login |
POST /v1/auth/mfa | browser MFA step of /v1/auth/login; the CLI passes --code to login |
POST /v1/auth/refresh | rotates the browser refresh cookie; API sessions and tokens do not refresh |
POST /v1/auth/logout | clears the browser cookies; the CLI revokes its session with logout (/v1/identity/logout) |
GET /v1/identity/oidc/start | starts the browser redirect to the identity provider |
GET /v1/identity/oidc/callback | the identity provider's redirect target; sets cookies |
POST /v1/metrics/query | the same query as GET /v1/metrics/query with a JSON body; the CLI builds the GET form |
GET /folder/{path} | vSphere-compatible alias of GET /v1/datastores/{id}/files/content (datastore download) |
PUT /folder/{path} | vSphere-compatible alias of PUT /v1/datastores/{id}/files/content (datastore upload) |
DELETE /folder/{path} | vSphere-compatible alias of DELETE /v1/datastores/{id}/files (datastore rm) |
Version 0.1.