# 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:
      * <kbd>StorageProvider.AWS</kbd>
      * <kbd>StorageProvider.GCP</kbd>
      * <kbd>StorageProvider.AZURE</kbd>
  * **public\_key:** string
    * The public access key for your cloud storage account.
  * **private\_key:** string
    * The private access key for your cloud storage account.
  * **region:** string, *default "eu-central-1"*
    * The geographical region where your storage is located.
  * **credentials:** string
    * Additional credentials required for accessing the cloud storage.

Returns:

* **output:** dict
  * A dictionary containing the result of the operation.
  * Including a `status` field indicating whether the request was successful and a `data` field containing the response payload with updated resources produced by the operation.

### Example

{% tabs %}
{% tab title="python" %}

```python
import os
from dotenv import load_dotenv
from imerit_ango.sdk import SDK
from imerit_ango.models.storage import Storage
from imerit_ango.models.enums import StorageProvider

load_dotenv('variables.env')
api_key = os.getenv('API_KEY')

ango_sdk = SDK(api_key)

sdk_response = ango_sdk.create_storage(
    storage_data=Storage(
        name="My Storage",
        provider=StorageProvider.AWS,
        public_key='<YOUR PUBLIC KEY>',
        private_key='<YOUR PRIVATE KEY>',
        region='<YOUR REGION>',
        credentials='<YOUR CREDENTIALS>'
    )
)
```

{% endtab %}

{% tab title="curl" %}

```bash
curl -X POST "https://imeritapi.ango.ai/v2/storages/" \
  -H "Content-Type: application/json" \
  -H "apikey: $ANGO_API_KEY" \
  -d '{
    "credentials": "<YOUR CREDENTIALS>",
    "name": "My Storage",
    "privateKey": "<YOUR PRIVATE KEY>",
    "provider": "AWS",
    "publicKey": "<YOUR PUBLIC KEY>",
    "region": "<YOUR REGION>"
  }'
```

{% endtab %}
{% endtabs %}

{% hint style="info" %}
**See also**

[delete\_storage](https://docs.imerit.net/sdk/sdk-documentation/organization-level-sdk-functions/delete_storage), [get\_storages](https://docs.imerit.net/sdk/sdk-documentation/organization-level-sdk-functions/get_storages)
{% endhint %}
