Skip to content

Commit 5e44a8a

Browse files
OAS Update
1 parent 63e66b3 commit 5e44a8a

1 file changed

Lines changed: 95 additions & 0 deletions

File tree

services/ufw/v1beta/ufw.json

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -670,6 +670,101 @@
670670
},
671671
"openapi": "3.0.3",
672672
"paths": {
673+
"/v1beta/folder/{folderId}/regions/{regionId}/rules/export": {
674+
"get": {
675+
"description": "Returns a CSV file containing the rules for a specific folder",
676+
"operationId": "v1beta-export-folder-rules",
677+
"parameters": [
678+
{
679+
"$ref": "#/components/parameters/folderId"
680+
},
681+
{
682+
"$ref": "#/components/parameters/regionId"
683+
},
684+
{
685+
"$ref": "#/components/parameters/ruleFilters"
686+
}
687+
],
688+
"responses": {
689+
"200": {
690+
"content": {
691+
"text/csv": {
692+
"schema": {
693+
"format": "binary",
694+
"type": "string"
695+
}
696+
}
697+
},
698+
"description": "Successful CSV file download"
699+
},
700+
"400": {
701+
"content": {
702+
"application/json": {
703+
"schema": {
704+
"$ref": "#/components/schemas/ErrorResponse"
705+
}
706+
}
707+
},
708+
"description": "Bad request"
709+
},
710+
"401": {
711+
"content": {
712+
"application/json": {
713+
"schema": {
714+
"$ref": "#/components/schemas/ErrorResponse"
715+
}
716+
}
717+
},
718+
"description": "Unauthorized"
719+
},
720+
"403": {
721+
"content": {
722+
"application/json": {
723+
"schema": {
724+
"$ref": "#/components/schemas/ErrorResponse"
725+
}
726+
}
727+
},
728+
"description": "Forbidden access. You are not allowed to get rules from this folder."
729+
},
730+
"404": {
731+
"content": {
732+
"application/json": {
733+
"schema": {
734+
"$ref": "#/components/schemas/ErrorResponse"
735+
}
736+
}
737+
},
738+
"description": "Project not found."
739+
},
740+
"500": {
741+
"content": {
742+
"application/json": {
743+
"schema": {
744+
"$ref": "#/components/schemas/ErrorResponse"
745+
}
746+
}
747+
},
748+
"description": "Service is not available."
749+
}
750+
},
751+
"security": [
752+
{
753+
"BearerAuth": []
754+
}
755+
],
756+
"summary": "Export rules for folder as CSV",
757+
"x-stackit-authorization": {
758+
"actions": [
759+
"ufw.instance.list",
760+
"ufw.folder.list"
761+
],
762+
"resource-id": "folderId",
763+
"resource-id-type": "dynamic",
764+
"resource-type": "folder"
765+
}
766+
}
767+
},
673768
"/v1beta/folders/{folderId}/children": {
674769
"get": {
675770
"description": "Returns a list of containers for a specific folder",

0 commit comments

Comments
 (0)