List regions
Returns a list of regions for an account, paginated according to the pagination parameters.
Path parameters
-
The ID of the account for which to list the regions
GET /api/accounts/{account_id}/regions
curl \
-X GET http://localhost:4000/api/accounts/{account_id}/regions
Response examples (200)
{
"data": [
{
"id": "f260f115-f2e6-4dde-bcab-98b10fdb8cf6",
"name": "Test Region",
"account_id": "a9299bca-acc2-4dde-1111-83a08ca12128"
}
],
"page": 1,
"limit": 1,
"pages": 20,
"total": 20
}
Response examples (200)
{
"data": [
{
"id": "f260f115-f2e6-4dde-bcab-98b10fdb8cf6",
"name": "Test Region",
"account_id": "a9299bca-acc2-4dde-1111-83a08ca12128"
}
],
"page": 1,
"limit": 1,
"pages": 20,
"total": 20
}
Response examples (401)
{
"error": "Error Reason"
}
Response examples (401)
{
"error": "Error Reason"
}