Data centers

Get list of data centers

Returns a list of data centers from cloud providers. All compute instances are created in data centers. The data center ID is necessary for creating any compute instance. Use this endpoint to find the provider's data centers.

get/v1/data-centers

Request

  • Base URL
    https://api.emma.ms/external
  • Auth
    HTTP bearer

Query parameters

dataCenterNamestring
Example:eu-north-1

Name of the cloud provider's data center

locationIdinteger
Example:6

ID of the geographic location

providerNamestring
Example:GCP

Name of the cloud provider

projectIdinteger

Unused, created for future API extention. Will be ignored if used.

Response

Successful operation

idstring

ID of the cloud provider's data center

namestring

Name of the cloud provider's data center

providerIdinteger

ID of the cloud provider that owns the datacenter

providerNamestring

Name of the cloud provider that owns the datacenter

locationIdinteger

ID of the data center location

locationNamestring

Name of the data center location (city or state)

Example response

[
  {
    "id": "aws-us-west-1",
    "name": "eu-north-1",
    "providerId": 5,
    "providerName": "AWS",
    "locationId": 15,
    "locationName": "Stockholm"
  }
]

Changes

No recorded changes to this operation across all 1 revision of this API.