|
3 | 3 | "parameters": { |
4 | 4 | "InstanceId": { |
5 | 5 | "description": "Instance identifier.", |
| 6 | + "example": "83b8e9c4-e3d1-4dc4-bb89-9854c8b5383e", |
6 | 7 | "explode": false, |
7 | 8 | "in": "path", |
8 | 9 | "name": "instanceId", |
|
14 | 15 | }, |
15 | 16 | "ProjectId": { |
16 | 17 | "description": "Project identifier.", |
| 18 | + "example": "83b8e9c4-e3d1-4dc4-bb89-9854c8b5383e", |
17 | 19 | "explode": false, |
18 | 20 | "in": "path", |
19 | 21 | "name": "projectId", |
|
26 | 28 | }, |
27 | 29 | "schemas": { |
28 | 30 | "CreateInstancePayload": { |
29 | | - "description": "Instance creation configuration options.", |
| 31 | + "description": "Request a STACKIT Git instance to be created with these properties.", |
30 | 32 | "properties": { |
31 | 33 | "acl": { |
32 | 34 | "description": "Restricted ACL for instance access.", |
|
37 | 39 | "type": "array" |
38 | 40 | }, |
39 | 41 | "flavor": { |
40 | | - "default": "git-100", |
41 | | - "description": "Instance flavor. Defaults to git-100 if not specified.", |
42 | | - "example": "git-100", |
| 42 | + "description": "Desired instance flavor. Must be one of the defined enum values", |
| 43 | + "enum": [ |
| 44 | + "git-10", |
| 45 | + "git-100" |
| 46 | + ], |
| 47 | + "maxLength": 255, |
43 | 48 | "type": "string" |
44 | 49 | }, |
45 | 50 | "name": { |
46 | 51 | "description": "A user chosen name to distinguish multiple STACKIT Git instances.", |
47 | | - "example": "my-instance", |
48 | 52 | "maxLength": 32, |
49 | 53 | "minLength": 5, |
50 | 54 | "pattern": "^[a-z]([a-z0-9\\-]){0,30}[a-z0-9]+$", |
|
80 | 84 | "description": "Flavor id.", |
81 | 85 | "maxLength": 36, |
82 | 86 | "type": "string" |
| 87 | + }, |
| 88 | + "sku": { |
| 89 | + "description": "SAP article number.", |
| 90 | + "type": "string" |
83 | 91 | } |
84 | 92 | }, |
85 | 93 | "required": [ |
86 | 94 | "id", |
87 | 95 | "availability", |
88 | 96 | "display_name", |
89 | | - "description" |
| 97 | + "description", |
| 98 | + "sku" |
90 | 99 | ] |
91 | 100 | }, |
92 | 101 | "GenericErrorResponse": { |
|
109 | 118 | "type": "object" |
110 | 119 | }, |
111 | 120 | "Instance": { |
112 | | - "description": "Information about an Instance.", |
| 121 | + "description": "Describes a STACKIT Git instance.", |
113 | 122 | "properties": { |
114 | 123 | "acl": { |
115 | 124 | "description": "Restricted ACL for instance access.", |
|
127 | 136 | "type": "string" |
128 | 137 | }, |
129 | 138 | "created": { |
130 | | - "description": "Instance creation timestamp in RFC3339 format.", |
131 | | - "example": "2025-04-07T07:08:12Z", |
| 139 | + "description": "The date and time the creation of the STACKIT Git instance was triggered.", |
132 | 140 | "format": "date-time", |
133 | 141 | "maxLength": 48, |
134 | 142 | "type": "string" |
135 | 143 | }, |
136 | 144 | "flavor": { |
137 | | - "description": "Instance flavor.", |
138 | | - "example": "git-100", |
| 145 | + "description": "Desired instance flavor. Must be one of the defined enum values", |
139 | 146 | "type": "string" |
140 | 147 | }, |
141 | 148 | "id": { |
142 | | - "description": "Instance identifier.", |
143 | | - "example": "f88b5082-a81b-41ae-aae0-33df56907aa8", |
| 149 | + "description": "A auto generated unique id which identifies the STACKIT Git instances.", |
144 | 150 | "format": "uuid", |
145 | 151 | "maxLength": 36, |
146 | | - "minLength": 36, |
147 | | - "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$", |
148 | 152 | "type": "string" |
149 | 153 | }, |
150 | 154 | "name": { |
151 | | - "description": "Instance name.", |
152 | | - "example": "my-instance", |
| 155 | + "description": "A user chosen name to distinguish multiple STACKIT Git instances.", |
153 | 156 | "maxLength": 32, |
154 | 157 | "type": "string" |
155 | 158 | }, |
156 | 159 | "state": { |
157 | | - "description": "Indicate the readiness state of the instance.", |
| 160 | + "description": "The current state of the STACKIT Git instance.", |
158 | 161 | "enum": [ |
159 | 162 | "Creating", |
160 | 163 | "WaitingForResources", |
|
167 | 170 | "type": "string" |
168 | 171 | }, |
169 | 172 | "url": { |
170 | | - "description": "Instance url.", |
171 | | - "example": "https://my-instance.git.onstackit.cloud", |
172 | | - "maxLength": 512, |
| 173 | + "description": "The URL for reaching the STACKIT Git instance.", |
| 174 | + "maxLength": 2048, |
173 | 175 | "type": "string" |
174 | 176 | }, |
175 | 177 | "version": { |
176 | | - "description": "STACKIT Git version indicator.", |
177 | | - "example": "v1.0.0", |
| 178 | + "description": "The current version of STACKIT Git deployed to the instance.", |
178 | 179 | "maxLength": 20, |
179 | 180 | "type": "string" |
180 | 181 | } |
181 | 182 | }, |
182 | 183 | "required": [ |
183 | 184 | "id", |
184 | 185 | "name", |
185 | | - "flavor", |
186 | 186 | "url", |
187 | 187 | "created", |
188 | 188 | "state", |
189 | 189 | "version", |
190 | 190 | "consumed_disk", |
191 | 191 | "consumed_object_storage", |
| 192 | + "flavor", |
192 | 193 | "acl" |
193 | 194 | ] |
194 | 195 | }, |
|
217 | 218 | ] |
218 | 219 | }, |
219 | 220 | "ListInstances": { |
220 | | - "description": "List of Instances.", |
| 221 | + "description": "A list of STACKIT Git instances.", |
221 | 222 | "properties": { |
222 | 223 | "instances": { |
223 | 224 | "items": { |
224 | 225 | "$ref": "#/components/schemas/Instance" |
225 | 226 | }, |
226 | | - "maxItems": 100, |
| 227 | + "maxItems": 50, |
227 | 228 | "type": "array" |
228 | 229 | } |
229 | 230 | }, |
|
280 | 281 | "description": "Git flavors." |
281 | 282 | }, |
282 | 283 | "400": { |
| 284 | + "content": { |
| 285 | + "application/json": { |
| 286 | + "schema": { |
| 287 | + "$ref": "#/components/schemas/GenericErrorResponse" |
| 288 | + } |
| 289 | + } |
| 290 | + }, |
283 | 291 | "description": "Bad Request." |
284 | 292 | }, |
285 | 293 | "401": { |
|
299 | 307 | "content": { |
300 | 308 | "application/json": { |
301 | 309 | "schema": { |
302 | | - "$ref": "#/components/schemas/InternalServerErrorResponse" |
| 310 | + "$ref": "#/components/schemas/GenericErrorResponse" |
303 | 311 | } |
304 | 312 | } |
305 | 313 | }, |
|
318 | 326 | }, |
319 | 327 | "parameters": [ |
320 | 328 | { |
321 | | - "description": "The STACKIT portal project UUID the STACKIT Git instance is part of.", |
322 | | - "example": "83b8e9c4-e3d1-4dc4-bb89-9854c8b5383e", |
323 | | - "in": "path", |
324 | | - "name": "projectId", |
325 | | - "required": true, |
326 | | - "schema": { |
327 | | - "format": "uuid", |
328 | | - "maxLength": 36, |
329 | | - "type": "string" |
330 | | - } |
| 329 | + "$ref": "#/components/parameters/ProjectId" |
331 | 330 | } |
332 | 331 | ] |
333 | 332 | }, |
|
0 commit comments