From 736460a10e6b79fb11faa9a090a68026bb33fa25 Mon Sep 17 00:00:00 2001 From: Tsvetan Koshutanski Date: Wed, 1 Jul 2026 16:02:45 +0300 Subject: [PATCH] Add location fields to server and primary IP models --- src/main/resources/api.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main/resources/api.yaml b/src/main/resources/api.yaml index 8cc909c..4fc7b11 100644 --- a/src/main/resources/api.yaml +++ b/src/main/resources/api.yaml @@ -274,6 +274,7 @@ components: datacenter: description: ID or name of Datacenter to create Server in (must not be used together with location) + deprecated: true example: nbg1-dc3 type: string firewalls: @@ -368,7 +369,11 @@ components: type: string datacenter: description: Datacenter this Resource is located at + deprecated: true $ref: "#/components/schemas/DatacenterDetail" + location: + description: Location this Resource is located at + $ref: "#/components/schemas/LocationDetail" image: $ref: "#/components/schemas/ImageDetail" labels: @@ -552,7 +557,11 @@ components: type: boolean datacenter: description: Datacenter this Primary IP is located at + deprecated: true $ref: '#/components/schemas/DatacenterDetail' + location: + description: Location of the Primary IP + $ref: '#/components/schemas/LocationDetail' dns_ptr: description: Array of reverse DNS entries items: