Skip to content

Commit c43c4ba

Browse files
OAS Update
1 parent 41f92c4 commit c43c4ba

File tree

3 files changed

+53
-27
lines changed

3 files changed

+53
-27
lines changed

services/certificates/v1beta/certificates.json renamed to services/certificates/v2/certificates.json

Lines changed: 51 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,13 @@
2727
"description": "The PEM encoded public key part",
2828
"example": "-----BEGIN CERTIFICATE----- MYPUbLiC+Tls/CER71fICATE...-----END CERTIFICATE-----",
2929
"type": "string"
30-
}
31-
},
32-
"type": "object"
33-
},
34-
"CreateCertificateResponse": {
35-
"description": "CreateCertificateResponse returns unique resource id",
36-
"properties": {
37-
"id": {
38-
"description": "The certificates resource id",
39-
"example": "my-tls-certificate-v1-123456",
40-
"pattern": "^[0-9a-z](?:(?:[0-9a-z]|-){0,251}[0-9a-z])?$",
30+
},
31+
"region": {
32+
"description": "Region",
33+
"example": "eu01",
34+
"format": "string",
35+
"pattern": "^[a-z]{2,4}[0-9]{2}$",
36+
"readOnly": true,
4137
"type": "string"
4238
}
4339
},
@@ -66,6 +62,11 @@
6662
"description": "The PEM encoded public key part",
6763
"example": "-----BEGIN CERTIFICATE----- MYPUbLiC+Tls/CER71fICATE...-----END CERTIFICATE-----",
6864
"type": "string"
65+
},
66+
"region": {
67+
"description": "Region of the LoadBalancer",
68+
"example": "eu01",
69+
"type": "string"
6970
}
7071
},
7172
"type": "object"
@@ -125,15 +126,14 @@
125126
}
126127
},
127128
"info": {
128-
"description": "### DEPRECATED! Use v2beta instead.\n\nThis API offers the ability to store TLS certificates, which can be used by load balancing servers in STACKIT.They can be between consumer and load balancing server and/or between load balancing server and endpoint server.",
129+
"description": "This API offers the ability to store TLS certificates, which can be used by load balancing servers in STACKIT. They can be between consumer and load balancing server and/or between load balancing server and endpoint server.",
129130
"title": "STACKIT Application Load Balancer Certificates API",
130-
"version": "1beta.0.0"
131+
"version": "2.0.0"
131132
},
132133
"openapi": "3.0.3",
133134
"paths": {
134-
"/v1beta/projects/{projectId}/certificates": {
135+
"/v2/projects/{projectId}/regions/{region}/certificates": {
135136
"get": {
136-
"deprecated": true,
137137
"description": "ListCertificates will return the list of TLS certificates in a project.",
138138
"operationId": "ListCertificates",
139139
"parameters": [
@@ -145,6 +145,14 @@
145145
"type": "string"
146146
}
147147
},
148+
{
149+
"in": "path",
150+
"name": "region",
151+
"required": true,
152+
"schema": {
153+
"type": "string"
154+
}
155+
},
148156
{
149157
"description": "page_size specifies how many certificates should be returned on this page. Must be a positive number \u003c= 1000",
150158
"in": "query",
@@ -222,7 +230,6 @@
222230
}
223231
},
224232
"post": {
225-
"deprecated": true,
226233
"description": "CreateCertificate will store a TLS certificate in a project.",
227234
"operationId": "CreateCertificate",
228235
"parameters": [
@@ -233,6 +240,14 @@
233240
"schema": {
234241
"type": "string"
235242
}
243+
},
244+
{
245+
"in": "path",
246+
"name": "region",
247+
"required": true,
248+
"schema": {
249+
"type": "string"
250+
}
236251
}
237252
],
238253
"requestBody": {
@@ -250,7 +265,7 @@
250265
"content": {
251266
"application/json": {
252267
"schema": {
253-
"$ref": "#/components/schemas/CreateCertificateResponse"
268+
"$ref": "#/components/schemas/GetCertificateResponse"
254269
}
255270
}
256271
},
@@ -302,9 +317,8 @@
302317
}
303318
}
304319
},
305-
"/v1beta/projects/{projectId}/certificates/{id}": {
320+
"/v2/projects/{projectId}/regions/{region}/certificates/{id}": {
306321
"delete": {
307-
"deprecated": true,
308322
"description": "DeleteCertificate will delete the stored TLS certificate.",
309323
"operationId": "DeleteCertificate",
310324
"parameters": [
@@ -316,6 +330,14 @@
316330
"type": "string"
317331
}
318332
},
333+
{
334+
"in": "path",
335+
"name": "region",
336+
"required": true,
337+
"schema": {
338+
"type": "string"
339+
}
340+
},
319341
{
320342
"in": "path",
321343
"name": "id",
@@ -382,7 +404,6 @@
382404
}
383405
},
384406
"get": {
385-
"deprecated": true,
386407
"description": "GetCertificate will return the public parts of a stored TLS certificate.",
387408
"operationId": "GetCertificate",
388409
"parameters": [
@@ -394,6 +415,14 @@
394415
"type": "string"
395416
}
396417
},
418+
{
419+
"in": "path",
420+
"name": "region",
421+
"required": true,
422+
"schema": {
423+
"type": "string"
424+
}
425+
},
397426
{
398427
"in": "path",
399428
"name": "id",
@@ -471,13 +500,10 @@
471500
],
472501
"servers": [
473502
{
474-
"url": "https://certificates.api.{region}stackit.cloud",
503+
"url": "https://certificates.api.stackit.cloud",
475504
"variables": {
476505
"region": {
477-
"default": "eu01.",
478-
"enum": [
479-
"eu01."
480-
]
506+
"default": "global"
481507
}
482508
}
483509
}

services/certificates/v2beta/certificates.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@
146146
}
147147
},
148148
"info": {
149-
"description": "This API offers the ability to store TLS certificates, which can be used by load balancing servers in STACKIT. They can be between consumer and load balancing server and/or between load balancing server and endpoint server.",
149+
"description": "### DEPRECATED! This API offers the ability to store TLS certificates, which can be used by load balancing servers in STACKIT. They can be between consumer and load balancing server and/or between load balancing server and endpoint server.",
150150
"title": "STACKIT Application Load Balancer Certificates API",
151151
"version": "2beta.0.0"
152152
},

services/load-balancer/v2/load-balancer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -946,7 +946,7 @@
946946
},
947947
"info": {
948948
"description": "This API offers an interface to provision and manage load balancing servers in your STACKIT project. It also has the possibility of pooling target servers for load balancing purposes.\n\nFor each load balancer provided, two VMs are deployed in your OpenStack project subject to a fee.",
949-
"title": "STACKIT Load Balancer API",
949+
"title": "STACKIT Network Load Balancer API",
950950
"version": "2.0.0"
951951
},
952952
"openapi": "3.0.3",

0 commit comments

Comments
 (0)