Iris & Buckets
Hi, someone have connected Iris to a Bucket ? like aws, huawei, etc.
I try to use private Bucket as storage for files, and Iris as database & API interface to manage this files, but al SDKs are in another languages, no one have founded on COS.
I have tested some examples, but with bad results
Set request = ##class(%Net.HttpRequest).%New()
Set request.Server = "..."
Set request.Port = "443"
Set request.Https = $$$YES
Set request.SSLConfiguration="default"
Set request.Date = $zdt($h,2)
Set AccessKeyID = "..."
Set ExpiresValue = $ZDATETIME($HOROLOG,-2)+60
Set StringToSign =
"GET" _ "\n" _
"" _ "\n" _
"text/plain" _ "\n" _
ExpiresValue _ "\n"
Set signature =
$zconvert($system.Encryption.Base64Encode($system.Encryption.HMACSHA1(StringToSign,"...")),"O","URL")
Set tURL = "/ObjectKey?AccessKeyId="_ AccessKeyID _ "&Expires="_ ExpiresValue _ "&Signature="_ signature
Do request.Get("/files/" _ tFind _ ".ext")
And a have a 403 Error (is not the first test ... )