Gateway Set Bastion State

Gateway Set Bastion State

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

Privileges required:

UPDATE GATEWAY

Request
URI
POST
https://{api_host}/portal/rest/gateway/setGatewayBastionState
COPY
Request Body
{
    "gatewayId": 0,
    "bastionState": "string"
}
integer
gatewayId
Required

gatewayId

string
bastionState
Required

bastionState

Possible values are : STAGE_REQUESTED, UNSTAGE_REQUESTED,
Responses
200

Request was successfully processed

Returns gateway_set_gateway_bastion_state_result of type(s) application/json
This response body class contains all of the following: Inlinegateway_set_gateway_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 '{"gatewayId:"integer","bastionState:"string"}' https://{api_host}/portal/rest/gateway/setGatewayBastionState