# get\_storages

`imerit_ango.sdk.SDK.`

## get\_storages(storage\_id)

Retrieve the list of all [storage](https://docs.imerit.net/data/storages) integrations in your organization.

### Parameters

* **storage\_id:** string, *Optional, Default None*
  * The unique identifier for the storage. You can retrieve the storage ID using [`get_storages`](https://docs.imerit.net/sdk/sdk-documentation/organization-level-sdk-functions/get_storages) function.

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

Retrieve all storages in the organization

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

```python
import os
from dotenv import load_dotenv
from imerit_ango.sdk import SDK

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

ango_sdk = SDK(api_key)

sdk_response = ango_sdk.get_storages()
storage_list = sdk_response['data']['storages']
```

{% endtab %}

{% tab title="curl" %}

```bash
curl -X GET "https://imeritapi.ango.ai/v2/storages" \
  -H "Content-Type: application/json" \
  -H "apikey: $ANGO_API_KEY"
```

{% endtab %}
{% endtabs %}

Retrieve a specific storage

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

```python
import os
from dotenv import load_dotenv
from imerit_ango.sdk import SDK

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

ango_sdk = SDK(api_key)

storage_id = "<STORAGE ID>"
storage = ango_sdk.get_storages(storage_id=storage_id)
```

{% endtab %}

{% tab title="curl" %}

```bash
curl -X GET "https://imeritapi.ango.ai/v2/storages?_id=<STORAGE ID>" \
  -H "Content-Type: application/json" \
  -H "apikey: $ANGO_API_KEY"
```

{% endtab %}
{% endtabs %}

<details>

<summary>Sample Output</summary>

```json
{
  "status": "success",
  "data": {
    "storages": [
      {
        "id": "<STORAGE ID>",
        "name": "<STORAGE NAME>",
        "provider": "GCP",
        "createdAt": "2022-11-24T13:48:32.100Z",
        "organization": "<ORGANIZATION ID>"
      }
    ]
  }
}
```

</details>

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

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