info
Prerequisites - before you begin, please ensure:
Overview
The Ionburst Cloud API HEAD
method has been added to allow IBC S6 objects and IBC NKV secrets to be verified after upload, or queried to return information.
A HEAD
request is functionally similar to a GET
request; it is authenticated and requires the external reference of the object or secret to be checked. Instead of returning the specified object or secret, the HEAD
request returns a status code and a response header with the size of the stored object or secret.
For full details of the HEAD
method, please see the API docs for IBC S6, and IBC NKV.
Getting Started
In this tutorial we will provide examples and code snippets of how to use the new HEAD
method:
- Using the
HEAD
method withioncli
- Using the
HEAD
method with the Ionburst Cloud Go SDK
ioncli
In this example, we will upload a file, my-file.txt
to IBC S6 using ioncli
, then verify its size with the ioncli head
command.
Creating my-file.txt
:
Uploading my-file.txt
with ioncli
:
Checking my-file.txt
with ioncli
:
Example output:
Go SDK
The following example program shows how the Ionburst Cloud Go SDK Head
and HeadWithLen
methods can be used:
Example output: