Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/mongo-db/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
Release History
===============

1.1.0b1
++++++
* Add `az mongo-db atlas organization project` commands (create, list, show, delete, update, wait).
* Add `az mongo-db atlas organization project cluster` commands (create, list, show, delete, update, wait).

1.0.0
++++++
* Stable release.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"mongo-db",
)
class __CMDGroup(AAZCommandGroup):
"""Manage MongoDB
"""Manage Mongo Db
"""
Comment thread
sharmaanuj334 marked this conversation as resolved.
pass

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"mongo-db atlas",
)
class __CMDGroup(AAZCommandGroup):
"""Manage MongoDB Atlas
"""Manage Atlas
"""
pass

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"mongo-db atlas organization",
)
class __CMDGroup(AAZCommandGroup):
"""Manage Azure resources that represent MongoDB Atlas organizations
"""Manage Organization
"""
pass

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@
"mongo-db atlas organization create",
)
class Create(AAZCommand):
"""Create an Azure resource that provisions a corresponding MongoDB Atlas organization
"""Create a OrganizationResource
Comment thread
sharmaanuj334 marked this conversation as resolved.

:example: Organizations_CreateOrUpdate
az mongo-db atlas organization create -name "MyOrganizationResourceName" --resource-group "MyResourceGroup" --location "eastus" --subscription "abcd1234-5678-90ab-cdef-12345678abcd"--user {"first-name":"John","last-name":"Doe","email-address":"test@email.com"}" --marketplace "{"subscription-id":"abcd1234-5678-90ab-cdef-12345678abcd","offer-details":{"publisher-id":"mongodb","offer-id":"mongodb_atlas_azure_native_prod","plan-id":"private_plan","plan-name":"Pay as You Go (Free) (Private)","term-unit":"P1M","term-id":"gmz7xq9ge3py"}}" --partner-properties "{"organization-name":"partner-org-name"}"
:example: Organizations_CreateOrUpdate_MaximumSet
az mongo-db atlas organization create \\ --resource-group {resource_group} \\ --name MongoDBCLITestOrg2 \\ --location eastus2 \\ --subscription {subscription} \\ --marketplace '{"subscription-id": "<marketplace_sub_id>", "offer-details": {"publisher-id": "mongodb", "offer-id": "mongodb_atlas_azure_native_prod", "plan-id": "private_plan", "plan-name": "Pay as You Go (Free) (Private)", "term-unit": "P1M", "term-id": "gmz7xq9ge3py"}}' \\ --user '{"first-name": "dummy", "last-name": "dummy", "email-address": "test@example.com"}' \\ --partner-properties '{"organization-name": "MongoDBCLITestOrg2"}'
"""

_aaz_info = {
"version": "2025-06-01",
"version": "2026-03-01-preview",
"resources": [
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/mongodb.atlas/organizations/{}", "2025-06-01"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/mongodb.atlas/organizations/{}", "2026-03-01-preview"],
]
}

Expand Down Expand Up @@ -56,7 +56,6 @@ def _build_arguments_schema(cls, *args, **kwargs):
),
)
_args_schema.resource_group = AAZResourceGroupNameArg(
help="Name of the Azure resource group in which MongoDB Atlas resource is created",
required=True,
)

Expand Down Expand Up @@ -293,7 +292,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2025-06-01",
"api-version", "2026-03-01-preview",
required=True,
),
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@
confirmation="Are you sure you want to perform this operation?",
)
class Delete(AAZCommand):
"""Delete the Azure resource linked to a MongoDB Atlas organization
"""Delete a OrganizationResource
Comment thread
sharmaanuj334 marked this conversation as resolved.

:example: Organizations_Delete
az mongo-db atlas organization delete --subscription "abcd1234-5678-90ab-cdef-12345678abcd" --resource-group "MyResourceGroup" -name "MyOrganizationResourceName"
:example: Organizations_Delete_MaximumSet
az mongo-db atlas organization delete \\ --subscription {subscription} \\ --resource-group {resource_group} \\ --name MongoDBCLITestOrg2 \\ --yes
"""

_aaz_info = {
"version": "2025-06-01",
"version": "2026-03-01-preview",
"resources": [
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/mongodb.atlas/organizations/{}", "2025-06-01"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/mongodb.atlas/organizations/{}", "2026-03-01-preview"],
]
}

Expand Down Expand Up @@ -58,7 +58,6 @@ def _build_arguments_schema(cls, *args, **kwargs):
),
)
_args_schema.resource_group = AAZResourceGroupNameArg(
help="Name of the Azure resource group in which MongoDB Atlas resource is created",
required=True,
)
return cls._args_schema
Expand Down Expand Up @@ -149,7 +148,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2025-06-01",
"api-version", "2026-03-01-preview",
required=True,
),
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@
"mongo-db atlas organization list",
)
class List(AAZCommand):
"""List all Azure resources representing MongoDB Atlas organizations under the current subscription
"""List OrganizationResource resources by subscription ID

:example: Organizations_ListBySubscription
az mongo-db atlas organization list --subscription "abcd1234-5678-90ab-cdef-12345678abcd" --resource-group "MyResourceGroup"
:example: Organizations_ListBySubscription_MaximumSet
az mongo-db atlas organization list \\ --subscription {subscription} \\ --resource-group {resource_group}
"""

