You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-11-29 22:27:42 +02:00
Main build (Jenkins)
This commit is contained in:
5
docs/en/data/S3/GetBucketsList.json
Normal file
5
docs/en/data/S3/GetBucketsList.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"URL": "storage-155.s3hoster.by",
|
||||
"AccessKey": "BRN5RKJE67...",
|
||||
"SecretKey": "NNhv+i9PrytpT8Tu0C1N..."
|
||||
}
|
||||
@@ -3,8 +3,8 @@
|
||||
SecretKey = "NNhv+i9PrytpT8Tu0C1N...";
|
||||
Region = "BTC";
|
||||
|
||||
Authorization = OPI_S3.GetBasicDataStructure(URL, AccessKey, SecretKey, Region);
|
||||
BasicData = OPI_S3.GetBasicDataStructure(URL, AccessKey, SecretKey, Region);
|
||||
|
||||
Name = "newbucket2";
|
||||
Name = "opi-newbucket2";
|
||||
|
||||
Result = OPI_S3.CreateBucket(Name, Authorization);
|
||||
Result = OPI_S3.CreateBucket(Name, BasicData);
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
SecretKey = "NNhv+i9PrytpT8Tu0C1N...";
|
||||
Region = "BTC";
|
||||
|
||||
Authorization = OPI_S3.GetBasicDataStructure(URL, AccessKey, SecretKey, Region);
|
||||
BasicData = OPI_S3.GetBasicDataStructure(URL, AccessKey, SecretKey, Region);
|
||||
|
||||
Name = "newbucket2";
|
||||
Name = "opi-newbucket2";
|
||||
|
||||
Result = OPI_S3.DeleteBucket(Name, Authorization);
|
||||
Result = OPI_S3.DeleteBucket(Name, BasicData);
|
||||
|
||||
8
docs/en/examples/S3/GetBucketsList.txt
Normal file
8
docs/en/examples/S3/GetBucketsList.txt
Normal file
@@ -0,0 +1,8 @@
|
||||
URL = "storage-155.s3hoster.by";
|
||||
AccessKey = "BRN5RKJE67...";
|
||||
SecretKey = "NNhv+i9PrytpT8Tu0C1N...";
|
||||
Region = "BTC";
|
||||
|
||||
BasicData = OPI_S3.GetBasicDataStructure(URL, AccessKey, SecretKey, Region);
|
||||
|
||||
Result = OPI_S3.GetBucketsList(BasicData);
|
||||
@@ -10,19 +10,23 @@ import TabItem from '@theme/TabItem';
|
||||
|
||||
|
||||
|
||||
`Function CreateBucket(Val Name, Val BasicData) Export`
|
||||
`Function CreateBucket(Val Name, Val BasicData, Val Headers = Undefined) Export`
|
||||
|
||||
| Parameter | CLI option | Type | Required | Description |
|
||||
|-|-|-|-|-|
|
||||
| Name | --name | String | ✔ | Bucket name |
|
||||
| BasicData | --data | String | ✔ | Basic request data. See GetBasicDataStructure |
|
||||
| BasicData | --data | Structure of KeyAndValue | ✔ | Basic request data. See GetBasicDataStructure |
|
||||
| Headers | --headers | Map Of KeyAndValue | ✖ | Additional request headers, if necessary |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - serialized JSON response from storage
|
||||
|
||||
<br/>
|
||||
|
||||
|
||||
:::tip
|
||||
Method at AWS documentation: [CreateBucket](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateBucket.html)
|
||||
:::
|
||||
<br/>
|
||||
|
||||
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
@@ -31,11 +35,11 @@ import TabItem from '@theme/TabItem';
|
||||
SecretKey = "NNhv+i9PrytpT8Tu0C1N...";
|
||||
Region = "BTC";
|
||||
|
||||
Authorization = OPI_S3.GetBasicDataStructure(URL, AccessKey, SecretKey, Region);
|
||||
BasicData = OPI_S3.GetBasicDataStructure(URL, AccessKey, SecretKey, Region);
|
||||
|
||||
Name = "newbucket2";
|
||||
Name = "opi-newbucket2";
|
||||
|
||||
Result = OPI_S3.CreateBucket(Name, Authorization);
|
||||
Result = OPI_S3.CreateBucket(Name, BasicData);
|
||||
```
|
||||
|
||||
|
||||
|
||||
@@ -10,19 +10,23 @@ import TabItem from '@theme/TabItem';
|
||||
|
||||
|
||||
|
||||
`Function DeleteBucket(Val Name, Val BasicData) Export`
|
||||
`Function DeleteBucket(Val Name, Val BasicData, Val Headers = Undefined) Export`
|
||||
|
||||
| Parameter | CLI option | Type | Required | Description |
|
||||
|-|-|-|-|-|
|
||||
| Name | --name | String | ✔ | Bucket name |
|
||||
| BasicData | --data | String | ✔ | Basic request data. See GetBasicDataStructure |
|
||||
| BasicData | --data | Structure of KeyAndValue | ✔ | Basic request data. See GetBasicDataStructure |
|
||||
| Headers | --headers | Map Of KeyAndValue | ✖ | Additional request headers, if necessary |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - serialized JSON response from storage
|
||||
|
||||
<br/>
|
||||
|
||||
|
||||
:::tip
|
||||
Method at AWS documentation: [DeleteBucket](https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteBucket.html)
|
||||
:::
|
||||
<br/>
|
||||
|
||||
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
@@ -31,11 +35,11 @@ import TabItem from '@theme/TabItem';
|
||||
SecretKey = "NNhv+i9PrytpT8Tu0C1N...";
|
||||
Region = "BTC";
|
||||
|
||||
Authorization = OPI_S3.GetBasicDataStructure(URL, AccessKey, SecretKey, Region);
|
||||
BasicData = OPI_S3.GetBasicDataStructure(URL, AccessKey, SecretKey, Region);
|
||||
|
||||
Name = "newbucket2";
|
||||
Name = "opi-newbucket2";
|
||||
|
||||
Result = OPI_S3.DeleteBucket(Name, Authorization);
|
||||
Result = OPI_S3.DeleteBucket(Name, BasicData);
|
||||
```
|
||||
|
||||
|
||||
|
||||
48
docs/en/md/S3/Buckets-managment/Get-buckets-list.mdx
Normal file
48
docs/en/md/S3/Buckets-managment/Get-buckets-list.mdx
Normal file
@@ -0,0 +1,48 @@
|
||||
---
|
||||
sidebar_position: 3
|
||||
---
|
||||
|
||||
import Tabs from '@theme/Tabs';
|
||||
import TabItem from '@theme/TabItem';
|
||||
|
||||
# Get buckets list
|
||||
Gets a list of buckets. It is possible to use filters if they are provided by your service
|
||||
|
||||
|
||||
|
||||
`Function GetBucketsList(Val BasicData, Val Prefix = "", Val Region = "", Val PageToken = "", Val Headers = Undefined) Export`
|
||||
|
||||
| Parameter | CLI option | Type | Required | Description |
|
||||
|-|-|-|-|-|
|
||||
| BasicData | --data | Structure of KeyAndValue | ✔ | Basic request data. See GetBasicDataStructure |
|
||||
| Prefix | --prefix | String | ✖ | Filtering by the beginning of the name, if necessary |
|
||||
| Region | --region | String | ✖ | Selection by bucket region, if necessary |
|
||||
| PageToken | --ctoken | String | ✖ | Page token if pagination is used |
|
||||
| Headers | --headers | Map Of KeyAndValue | ✖ | Additional request headers, if necessary |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - serialized JSON response from storage
|
||||
|
||||
<br/>
|
||||
|
||||
:::tip
|
||||
Method at AWS documentation: [ListBuckets](https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListBuckets.html)
|
||||
:::
|
||||
<br/>
|
||||
|
||||
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
URL = "storage-155.s3hoster.by";
|
||||
AccessKey = "BRN5RKJE67...";
|
||||
SecretKey = "NNhv+i9PrytpT8Tu0C1N...";
|
||||
Region = "BTC";
|
||||
|
||||
BasicData = OPI_S3.GetBasicDataStructure(URL, AccessKey, SecretKey, Region);
|
||||
|
||||
Result = OPI_S3.GetBucketsList(BasicData);
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -10,12 +10,13 @@ import TabItem from '@theme/TabItem';
|
||||
|
||||
|
||||
|
||||
`Function SendRequestWithoutBody(Val Method, Val BasicData) Export`
|
||||
`Function SendRequestWithoutBody(Val Method, Val BasicData, Val Headers = Undefined) Export`
|
||||
|
||||
| Parameter | CLI option | Type | Required | Description |
|
||||
|-|-|-|-|-|
|
||||
| Method | --method | String | ✔ | HTTP method |
|
||||
| BasicData | --data | String | ✔ | Basic request data (with full URL). See GetBasicDataStructure |
|
||||
| BasicData | --data | Structure of KeyAndValue | ✔ | Basic request data (with full URL). See GetBasicDataStructure |
|
||||
| Headers | --headers | Map Of KeyAndValue | ✖ | Additional request headers, if necessary |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - serialized JSON response from storage
|
||||
|
||||
Reference in New Issue
Block a user