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

Example

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

Outputs:

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

Last updated