Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List of data centre permalinks? #81

Closed
LondonAppDev opened this issue Dec 12, 2022 · 2 comments
Closed

List of data centre permalinks? #81

LondonAppDev opened this issue Dec 12, 2022 · 2 comments

Comments

@LondonAppDev
Copy link

I'm trying to use the Katapult Terraform provider, but I cannot figure out what value to put for KATAPULT_DATA_CENTER... I tried LON-1 but it says it's incorrect. I looked everywhere in the docs but can't find a list.

@jimeh
Copy link
Contributor

jimeh commented Dec 13, 2022

Apologies for the confusion. The provider and its docs are still very much a work in progress.

The current list of data centers can be fetched via Katapult's Public API (no auth) and the Core API (requires auth).

The public API endpoint is: https://api.katapult.io/public/v1/data_centers, which as of writing returns:

{
	"data_centers": [
		{
			"id": "dc_Wm37yAq0BHhKXsPa",
			"name": "Amsterdam",
			"permalink": "nl-ams-01",
			"country": "NL"
		},
		{
			"id": "loc_UUhPmoCbpic6UX0Y",
			"name": "London",
			"permalink": "uk-lon-01",
			"country": "GB"
		},
		{
			"id": "dc_TfDSMyVYoS3fJnSt",
			"name": "New York",
			"permalink": "us-nyc-01",
			"country": "US"
		},
		{
			"id": "dc_U3UVcwL8GKXJdsgw",
			"name": "Phoenix",
			"permalink": "us-azp-01",
			"country": "US"
		}
	]
}

I've also raised #82, which will enable you fetch a list of data centers via the Terraform provider once implemented.

@LondonAppDev
Copy link
Author

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants