LocationsOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:locations> attribute.
- Inheritance
-
builtins.objectLocationsOperations
Constructor
LocationsOperations(*args, **kwargs)
Methods
get |
Get the properties of an existing Cosmos DB location. |
list |
List Cosmos DB locations and their properties. |
get
Get the properties of an existing Cosmos DB location.
async get(location: str, **kwargs: Any) -> LocationGetResult
Parameters
Name | Description |
---|---|
location
Required
|
Cosmos DB region, with spaces between words and each word capitalized. Required. |
Returns
Type | Description |
---|---|
LocationGetResult or the result of cls(response) |
Exceptions
Type | Description |
---|---|
list
List Cosmos DB locations and their properties.
list(**kwargs: Any) -> AsyncIterable[LocationGetResult]
Returns
Type | Description |
---|---|
An iterator like instance of either LocationGetResult 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