Share via


@azure/arm-mongocluster package

Classes

MongoClusterManagementClient

Interfaces

AdministratorProperties

The local administrator login properties.

AuthConfigProperties

The authentication configuration for the Mongo cluster.

BackupProperties

The backup properties of the cluster. This includes the earliest restore time and retention settings.

CheckNameAvailabilityRequest

The check availability request body.

CheckNameAvailabilityResponse

The check availability result.

ComputeProperties

The compute properties of the cluster. This includes the virtual-cores/memory and scaling options applied to servers in the cluster.

ConnectionString

Connection string for the mongo cluster

CustomerManagedKeyEncryptionProperties

Customer managed key encryption settings.

DataApiProperties

Data API properties.

DatabaseRole

Database role definition that is assigned to a user.

EncryptionProperties

The encryption configuration for the mongo cluster.

EntraIdentityProvider

Defines a Microsoft Entra ID Mongo user.

EntraIdentityProviderProperties

Microsoft Entra ID provider properties.

ErrorAdditionalInfo

The resource management error additional info.

ErrorDetail

The error detail.

ErrorResponse

Common error response for all Azure Resource Manager APIs to return error details for failed operations.

FirewallRule

Represents a mongo cluster firewall rule.

FirewallRuleProperties

The properties of a mongo cluster firewall rule.

FirewallRulesCreateOrUpdateOptionalParams

Optional parameters.

FirewallRulesDeleteOptionalParams

Optional parameters.

FirewallRulesGetOptionalParams

Optional parameters.

FirewallRulesListByMongoClusterOptionalParams

Optional parameters.

FirewallRulesOperations

Interface representing a FirewallRules operations.

HighAvailabilityProperties

The high availability properties of the cluster.

IdentityProvider

Defines a user's identity provider definition.

KeyEncryptionKeyIdentity

The identity used for key encryption key.

ListConnectionStringsResult

The connection strings for the given mongo cluster.

ManagedServiceIdentity

Managed service identity (system assigned and/or user assigned identities)

MongoCluster

Represents a mongo cluster resource.

MongoClusterManagementClientOptionalParams

Optional parameters for the client.

MongoClusterProperties

The properties of a mongo cluster.

MongoClusterReplicaParameters

Parameters used for replica operations.

MongoClusterRestoreParameters

Parameters used for restore operations

MongoClusterUpdate

The type used for update operations of the MongoCluster.

MongoClusterUpdateProperties

The updatable properties of the MongoCluster.

MongoClustersCheckNameAvailabilityOptionalParams

Optional parameters.

MongoClustersCreateOrUpdateOptionalParams

Optional parameters.

MongoClustersDeleteOptionalParams

Optional parameters.

MongoClustersGetOptionalParams

Optional parameters.

MongoClustersListByResourceGroupOptionalParams

Optional parameters.

MongoClustersListConnectionStringsOptionalParams

Optional parameters.

MongoClustersListOptionalParams

Optional parameters.

MongoClustersOperations

Interface representing a MongoClusters operations.

MongoClustersPromoteOptionalParams

Optional parameters.

MongoClustersUpdateOptionalParams

Optional parameters.

Operation

Details of a REST API operation, returned from the Resource Provider Operations API

OperationDisplay

Localized display information for and operation.

OperationsListOptionalParams

Optional parameters.

OperationsOperations

Interface representing a Operations operations.

PageSettings

Options for the byPage method

PagedAsyncIterableIterator

An interface that allows async iterable iteration both to completion and by page.

PrivateEndpoint

The private endpoint resource.

PrivateEndpointConnection

The private endpoint connection resource

PrivateEndpointConnectionProperties

Properties of the private endpoint connection.

PrivateEndpointConnectionResource

Concrete proxy resource types can be created by aliasing this type using a specific property type.

PrivateEndpointConnectionsCreateOptionalParams

Optional parameters.

PrivateEndpointConnectionsDeleteOptionalParams

Optional parameters.

PrivateEndpointConnectionsGetOptionalParams

Optional parameters.

PrivateEndpointConnectionsListByMongoClusterOptionalParams

Optional parameters.

PrivateEndpointConnectionsOperations

Interface representing a PrivateEndpointConnections operations.

PrivateLinkResource

Concrete proxy resource types can be created by aliasing this type using a specific property type.

PrivateLinkResourceProperties

Properties of a private link resource.

PrivateLinkServiceConnectionState

