Skip to main content

replicas

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

Overview

Namereplicas
TypeResource
Idazure.mongo_cluster.replicas

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
administratorobjectThe local administrator properties for the mongo cluster.
authConfigobjectThe authentication configuration for the cluster.
backupobjectThe backup properties of the mongo cluster.
clusterStatusstringThe status of the mongo cluster. Known values are: "Ready", "Provisioning", "Updating", "Starting", "Stopping", "Stopped", and "Dropping". (Ready, Provisioning, Updating, Starting, Stopping, Stopped, Dropping)
computeobjectThe compute properties of the mongo cluster.
connectionStringstringThe default mongo connection string for the cluster.
createModestringThe mode to create a mongo cluster. Known values are: "Default", "PointInTimeRestore", "GeoReplica", and "Replica". (Default, PointInTimeRestore, GeoReplica, Replica)
dataApiobjectThe Data API properties of the mongo cluster.
encryptionobjectThe encryption configuration for the cluster. Depends on identity being configured.
highAvailabilityobjectThe high availability properties of the mongo cluster.
infrastructureVersionstringThe infrastructure version the cluster is provisioned on.
networkBypassModestringThe network bypass mode for the cluster. Setting to 'AzureCosmosDB' allows Azure Cosmos DB service to bypass network restrictions. Known values are: "None" and "AzureCosmosDB". (None, AzureCosmosDB)
previewFeaturesarrayList of private endpoint connections.
privateEndpointConnectionsarrayList of private endpoint connections.
provisioningStatestringThe provisioning state of the mongo cluster. Known values are: "Succeeded", "Failed", "Canceled", "InProgress", "Updating", and "Dropping". (Succeeded, Failed, Canceled, InProgress, Updating, Dropping)
publicNetworkAccessstringWhether or not public endpoint access is allowed for this mongo cluster. Known values are: "Enabled" and "Disabled". (Enabled, Disabled)
replicaobjectThe replication properties for the mongo cluster.
replicaParametersobjectThe parameters to create a replica mongo cluster.
restoreParametersobjectThe parameters to create a point-in-time restore mongo cluster.
serverVersionstringThe Mongo DB server version. Defaults to the latest available version if not specified.
shardingobjectThe sharding properties of the mongo cluster.
storageobjectThe storage properties of the mongo cluster.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_by_parentselectresource_group_name, mongo_cluster_name, subscription_idList all the replicas for the mongo cluster.

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
mongo_cluster_namestringThe name of the mongo cluster. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

List all the replicas for the mongo cluster.

SELECT
id,
name,
administrator,
authConfig,
backup,
clusterStatus,
compute,
connectionString,
createMode,
dataApi,
encryption,
highAvailability,
infrastructureVersion,
networkBypassMode,
previewFeatures,
privateEndpointConnections,
provisioningState,
publicNetworkAccess,
replica,
replicaParameters,
restoreParameters,
serverVersion,
sharding,
storage,
systemData,
type
FROM azure.mongo_cluster.replicas
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND mongo_cluster_name = '{{ mongo_cluster_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;