Request contents (PUT annotation)

The PUT request to store an annotation includes these elements:

If you’re accessing the namespace as an authenticated user, an Authorization header.

A URL specifying the object for which you’re storing the annotation.

A type=custom-metadata URL query parameter.

An annotation=annotation-name URL query parameter, where annotation-name is the name of the annotation you’re storing. If you’re storing the default annotation, you can omit this parameter.

A body consisting of the custom metadata.

You can send an annotation in compressed format and have HCP decompress the data before storing it. To do this, in addition to specifying the request elements listed above:

Use gzip to compress the content before sending it.

Include a Content-Encoding request header with a value of gzip.

Use a chunked transfer encoding.

© 2015, 2020 Hitachi Vantara LLC. All rights reserved.