A collection of information about the state of the connection between service consumer and provider.

PrivateLinksListByMongoClusterOptionalParams

Optional parameters.

PrivateLinksOperations

Interface representing a PrivateLinks operations.

PromoteReplicaRequest

Promote replica request properties.

ProxyResource

The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location

Replica

Represents a mongo cluster replica.

ReplicasListByParentOptionalParams

Optional parameters.

ReplicasOperations

Interface representing a Replicas operations.

ReplicationProperties

Replica properties of the mongo cluster.

Resource

Common fields that are returned in the response for all Azure Resource Manager resources

RestorePollerOptions
ShardingProperties

The sharding properties of the cluster. This includes the shard count and scaling options for the cluster.

StorageProperties

The storage properties of the cluster. This includes the data storage size and scaling applied to servers in the cluster.

SystemData

Metadata pertaining to creation and last modification of the resource.

TrackedResource

The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'

User

Represents a Mongo cluster user.

UserAssignedIdentity

User assigned identity properties

UserProperties

Definition of Mongo user resource on a cluster.

UsersCreateOrUpdateOptionalParams

Optional parameters.

UsersDeleteOptionalParams

Optional parameters.

UsersGetOptionalParams

Optional parameters.

UsersListByMongoClusterOptionalParams

Optional parameters.

UsersOperations

Interface representing a Users operations.

Type Aliases

ActionType

Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
KnownActionType can be used interchangeably with ActionType, this enum contains the known values that the service supports.

Known values supported by the service

Internal: Actions are for internal-only APIs.

AuthenticationMode

The authentication modes supporting on the Mongo cluster.
KnownAuthenticationMode can be used interchangeably with AuthenticationMode, this enum contains the known values that the service supports.

Known values supported by the service

NativeAuth: Native mongo authentication mode using username and password with auth mechanism 'SCRAM-SHA-256'.
MicrosoftEntraID: Microsoft Entra ID authentication mode using Entra users assigned to the cluster and auth mechanism 'MONGODB-OIDC'.

AzureSupportedClouds

The supported values for cloud setting as a string literal type

CheckNameAvailabilityReason

Possible reasons for a name not being available.
KnownCheckNameAvailabilityReason can be used interchangeably with CheckNameAvailabilityReason, this enum contains the known values that the service supports.

Known values supported by the service

Invalid: Name is invalid.
AlreadyExists: Name already exists.

ContinuablePage

An interface that describes a page of results.

CreateMode

The mode that the Mongo Cluster is created with.
KnownCreateMode can be used interchangeably with CreateMode, this enum contains the known values that the service supports.

Known values supported by the service

Default: Create a new mongo cluster.
PointInTimeRestore: Create a mongo cluster from a restore point-in-time.
GeoReplica: Create a replica cluster in distinct geographic region from the source cluster.
Replica: Create a replica cluster in the same geographic region as the source cluster.

CreatedByType

The kind of entity that created the resource.
KnownCreatedByType can be used interchangeably with CreatedByType, this enum contains the known values that the service supports.

Known values supported by the service

User: The entity was created by a user.
Application: The entity was created by an application.
ManagedIdentity: The entity was created by a managed identity.
Key: The entity was created by a key.

DataApiMode

The mode to apply to the Mongo Data API.
KnownDataApiMode can be used interchangeably with DataApiMode, this enum contains the known values that the service supports.

Known values supported by the service

Enabled: Mongo Data API is enabled for the cluster.
Disabled: Mongo Data API is disabled for the cluster.

EntraPrincipalType

Microsoft Entra ID principal types available for a Mongo user.
KnownEntraPrincipalType can be used interchangeably with EntraPrincipalType, this enum contains the known values that the service supports.

Known values supported by the service

user: Entra user type.
servicePrincipal: Entra service principal type.

HighAvailabilityMode

The high availability modes for a cluster.
KnownHighAvailabilityMode can be used interchangeably with HighAvailabilityMode, this enum contains the known values that the service supports.

Known values supported by the service

Disabled: High availability mode is disabled. This mode is can see availability impact during faults or maintenance and is not recommended for production.
SameZone: High availability mode is enabled, where each server in a shard is placed in the same availability zone.
ZoneRedundantPreferred: High availability mode is enabled and preferences ZoneRedundant if availability zones capacity is available in the region, otherwise falls-back to provisioning with SameZone.

IdentityProviderType

