|
445 | 445 | "bgpGatewayConfig": { |
446 | 446 | "$ref": "#/components/schemas/BGPGatewayConfig" |
447 | 447 | }, |
| 448 | + "labels": { |
| 449 | + "$ref": "#/components/schemas/Label" |
| 450 | + }, |
448 | 451 | "name": { |
449 | 452 | "description": "The name of the VPN gateway. \nMaximum 20 characters (only alphanumeric and hyphens allowed). Not changeable after creation.\n", |
450 | 453 | "example": "my-vpn", |
|
525 | 528 | "bgpGatewayConfig": { |
526 | 529 | "$ref": "#/components/schemas/BGPGatewayConfig" |
527 | 530 | }, |
| 531 | + "labels": { |
| 532 | + "$ref": "#/components/schemas/Label" |
| 533 | + }, |
528 | 534 | "name": { |
529 | 535 | "description": "The name of the VPN gateway. \nMaximum 20 characters (only alphanumeric and hyphens allowed). Not changeable after creation.\n", |
530 | 536 | "example": "my-vpn", |
|
614 | 620 | "pattern": "^((25[0-5]|(2[0-4]|1\\d|[1-9]|)\\d)\\.?\\b){4}(\\/([0-9]|[1-2][0-9]|3[0-2]))?$", |
615 | 621 | "type": "string" |
616 | 622 | }, |
| 623 | + "Label": { |
| 624 | + "additionalProperties": { |
| 625 | + "$ref": "#/components/schemas/LabelValue" |
| 626 | + }, |
| 627 | + "description": "Map of custom labels. Key and values must be max 63 chars, start/end with alphanumeric.\n", |
| 628 | + "example": { |
| 629 | + "cost-center": "123", |
| 630 | + "is-debug-mode": "", |
| 631 | + "tier": "backend-service", |
| 632 | + "version": "v1.0.2" |
| 633 | + }, |
| 634 | + "maxProperties": 64, |
| 635 | + "type": "object" |
| 636 | + }, |
| 637 | + "LabelKey": { |
| 638 | + "description": "Alphanumeric start/end; may contain the characters \".\", \"-\", \"_\" in between.", |
| 639 | + "maxLength": 63, |
| 640 | + "minLength": 1, |
| 641 | + "pattern": "^[a-zA-Z0-9]([a-zA-Z0-9._-]*[a-zA-Z0-9])?$", |
| 642 | + "type": "string" |
| 643 | + }, |
| 644 | + "LabelSelector": { |
| 645 | + "additionalProperties": { |
| 646 | + "type": "string" |
| 647 | + }, |
| 648 | + "description": "label selector object with no nested json objects.\n", |
| 649 | + "example": { |
| 650 | + "key1": "value1", |
| 651 | + "key2": "value2" |
| 652 | + }, |
| 653 | + "type": "object" |
| 654 | + }, |
| 655 | + "LabelValue": { |
| 656 | + "description": "Can be empty. If not empty, must start/end alphanumeric; may contain the characters \".\", \"-\", \"_\" in between.", |
| 657 | + "maxLength": 63, |
| 658 | + "pattern": "^([a-zA-Z0-9]([a-zA-Z0-9._-]*[a-zA-Z0-9])?)?$", |
| 659 | + "type": "string" |
| 660 | + }, |
617 | 661 | "Phase": { |
618 | 662 | "properties": { |
619 | 663 | "dhGroups": { |
|
1045 | 1089 | "bgpGatewayConfig": { |
1046 | 1090 | "$ref": "#/components/schemas/BGPGatewayConfig" |
1047 | 1091 | }, |
| 1092 | + "labels": { |
| 1093 | + "$ref": "#/components/schemas/Label" |
| 1094 | + }, |
1048 | 1095 | "name": { |
1049 | 1096 | "description": "The name of the VPN gateway. \nMaximum 20 characters (only alphanumeric and hyphens allowed). Not changeable after creation.\n", |
1050 | 1097 | "example": "my-vpn", |
|
1119 | 1166 | "paths": { |
1120 | 1167 | "/v1alpha1/projects/{projectId}/regions/{region}/gateways": { |
1121 | 1168 | "get": { |
1122 | | - "description": "List VPN gateways in a project.", |
| 1169 | + "description": "Retrieve VPN gateways in a project filtered by a custom label selector format.", |
1123 | 1170 | "operationId": "ListVPNGateways", |
1124 | 1171 | "parameters": [ |
1125 | 1172 | { |
|
1137 | 1184 | "schema": { |
1138 | 1185 | "$ref": "#/components/schemas/Region" |
1139 | 1186 | } |
| 1187 | + }, |
| 1188 | + { |
| 1189 | + "in": "query", |
| 1190 | + "name": "label_selector", |
| 1191 | + "schema": { |
| 1192 | + "$ref": "#/components/schemas/LabelSelector" |
| 1193 | + }, |
| 1194 | + "style": "deepObject" |
1140 | 1195 | } |
1141 | 1196 | ], |
1142 | 1197 | "responses": { |
|
1163 | 1218 | "$ref": "#/components/responses/InternalServerError" |
1164 | 1219 | } |
1165 | 1220 | }, |
1166 | | - "summary": "List VPN gateways in a project.", |
| 1221 | + "summary": "List VPN gateways in a project with label filtering", |
1167 | 1222 | "x-stackit-authorization": { |
1168 | 1223 | "actions": [ |
1169 | 1224 | "vpn.gateway.list" |
|
0 commit comments