Graphon API

S3 · Object tags

GetObjectTagging

GET/{bucket}/{key}?tagging

Returns the tags of an object.

Tags are key and value pairs that you attach to an object.

View as Markdown
Role
Viewer or higher
Support
Supported
  • Returns the tags of the live version.
  • Storage returns the tags of the current version. It ignores versionId.

Path parameters

bucketstringrequired

The bucket name.

keystringrequired

The object key. Keep each / as it is. Percent-encode the other reserved characters.

Query parameters

taggingflagrequired

Selects this operation. Send it with no value.

Headers

The workspace ID that must own the bucket. Another owner returns 403 AccessDenied.

Responses

200OK

The tags of the object.

application/xml

Taggingobjectrequired

The root element.

One element for each tag.

Errors

Select an error in the response example to see its XML body. Any request can also get the common errors, such as SignatureDoesNotMatch.

404NoSuchKey

The bucket has no object at this key, or no version with this versionId.

What to do: Check the key and the versionId.

404NoSuchBucket

No bucket has this name, or the bucket was deleted.

What to do: Check the bucket name. ListBuckets shows the buckets of the workspace.

403AccessDenied

The key does not have the role for this operation, or the bucket is in another workspace.

What to do: Use a key of the workspace that owns the bucket, with the role above.

Was this page helpful?