Identity provider types that a a user identity can belong to.
KnownIdentityProviderType can be used interchangeably with IdentityProviderType, this enum contains the known values that the service supports.

Known values supported by the service

MicrosoftEntraID: Microsoft Entra ID provider.

IdentityProviderUnion

Alias for IdentityProviderUnion

KeyEncryptionKeyIdentityType

The type of identity for key encryption key.
KnownKeyEncryptionKeyIdentityType can be used interchangeably with KeyEncryptionKeyIdentityType, this enum contains the known values that the service supports.

Known values supported by the service

UserAssignedIdentity: User assigned identity.

ManagedServiceIdentityType

Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).
KnownManagedServiceIdentityType can be used interchangeably with ManagedServiceIdentityType, this enum contains the known values that the service supports.

Known values supported by the service

None: No managed identity.
SystemAssigned: System assigned managed identity.
UserAssigned: User assigned managed identity.
SystemAssigned,UserAssigned: System and user assigned managed identity.

MongoClusterStatus

The status of the Mongo cluster resource.
KnownMongoClusterStatus can be used interchangeably with MongoClusterStatus, this enum contains the known values that the service supports.

Known values supported by the service

Ready: The mongo cluster resource is ready for use.
Provisioning: The mongo cluster resource is being provisioned.
Updating: The mongo cluster resource is being updated.
Starting: The mongo cluster resource is being started.
Stopping: The mongo cluster resource is being stopped.
Stopped: The mongo cluster resource is stopped.
Dropping: The mongo cluster resource is being dropped.

Origin

The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system"
KnownOrigin can be used interchangeably with Origin, this enum contains the known values that the service supports.

Known values supported by the service

user: Indicates the operation is initiated by a user.
system: Indicates the operation is initiated by a system.
user,system: Indicates the operation is initiated by a user or system.

PreviewFeature

Preview features that can be enabled on a mongo cluster.
KnownPreviewFeature can be used interchangeably with PreviewFeature, this enum contains the known values that the service supports.

Known values supported by the service

GeoReplicas: Enables geo replicas preview feature. The feature must be set at create-time on new cluster to enable linking a geo-replica cluster to it.

PrivateEndpointConnectionProvisioningState

The current provisioning state.
KnownPrivateEndpointConnectionProvisioningState can be used interchangeably with PrivateEndpointConnectionProvisioningState, this enum contains the known values that the service supports.

Known values supported by the service

Succeeded: Connection has been provisioned
Creating: Connection is being created
Deleting: Connection is being deleted
Failed: Connection provisioning has failed

PrivateEndpointServiceConnectionStatus

The private endpoint connection status.
KnownPrivateEndpointServiceConnectionStatus can be used interchangeably with PrivateEndpointServiceConnectionStatus, this enum contains the known values that the service supports.

Known values supported by the service

Pending: Connection waiting for approval or rejection
Approved: Connection approved
Rejected: Connection Rejected

PromoteMode

The mode to apply to a promote operation.
KnownPromoteMode can be used interchangeably with PromoteMode, this enum contains the known values that the service supports.

Known values supported by the service

Switchover: Promotion will switch the current replica cluster to the primary role and the original primary will be switched to a replica role, maintaining the replication link.

PromoteOption

The option to apply to a promote operation.
KnownPromoteOption can be used interchangeably with PromoteOption, this enum contains the known values that the service supports.

Known values supported by the service

Forced: Promote option forces the promotion without waiting for the replica to be caught up to the primary. This can result in data-loss so should only be used during disaster recovery scenarios.

ProvisioningState

The provisioning state of the last accepted operation.
KnownProvisioningState can be used interchangeably with ProvisioningState, this enum contains the known values that the service supports.

Known values supported by the service

Succeeded: Resource has been created.
Failed: Resource creation failed.
Canceled: Resource creation was canceled.
InProgress: An operation is in-progress on the resource.
Updating: An update operation is in-progress on the resource.
Dropping: A drop operation is in-progress on the resource.

PublicNetworkAccess

Whether or not public endpoint access is allowed for this Mongo cluster. Value is optional and default value is 'Enabled'
KnownPublicNetworkAccess can be used interchangeably with PublicNetworkAccess, this enum contains the known values that the service supports.

Known values supported by the service

Enabled: If set, mongo cluster can be accessed through private and public methods.
Disabled: If set, the private endpoints are the exclusive access method.

ReplicationRole

