Edge Set Bastion State

Edge Set Bastion State

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

Privileges required:

UPDATE EDGE

Request
URI
POST
https://{api_host}/portal/rest/edge/setEdgeBastionState
COPY
Request Body

Show optional properties

{
    "edgeId": 0,
    "enterpriseId": 0,
    "bastionState": "string"
}
{
    "edgeId": 0,
    "enterpriseId": 0,
    "bastionState": "string",
    "upgradeOnly": false,
    "upgradeDetails": {
        "version": "string",
        "buildNumber": "string",
        "updateType": "string"
    }
}
integer
edgeId
Required

edgeId

integer
enterpriseId
Required

enterpriseId

string
bastionState
Required

bastionState

Possible values are : STAGE_REQUESTED, UNSTAGE_REQUESTED, PROMOTION_REQUESTED, PROMOTION_PHASE_1_REQUESTED, STAGED,
boolean
upgradeOnly
Optional

upgradeOnly

object
upgradeDetails
Optional

upgradeDetails

Responses
200

Request was successfully processed

Returns edge_set_edge_bastion_state_result of type(s) application/json
This response body class contains all of the following: Inlineedge_set_edge_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 '{"edgeId:"integer","enterpriseId:"integer","bastionState:"string"}' https://{api_host}/portal/rest/edge/setEdgeBastionState