Language

Replica Class

Definition

Represents a mongo cluster replica.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DocumentDB.Models.ReplicaTypeConverter))]
public class Replica : Microsoft.Azure.PowerShell.Cmdlets.DocumentDB.Models.IReplica, Microsoft.Azure.PowerShell.Cmdlets.DocumentDB.Runtime.IValidates
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DocumentDB.Models.ReplicaTypeConverter))>]
type Replica = class
    interface IReplica
    interface IJsonSerializable
    interface IProxyResource
    interface IResource
    interface IValidates
Public Class Replica
Implements IReplica, IValidates
Inheritance
Replica
Attributes
Implements

Constructors

Name Description
Replica()

Creates an new Replica instance.

Properties

Name Description
AdministratorPassword

The administrator password.

AdministratorUserName

The administrator user name.

AuthConfigAllowedMode

Allowed authentication modes for data access on the cluster.

BackupEarliestRestoreTime

Earliest restore timestamp in UTC ISO8601 format.

ClusterStatus

The status of the mongo cluster.

ComputeTier

The compute tier to assign to the cluster, where each tier maps to a virtual-core and memory size. Example values: 'M30', 'M40'.

ConnectionString

The default mongo connection string for the cluster.

CreateMode

The mode to create a mongo cluster.

CustomerManagedKeyEncryptionKeyUrl

The URI of the key vault key used for encryption.

DataApiMode

The mode to indicate whether the Mongo Data API is enabled for a cluster.

HighAvailabilityTargetMode

The target high availability mode requested for the cluster.

Id

Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

InfrastructureVersion

The infrastructure version the cluster is provisioned on.

KeyEncryptionKeyIdentityType

The type of identity. Only 'UserAssignedIdentity' is supported.

KeyEncryptionKeyIdentityUserAssignedIdentityResourceId

The user assigned identity resource id.

Name

The name of the resource

NetworkBypassMode

The network bypass mode for the cluster. Setting to 'AzureCosmosDB' allows Azure Cosmos DB service to bypass network restrictions.

ParameterSourceLocation

The location of the source cluster

ParameterSourceResourceId

The id of the replication source cluster.

PreviewFeature

List of private endpoint connections.

PrivateEndpointConnection

List of private endpoint connections.

ProvisioningState

The provisioning state of the mongo cluster.

PublicNetworkAccess

Whether or not public endpoint access is allowed for this mongo cluster.

ReplicationState

The replication link state of the replica cluster.

RestoreParameterPointInTimeUtc

UTC point in time to restore a mongo cluster

RestoreParameterSourceResourceId

Resource ID to locate the source cluster to restore

Role

The replication role of the cluster

ServerVersion

The Mongo DB server version. Defaults to the latest available version if not specified.

ShardingShardCount

Number of shards to provision on the cluster.

SourceResourceId

The resource id the source cluster for the replica cluster.

StorageSizeGb

The size of the data disk assigned to each server.

StorageType

The type of storage to provision the cluster servers with.

SystemDataCreatedAt

The timestamp of resource creation (UTC).

SystemDataCreatedBy

The identity that created the resource.

SystemDataCreatedByType

The type of identity that created the resource.

SystemDataLastModifiedAt

The timestamp of resource last modification (UTC)

SystemDataLastModifiedBy

The identity that last modified the resource.

SystemDataLastModifiedByType

The type of identity that last modified the resource.

Type

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Methods

Name Description
DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of Replica.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of Replica.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.DocumentDB.Models.IReplica.

FromJsonString(String)

Creates a new instance of Replica, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of Replica into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()
Validate(IEventListener)

Validates that this object meets the validation criteria.

Applies to