Skip to content

Commit 5bafed4

Browse files
author
Quentin Perez
committed
Update (compute/tty) URLs
1 parent c476fcc commit 5bafed4

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1203,6 +1203,8 @@ $ scw inspect myserver | jq '.[0].public_ip.address'
12031203

12041204
### master (unreleased)
12051205

1206+
* new Compute URL `api.scaleway.com` -> `cp-par1.scaleway.com`
1207+
* new TTY URL `tty.scaleway.com/v2` -> `https://tty-par1.scaleway.com/v2`
12061208
* Region: add `ams1`, you can start a server at Amsterdam with `scw --region="ams1" run yakkety`
12071209
* API: Support multi-zone
12081210
* API: Add ZoneID field in server location

pkg/api/api.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ var (
3535
AccountAPI = "https://account.scaleway.com/"
3636
MetadataAPI = "http://169.254.42.42/"
3737
MarketplaceAPI = "https://api-marketplace.scaleway.com"
38-
ComputeAPIPar1 = "https://api.scaleway.com/"
38+
ComputeAPIPar1 = "https://cp-par1.scaleway.com/"
3939
ComputeAPIAms1 = "https://cp-ams1.scaleway.com"
4040

4141
URLPublicDNS = ".pub.cloud.scaleway.com"
@@ -2871,7 +2871,7 @@ func (s *ScalewayAPI) DeleteMarketPlaceLocalImage(uuidImage, uuidVersion, uuidLo
28712871
func (s *ScalewayAPI) ResolveTTYUrl() string {
28722872
switch s.Region {
28732873
case "par1", "":
2874-
return "https://tty.scaleway.com/v2/"
2874+
return "https://tty-par1.scaleway.com/v2/"
28752875
case "ams1":
28762876
return "https://tty-ams1.scaleway.com"
28772877
}

0 commit comments

Comments
 (0)