RestorableSqlResourcesOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

CosmosDBManagementClient's

<xref:restorable_sql_resources> attribute.

Inheritance
builtins.object
RestorableSqlResourcesOperations

Constructor

RestorableSqlResourcesOperations(*args, **kwargs)

Methods

list

Return a list of database and container combo that exist on the account at the given timestamp and location. This helps in scenarios to validate what resources exist at given timestamp and location. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission.

list

Return a list of database and container combo that exist on the account at the given timestamp and location. This helps in scenarios to validate what resources exist at given timestamp and location. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission.

list(location: str, instance_id: str, restore_location: Optional[str] = None, restore_timestamp_in_utc: Optional[str] = None, **kwargs: Any) -> Iterable[azure.mgmt.cosmosdb.models._models_py3.RestorableSqlResourcesListResult]

Parameters

location
str
Required

Cosmos DB region, with spaces between words and each word capitalized.

instance_id
str
Required

The instanceId GUID of a restorable database account.

restore_location
str
Required

The location where the restorable resources are located. Default value is None.

restore_timestamp_in_utc
str
Required

The timestamp when the restorable resources existed. Default value is None.

cls
callable

A custom type or function that will be passed the direct response

Returns

An iterator like instance of either RestorableSqlResourcesListResult or the result of cls(response)

Return type

Exceptions

Attributes

models

models = <module 'azure.mgmt.cosmosdb.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\cosmosdb\\models\\__init__.py'>