You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+24
Original file line number
Diff line number
Diff line change
@@ -77,3 +77,27 @@ MINIO_SECRETE_KEY:
77
77
```bash
78
78
MINIO_BUCKET=climate-mediator,
79
79
```
80
+
81
+
## Creating Buckets
82
+
83
+
### Validation Rules for Creating a Bucket
84
+
85
+
When creating a bucket the name must follow these following rules:
86
+
> Bucket names must be between 3 (min) and 63 (max) characters long.
87
+
> Bucket names can consist only of lowercase letters, numbers, dots (.), and hyphens (-).
88
+
> Bucket names must not start with the prefix xn--.
89
+
> Bucket names must not end with the suffix -s3alias. This suffix is reserved for access point alias names.
90
+
91
+
### Enabling Automatic Bucket Creation Through API
92
+
93
+
To allow automatic creation of the bucket if it does not exist, include the createBucketIfNotExists query parameter and set it to true. This will ensure the bucket is created with the specified name if it is not already present.
94
+
95
+
```bash
96
+
/upload?bucket=:name&createBucketIfNotExists=true
97
+
```
98
+
99
+
This optional parameter simplifies the process by eliminating the need to manually create buckets beforehand.
100
+
101
+
### Enabling Automatic Bucket Creation Through OpenHIM Console
102
+
103
+
Navigate to `/mediators/urn:mediator:climate-mediator` and click the gear icon, next click the green button that states `Minio Buckets Registry` and add the bucket name and region to the two form elements that appear. Finally click `Save Changes`, the newly entered buckets should appear withing minio momentary.
Copy file name to clipboardexpand all lines: src/openhim/mediatorConfig.json
+1-1
Original file line number
Diff line number
Diff line change
@@ -40,7 +40,7 @@
40
40
{
41
41
"param": "minio_buckets_registry",
42
42
"displayName": "Minio Buckets Registry",
43
-
"description": "The available Minio buckets and their configurations",
43
+
"description": "The available Minio buckets and their configurations (Note: The names provided must be between 3 and 63 characters long, and can only contain lowercase letters, numbers, dots (.), and hyphens (-))",
0 commit comments