|
65 | 65 | "type": "string" |
66 | 66 | } |
67 | 67 | }, |
| 68 | + "v1ListAllImages": { |
| 69 | + "description": "List all Images.", |
| 70 | + "in": "query", |
| 71 | + "name": "all", |
| 72 | + "schema": { |
| 73 | + "default": false, |
| 74 | + "example": true, |
| 75 | + "type": "boolean" |
| 76 | + } |
| 77 | + }, |
68 | 78 | "v1LogLength": { |
69 | 79 | "description": "Request the server log. By default the length is limited to 2000 lines. Set to 0 to retrieve the complete log.", |
70 | 80 | "in": "query", |
|
537 | 547 | "type": "object" |
538 | 548 | }, |
539 | 549 | "AffinityGroupPolicy": { |
540 | | - "description": "The affinity group policy.", |
541 | | - "example": "anti-affinity", |
| 550 | + "description": "The affinity group policy.\n`hard-affinity`: All servers in this group will be hosted on the same compute node.\n`soft-affinity`: All servers in this group will be hosted on as few compute nodes as possible.\n`hard-anti-affinity`: All servers in this group will be hosted on different compute nodes.\n`soft-anti-affinity`: All servers in this group will be hosted on as many compute nodes as possible.\nPossible values: `hard-anti-affinity`, `hard-affinity`, `soft-anti-affinity`, `soft-affinity`.", |
| 551 | + "example": "hard-anti-affinity", |
542 | 552 | "type": "string" |
543 | 553 | }, |
544 | 554 | "AllowedAddresses": { |
|
797 | 807 | "type": "object" |
798 | 808 | }, |
799 | 809 | "BackupSourceTypes": { |
800 | | - "description": "The source types of a backup.", |
| 810 | + "description": "The source types of a backup.\nPossible values: `volume`, `snapshot`.", |
801 | 811 | "type": "string" |
802 | 812 | }, |
803 | 813 | "BackupStatus": { |
804 | | - "description": "The status of a backup object.", |
| 814 | + "description": "The status of a backup object.\nPossible values: `AVAILABLE`, `CREATING`, `DELETED`, `DELETING`, `ERROR`, `RESTORING`.", |
805 | 815 | "example": "AVAILABLE", |
806 | 816 | "type": "string" |
807 | 817 | }, |
|
930 | 940 | "type": "object" |
931 | 941 | }, |
932 | 942 | "BootVolumeSourceTypes": { |
933 | | - "description": "The source types of a boot volume.", |
| 943 | + "description": "The source types of a boot volume.\nPossible values: `image`, `volume`.", |
934 | 944 | "type": "string" |
935 | 945 | }, |
936 | 946 | "CIDR": { |
|
1084 | 1094 | ], |
1085 | 1095 | "readOnly": true |
1086 | 1096 | }, |
| 1097 | + "size": { |
| 1098 | + "allOf": [ |
| 1099 | + { |
| 1100 | + "$ref": "#/components/schemas/SizeInBytes" |
| 1101 | + } |
| 1102 | + ], |
| 1103 | + "readOnly": true |
| 1104 | + }, |
1087 | 1105 | "status": { |
1088 | 1106 | "allOf": [ |
1089 | 1107 | { |
|
1538 | 1556 | "keypairName": { |
1539 | 1557 | "allOf": [ |
1540 | 1558 | { |
1541 | | - "$ref": "#/components/schemas/GenericName" |
| 1559 | + "$ref": "#/components/schemas/KeyPairName" |
1542 | 1560 | } |
1543 | 1561 | ], |
1544 | 1562 | "description": "The SSH keypair used during the server creation." |
|
1850 | 1868 | "type": "string" |
1851 | 1869 | }, |
1852 | 1870 | "DeleteOnTermination": { |
1853 | | - "default": false, |
1854 | 1871 | "description": "Delete the volume during the termination of the server. Defaults to false.", |
1855 | 1872 | "type": "boolean" |
1856 | 1873 | }, |
|
1861 | 1878 | "type": "string" |
1862 | 1879 | }, |
1863 | 1880 | "DiskFormat": { |
1864 | | - "description": "Object that represents a disk format.", |
| 1881 | + "description": "Object that represents a disk format.\nPossible values: `raw`, `qcow2`, `iso`.", |
1865 | 1882 | "type": "string" |
1866 | 1883 | }, |
1867 | 1884 | "Error": { |
|
2013 | 2030 | ], |
2014 | 2031 | "readOnly": true |
2015 | 2032 | }, |
| 2033 | + "size": { |
| 2034 | + "allOf": [ |
| 2035 | + { |
| 2036 | + "$ref": "#/components/schemas/SizeInBytes" |
| 2037 | + } |
| 2038 | + ], |
| 2039 | + "readOnly": true |
| 2040 | + }, |
2016 | 2041 | "status": { |
2017 | 2042 | "allOf": [ |
2018 | 2043 | { |
|
2068 | 2093 | "ImageConfig": { |
2069 | 2094 | "description": "Properties to set hardware and scheduling settings for an Image.", |
2070 | 2095 | "properties": { |
| 2096 | + "architecture": { |
| 2097 | + "description": "Represents CPU architecture. The default for new images is x86.", |
| 2098 | + "type": "string", |
| 2099 | + "x-extensible-enum": [ |
| 2100 | + "arm64", |
| 2101 | + "x86" |
| 2102 | + ] |
| 2103 | + }, |
2071 | 2104 | "bootMenu": { |
2072 | | - "default": false, |
2073 | | - "description": "Enables the BIOS bootmenu.", |
| 2105 | + "description": "Enables the BIOS bootmenu. The default for new images is disabled.", |
2074 | 2106 | "type": "boolean" |
2075 | 2107 | }, |
2076 | 2108 | "cdromBus": { |
|
2148 | 2180 | ] |
2149 | 2181 | }, |
2150 | 2182 | "secureBoot": { |
2151 | | - "default": false, |
2152 | | - "description": "Enables Secure Boot.", |
| 2183 | + "description": "Enables Secure Boot. The default for new images is disabled.", |
2153 | 2184 | "type": "boolean" |
2154 | 2185 | }, |
2155 | 2186 | "uefi": { |
2156 | | - "default": false, |
2157 | | - "description": "Enables UEFI boot.", |
| 2187 | + "description": "Configure UEFI boot. The default for new images is enabled.", |
2158 | 2188 | "type": "boolean" |
2159 | 2189 | }, |
2160 | 2190 | "videoModel": { |
|
2171 | 2201 | ] |
2172 | 2202 | }, |
2173 | 2203 | "virtioScsi": { |
2174 | | - "default": false, |
2175 | | - "description": "Enables the use of VirtIO SCSI to provide block device access. By default instances use VirtIO Block.", |
| 2204 | + "description": "Enables the use of VirtIO SCSI to provide block device access. By default servers use VirtIO Block.", |
2176 | 2205 | "type": "boolean" |
2177 | 2206 | } |
2178 | 2207 | }, |
|
2215 | 2244 | "type": "object" |
2216 | 2245 | }, |
2217 | 2246 | "ImageScope": { |
2218 | | - "description": "Scope of an Image.", |
| 2247 | + "description": "Scope of an Image.\nPossible values: `public`, `local`, `projects`, `organization`.", |
2219 | 2248 | "example": "local", |
2220 | 2249 | "type": "string" |
2221 | 2250 | }, |
|
2273 | 2302 | } |
2274 | 2303 | }, |
2275 | 2304 | "ImageStatus": { |
2276 | | - "description": "The status of an image object.", |
| 2305 | + "description": "The status of an image object.\nPossible values: `AVAILABLE`, `CREATING`, `DEACTIVATED`, `DELETED`, `DELETING`, `ERROR`.", |
2277 | 2306 | "example": "AVAILABLE", |
2278 | 2307 | "type": "string" |
2279 | 2308 | }, |
|
2354 | 2383 | "type": "object" |
2355 | 2384 | }, |
2356 | 2385 | "Labels": { |
2357 | | - "description": "Object that represents the labels of an object.", |
| 2386 | + "description": "Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`.", |
2358 | 2387 | "example": { |
2359 | | - "foo": "Foo Value" |
| 2388 | + "key": "value" |
2360 | 2389 | }, |
2361 | 2390 | "format": "json", |
2362 | 2391 | "type": "object" |
|
2376 | 2405 | "MachineType": { |
2377 | 2406 | "description": "Machine Type.", |
2378 | 2407 | "example": { |
2379 | | - "description": "small, specific instances with cpu-overcommit. Runs on various Intel CPUs.", |
| 2408 | + "description": "small, specific servers with cpu-overcommit. Runs on various Intel CPUs.", |
2380 | 2409 | "disk": 1, |
2381 | 2410 | "extraSpecs": { |
2382 | 2411 | "cpu": "intel-ivybridge-generic", |
|
2946 | 2975 | "type": "object" |
2947 | 2976 | }, |
2948 | 2977 | "ProtocolName": { |
2949 | | - "description": "The protocol name which the rule should match.", |
| 2978 | + "description": "The protocol name which the rule should match.\nPossible values: `ah`, `dccp`, `egp`, `esp`, `gre`, `icmp`, `igmp`, `ipip`, `ipv6-encap`, `ipv6-frag`, `ipv6-icmp`, `ipv6-nonxt`, `ipv6-opts`, `ipv6-route`, `ospf`, `pgm`, `rsvp`, `sctp`, `tcp`, `udp`, `udplite`, `vrrp`.", |
2950 | 2979 | "type": "string" |
2951 | 2980 | }, |
2952 | 2981 | "ProtocolNumber": { |
|
3355 | 3384 | "type": "object" |
3356 | 3385 | }, |
3357 | 3386 | "Resource": { |
3358 | | - "description": "Object that represents a resource type.", |
| 3387 | + "description": "Object that represents a resource type.\nPossible values: `BACKUP`, `IMAGE`, `NETWORK`, `NETWORKAREA`, `NIC`, `PROJECT`, `ROUTE`, `SERVER`, `SERVICEACCOUNT`, `SNAPSHOT`, `VIRTUALIP`, `VOLUME`.", |
3359 | 3388 | "example": "SERVER", |
3360 | 3389 | "type": "string" |
3361 | 3390 | }, |
3362 | 3391 | "ResourceAction": { |
3363 | | - "description": "Object that represents a resource action.", |
| 3392 | + "description": "Object that represents a resource action.\nPossible values: `CREATE`, `DELETE`, `UPDATE`.", |
3364 | 3393 | "example": "CREATE", |
3365 | 3394 | "type": "string" |
3366 | 3395 | }, |
3367 | 3396 | "ResourceState": { |
3368 | | - "description": "The state of a resource object.", |
| 3397 | + "description": "The state of a resource object.\nPossible values: `CREATING`, `CREATED`, `DELETING`, `DELETED`, `FAILED`, `UPDATED`, `UPDATING`.", |
3369 | 3398 | "example": "CREATING", |
3370 | 3399 | "type": "string" |
3371 | 3400 | }, |
|
3439 | 3468 | "SSHPublicKey": { |
3440 | 3469 | "description": "Object that represents a public SSH key.", |
3441 | 3470 | "example": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIDsPd27M449akqCtdFg2+AmRVJz6eWio0oMP9dVg7Xe", |
3442 | | - "pattern": "^(ssh-rsa|ssh-ed25519)\\s+[A-Za-z0-9+/]+[=]{0,3}(\\s+.+)?\\s*$", |
| 3471 | + "pattern": "^(ssh-rsa|ssh-ed25519|ecdsa-sha2-nistp(256|384|521))\\s+[A-Za-z0-9+/]+[=]{0,3}(\\s+.+)?\\s*$", |
3443 | 3472 | "type": "string" |
3444 | 3473 | }, |
3445 | 3474 | "SecurityGroup": { |
|
3613 | 3642 | "keypairName": { |
3614 | 3643 | "allOf": [ |
3615 | 3644 | { |
3616 | | - "$ref": "#/components/schemas/GenericName" |
| 3645 | + "$ref": "#/components/schemas/KeyPairName" |
3617 | 3646 | } |
3618 | 3647 | ], |
3619 | 3648 | "description": "The SSH keypair used during the server creation." |
|
3850 | 3879 | "$ref": "#/components/schemas/UUID" |
3851 | 3880 | }, |
3852 | 3881 | "nicSecurity": { |
3853 | | - "default": true, |
3854 | 3882 | "description": "If this is set to false, then no security groups will apply to this server network interface.", |
3855 | 3883 | "type": "boolean" |
3856 | 3884 | }, |
|
3871 | 3899 | "type": "object" |
3872 | 3900 | }, |
3873 | 3901 | "ServerPowerStatus": { |
3874 | | - "description": "The power status of a server.", |
| 3902 | + "description": "The power status of a server.\nPossible values: `CRASHED`, `ERROR`, `RUNNING`, `STOPPED`.", |
3875 | 3903 | "example": "RUNNING", |
3876 | 3904 | "type": "string" |
3877 | 3905 | }, |
3878 | 3906 | "ServerStatus": { |
3879 | | - "description": "The status of a server object.", |
| 3907 | + "description": "The status of a server object.\nPossible values: `ACTIVE`, `BACKING-UP`, `CREATING`, `DEALLOCATED`, `DEALLOCATING`, `DELETED`, `DELETING`, `ERROR`, `INACTIVE`, `MIGRATING`, `REBOOT`, `REBOOTING`, `REBUILD`, `REBUILDING`, `RESCUE`, `RESCUING`, `RESIZING`, `RESTORING`, `SNAPSHOTTING`, `STARTING`, `STOPPING`, `UNRESCUING`, `UPDATING`.", |
3880 | 3908 | "example": "ACTIVE", |
3881 | 3909 | "type": "string" |
3882 | 3910 | }, |
|
3930 | 3958 | } |
3931 | 3959 | } |
3932 | 3960 | }, |
| 3961 | + "SizeInBytes": { |
| 3962 | + "description": "Size in bytes.", |
| 3963 | + "example": 1401946112, |
| 3964 | + "format": "int64", |
| 3965 | + "type": "integer" |
| 3966 | + }, |
3933 | 3967 | "SizeInGB": { |
3934 | 3968 | "description": "Size in Gigabyte.", |
3935 | 3969 | "example": 1337, |
|
4020 | 4054 | "type": "object" |
4021 | 4055 | }, |
4022 | 4056 | "SnapshotStatus": { |
4023 | | - "description": "The status of a snapshot object.", |
| 4057 | + "description": "The status of a snapshot object.\nPossible values: `AVAILABLE`, `BACKING-UP`, `CREATING`, `DELETED`, `DELETING`, `ERROR`, `RESTORING`, `UNMANAGING`, `UPDATING`.", |
4024 | 4058 | "example": "AVAILABLE", |
4025 | 4059 | "type": "string" |
4026 | 4060 | }, |
|
4360 | 4394 | "$ref": "#/components/schemas/Labels" |
4361 | 4395 | }, |
4362 | 4396 | "name": { |
4363 | | - "$ref": "#/components/schemas/GenericName" |
| 4397 | + "$ref": "#/components/schemas/ServerName" |
4364 | 4398 | } |
4365 | 4399 | }, |
4366 | 4400 | "type": "object" |
|
4622 | 4656 | "type": "object" |
4623 | 4657 | }, |
4624 | 4658 | "VolumeBootable": { |
4625 | | - "default": false, |
4626 | 4659 | "description": "Indicates if a volume is bootable.", |
4627 | 4660 | "example": true, |
4628 | 4661 | "type": "boolean" |
|
4715 | 4748 | "type": "object" |
4716 | 4749 | }, |
4717 | 4750 | "VolumeSourceTypes": { |
4718 | | - "description": "The source types of a volume.", |
| 4751 | + "description": "The source types of a volume.\nPossible values: `image`, `volume`, `snapshot`, `backup`.", |
4719 | 4752 | "type": "string" |
4720 | 4753 | }, |
4721 | 4754 | "VolumeStatus": { |
4722 | | - "description": "The status of a volume object.", |
| 4755 | + "description": "The status of a volume object.\nPossible values: `ATTACHED`, `ATTACHING`, `AVAILABLE`, `AWAITING-TRANSFER`, `BACKING-UP`, `CREATING`, `DELETED`, `DELETING`, `DETACHING`, `DOWNLOADING`, `ERROR`, `ERROR_BACKING-UP`, `ERROR_DELETING`, `ERROR_RESIZING`, `ERROR_RESTORING-BACKUP`, `MAINTENANCE`, `RESERVED`, `RESIZING`, `RESTORING-BACKUP`, `RETYPING`, `UPLOADING`.", |
4723 | 4756 | "example": "ATTACHED", |
4724 | 4757 | "type": "string" |
4725 | 4758 | }, |
|
4999 | 5032 | "/v1alpha1/networks/public-ip-ranges": { |
5000 | 5033 | "get": { |
5001 | 5034 | "description": "Get a list of all public IP ranges that STACKIT uses.", |
5002 | | - "operationId": "ListPublicIPRanges", |
| 5035 | + "operationId": "ListPublicIpRanges", |
5003 | 5036 | "responses": { |
5004 | 5037 | "200": { |
5005 | 5038 | "content": { |
|
6430 | 6463 | "description": "Get a list of all images inside a project.", |
6431 | 6464 | "operationId": "ListImages", |
6432 | 6465 | "parameters": [ |
| 6466 | + { |
| 6467 | + "$ref": "#/components/parameters/v1ListAllImages" |
| 6468 | + }, |
6433 | 6469 | { |
6434 | 6470 | "$ref": "#/components/parameters/v1LabelSelector" |
6435 | 6471 | } |
|
6488 | 6524 | "active": true, |
6489 | 6525 | "diskFormat": "qcow2", |
6490 | 6526 | "labels": { |
6491 | | - "foo": "Foo Value" |
| 6527 | + "key": "value" |
6492 | 6528 | }, |
6493 | 6529 | "minDiskSize": 10, |
6494 | 6530 | "minRam": 1, |
|
9048 | 9084 | }, |
9049 | 9085 | "machineType": "t1.1", |
9050 | 9086 | "name": "bootFromExistingVolume", |
9051 | | - "network": "ef018b02-74e9-4f70-87bb-ce1a9742afb9" |
| 9087 | + "networking": "ef018b02-74e9-4f70-87bb-ce1a9742afb9" |
9052 | 9088 | } |
9053 | 9089 | }, |
9054 | 9090 | "BootFromImage": { |
9055 | 9091 | "value": { |
9056 | 9092 | "image": "e24b1440-8d9c-431b-8da4-02916720fab5", |
9057 | 9093 | "machineType": "t1.1", |
9058 | 9094 | "name": "bootFromImage", |
9059 | | - "network": "ef018b02-74e9-4f70-87bb-ce1a9742afb9" |
| 9095 | + "networking": "ef018b02-74e9-4f70-87bb-ce1a9742afb9" |
9060 | 9096 | } |
9061 | 9097 | }, |
9062 | 9098 | "BootImageFromVolume": { |
|
9070 | 9106 | }, |
9071 | 9107 | "machineType": "t1.1", |
9072 | 9108 | "name": "bootImageFromVolume", |
9073 | | - "network": "ef018b02-74e9-4f70-87bb-ce1a9742afb9" |
| 9109 | + "networking": "ef018b02-74e9-4f70-87bb-ce1a9742afb9" |
9074 | 9110 | } |
9075 | 9111 | }, |
9076 | 9112 | "FullExample": { |
|
9088 | 9124 | }, |
9089 | 9125 | "keypair": "keypair-517e9448-1cf1-4b36-9f29-6e66d669a6d2", |
9090 | 9126 | "labels": { |
9091 | | - "foo": "Foo Value" |
| 9127 | + "key": "value" |
9092 | 9128 | }, |
9093 | 9129 | "machineType": "t1.1", |
9094 | 9130 | "name": "server1", |
9095 | | - "network": "ef018b02-74e9-4f70-87bb-ce1a9742afb9", |
| 9131 | + "networking": "ef018b02-74e9-4f70-87bb-ce1a9742afb9", |
9096 | 9132 | "securityGroups": [ |
9097 | 9133 | "188de165-5767-4fc2-8710-a4d2017249e7" |
9098 | 9134 | ], |
|
0 commit comments