Skip to main content

Create Region

Create a region

Request Body
  • name string required

    Region name

  • type string

    Possible values: [USER_CREATED, AWS, AZURE, OCI, GCP]

    Default value: USER_CREATED

    Type of the region

  • locations object[] required

    Possible values: >= 1

    List of locations which are part of the region

  • city string

    Name of city

  • state string

    Name of state

  • country string required

    Name of country

  • latitude double required

    Latitude for the location

  • longitude double required

    Longitude for the location

Responses

OK


Schema
  • id int32
  • name string
POST /v4/regions    

Authorization

type: apiKeyname: Authtokenin: header

Request

Click Edit to configure Base URL
https://localhost/webconsole/api
token
Body
{
"name": "string",
"type": "USER_CREATED",
"locations": [
{
"city": "string",
"state": "string",
"country": "string",
"latitude": 0,
"longitude": 0
}
]
}
curl -L -X POST 'https://localhost/webconsole/api/V4/Regions' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"name": "string",
"type": "USER_CREATED",
"locations": [
{
"city": "string",
"state": "string",
"country": "string",
"latitude": 0,
"longitude": 0
}
]
}'