|
1 | 1 | {
|
2 | 2 | "components": {
|
3 | 3 | "schemas": {
|
| 4 | + "CreateInstancePayload": { |
| 5 | + "description": "Request a STACKIT Git instance to be created with these properties.", |
| 6 | + "properties": { |
| 7 | + "name": { |
| 8 | + "description": "A user chosen name to distinguish multiple STACKIT Git instances.", |
| 9 | + "maxLength": 32, |
| 10 | + "minLength": 5, |
| 11 | + "pattern": "^[a-zA-Z0-9-_]+$", |
| 12 | + "type": "string" |
| 13 | + } |
| 14 | + }, |
| 15 | + "required": [ |
| 16 | + "name" |
| 17 | + ] |
| 18 | + }, |
4 | 19 | "Instance": {
|
5 | 20 | "description": "Describes a STACKIT Git instance.",
|
6 | 21 | "properties": {
|
|
165 | 180 | "type": "string"
|
166 | 181 | }
|
167 | 182 | }
|
| 183 | + ], |
| 184 | + "post": { |
| 185 | + "description": "Creates a new STACKIT Git instance within the project.", |
| 186 | + "operationId": "CreateInstance", |
| 187 | + "requestBody": { |
| 188 | + "content": { |
| 189 | + "application/json": { |
| 190 | + "schema": { |
| 191 | + "$ref": "#/components/schemas/CreateInstancePayload" |
| 192 | + } |
| 193 | + } |
| 194 | + }, |
| 195 | + "description": "Provides the options to use when creating the instance.", |
| 196 | + "required": true |
| 197 | + }, |
| 198 | + "responses": { |
| 199 | + "201": { |
| 200 | + "content": { |
| 201 | + "application/json": { |
| 202 | + "schema": { |
| 203 | + "$ref": "#/components/schemas/Instance" |
| 204 | + } |
| 205 | + } |
| 206 | + }, |
| 207 | + "description": "Instance was created successfully" |
| 208 | + }, |
| 209 | + "400": { |
| 210 | + "description": "Bad Request." |
| 211 | + }, |
| 212 | + "401": { |
| 213 | + "content": { |
| 214 | + "application/json": { |
| 215 | + "schema": { |
| 216 | + "$ref": "#/components/schemas/UnauthorizedResponse" |
| 217 | + } |
| 218 | + } |
| 219 | + }, |
| 220 | + "description": "Unauthorized." |
| 221 | + }, |
| 222 | + "409": { |
| 223 | + "description": "Conflict." |
| 224 | + }, |
| 225 | + "500": { |
| 226 | + "content": { |
| 227 | + "application/json": { |
| 228 | + "schema": { |
| 229 | + "$ref": "#/components/schemas/InternalServerErrorResponse" |
| 230 | + } |
| 231 | + } |
| 232 | + }, |
| 233 | + "description": "Internal server error." |
| 234 | + } |
| 235 | + }, |
| 236 | + "summary": "Users with write-access to a project may create a new STACKIT Git instance by posting\nthe instance creation request to this endpoint, which will schedule the creation of a\nnew STACKIT Git instance within that project.\n", |
| 237 | + "x-stackit-authorization": { |
| 238 | + "actions": [ |
| 239 | + "git.instance.create" |
| 240 | + ], |
| 241 | + "resource-id": "projectId", |
| 242 | + "resource-id-type": "dynamic", |
| 243 | + "resource-type": "project" |
| 244 | + } |
| 245 | + } |
| 246 | + }, |
| 247 | + "/v1beta/projects/{projectId}/instances/{instanceId}": { |
| 248 | + "delete": { |
| 249 | + "description": "Deletes the given STACKIT Git instance.", |
| 250 | + "operationId": "DeleteInstance", |
| 251 | + "responses": { |
| 252 | + "202": { |
| 253 | + "description": "Instance was deleted successfully." |
| 254 | + }, |
| 255 | + "400": { |
| 256 | + "description": "Bad Request." |
| 257 | + }, |
| 258 | + "401": { |
| 259 | + "content": { |
| 260 | + "application/json": { |
| 261 | + "schema": { |
| 262 | + "$ref": "#/components/schemas/UnauthorizedResponse" |
| 263 | + } |
| 264 | + } |
| 265 | + }, |
| 266 | + "description": "Unauthorized." |
| 267 | + }, |
| 268 | + "404": { |
| 269 | + "description": "Not found." |
| 270 | + }, |
| 271 | + "409": { |
| 272 | + "description": "Conflict." |
| 273 | + }, |
| 274 | + "500": { |
| 275 | + "content": { |
| 276 | + "application/json": { |
| 277 | + "schema": { |
| 278 | + "$ref": "#/components/schemas/InternalServerErrorResponse" |
| 279 | + } |
| 280 | + } |
| 281 | + }, |
| 282 | + "description": "Internal server error." |
| 283 | + } |
| 284 | + }, |
| 285 | + "summary": "Allows a user with write-access to a project to schedule the deletion of a STACKIT Git\ninstance, which will soon eliminate all repositories \u0026 user metadata associated with\nthat instance. This is a destructive operation.\n", |
| 286 | + "x-stackit-authorization": { |
| 287 | + "actions": [ |
| 288 | + "git.instance.delete" |
| 289 | + ], |
| 290 | + "resource-id": "projectId", |
| 291 | + "resource-id-type": "dynamic", |
| 292 | + "resource-type": "project" |
| 293 | + } |
| 294 | + }, |
| 295 | + "get": { |
| 296 | + "description": "Returns the details for the given STACKIT Git instance.", |
| 297 | + "operationId": "GetInstance", |
| 298 | + "responses": { |
| 299 | + "200": { |
| 300 | + "content": { |
| 301 | + "application/json": { |
| 302 | + "schema": { |
| 303 | + "$ref": "#/components/schemas/Instance" |
| 304 | + } |
| 305 | + } |
| 306 | + }, |
| 307 | + "description": "Instance details successfully retrieved." |
| 308 | + }, |
| 309 | + "400": { |
| 310 | + "description": "Bad Request." |
| 311 | + }, |
| 312 | + "401": { |
| 313 | + "content": { |
| 314 | + "application/json": { |
| 315 | + "schema": { |
| 316 | + "$ref": "#/components/schemas/UnauthorizedResponse" |
| 317 | + } |
| 318 | + } |
| 319 | + }, |
| 320 | + "description": "Unauthorized." |
| 321 | + }, |
| 322 | + "404": { |
| 323 | + "description": "Not found." |
| 324 | + }, |
| 325 | + "500": { |
| 326 | + "content": { |
| 327 | + "application/json": { |
| 328 | + "schema": { |
| 329 | + "$ref": "#/components/schemas/InternalServerErrorResponse" |
| 330 | + } |
| 331 | + } |
| 332 | + }, |
| 333 | + "description": "Internal server error." |
| 334 | + } |
| 335 | + }, |
| 336 | + "summary": "Provides detailed information about the state of an instance within the specified\nproject including information about how to access the instance for further use.\n", |
| 337 | + "x-stackit-authorization": { |
| 338 | + "actions": [ |
| 339 | + "git.instance.get" |
| 340 | + ], |
| 341 | + "resource-id": "projectId", |
| 342 | + "resource-id-type": "dynamic", |
| 343 | + "resource-type": "project" |
| 344 | + } |
| 345 | + }, |
| 346 | + "parameters": [ |
| 347 | + { |
| 348 | + "description": "The STACKIT portal project UUID the STACKIT Git instance is part of.", |
| 349 | + "example": "83b8e9c4-e3d1-4dc4-bb89-9854c8b5383e", |
| 350 | + "in": "path", |
| 351 | + "name": "projectId", |
| 352 | + "required": true, |
| 353 | + "schema": { |
| 354 | + "format": "uuid", |
| 355 | + "maxLength": 36, |
| 356 | + "type": "string" |
| 357 | + } |
| 358 | + }, |
| 359 | + { |
| 360 | + "description": "The STACKIT Git instance UUID.", |
| 361 | + "example": "f88b5082-a81b-41ae-aae0-33df56907aa8", |
| 362 | + "in": "path", |
| 363 | + "name": "instanceId", |
| 364 | + "required": true, |
| 365 | + "schema": { |
| 366 | + "format": "uuid", |
| 367 | + "maxLength": 36, |
| 368 | + "type": "string" |
| 369 | + } |
| 370 | + } |
168 | 371 | ]
|
169 | 372 | }
|
170 | 373 | },
|
|
0 commit comments