TOTP
Creates a new Time-based One-Time Password token. The UUID will be generated by the API.
Body
createdinteger · int64Optional
Creation timestamp
expirationinteger · int64Required
Expiration timestamp
policystringRequired
Name of the policy to allow updates for
Responses
200
TOTP token created successfully
application/json
400
Invalid request body
put
PUT /v1/auth/ratls/totp HTTP/1.1
Host: localhost:8200
Content-Type: application/json
Accept: */*
Content-Length: 44
{
"created": 1,
"expiration": 1,
"policy": "text"
}
{
"request_id": "text",
"lease_id": "text",
"renewable": true,
"lease_duration": 1,
"data": {
"created": 1,
"expiration": 1,
"policy": "text",
"uuid": "123e4567-e89b-12d3-a456-426614174000"
},
"wrap_info": null,
"warnings": null,
"auth": null
}
Removes a specific TOTP token. Returns success even if token doesn't exist.
Path parameters
uuidstring · uuidRequired
Unique TOTP token identifier
Responses
200
TOTP token deleted successfully
application/json
delete
DELETE /v1/auth/ratls/totp/{uuid} HTTP/1.1
Host: localhost:8200
Accept: */*
200
TOTP token deleted successfully
{
"request_id": "text",
"lease_id": "text",
"renewable": true,
"lease_duration": 1,
"data": {},
"wrap_info": null,
"warnings": null,
"auth": null
}
Was this helpful?