RestorableDatabaseAccountsOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:restorable_database_accounts> attribute.
- Inheritance
-
builtins.objectRestorableDatabaseAccountsOperations
Constructor
RestorableDatabaseAccountsOperations(*args, **kwargs)
Methods
get_by_location |
Retrieves the properties of an existing Azure Cosmos DB restorable database account. This call requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read/>>*<<' permission. |
list |
Lists all the restorable Azure Cosmos DB database accounts available under the subscription. This call requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read' permission. |
list_by_location |
Lists all the restorable Azure Cosmos DB database accounts available under the subscription and in a region. This call requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read' permission. |
get_by_location
Retrieves the properties of an existing Azure Cosmos DB restorable database account. This call requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read/>>*<<' permission.
get_by_location(location: str, instance_id: str, **kwargs: Any) -> RestorableDatabaseAccountGetResult
Parameters
Name | Description |
---|---|
location
Required
|
Cosmos DB region, with spaces between words and each word capitalized. Required. |
instance_id
Required
|
The instanceId GUID of a restorable database account. Required. |
Keyword-Only Parameters
Name | Description |
---|---|
cls
|
A custom type or function that will be passed the direct response |
Returns
Type | Description |
---|---|
RestorableDatabaseAccountGetResult or the result of cls(response) |
Exceptions
Type | Description |
---|---|
list
Lists all the restorable Azure Cosmos DB database accounts available under the subscription. This call requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read' permission.
list(**kwargs: Any) -> Iterable[RestorableDatabaseAccountGetResult]
Keyword-Only Parameters
Name | Description |
---|---|
cls
|
A custom type or function that will be passed the direct response |
Returns
Type | Description |
---|---|
An iterator like instance of either RestorableDatabaseAccountGetResult or the result of cls(response) |
Exceptions
Type | Description |
---|---|
list_by_location
Lists all the restorable Azure Cosmos DB database accounts available under the subscription and in a region. This call requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read' permission.
list_by_location(location: str, **kwargs: Any) -> Iterable[RestorableDatabaseAccountGetResult]
Parameters
Name | Description |
---|---|
location
Required
|
Cosmos DB region, with spaces between words and each word capitalized. Required. |
Keyword-Only Parameters
Name | Description |
---|---|
cls
|
A custom type or function that will be passed the direct response |
Returns
Type | Description |
---|---|
An iterator like instance of either RestorableDatabaseAccountGetResult or the result of cls(response) |
Exceptions
Type | Description |
---|---|
Attributes
models
models = <module 'azure.mgmt.cosmosdb.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\azure\\mgmt\\cosmosdb\\models\\__init__.py'>
Azure SDK for Python
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for