Skip to content

Commit 20dbeec

Browse files
OAS Update
1 parent c09e232 commit 20dbeec

1 file changed

Lines changed: 126 additions & 31 deletions

File tree

services/ufw/v1/ufw.json

Lines changed: 126 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -730,7 +730,110 @@
730730
},
731731
"openapi": "3.0.3",
732732
"paths": {
733-
"/v1/folder/{folderId}/regions/{regionId}/rules/export": {
733+
"/v1/folders/{folderId}/children": {
734+
"get": {
735+
"description": "Returns a list of containers for a specific folder",
736+
"operationId": "v1-get-folder-resources",
737+
"parameters": [
738+
{
739+
"$ref": "#/components/parameters/folderId"
740+
},
741+
{
742+
"$ref": "#/components/parameters/limit"
743+
},
744+
{
745+
"$ref": "#/components/parameters/cursor"
746+
}
747+
],
748+
"responses": {
749+
"200": {
750+
"content": {
751+
"application/json": {
752+
"schema": {
753+
"$ref": "#/components/schemas/ListContainersResponse"
754+
}
755+
}
756+
},
757+
"description": "Successful response"
758+
},
759+
"400": {
760+
"content": {
761+
"application/json": {
762+
"schema": {
763+
"$ref": "#/components/schemas/ErrorResponse"
764+
}
765+
}
766+
},
767+
"description": "Bad request"
768+
},
769+
"401": {
770+
"content": {
771+
"application/json": {
772+
"schema": {
773+
"$ref": "#/components/schemas/ErrorResponse"
774+
}
775+
}
776+
},
777+
"description": "Unauthorized"
778+
},
779+
"403": {
780+
"content": {
781+
"application/json": {
782+
"schema": {
783+
"$ref": "#/components/schemas/ErrorResponse"
784+
}
785+
}
786+
},
787+
"description": "Forbidden access. You are not allowed to get rules from this project."
788+
},
789+
"404": {
790+
"content": {
791+
"application/json": {
792+
"schema": {
793+
"$ref": "#/components/schemas/ErrorResponse"
794+
}
795+
}
796+
},
797+
"description": "Folder not found."
798+
},
799+
"500": {
800+
"content": {
801+
"application/json": {
802+
"schema": {
803+
"$ref": "#/components/schemas/ErrorResponse"
804+
}
805+
}
806+
},
807+
"description": "Service is not available."
808+
},
809+
"503": {
810+
"content": {
811+
"application/json": {
812+
"schema": {
813+
"$ref": "#/components/schemas/ErrorResponse"
814+
}
815+
}
816+
},
817+
"description": "Service is not available."
818+
}
819+
},
820+
"security": [
821+
{
822+
"BearerAuth": []
823+
}
824+
],
825+
"summary": "Get containers from a folder",
826+
"x-stackit-authorization": {
827+
"actions": [
828+
"ufw.folder.list"
829+
],
830+
"resource-id": "folderId",
831+
"resource-id-type": "dynamic",
832+
"resource-type": "folder"
833+
}
834+
}
835+
},
836+
"/v1/folders/{folderId}/regions/{regionId}/rules/export": {
734837
"get": {
735838
"description": "Returns a CSV file containing the rules for a specific folder",
736839
"operationId": "v1-export-folder-rules",
@@ -825,13 +928,13 @@
825928
}
826929
}
827930
},
828-
"/v1/folders/{folderId}/children": {
931+
"/v1/organizations/{organizationId}/children": {
829932
"get": {
830-
"description": "Returns a list of containers for a specific folder",
831-
"operationId": "v1-get-folder-resources",
933+
"description": "Returns a list of containers for a specific organization",
934+
"operationId": "v1-get-organization-resources",
832935
"parameters": [
833936
{
834-
"$ref": "#/components/parameters/folderId"
937+
"$ref": "#/components/parameters/organizationId"
835938
},
836939
{
837940
"$ref": "#/components/parameters/limit"
@@ -879,7 +982,7 @@
879982
}
880983
}
881984
},
882-
"description": "Forbidden access. You are not allowed to get rules from this project."
985+
"description": "Forbidden access. You are not allowed to get containers from this folder."
883986
},
884987
"404": {
885988
"content": {
@@ -917,42 +1020,43 @@
9171020
"BearerAuth": []
9181021
}
9191022
],
920-
"summary": "Get containers from a folder",
1023+
"summary": "Get containers from an organization",
9211024
"x-stackit-authorization": {
9221025
"actions": [
923-
"ufw.folder.list"
1026+
"ufw.organization.list"
9241027
],
925-
"resource-id": "folderId",
1028+
"resource-id": "organizationId",
9261029
"resource-id-type": "dynamic",
927-
"resource-type": "folder"
1030+
"resource-type": "organization"
9281031
}
9291032
}
9301033
},
931-
"/v1/organizations/{organizationId}/children": {
1034+
"/v1/organizations/{organizationId}/regions/{regionId}/rules/export": {
9321035
"get": {
933-
"description": "Returns a list of containers for a specific organization",
934-
"operationId": "v1-get-organization-resources",
1036+
"description": "Returns a CSV file containing the rules for a specific organization",
1037+
"operationId": "v1-export-organization-rules",
9351038
"parameters": [
9361039
{
9371040
"$ref": "#/components/parameters/organizationId"
9381041
},
9391042
{
940-
"$ref": "#/components/parameters/limit"
1043+
"$ref": "#/components/parameters/regionId"
9411044
},
9421045
{
943-
"$ref": "#/components/parameters/cursor"
1046+
"$ref": "#/components/parameters/ruleFilters"
9441047
}
9451048
],
9461049
"responses": {
9471050
"200": {
9481051
"content": {
949-
"application/json": {
1052+
"text/csv": {
9501053
"schema": {
951-
"$ref": "#/components/schemas/ListContainersResponse"
1054+
"format": "binary",
1055+
"type": "string"
9521056
}
9531057
}
9541058
},
955-
"description": "Successful response"
1059+
"description": "Successful CSV file download"
9561060
},
9571061
"400": {
9581062
"content": {
@@ -982,7 +1086,7 @@
9821086
}
9831087
}
9841088
},
985-
"description": "Forbidden access. You are not allowed to get containers from this folder."
1089+
"description": "Forbidden access. You are not allowed to get rules from this organization."
9861090
},
9871091
"404": {
9881092
"content": {
@@ -992,7 +1096,7 @@
9921096
}
9931097
}
9941098
},
995-
"description": "Folder not found."
1099+
"description": "Project not found."
9961100
},
9971101
"500": {
9981102
"content": {
@@ -1003,26 +1107,17 @@
10031107
}
10041108
},
10051109
"description": "Service is not available."
1006-
},
1007-
"503": {
1008-
"content": {
1009-
"application/json": {
1010-
"schema": {
1011-
"$ref": "#/components/schemas/ErrorResponse"
1012-
}
1013-
}
1014-
},
1015-
"description": "Service is not available."
10161110
}
10171111
},
10181112
"security": [
10191113
{
10201114
"BearerAuth": []
10211115
}
10221116
],
1023-
"summary": "Get containers from an organization",
1117+
"summary": "Export rules for organization as CSV",
10241118
"x-stackit-authorization": {
10251119
"actions": [
1120+
"ufw.instance.list",
10261121
"ufw.organization.list"
10271122
],
10281123
"resource-id": "organizationId",

0 commit comments

Comments
 (0)