Export import server config from settings page (#2664)
This commit is contained in:
committed by
GitHub
parent
6c0e7baa87
commit
f21434a971
@@ -2566,6 +2566,59 @@ func init() {
|
||||
}
|
||||
}
|
||||
},
|
||||
"/configs/export": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"Configuration"
|
||||
],
|
||||
"summary": "Export the current config from MinIO server",
|
||||
"operationId": "ExportConfig",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "A successful response.",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/configExportResponse"
|
||||
}
|
||||
},
|
||||
"default": {
|
||||
"description": "Generic error response.",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/error"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/configs/import": {
|
||||
"post": {
|
||||
"consumes": [
|
||||
"multipart/form-data"
|
||||
],
|
||||
"tags": [
|
||||
"Configuration"
|
||||
],
|
||||
"summary": "Uploads an Object.",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "file",
|
||||
"name": "file",
|
||||
"in": "formData",
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "A successful response."
|
||||
},
|
||||
"default": {
|
||||
"description": "Generic error response.",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/error"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/configs/{name}": {
|
||||
"get": {
|
||||
"tags": [
|
||||
@@ -5942,6 +5995,18 @@ func init() {
|
||||
}
|
||||
}
|
||||
},
|
||||
"configExportResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"status": {
|
||||
"type": "string"
|
||||
},
|
||||
"value": {
|
||||
"description": "Returns base64 encoded value",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"configuration": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -11336,6 +11401,59 @@ func init() {
|
||||
}
|
||||
}
|
||||
},
|
||||
"/configs/export": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"Configuration"
|
||||
],
|
||||
"summary": "Export the current config from MinIO server",
|
||||
"operationId": "ExportConfig",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "A successful response.",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/configExportResponse"
|
||||
}
|
||||
},
|
||||
"default": {
|
||||
"description": "Generic error response.",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/error"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/configs/import": {
|
||||
"post": {
|
||||
"consumes": [
|
||||
"multipart/form-data"
|
||||
],
|
||||
"tags": [
|
||||
"Configuration"
|
||||
],
|
||||
"summary": "Uploads an Object.",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "file",
|
||||
"name": "file",
|
||||
"in": "formData",
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "A successful response."
|
||||
},
|
||||
"default": {
|
||||
"description": "Generic error response.",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/error"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/configs/{name}": {
|
||||
"get": {
|
||||
"tags": [
|
||||
@@ -14838,6 +14956,18 @@ func init() {
|
||||
}
|
||||
}
|
||||
},
|
||||
"configExportResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"status": {
|
||||
"type": "string"
|
||||
},
|
||||
"value": {
|
||||
"description": "Returns base64 encoded value",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"configuration": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
||||
Reference in New Issue
Block a user