Skip to content

Commit dae9f1a

Browse files
committed
Merge pull request #315 from QuentinPerez/location
Location VPS
2 parents 0d30096 + d2897e9 commit dae9f1a

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1183,6 +1183,7 @@ $ scw inspect myserver | jq '.[0].public_ip.address'
11831183

11841184
### master (unreleased)
11851185

1186+
* Add location fields for VPS
11861187
* `scw ps` add commercial-type column
11871188
* Use `SCW_SECURE_EXEC` instead of `exec_exec`
11881189
* Remove `scaleway_api_endpoint` environment variable

pkg/api/api.go

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -555,10 +555,12 @@ type ScalewayServer struct {
555555

556556
// Location of the server
557557
Location struct {
558-
Platform string `json:"platform_id,omitempty"`
559-
Chassis string `json:"chassis_id,omitempty"`
560-
Blade string `json:"blade_id,omitempty"`
561-
Node string `json:"node_id,omitempty"`
558+
Platform string `json:"platform_id,omitempty"`
559+
Chassis string `json:"chassis_id,omitempty"`
560+
Cluster string `json:"cluster_id,omitempty"`
561+
Hypervisor string `json:"hypervisor_id,omitempty"`
562+
Blade string `json:"blade_id,omitempty"`
563+
Node string `json:"node_id,omitempty"`
562564
} `json:"location,omitempty"`
563565
}
564566

0 commit comments

Comments
 (0)