| Server IP : 89.117.53.150 / Your IP : 216.73.216.11 Web Server : Apache System : Linux server2.hostofiraq.site 5.15.0-186-generic #196-Ubuntu SMP Sat Jun 20 16:09:34 UTC 2026 x86_64 User : iscmbt-kufa-atu ( 1014) PHP Version : 8.2.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/share/doc/awscli/examples/s3api/ |
Upload File : |
**To retrieve the tags attached to an object**
The following ``get-object-tagging`` example retrieves the values for the specified key from the specified object. ::
aws s3api get-object-tagging \
--bucket my-bucket \
--key doc1.rtf
Output::
{
"TagSet": [
{
"Value": "confidential",
"Key": "designation"
}
]
}
The following ``get-object-tagging`` example tries to retrieve the tag sets of the object ``doc2.rtf``, which has no tags. ::
aws s3api get-object-tagging \
--bucket my-bucket \
--key doc2.rtf
Output::
{
"TagSet": []
}
The following ``get-object-tagging`` example retrieves the tag sets of the object ``doc3.rtf``, which has multiple tags. ::
aws s3api get-object-tagging \
--bucket my-bucket \
--key doc3.rtf
Output::
{
"TagSet": [
{
"Value": "confidential",
"Key": "designation"
},
{
"Value": "finance",
"Key": "department"
},
{
"Value": "payroll",
"Key": "team"
}
]
}