Replication role of the mongo cluster.
KnownReplicationRole can be used interchangeably with ReplicationRole, this enum contains the known values that the service supports.

Known values supported by the service

Primary: The cluster is a primary replica.
AsyncReplica: The cluster is a local asynchronous replica.
GeoAsyncReplica: The cluster is a geo-asynchronous replica.

ReplicationState

The state of the replication link between the replica and source cluster.
KnownReplicationState can be used interchangeably with ReplicationState, this enum contains the known values that the service supports.

Known values supported by the service

Active: Replication link is active.
Catchup: Replica is catching-up with the primary. This can occur after the replica is created or after a promotion is triggered.
Provisioning: Replica and replication link to the primary is being created.
Updating: Replication link is being updated due to a change on the replica or an upgrade.
Broken: Replication link is broken and the replica may need to be recreated.
Reconfiguring: Replication link is re-configuring due to a promotion event.

StorageType

The type of storage that a mongo cluster can be provisioned with.
KnownStorageType can be used interchangeably with StorageType, this enum contains the known values that the service supports.

Known values supported by the service

PremiumSSD: Premium SSD for high performance workloads.
PremiumSSDv2: Premium SSD v2 for very IO-intensive workloads. This is a preview option and has additional limitations.

UserRole

Built-in database role that can be assigned to a user.
KnownUserRole can be used interchangeably with UserRole, this enum contains the known values that the service supports.

Known values supported by the service

root: Root role permissions on the target scope.

Enums

AzureClouds

An enum to describe Azure Cloud environments.

KnownActionType

Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.

KnownAuthenticationMode

The authentication modes supporting on the Mongo cluster.

KnownCheckNameAvailabilityReason

Possible reasons for a name not being available.

KnownCreateMode

The mode that the Mongo Cluster is created with.

KnownCreatedByType

The kind of entity that created the resource.

KnownDataApiMode

The mode to apply to the Mongo Data API.

KnownEntraPrincipalType

Microsoft Entra ID principal types available for a Mongo user.

KnownHighAvailabilityMode

The high availability modes for a cluster.

KnownIdentityProviderType

Identity provider types that a a user identity can belong to.

KnownKeyEncryptionKeyIdentityType

The type of identity for key encryption key.

KnownManagedServiceIdentityType

Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).

KnownMongoClusterStatus

The status of the Mongo cluster resource.

KnownOrigin

The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system"

KnownPreviewFeature

Preview features that can be enabled on a mongo cluster.

KnownPrivateEndpointConnectionProvisioningState

The current provisioning state.

KnownPrivateEndpointServiceConnectionStatus

The private endpoint connection status.

KnownPromoteMode

The mode to apply to a promote operation.

KnownPromoteOption

The option to apply to a promote operation.

KnownProvisioningState

The provisioning state of the last accepted operation.

KnownPublicNetworkAccess

Whether or not public endpoint access is allowed for this Mongo cluster. Value is optional and default value is 'Enabled'

KnownReplicationRole

Replication role of the mongo cluster.

KnownReplicationState

The state of the replication link between the replica and source cluster.

KnownStorageType

The type of storage that a mongo cluster can be provisioned with.

KnownUserRole

Built-in database role that can be assigned to a user.

KnownVersions

The available API versions.

Functions

restorePoller<TResponse, TResult>(MongoClusterManagementClient, string, (args: any[]) => PollerLike<OperationState<TResult>, TResult>, RestorePollerOptions<TResult, PathUncheckedResponse>)

Creates a poller from the serialized state of another poller. This can be useful when you want to create pollers on a different host or a poller needs to be constructed after the original one is not in scope.

Function Details

restorePoller<TResponse, TResult>(MongoClusterManagementClient, string, (args: any[]) => PollerLike<OperationState<TResult>, TResult>, RestorePollerOptions<TResult, PathUncheckedResponse>)

Creates a poller from the serialized state of another poller. This can be useful when you want to create pollers on a different host or a poller needs to be constructed after the original one is not in scope.

function restorePoller<TResponse, TResult>(client: MongoClusterManagementClient, serializedState: string, sourceOperation: (args: any[]) => PollerLike<OperationState<TResult>, TResult>, options?: RestorePollerOptions<TResult, PathUncheckedResponse>): PollerLike<OperationState<TResult>, TResult>

Parameters

serializedState

string

sourceOperation

(args: any[]) => PollerLike<OperationState<TResult>, TResult>

Returns

PollerLike<OperationState<TResult>, TResult>