Create Recovery Token for FIPs (v2.1)
POST/sdwan/v2.1/api/machines/:machine_id/recovery_tokens
Create a recovery token for the FIPs change mode.
Request
Path Parameters
machine_id stringrequired
The machine ID.
- application/json
Body
Details of the recovery token for the element
id string
The recovery token ID.
token_validity_in_hour int32
The token validity in a hour.
Responses
- 200
- 400
Successful Operation
- application/json
- Schema
- Example (from schema)
Schema
hardware_id string
Hardware Id
id string
Id
ion_token string
Ion Token
is_used boolean
Is Used
secret_token string
Secret Token
token_validity_in_hour int32
Token Validity In Hour
valid_till_secs int64
Valid Till Secs
{
"hardware_id": "string",
"id": "string",
"ion_token": "string",
"is_used": true,
"secret_token": "string",
"token_validity_in_hour": 0,
"valid_till_secs": 0
}
Bad Request
- application/json
- Schema
- Example (from schema)
- Example
Schema
- Array [
- ]
_error ErrorResponse[]
code string
The error code.
message string
The error message.
{
"_error": [
{
"code": "string",
"message": "string"
}
]
}
{
"value": {
"_error": [
{
"code": "MACHINE_NOT_FOUND"
},
{
"code": "FIPS_MODE_ERROR_IN_TOKEN_GENERATION"
}
]
}
}
Loading...