|
526 | 526 | "$ref": "#/components/schemas/GenericName" |
527 | 527 | }, |
528 | 528 | "systemRoutes": { |
529 | | - "default": true, |
530 | | - "type": "boolean" |
| 529 | + "$ref": "#/components/schemas/SystemRoutes" |
531 | 530 | }, |
532 | 531 | "updatedAt": { |
533 | 532 | "allOf": [ |
|
990 | 989 | "pattern": "^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))(\\/((1(1[0-9]|2[0-8]))|([0-9][0-9])|([0-9])))?$", |
991 | 990 | "type": "string" |
992 | 991 | }, |
| 992 | + "ContainerFormat": { |
| 993 | + "default": "bare", |
| 994 | + "description": "Object that represents a container format.\nPossible values: `bare`, `ofv`, `ova`.", |
| 995 | + "type": "string" |
| 996 | + }, |
993 | 997 | "CreateAffinityGroupPayload": { |
994 | 998 | "description": "Definition of an affinity group.", |
995 | 999 | "properties": { |
|
2236 | 2240 | ], |
2237 | 2241 | "type": "object" |
2238 | 2242 | }, |
| 2243 | + "ImageFromVolumePayload": { |
| 2244 | + "description": "Object that represents the upload request of an image to a volume. Used for creating an image from a volume.", |
| 2245 | + "properties": { |
| 2246 | + "containerFormat": { |
| 2247 | + "$ref": "#/components/schemas/ContainerFormat" |
| 2248 | + }, |
| 2249 | + "diskFormat": { |
| 2250 | + "$ref": "#/components/schemas/DiskFormat" |
| 2251 | + }, |
| 2252 | + "force": { |
| 2253 | + "default": false, |
| 2254 | + "type": "boolean" |
| 2255 | + }, |
| 2256 | + "name": { |
| 2257 | + "$ref": "#/components/schemas/GenericName" |
| 2258 | + }, |
| 2259 | + "protected": { |
| 2260 | + "$ref": "#/components/schemas/VolumeUploadProtected" |
| 2261 | + }, |
| 2262 | + "visibility": { |
| 2263 | + "$ref": "#/components/schemas/Visibility" |
| 2264 | + } |
| 2265 | + }, |
| 2266 | + "required": [ |
| 2267 | + "name" |
| 2268 | + ], |
| 2269 | + "type": "object" |
| 2270 | + }, |
2239 | 2271 | "ImageList": { |
2240 | 2272 | "description": "A list containing image objects.", |
2241 | 2273 | "items": { |
|
3850 | 3882 | "$ref": "#/components/schemas/GenericName" |
3851 | 3883 | }, |
3852 | 3884 | "systemRoutes": { |
3853 | | - "default": true, |
3854 | | - "type": "boolean" |
| 3885 | + "$ref": "#/components/schemas/SystemRoutes" |
3855 | 3886 | }, |
3856 | 3887 | "updatedAt": { |
3857 | 3888 | "allOf": [ |
|
4510 | 4541 | "example": "PUBLIC", |
4511 | 4542 | "type": "string" |
4512 | 4543 | }, |
| 4544 | + "SystemRoutes": { |
| 4545 | + "default": true, |
| 4546 | + "description": "A config setting for a routing table which allows installation of automatic system routes for connectivity between projects in the same SNA.", |
| 4547 | + "type": "boolean" |
| 4548 | + }, |
4513 | 4549 | "ThroughputInMB": { |
4514 | 4550 | "description": "Throughput in Megabyte per second.", |
4515 | 4551 | "example": 200, |
|
4641 | 4677 | }, |
4642 | 4678 | "type": "object" |
4643 | 4679 | }, |
| 4680 | + "UpdateDynamicRoutes": { |
| 4681 | + "description": "The update config setting for a routing table which allows propagation of dynamic routes to this routing table.", |
| 4682 | + "type": "boolean" |
| 4683 | + }, |
4644 | 4684 | "UpdateImagePayload": { |
4645 | 4685 | "description": "Object that represents an update request body of an Image.", |
4646 | 4686 | "properties": { |
|
4834 | 4874 | "$ref": "#/components/schemas/Description" |
4835 | 4875 | }, |
4836 | 4876 | "dynamicRoutes": { |
4837 | | - "$ref": "#/components/schemas/DynamicRoutes" |
| 4877 | + "$ref": "#/components/schemas/UpdateDynamicRoutes" |
4838 | 4878 | }, |
4839 | 4879 | "labels": { |
4840 | 4880 | "$ref": "#/components/schemas/Labels" |
4841 | 4881 | }, |
4842 | 4882 | "name": { |
4843 | 4883 | "$ref": "#/components/schemas/GenericName" |
| 4884 | + }, |
| 4885 | + "systemRoutes": { |
| 4886 | + "$ref": "#/components/schemas/UpdateSystemRoutes" |
4844 | 4887 | } |
4845 | 4888 | }, |
4846 | 4889 | "type": "object" |
|
4887 | 4930 | }, |
4888 | 4931 | "type": "object" |
4889 | 4932 | }, |
| 4933 | + "UpdateSystemRoutes": { |
| 4934 | + "description": "The update config setting for a routing table which allows installation of automatic system routes for connectivity between projects in the same SNA.", |
| 4935 | + "type": "boolean" |
| 4936 | + }, |
4890 | 4937 | "UpdateVolumePayload": { |
4891 | 4938 | "description": "Object that represents an update request body of a volume.", |
4892 | 4939 | "properties": { |
|
4921 | 4968 | "minimum": 1, |
4922 | 4969 | "type": "integer" |
4923 | 4970 | }, |
| 4971 | + "Visibility": { |
| 4972 | + "default": "private", |
| 4973 | + "description": "Object that represents Visibility.\nPossible values: `public`, `private`, `community`, `shared`.", |
| 4974 | + "type": "string" |
| 4975 | + }, |
4924 | 4976 | "Volume": { |
4925 | 4977 | "description": "Object that represents a volume and its parameters. Volumes sized up to 16000GB are supported.", |
4926 | 4978 | "properties": { |
|
5227 | 5279 | "example": "ATTACHED", |
5228 | 5280 | "type": "string" |
5229 | 5281 | }, |
| 5282 | + "VolumeUploadProtected": { |
| 5283 | + "default": false, |
| 5284 | + "description": "When true the created image is prevented from being deleted.", |
| 5285 | + "example": true, |
| 5286 | + "type": "boolean" |
| 5287 | + }, |
5230 | 5288 | "errorMessage": { |
5231 | 5289 | "description": "An error message.", |
5232 | 5290 | "example": "Project not found", |
|
12139 | 12197 | } |
12140 | 12198 | } |
12141 | 12199 | }, |
| 12200 | + "/v2/projects/{projectId}/regions/{region}/volumes/{volumeId}/upload": { |
| 12201 | + "parameters": [ |
| 12202 | + { |
| 12203 | + "$ref": "#/components/parameters/v1ProjectID" |
| 12204 | + }, |
| 12205 | + { |
| 12206 | + "$ref": "#/components/parameters/v1VolumeID" |
| 12207 | + }, |
| 12208 | + { |
| 12209 | + "$ref": "#/components/parameters/v1Region" |
| 12210 | + } |
| 12211 | + ], |
| 12212 | + "post": { |
| 12213 | + "description": "Create an image out a a volume.", |
| 12214 | + "operationId": "ImageFromVolume", |
| 12215 | + "requestBody": { |
| 12216 | + "content": { |
| 12217 | + "application/json": { |
| 12218 | + "schema": { |
| 12219 | + "$ref": "#/components/schemas/ImageFromVolumePayload" |
| 12220 | + } |
| 12221 | + } |
| 12222 | + }, |
| 12223 | + "description": "Create an image from a volume." |
| 12224 | + }, |
| 12225 | + "responses": { |
| 12226 | + "202": { |
| 12227 | + "description": "Image from Volume creation request accepted." |
| 12228 | + }, |
| 12229 | + "400": { |
| 12230 | + "$ref": "#/components/responses/BadRequest" |
| 12231 | + }, |
| 12232 | + "401": { |
| 12233 | + "$ref": "#/components/responses/Unauthorized" |
| 12234 | + }, |
| 12235 | + "403": { |
| 12236 | + "$ref": "#/components/responses/Forbidden" |
| 12237 | + }, |
| 12238 | + "404": { |
| 12239 | + "$ref": "#/components/responses/NotFound" |
| 12240 | + }, |
| 12241 | + "409": { |
| 12242 | + "$ref": "#/components/responses/Conflict" |
| 12243 | + }, |
| 12244 | + "500": { |
| 12245 | + "$ref": "#/components/responses/InternalServerError" |
| 12246 | + } |
| 12247 | + }, |
| 12248 | + "summary": "Create an image out of a volume.", |
| 12249 | + "x-stackit-authorization": { |
| 12250 | + "actions": [ |
| 12251 | + "iaas.volume.upload" |
| 12252 | + ], |
| 12253 | + "resource-id": "projectId", |
| 12254 | + "resource-id-type": "dynamic", |
| 12255 | + "resource-type": "project" |
| 12256 | + } |
| 12257 | + } |
| 12258 | + }, |
12142 | 12259 | "/v2/regions/{region}/availability-zones": { |
12143 | 12260 | "get": { |
12144 | 12261 | "description": "Get a list of all availability zones.", |
|
0 commit comments