Operator User Set Bastion State

Operator User Set Bastion State

Advance the operatorUser bastion state machine for the specified operatorUser (by id).

Privileges required:

UPDATE OPERATOR_USER

Request
URI
POST
https://{api_host}/portal/rest/operatorUser/setOperatorUserBastionState
COPY
Request Body
{
    "operatorUserId": 0,
    "bastionState": "string"
}
integer
operatorUserId
Required

operatorUserId

string
bastionState
Required

bastionState

Possible values are : STAGE_REQUESTED, UNSTAGE_REQUESTED,
Responses
200

Request was successfully processed

Returns operator_user_set_operator_user_bastion_state_result of type(s) application/json
This response body class contains all of the following: Inlineoperator_user_set_operator_user_bastion_state_result0
{
    "rows": 1
}

400
Returns generic_400 of type(s) application/json
Operation doesn't return any data structure

500
Returns generic_500 of type(s) application/json
Operation doesn't return any data structure

Code Samples
COPY
                    curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"operatorUserId:"integer","bastionState:"string"}' https://{api_host}/portal/rest/operatorUser/setOperatorUserBastionState