Creating a bucket
- In the management console
, select the folder where you want to create a bucket. - Select Object Storage.
- Click Create bucket.
- On the bucket creation page:
-
Enter the bucket name, following the naming requirements.
-
Limit the maximum bucket size, if required.
If the value is
0
, the maximum size is not limited and is similar to the enabled No limit option. -
Select the type of access.
-
Add labels, if needed:
- Click Add label.
- Enter a label in
key: value
format. - Click Enter.
-
Click Create bucket to complete the operation.
-
If you don't have the Nebius AI command line interface yet, install and initialize it.
The folder specified in the CLI profile is used by default. You can specify a different folder using the --folder-name
or --folder-id
parameter.
-
View a description of the CLI command to create a bucket:
ncp storage bucket create --help
-
Create a bucket in the default folder:
ncp storage bucket create \ --name <bucket_name> \ --max-size <maximum_bucket_size> \ --public-read \ --public-list \ --public-config-read
Where:
-
--name
: Bucket name. For more information, see Bucket naming rules. -
--max_size
: Maximum bucket size (bytes).0
: No limit. -
--public-read
: Flag to enable public read access to bucket objects. -
--public-list
: Flag to enable public access to view the list of bucket objects. -
--public-config-read
: Flag to enable public read access to the bucket configuration.
The
name
parameter is required. Other parameters are optional. By default, the--max-size
parameter is set to0
and public access to the bucket is disabled.Result:
name: <bucket_name> folder_id: b1gmit33ngp6******** anonymous_access_flags: read: false list: false default_storage_class: STANDARD versioning: VERSIONING_DISABLED max_size: "53687091200" created_at: "2022-12-16T14:05:12.196007Z"
-