How to build Authorization Header for REST Requests in Black Pearl

51 views
Skip to first unread message

Rose Culture

unread,
Mar 12, 2020, 3:51:41 PM3/12/20
to Spectra Logic S3 SDKs, APIs, and RioBroker
In the Black Pearl Docs, it explains that it used the AWS V2 protocol for building Authorization Headers to make RESTful requests for Black Pearl. There doesn't seem to be any examples or docs to show how these are built, or the key values that are needed to build the header.  For instance, here is Amazon AWS's:

Authorization: algorithm Credential=access key ID/credential scope, SignedHeaders=SignedHeaders, Signature=signature

What is the Black Pearl equivalent?  What are the values to construction the Authorization Header?

Thanks

jeffbr

unread,
Mar 13, 2020, 11:16:26 AM3/13/20
to Spectra Logic S3 SDKs, APIs, and RioBroker
Hi Rose, this page explains how to build a V2 authentication signature:


You can also look at the source code in our SDKs to see how Spectra built the V2 authentication signature:



jeffbr

unread,
Mar 13, 2020, 11:21:37 AM3/13/20
to Spectra Logic S3 SDKs, APIs, and RioBroker
Rose, please also note that if you are trying to PUT or GET files from BlackPearl you should use our SDKs or RioBroker. BlackPearl does not support standard S3 PUT or GET because the file may need to come from or go to tape or Amazon Glacier, which can take minutes or hours. Standard S3 PUT and GET would time out in this case. You need use "Spectra S3", which consists of multiple API commands to transfer files. This is best done with our SDKs or with RioBroker.


Reply all
Reply to author
Forward
0 new messages