Skip to main content

locations

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

Overview

Namelocations
TypeResource
Idazure.cosmos_db.locations

Fields

NameDatatypeDescription
idtextThe unique resource identifier of the database account.
nametextThe name of the database account.
backup_storage_redundanciestextfield from the properties object
is_residency_restrictedtextfield from the properties object
is_subscription_region_access_allowed_for_aztextfield from the properties object
is_subscription_region_access_allowed_for_regulartextfield from the properties object
locationtextfield from the properties object
statustextfield from the properties object
subscriptionIdtextfield from the properties object
supports_availability_zonetextfield from the properties object
typetextThe type of Azure resource.

Methods

NameAccessible byRequired ParamsDescription
getSELECTlocation, subscriptionIdGet the properties of an existing Cosmos DB location
listSELECTsubscriptionIdList Cosmos DB locations and their properties

SELECT examples

List Cosmos DB locations and their properties

SELECT
id,
name,
backup_storage_redundancies,
is_residency_restricted,
is_subscription_region_access_allowed_for_az,
is_subscription_region_access_allowed_for_regular,
location,
status,
subscriptionId,
supports_availability_zone,
type
FROM azure.cosmos_db.vw_locations
WHERE subscriptionId = '{{ subscriptionId }}';