Global

GET /bastion/global

Get the global config

Response JSON Object:
 
  • bastionID (string) – The Bastion ID. Must be between 3 and 32 characters long, contain only lowercase letters, numbers, or hyphens, and start with a letter.
  • instanceID (string) – Deprecated since 1.14.0.
  • source (string) – Deprecated since 1.14.0.

Example response:

{
  "bastionID": "",
  "instanceID": "",
  "source": ""
}
POST /bastion/global

Set the global config. This operation will be rejected if the terraform instance is not destroyed

Request JSON Object:
 
  • bastionID (string) – The Bastion ID. Must be between 3 and 32 characters long, contain only lowercase letters, numbers, or hyphens, and start with a letter.
  • instanceID (string) – Deprecated since 1.14.0.
  • source (string) – Deprecated since 1.14.0.

Example query:

{
  "bastionID": "",
  "instanceID": "",
  "source": ""
}
GET /bastion/global/tfvars

Get the global tfvars.

Response JSON Object:
 
  • [key] – Type can be any of boolean,integer,number,object,string,null.

Example response:

{
  "keyA": "valueA",
  "keyB": "valueB"
}
POST /bastion/global/tfvars

Set the global tfvars.

Request JSON Object:
 
  • [key] – Type can be any of boolean,integer,number,object,string,null.

Example query:

{
  "keyA": "valueA",
  "keyB": "valueB"
}
DELETE /bastion/global/tfvars

Delete the global tfvars.