Update Bucket
PUT/api/v2/instance/:instanceId/minio
Update Bucket
Request
Path Parameters
ID of the instance.
- application/json
Body
required
bucketName
(String): Bucket name. It is mandatory and must be a stringenabled
(Boolean, optional): Enable or disable your bucketaccessID
(String): Access ID. Mandatory and must be a string- When the
enabled
variable is set to true, the API will automatically detect and store every new media message it receives in the designated bucket.
- When the
secretKey
(String): Secret key. Mandatory and must be a stringuseSSL
(Boolean, optional): Defines whether SSL will be used. The default is falseport
(Number, optional): Port for the connection. The default is 9000. Validation to ensure it is an integerregion
(String, optional): Region for storage configuration. Subject to conditional validation]sslConf
(Object, optional):certificate
(String, optional): Certificate for the domain. The presence of this variable is conditionally validatedprivateKey
(String, optional): Private key for the domain. Also subject to conditional validation.
Bucket Name Rules
If the bucket informed in the
bucketName
variable does not exist, a new bucket will be created automatically.
- Bucket names must be between 3 (min) and 63 (max) characters long
- Bucket names can consist only of lowercase letters, numbers, dots (.), and hyphens (-)
- Bucket names must not contain two adjacent periods, or a period adjacent to a hyphen
- Bucket names must not be formatted as an IP address (for example, 192.168.5.4)
- Bucket names must not start with the prefix xn--
- Bucket names must not end with the suffix -s3alias. This suffix is reserved for access point alias names
- Bucket names must be unique within a partition
Default value: true
Enable or disable your bucket
Default value: false
Default value: 9000
sslConf object
Certificate for your domain
Private key for your domain
Responses
- 201
- 400
- 403
- 404
Success - status: 201
- application/json
- Schema
- Example (from schema)
Schema
ssl object
Certificate for your domain
Private key for your domain
{
"bucketId": "string",
"enabled": true,
"bucketName": "string",
"accessId": "string",
"secretKey": "string",
"endPoint": "string",
"region": "string",
"port": 0,
"useSSL": true,
"ssl": {
"certificate": "string",
"privateKey": "string"
},
"instanceInstanceId": "string"
}
BadRequestException
- application/json
- Schema
- Example (from schema)
Schema
Default value: string,[object Object]
{
"message": [
"string"
],
"error": "string",
"statusCode": 0
}
ForbiddenException
- application/json
- Schema
- Example (from schema)
Schema
Default value: string,[object Object]
{
"message": [
"string"
],
"error": "string",
"statusCode": 0
}
NotFoundException
- application/json
- Schema
- Example (from schema)
Schema
Default value: string,[object Object]
{
"message": [
"string"
],
"error": "string",
"statusCode": 0
}