|
27 | 27 | "description": "The PEM encoded public key part", |
28 | 28 | "example": "-----BEGIN CERTIFICATE----- MYPUbLiC+Tls/CER71fICATE...-----END CERTIFICATE-----", |
29 | 29 | "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, |
41 | 37 | "type": "string" |
42 | 38 | } |
43 | 39 | }, |
|
66 | 62 | "description": "The PEM encoded public key part", |
67 | 63 | "example": "-----BEGIN CERTIFICATE----- MYPUbLiC+Tls/CER71fICATE...-----END CERTIFICATE-----", |
68 | 64 | "type": "string" |
| 65 | + }, |
| 66 | + "region": { |
| 67 | + "description": "Region of the LoadBalancer", |
| 68 | + "example": "eu01", |
| 69 | + "type": "string" |
69 | 70 | } |
70 | 71 | }, |
71 | 72 | "type": "object" |
|
125 | 126 | } |
126 | 127 | }, |
127 | 128 | "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.", |
129 | 130 | "title": "STACKIT Application Load Balancer Certificates API", |
130 | | - "version": "1beta.0.0" |
| 131 | + "version": "2.0.0" |
131 | 132 | }, |
132 | 133 | "openapi": "3.0.3", |
133 | 134 | "paths": { |
134 | | - "/v1beta/projects/{projectId}/certificates": { |
| 135 | + "/v2/projects/{projectId}/regions/{region}/certificates": { |
135 | 136 | "get": { |
136 | | - "deprecated": true, |
137 | 137 | "description": "ListCertificates will return the list of TLS certificates in a project.", |
138 | 138 | "operationId": "ListCertificates", |
139 | 139 | "parameters": [ |
|
145 | 145 | "type": "string" |
146 | 146 | } |
147 | 147 | }, |
| 148 | + { |
| 149 | + "in": "path", |
| 150 | + "name": "region", |
| 151 | + "required": true, |
| 152 | + "schema": { |
| 153 | + "type": "string" |
| 154 | + } |
| 155 | + }, |
148 | 156 | { |
149 | 157 | "description": "page_size specifies how many certificates should be returned on this page. Must be a positive number \u003c= 1000", |
150 | 158 | "in": "query", |
|
222 | 230 | } |
223 | 231 | }, |
224 | 232 | "post": { |
225 | | - "deprecated": true, |
226 | 233 | "description": "CreateCertificate will store a TLS certificate in a project.", |
227 | 234 | "operationId": "CreateCertificate", |
228 | 235 | "parameters": [ |
|
233 | 240 | "schema": { |
234 | 241 | "type": "string" |
235 | 242 | } |
| 243 | + }, |
| 244 | + { |
| 245 | + "in": "path", |
| 246 | + "name": "region", |
| 247 | + "required": true, |
| 248 | + "schema": { |
| 249 | + "type": "string" |
| 250 | + } |
236 | 251 | } |
237 | 252 | ], |
238 | 253 | "requestBody": { |
|
250 | 265 | "content": { |
251 | 266 | "application/json": { |
252 | 267 | "schema": { |
253 | | - "$ref": "#/components/schemas/CreateCertificateResponse" |
| 268 | + "$ref": "#/components/schemas/GetCertificateResponse" |
254 | 269 | } |
255 | 270 | } |
256 | 271 | }, |
|
302 | 317 | } |
303 | 318 | } |
304 | 319 | }, |
305 | | - "/v1beta/projects/{projectId}/certificates/{id}": { |
| 320 | + "/v2/projects/{projectId}/regions/{region}/certificates/{id}": { |
306 | 321 | "delete": { |
307 | | - "deprecated": true, |
308 | 322 | "description": "DeleteCertificate will delete the stored TLS certificate.", |
309 | 323 | "operationId": "DeleteCertificate", |
310 | 324 | "parameters": [ |
|
316 | 330 | "type": "string" |
317 | 331 | } |
318 | 332 | }, |
| 333 | + { |
| 334 | + "in": "path", |
| 335 | + "name": "region", |
| 336 | + "required": true, |
| 337 | + "schema": { |
| 338 | + "type": "string" |
| 339 | + } |
| 340 | + }, |
319 | 341 | { |
320 | 342 | "in": "path", |
321 | 343 | "name": "id", |
|
382 | 404 | } |
383 | 405 | }, |
384 | 406 | "get": { |
385 | | - "deprecated": true, |
386 | 407 | "description": "GetCertificate will return the public parts of a stored TLS certificate.", |
387 | 408 | "operationId": "GetCertificate", |
388 | 409 | "parameters": [ |
|
394 | 415 | "type": "string" |
395 | 416 | } |
396 | 417 | }, |
| 418 | + { |
| 419 | + "in": "path", |
| 420 | + "name": "region", |
| 421 | + "required": true, |
| 422 | + "schema": { |
| 423 | + "type": "string" |
| 424 | + } |
| 425 | + }, |
397 | 426 | { |
398 | 427 | "in": "path", |
399 | 428 | "name": "id", |
|
471 | 500 | ], |
472 | 501 | "servers": [ |
473 | 502 | { |
474 | | - "url": "https://certificates.api.{region}stackit.cloud", |
| 503 | + "url": "https://certificates.api.stackit.cloud", |
475 | 504 | "variables": { |
476 | 505 | "region": { |
477 | | - "default": "eu01.", |
478 | | - "enum": [ |
479 | | - "eu01." |
480 | | - ] |
| 506 | + "default": "global" |
481 | 507 | } |
482 | 508 | } |
483 | 509 | } |
|
0 commit comments