The following request gets a list of data centers.
Execution permission
None.
Request line
GET base-URL/app/v1/datacenters
Response message
- Body
-
[ { "id": "8a11a1bf6d4378d9016d67206ee70005", "name": "Bangkok", "description": "", "attributes": { "city": "Bangkok (Krung Thep Maha Nakhon, Thailand)", "latitude": "13.7500", "longitude": "100.5166" } }, { "id": "8a11a1bf6d4378d9016d6723704e000a", "name": "Tokyo Data Center", "description": "", "attributes": { "city": "Hachioji (Tokyo, Japan)", "latitude": "35.6577", "longitude": "139.3261" } } ]
Attribute
Type
Description
id
string
Object ID of the data center
name
string
Data center name
description
string
Description
attributes
object
Information about the attributes of the data center
Information defined by the user when registering or updating the data center is returned.
Coding example
curl -v -X GET -s "https://example.com:443/portal/app/v1/datacenters" -H "Authorization:Bearer eyJhbxxx"
Tip: Because this request uses SSL
communication, you must either run the curl command with the root
certificate of the Common Services server certificate
specified for the --cacert option, or run the command with the
-k option specified. (The -k option runs the command by
ignoring SSL errors.)