Skip to main content

Get basic data structure

Returns the basic data for request in structured form

Function GetBasicDataStructure(Val URL, Val AccessKey, Val SecretKey, Val Region, Val Service = "s3") Export

ParameterCLI optionTypeRequiredDescription
URL--urlStringURL: domain for common methods or full URL with parameters for direct request sending
AccessKey--accessStringAccess key for authorization
SecretKey--secretStringSecret key for authorization
Region--regionStringService region
Service--serviceStringType of service, if different from s3

Returns: Structure of KeyAndValue - Basic request data structure


1C:Enterprise/OneScript code example
    URL       = "storage-155.s3hoster.by";
AccessKey = "BRN5RKJE67...";
SecretKey = "NNhv+i9PrytpT8Tu0C1N...";
Region = "BTC";

Result = OPI_S3.GetBasicDataStructure(URL, AccessKey, SecretKey, Region);
    oint s3 GetBasicDataStructure \
--url "storage-155.s3hoster.by" \
--access "BRN5RKJE67YCVDZRRQVI" \
--secret "***" \
--region "BTC"
Result
{
"URL": "storage-155.s3hoster.by",
"AccessKey": "BRN5RKJE67YCVDZRRQVI",
"SecretKey": "***",
"Region": "BTC",
"Service": "s3"
}