Totp

Create totp

PUT/v1/auth/ratls/totp
Body
created*integer (int64)

Creation timestamp, set by the plugin

expiration*integer (int64)

Expiration timestamp

policy*string

Name of the policy to allow updates for

uuid*string

Identifier for the totp and the token itself, generated by the plugin

Response

OK

Body
authobject
dataobject
Request
const response = await fetch('/v1/auth/ratls/totp', {
    method: 'PUT',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({
      "created": 0,
      "expiration": 0,
      "policy": "text",
      "uuid": "text"
    }),
});
const data = await response.json();
Response
{
  "data": {
    "created": 0,
    "expiration": 0,
    "policy": "text",
    "uuid": "text"
  }
}

Delete totp

DELETE/v1/auth/ratls/totp/{uuid}
Path parameters
uuid*string

Identifier for the totp and the token itself, generated by the plugin

Response

empty body

Request
const response = await fetch('/v1/auth/ratls/totp/{uuid}', {
    method: 'DELETE',
    headers: {},
});
const data = await response.json();

Last updated