Skip to main content

locations

Creates, updates, deletes, gets or lists a locations resource.

Overview

Namelocations
TypeResource
Idazure.cosmos_db.locations

Fields

The following fields are returned by SELECT queries:

The Cosmos DB location properties were retrieved successfully.

NameDatatypeDescription
idstringThe unique resource identifier of the database account.
namestringThe name of the database account.
propertiesobjectCosmos DB location metadata
typestringThe type of Azure resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, locationGet the properties of an existing Cosmos DB location
listselectsubscriptionIdList Cosmos DB locations and their properties

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
locationstringCosmos DB region, with spaces between words and each word capitalized.
subscriptionIdstringThe ID of the target subscription.

SELECT examples

Get the properties of an existing Cosmos DB location

SELECT
id,
name,
properties,
type
FROM azure.cosmos_db.locations
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND location = '{{ location }}' -- required
;