List platform regions
GET/platforms/:platformId/regions
Lists the available regions for the computing platform identified by the given platformId
.
Request
Path Parameters
platformId stringrequired
Platform string identifier
Query Parameters
workspaceId int64
Workspace numeric identifier
Responses
- 200
- 400
- 403
OK
- application/json
- Schema
- Example (auto)
Schema
regions object[]
{
"regions": [
{
"id": "string",
"name": "string"
}
]
}
Bad request
- application/json
- Schema
- Example (auto)
Schema
messagestringrequired
{
"message": "string"
}
Operation not allowed
Authorization: http
name: BearerAuthtype: httpscheme: bearerbearerFormat: jwt
- python
- curl
- java
- r
- javascript
- go
- powershell
- HTTP.CLIENT
- REQUESTS
import http.client
conn = http.client.HTTPSConnection("docs.seqera.io")
payload = ''
headers = {
'Accept': 'application/json',
'Authorization': 'Bearer <token>'
}
conn.request("GET", "/platforms/:platformId/regions", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))