_aaz_info = {
"version": "2025-06-01",
"version": "2026-03-01-preview",
"resources": [
["mgmt-plane", "/subscriptions/{}/providers/mongodb.atlas/organizations", "2025-06-01"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/mongodb.atlas/organizations", "2025-06-01"],
["mgmt-plane", "/subscriptions/{}/providers/mongodb.atlas/organizations", "2026-03-01-preview"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/mongodb.atlas/organizations", "2026-03-01-preview"],
]
}

Expand All @@ -46,9 +46,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
# define Arg Group ""

_args_schema = cls._args_schema
_args_schema.resource_group = AAZResourceGroupNameArg(
help="Name of the Azure resource group in which MongoDB Atlas resource is created",
)
_args_schema.resource_group = AAZResourceGroupNameArg()
return cls._args_schema

def _execute_operations(self):
Expand Down Expand Up @@ -114,7 +112,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2025-06-01",
"api-version", "2026-03-01-preview",
required=True,
),
}
Expand Down Expand Up @@ -363,7 +361,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2025-06-01",
"api-version", "2026-03-01-preview",
required=True,
),
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@
"mongo-db atlas organization show",
)
class Show(AAZCommand):
"""Retrieve details of the Azure resource associated with a MongoDB Atlas organization
"""Get a OrganizationResource
Comment thread
sharmaanuj334 marked this conversation as resolved.

:example: Organizations_Get
az mongo-db atlas organization show --subscription "abcd1234-5678-90ab-cdef-12345678abcd" --resource-group "MyResourceGroup" -name "MyOrganizationResourceName"
:example: Organizations_Get_MaximumSet
az mongo-db atlas organization show \\ --subscription {subscription} \\ --resource-group {resource_group} \\ --name MongoDBCLITestOrg2
"""

_aaz_info = {
"version": "2025-06-01",
"version": "2026-03-01-preview",
"resources": [
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/mongodb.atlas/organizations/{}", "2025-06-01"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/mongodb.atlas/organizations/{}", "2026-03-01-preview"],
]
}

Expand Down Expand Up @@ -56,7 +56,6 @@ def _build_arguments_schema(cls, *args, **kwargs):
),
)
_args_schema.resource_group = AAZResourceGroupNameArg(
help="Name of the Azure resource group in which MongoDB Atlas resource is created",
required=True,
)
return cls._args_schema
Expand Down Expand Up @@ -126,7 +125,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2025-06-01",
"api-version", "2026-03-01-preview",
required=True,
),
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Wait(AAZWaitCommand):

_aaz_info = {
"resources": [
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/mongodb.atlas/organizations/{}", "2025-06-01"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/mongodb.atlas/organizations/{}", "2026-03-01-preview"],
]
}

Expand Down Expand Up @@ -52,7 +52,6 @@ def _build_arguments_schema(cls, *args, **kwargs):
),
)
_args_schema.resource_group = AAZResourceGroupNameArg(
help="Name of the Azure resource group in which MongoDB Atlas resource is created",
required=True,
)
return cls._args_schema
Expand Down Expand Up @@ -122,7 +121,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2025-06-01",
"api-version", "2026-03-01-preview",
required=True,
),
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
#
# Code generated by aaz-dev-tools
# --------------------------------------------------------------------------------------------

# pylint: skip-file
# flake8: noqa

from azure.cli.core.aaz import *


@register_command_group(
"mongo-db atlas organization project",
)
class __CMDGroup(AAZCommandGroup):
"""Manage Project
"""
pass


__all__ = ["__CMDGroup"]
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
#
# Code generated by aaz-dev-tools
# --------------------------------------------------------------------------------------------

# pylint: skip-file
# flake8: noqa

from .__cmd_group import *
from ._cluster_tier_region import *
from ._create import *
from ._delete import *
from ._list import *
from ._show import *
from ._tier_limit_reached import *
from ._update import *
from ._wait import *
Loading
Loading