get_storages

imerit_ango.sdk.SDK.

get_storages(storage_id)

Retrieve the list of the storages in the specified organization.

Parameters

  • storage_id: String, Optional, Default None

    • The unique identifier for the storage. You can retrieve the storage ID using get_storages function.

Returns:

  • output: dict

    • A dictionary containing the result of the operation.

Example

Retrieve all storages in the organization

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']

Retrieve a specific storage

Sample Output

Last updated