Skip to main content

projects

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

Overview

Nameprojects
TypeResource
Idazure_isv.mongodbatlas.projects

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.
clusterCountintegerNumber of clusters in the project.
organizationIdstringAtlas organization id.
projectIdstringAtlas project id.
projectNamestringAtlas project name.
provisioningStatestringProvisioning state of the resource. Known values are: "Succeeded", "Failed", and "Canceled". (Succeeded, Failed, Canceled)
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
getselectresource_group_name, organization_name, project_name, subscription_idGet a Project.
listselectresource_group_name, organization_name, subscription_idList Project resources by OrganizationResource.
create_or_updateinsertresource_group_name, organization_name, project_name, subscription_idCreate a Project.
create_or_updatereplaceresource_group_name, organization_name, project_name, subscription_idCreate a Project.
deletedeleteresource_group_name, organization_name, project_name, subscription_idDelete a Project.
list_cluster_tier_regionsexecresource_group_name, organization_name, project_name, subscription_idList available regions by cluster tier for the project.
tier_limit_reachedexecresource_group_name, organization_name, project_name, subscription_idCheck if tier limit is reached for the project.

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
organization_namestringName of the Organization resource. Required.
project_namestringName of the MongoDB Atlas Project resource. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Get a Project.

SELECT
id,
name,
clusterCount,
organizationId,
projectId,
projectName,
provisioningState,
systemData,
type
FROM azure_isv.mongodbatlas.projects
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND organization_name = '{{ organization_name }}' -- required
AND project_name = '{{ project_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create a Project.

INSERT INTO azure_isv.mongodbatlas.projects (
properties,
resource_group_name,
organization_name,
project_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ resource_group_name }}',
'{{ organization_name }}',
'{{ project_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
systemData,
type
;

REPLACE examples

Create a Project.

REPLACE azure_isv.mongodbatlas.projects
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND organization_name = '{{ organization_name }}' --required
AND project_name = '{{ project_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

DELETE examples

Delete a Project.

DELETE FROM azure_isv.mongodbatlas.projects
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND organization_name = '{{ organization_name }}' --required
AND project_name = '{{ project_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;

Lifecycle Methods

List available regions by cluster tier for the project.

EXEC azure_isv.mongodbatlas.projects.list_cluster_tier_regions 
@resource_group_name='{{ resource_group_name }}' --required,
@organization_name='{{ organization_name }}' --required,
@project_name='{{ project_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;