-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Add MongoClusters 2025-07-01-preview API version #35802
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
9085570
Add root role, replace dbOwner
olivertowers c0bdf31
Added mongocluster api version 2025-05-01-preview
2ebb4e2
Merge branch 'main' into users/jpineiro/mongoclusters_2025_05_01_preview
joelpineiro 01ba239
Ran npx prettier
c647c69
Merge branch 'users/jpineiro/mongoclusters_2025_05_01_preview' of htt…
0614caa
typespec validation
225b4ef
Updated spec to use shared ManagedServiceIdentityProperty
6b7f3ea
Deprecate role name in 2025-07-01-preview
olivertowers 97b90e2
Merge branch 'users/jpineiro/mongoclusters_2025_05_01_preview' into o…
olivertowers b7e91ef
Move CMK changes to 2025-07-01-preview
olivertowers fd8faaf
Fix managedidentityproperties on MongoCluster model
olivertowers 9f9b140
Fix formatting
olivertowers 8da12ad
Fix example format
olivertowers 544d20f
Add scenarios to 2025-07-01-preview
olivertowers File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
147 changes: 147 additions & 0 deletions
147
.../DocumentDB.MongoCluster.Management/examples/2025-07-01-preview/MongoClusters_Create.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,147 @@ | ||
| { | ||
| "operationId": "MongoClusters_CreateOrUpdate", | ||
| "title": "Creates a new Mongo Cluster resource.", | ||
| "parameters": { | ||
| "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", | ||
| "resourceGroupName": "TestResourceGroup", | ||
| "mongoClusterName": "myMongoCluster", | ||
| "api-version": "2025-07-01-preview", | ||
| "resource": { | ||
| "location": "westus2", | ||
| "properties": { | ||
| "administrator": { | ||
| "userName": "mongoAdmin", | ||
| "password": "password" | ||
| }, | ||
| "authConfig": { | ||
| "allowedModes": [ | ||
| "NativeAuth" | ||
| ] | ||
| }, | ||
| "serverVersion": "5.0", | ||
| "storage": { | ||
| "sizeGb": 128 | ||
| }, | ||
| "compute": { | ||
| "tier": "M30" | ||
| }, | ||
| "sharding": { | ||
| "shardCount": 1 | ||
| }, | ||
| "highAvailability": { | ||
| "targetMode": "ZoneRedundantPreferred" | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DocumentDB/mongoClusters/myMongoCluster", | ||
| "name": "myMongoCluster", | ||
| "type": "/Microsoft.DocumentDB/mongoClusters", | ||
| "systemData": { | ||
| "createdBy": "user1", | ||
| "createdByType": "User", | ||
| "createdAt": "2020-01-01T17:18:19.1234567Z", | ||
| "lastModifiedBy": "user2", | ||
| "lastModifiedByType": "User", | ||
| "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" | ||
| }, | ||
| "properties": { | ||
| "provisioningState": "Succeeded", | ||
| "administrator": { | ||
| "userName": "mongoAdmin" | ||
| }, | ||
| "authConfig": { | ||
| "allowedModes": [ | ||
| "NativeAuth" | ||
| ] | ||
| }, | ||
| "serverVersion": "5.0", | ||
| "storage": { | ||
| "sizeGb": 128, | ||
| "type": "PremiumSSD" | ||
| }, | ||
| "compute": { | ||
| "tier": "M30" | ||
| }, | ||
| "sharding": { | ||
| "shardCount": 1 | ||
| }, | ||
| "highAvailability": { | ||
| "targetMode": "SameZone" | ||
| }, | ||
| "backup": { | ||
| "earliestRestoreTime": "2023-01-13T20:07:35Z" | ||
| }, | ||
| "previewFeatures": [], | ||
| "infrastructureVersion": "2.0", | ||
| "publicNetworkAccess": "Enabled", | ||
| "connectionString": "mongodb+srv://<user>:<password>@myMongoCluster.mongocluster.cosmos.azure.com", | ||
| "replica": { | ||
| "role": "Primary" | ||
| }, | ||
| "dataApi": { | ||
| "mode": "Disabled" | ||
| } | ||
| }, | ||
| "location": "westus2" | ||
| } | ||
| }, | ||
| "201": { | ||
| "body": { | ||
| "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DocumentDB/mongoClusters/myMongoCluster", | ||
| "name": "myMongoCluster", | ||
| "type": "/Microsoft.DocumentDB/mongoClusters", | ||
| "systemData": { | ||
| "createdBy": "user1", | ||
| "createdByType": "User", | ||
| "createdAt": "2020-01-01T17:18:19.1234567Z", | ||
| "lastModifiedBy": "user2", | ||
| "lastModifiedByType": "User", | ||
| "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" | ||
| }, | ||
| "properties": { | ||
| "provisioningState": "InProgress", | ||
| "administrator": { | ||
| "userName": "mongoAdmin" | ||
| }, | ||
| "authConfig": { | ||
| "allowedModes": [ | ||
| "NativeAuth" | ||
| ] | ||
| }, | ||
| "serverVersion": "5.0", | ||
| "storage": { | ||
| "sizeGb": 128, | ||
| "type": "PremiumSSD" | ||
| }, | ||
| "compute": { | ||
| "tier": "M30" | ||
| }, | ||
| "sharding": { | ||
| "shardCount": 1 | ||
| }, | ||
| "highAvailability": { | ||
| "targetMode": "SameZone" | ||
| }, | ||
| "backup": { | ||
| "earliestRestoreTime": "2023-01-13T20:07:35Z" | ||
| }, | ||
| "previewFeatures": [], | ||
| "infrastructureVersion": "2.0", | ||
| "publicNetworkAccess": "Enabled", | ||
| "connectionString": "mongodb+srv://<user>:<password>@myMongoCluster.mongocluster.cosmos.azure.com", | ||
| "replica": { | ||
| "role": "Primary" | ||
| }, | ||
| "dataApi": { | ||
| "mode": "Disabled" | ||
| } | ||
| }, | ||
| "location": "westus2" | ||
| } | ||
| } | ||
| } | ||
| } |
122 changes: 122 additions & 0 deletions
122
...B.MongoCluster.Management/examples/2025-07-01-preview/MongoClusters_CreateGeoReplica.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,122 @@ | ||
| { | ||
| "operationId": "MongoClusters_CreateOrUpdate", | ||
| "title": "Creates a replica Mongo Cluster resource from a source resource.", | ||
| "parameters": { | ||
| "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", | ||
| "resourceGroupName": "TestResourceGroup", | ||
| "mongoClusterName": "myReplicaMongoCluster", | ||
| "api-version": "2025-07-01-preview", | ||
| "resource": { | ||
| "location": "centralus", | ||
| "properties": { | ||
| "createMode": "GeoReplica", | ||
| "replicaParameters": { | ||
| "sourceResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DocumentDB/mongoClusters/mySourceMongoCluster", | ||
| "sourceLocation": "eastus" | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DocumentDB/mongoClusters/myReplicaMongoCluster", | ||
| "name": "myReplicaMongoCluster", | ||
| "type": "/Microsoft.DocumentDB/mongoClusters", | ||
| "properties": { | ||
| "provisioningState": "Succeeded", | ||
| "administrator": { | ||
| "userName": "mongoAdmin" | ||
| }, | ||
| "authConfig": { | ||
| "allowedModes": [ | ||
| "NativeAuth" | ||
| ] | ||
| }, | ||
| "serverVersion": "5.0", | ||
| "storage": { | ||
| "sizeGb": 128, | ||
| "type": "PremiumSSD" | ||
| }, | ||
| "compute": { | ||
| "tier": "M30" | ||
| }, | ||
| "sharding": { | ||
| "shardCount": 3 | ||
| }, | ||
| "highAvailability": { | ||
| "targetMode": "SameZone" | ||
| }, | ||
| "backup": { | ||
| "earliestRestoreTime": "2023-01-13T20:07:35Z" | ||
| }, | ||
| "previewFeatures": [ | ||
| "GeoReplicas" | ||
| ], | ||
| "infrastructureVersion": "2.0", | ||
| "publicNetworkAccess": "Enabled", | ||
| "connectionString": "mongodb+srv://<user>:<password>@myReplicaMongoCluster.mongocluster.cosmos.azure.com", | ||
| "replica": { | ||
| "role": "GeoAsyncReplica", | ||
| "sourceResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DocumentDB/mongoClusters/mySourceMongoCluster", | ||
| "replicationState": "Provisioning" | ||
| }, | ||
| "dataApi": { | ||
| "mode": "Disabled" | ||
| } | ||
| }, | ||
| "location": "centralus" | ||
| } | ||
| }, | ||
| "201": { | ||
| "body": { | ||
| "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DocumentDB/mongoClusters/myReplicaMongoCluster", | ||
| "name": "myReplicaMongoCluster", | ||
| "type": "/Microsoft.DocumentDB/mongoClusters", | ||
| "properties": { | ||
| "provisioningState": "Succeeded", | ||
| "administrator": { | ||
| "userName": "mongoAdmin" | ||
| }, | ||
| "authConfig": { | ||
| "allowedModes": [ | ||
| "NativeAuth" | ||
| ] | ||
| }, | ||
| "serverVersion": "5.0", | ||
| "storage": { | ||
| "sizeGb": 128, | ||
| "type": "PremiumSSD" | ||
| }, | ||
| "compute": { | ||
| "tier": "M30" | ||
| }, | ||
| "sharding": { | ||
| "shardCount": 1 | ||
| }, | ||
| "highAvailability": { | ||
| "targetMode": "SameZone" | ||
| }, | ||
| "backup": { | ||
| "earliestRestoreTime": "2023-01-13T20:07:35Z" | ||
| }, | ||
| "previewFeatures": [ | ||
| "GeoReplicas" | ||
| ], | ||
| "infrastructureVersion": "2.0", | ||
| "publicNetworkAccess": "Enabled", | ||
| "connectionString": "mongodb+srv://<user>:<password>@myReplicaMongoCluster.mongocluster.cosmos.azure.com", | ||
| "replica": { | ||
| "role": "GeoAsyncReplica", | ||
| "sourceResourceId": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestResourceGroup/providers/Microsoft.DocumentDB/mongoClusters/mySourceMongoCluster", | ||
| "replicationState": "Provisioning" | ||
| }, | ||
| "dataApi": { | ||
| "mode": "Disabled" | ||
| } | ||
| }, | ||
| "location": "centralus" | ||
| } | ||
| } | ||
| } | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.