I want to create a new Storage Bucket via API, using python, but I can’t find documentation on this topic.
Basically, I can’t find the documentation that talks about the parameters to be placed in the body.
url = ".../odata/Buckets"
headers = {"Content-Type": "application/json",
"Authorization": "Bearer xxxxxx",
"X-UIPATH-OrganizationUnitID": "xxxxx"}
body = {"What are the parameters?"}}
session.post(url=url, ....)
Can anyone tell me the documentation or the parameters?
Notes: UiPath Orchestrator On-Premise and provider for Storage Buckets is Orchestrator.
https://<orchestrator>/swagger/index.html#/Buckets/Buckets_Post provides the Model details and an example body payload.
BucketDto{
Name* string
maxLength: 128
Display name of the Bucket
Description string
maxLength: 512
Description of the Bucket
Identifier* string($uuid)
A stable unique identifier
StorageProvider string
Provider Name.
Otherwise one of the supported providers:
FileSystem
Azure
Amazon
Minio
Leave null for built-in Orchestrator host provider.
StorageParameters string
Provider specific initalization parameters.
Use a $Password for where the password should be inserted.
Leave null for built-in Orchestrator host provider.
StorageContainer string
Provider specific Container name (AWS, WASB).
Leave null for built-in Orchestrator host provider.
Options string
Bucket options
Enum:
Array [ None, ReadOnly, AuditReadAccess ]
CredentialStoreId integer($int64)
Credential store used to keep the provider access password.
Leave null for built-in Orchestrator host provider.
Password string
Provider specific password/secret.
It is inserted as a replacemnt of the $PAssword token in the StorageParameters.
Leave null for built-in Orchestrator host provider.
Id integer($int64)
}