create_storage
imerit_ango.sdk.SDK.
create_storage(storage_data)
Integrate a cloud storage provider to your organization with the required credentials and configuration.
Parameters
storage_data: Storage
A Storage object containing the following attributes:
name: string
The name of the storage instance.
provider: StorageProvider
The cloud storage provider. Options:
StorageProvider.AWS
StorageProvider.GCP
StorageProvider.AZURE
public_key: string
The public access key for your cloud storage account. For Azure, this is the storage account name.
private_key: string
The private access key for your cloud storage account. For Azure, this is the storage account key.
region: string, default "eu-central-1"
The geographical region where your storage is located. For Azure, use the storage account's Location value.
credentials: string
Additional credentials required for accessing the cloud storage.
For Azure storage integrations, the storage account must allow account key access. If Allow storage account key access is disabled in Azure, Ango Hub cannot use the account key to generate the temporary SAS URLs required to read, list, or write blobs.
Returns:
output: dict
A dictionary containing the result of the operation.
Including a
statusfield indicating whether the request was successful and adatafield containing the response payload with updated resources produced by the operation.
How to verify in Ango Hub?
After successfully executing the create_storage function, you can validate the changes directly in Ango Hub.
Navigate to: Organization → Storages
Confirm that the newly created storage appears in the list.
Ensure that the storage credentials have been configured correctly
Changes made via the SDK are reflected in Ango Hub in near real-time. If updates are not immediately visible, please refresh the page.
Example
See also
Last updated