Skip to main content

Get object tagging

Gets the tag set of the object

Function GetObjectTagging(Val Name, Val Bucket, Val BasicData, Val Version = "", Val Headers = Undefined, Val Directory = False) Export

ParameterCLI optionTypeRequiredDescription
Name--nameStringObject name
Bucket--bucketStringBucket name
BasicData--basicStructure Of KeyAndValueBasic request data. See GetBasicDataStructure
Version--verStringToken for retrieving data of a specific version of an object
Headers--headersMap Of KeyAndValueAdditional request headers, if necessary
Directory--dirBooleanTrue > Path style URL, False > Virtual hosted style URL
Returns

Structure Of KeyAndValue - serialized JSON response from storage

tip

Method at AWS documentation: GetObjectTagging


1C:Enterprise/OneScript code example
URL = "s3.openintegrations.dev";
AccessKey = "bayselo...";
SecretKey = "12we34...";
Region = "BTC";

BasicData = OPI_S3.GetBasicDataStructure(URL, AccessKey, SecretKey, Region);

Name = "picture.jpg";

Directory = True; // Formation URL in path-style
Bucket = "w567hjy1";
Result = OPI_S3.GetObjectTagging(Name, Bucket, BasicData, , , Directory);
# JSON data can also be passed as a path to a .json file

oint s3 GetObjectTagging \
--name "picture.jpg" \
--bucket "5540d93d" \
--basic "{'URL':'s3.openintegrations.dev','AccessKey':'***','SecretKey':'***','Region':'BTC','Service':'s3'}" \
--dir true
Result
{
"status": 200,
"response": {
"Tagging": {
"TagSet": {
"Tag": [
{
"Key": "***",
"Value": "SomeValue"
},
{
"Key": "***",
"Value": "AnotherOne"
}
]
}
}
},
"headers": {
"Accept-Ranges": "bytes",
"Vary": "Accept-Encoding",
"Server": "Microsoft-IIS/10.0",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains",
"X-Amz-Id-2": "dd9025bab4ad464b049177c95eb6ebf374d3b3fd1af9251148b658df7ac2e3e8",
"X-Amz-Request-Id": "18B323CADAE50FCE",
"X-Content-Type-Options": "nosniff",
"X-Ratelimit-Limit": "6518",
"X-Ratelimit-Remaining": "6518",
"X-XSS-Protection": "1; mode=block",
"X-Powered-By": "ARR/3.0",
"Date": "Tue, 26 May 2026 14:27:11 GMT",
"Content-Type": "application/xml",
"Content-Length": "180"
}
}