Skip to main content

vantage_sdk.cloud.cloud_account_crud

Cloud Account SDK for managing cloud accounts via Vantage REST API.

Classes

CloudAccountSDK()

SDK for managing cloud accounts via Vantage REST API.

Methods

  • create(self, ctx: typer.models.Context, name: str, provider: str, description: str | None = None, attributes: Dict[str, Any] | None = None, assisted: bool = False) -> vantage_sdk.cloud.cloud_account_schema.CloudAccount: Create a new cloud account.
  • delete(self, ctx: typer.models.Context, account_id: int) -> bool: Delete a cloud account.
  • get(self, ctx: typer.models.Context, account_id: int) -> vantage_sdk.cloud.cloud_account_schema.CloudAccount | None: Get a specific cloud account by ID.
  • get_by_name(self, ctx: typer.models.Context, name: str) -> vantage_sdk.cloud.cloud_account_schema.CloudAccount | None: Get a cloud account by name.
  • get_by_provider(self, ctx: typer.models.Context, provider: str) -> List[vantage_sdk.cloud.cloud_account_schema.CloudAccount]: Get all cloud accounts for a specific provider.
  • list(self, ctx: typer.models.Context) -> List[vantage_sdk.cloud.cloud_account_schema.CloudAccount]: List all cloud accounts.
  • update(self, ctx: typer.models.Context, account_id: int, description: str | None = None) -> vantage_sdk.cloud.cloud_account_schema.CloudAccount: Update an existing cloud account.