Object tag management
An object tag is a key-value pair used for logical object labeling.
Adding or updating tags
AWS CLI
If you do not have the AWS CLI yet, install and configure it.
In the terminal, run this command that overwrites any existing object tags:
aws s3api put-object-tagging \
--bucket <bucket_name> \
--key <object_key> \
--tagging 'TagSet=[{Key=<label_key>,Value=<label_value>},{Key=<label_key>,Value=<label_value>}]' \
--endpoint-url=https://storage.ai.nebius.cloud
Where:
--bucket
: Bucket name.--key
: Bucket object key.--tagging
: Array of object tags, where:Key
: Tag key of thestring
type.Value
: Tag value of thestring
type.
--endpoint-url
: Object Storage endpoint.
Viewing tags
AWS CLI
If you do not have the AWS CLI yet, install and configure it.
In the terminal, run this command:
aws s3api get-object-tagging \
--bucket <bucket_name> \
--key <object_key> \
--endpoint-url=https://storage.ai.nebius.cloud
Where:
--bucket
: Bucket name.--key
: Bucket object key.--endpoint-url
: Object Storage endpoint.
Result:
{
"TagSet": [
{
"Key": "test-key-1",
"Value": "test-value-1"
},
{
"Key": "test-key-2",
"Value": "test-value-2"
}
]
}
Deleting tags
AWS CLI
If you do not have the AWS CLI yet, install and configure it.
In the terminal, run this command:
aws s3api delete-object-tagging \
--bucket <bucket_name> \
--key <object_key> \
--endpoint-url=https://storage.ai.nebius.cloud
Where:
--bucket
: Bucket name.--key
: Bucket object key.--endpoint-url
: Object Storage endpoint.