Skip to main content

gremlin_resources

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

Overview

Namegremlin_resources
TypeResource
Idazure.cosmosdb.gremlin_resources

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.
identityobjectIdentity for the resource.
locationstringThe location of the resource group to which the resource belongs.
resourceobject:vartype resource: ~azure.mgmt.cosmosdb.models.ThroughputSettingsGetPropertiesResource
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectTags are a list of key-value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters. For example, the default experience for a template type is set with "defaultExperience": "Cassandra". Current "defaultExperience" values also include "Table", "Graph", "DocumentDB", and "MongoDB".
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
get_gremlin_graph_throughputselectresource_group_name, account_name, database_name, graph_name, subscription_idGets the Gremlin graph throughput under an existing Azure Cosmos DB database account with the provided name.
list_gremlin_graphsselectresource_group_name, account_name, database_name, subscription_idLists the Gremlin graph under an existing Azure Cosmos DB database account.
get_gremlin_role_definitionselectresource_group_name, account_name, role_definition_id, subscription_idRetrieves the properties of an existing Azure Cosmos DB Gremlin Role Definition with the given Id.
get_gremlin_role_assignmentselectresource_group_name, account_name, role_assignment_id, subscription_idRetrieves the properties of an existing Azure Cosmos DB Gremlin Role Assignment with the given Id.
list_gremlin_databasesselectresource_group_name, account_name, subscription_idLists the Gremlin databases under an existing Azure Cosmos DB database account.
list_gremlin_role_definitionsexecresource_group_name, account_name, subscription_idRetrieves the list of all Azure Cosmos DB Gremlin Role Definitions.
list_gremlin_role_assignmentsexecresource_group_name, account_name, subscription_idRetrieves the list of all Azure Cosmos DB Gremlin Role Assignments.
get_gremlin_database_throughputexecresource_group_name, account_name, database_name, subscription_idGets the RUs per second of the Gremlin database under an existing Azure Cosmos DB database account with the provided name.
update_gremlin_database_throughputexecresource_group_name, account_name, database_name, subscription_id, propertiesUpdate RUs per second of an Azure Cosmos DB Gremlin database.
update_gremlin_graph_throughputexecresource_group_name, account_name, database_name, graph_name, subscription_id, propertiesUpdate RUs per second of an Azure Cosmos DB Gremlin graph.
get_gremlin_databaseexecresource_group_name, account_name, database_name, subscription_idGets the Gremlin databases under an existing Azure Cosmos DB database account with the provided name.
create_update_gremlin_databaseexecresource_group_name, account_name, database_name, subscription_id, propertiesCreate or update an Azure Cosmos DB Gremlin database.
delete_gremlin_databaseexecresource_group_name, account_name, database_name, subscription_idDeletes an existing Azure Cosmos DB Gremlin database.
get_gremlin_graphexecresource_group_name, account_name, database_name, graph_name, subscription_idGets the Gremlin graph under an existing Azure Cosmos DB database account.
create_update_gremlin_graphexecresource_group_name, account_name, database_name, graph_name, subscription_id, propertiesCreate or update an Azure Cosmos DB Gremlin graph.
delete_gremlin_graphexecresource_group_name, account_name, database_name, graph_name, subscription_idDeletes an existing Azure Cosmos DB Gremlin graph.
create_update_gremlin_role_definitionexecresource_group_name, account_name, role_definition_id, subscription_idCreates or updates an Azure Cosmos DB Gremlin Role Definition.
delete_gremlin_role_definitionexecresource_group_name, account_name, role_definition_id, subscription_idDeletes an existing Azure Cosmos DB Gremlin Role Definition.
create_update_gremlin_role_assignmentexecresource_group_name, account_name, role_assignment_id, subscription_idCreates or updates an Azure Cosmos DB Gremlin Role Assignment.
delete_gremlin_role_assignmentexecresource_group_name, account_name, role_assignment_id, subscription_idDeletes an existing Azure Cosmos DB Gremlin Role Assignment.
migrate_gremlin_database_to_autoscaleexecresource_group_name, account_name, database_name, subscription_idMigrate an Azure Cosmos DB Gremlin database from manual throughput to autoscale.
migrate_gremlin_database_to_manual_throughputexecresource_group_name, account_name, database_name, subscription_idMigrate an Azure Cosmos DB Gremlin database from autoscale to manual throughput.
migrate_gremlin_graph_to_autoscaleexecresource_group_name, account_name, database_name, graph_name, subscription_idMigrate an Azure Cosmos DB Gremlin graph from manual throughput to autoscale.
migrate_gremlin_graph_to_manual_throughputexecresource_group_name, account_name, database_name, graph_name, subscription_idMigrate an Azure Cosmos DB Gremlin graph from autoscale to manual throughput.
retrieve_continuous_backup_informationexecresource_group_name, account_name, database_name, graph_name, subscription_idRetrieves continuous backup information for a gremlin graph.

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
account_namestringCosmos DB database account name. Required.
database_namestringCosmos DB database name. Required.
graph_namestringCosmos DB graph name. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
role_assignment_idstringThe GUID for the Role Assignment. Required.
role_definition_idstringThe GUID for the Role Definition. Required.
subscription_idstring

SELECT examples

Gets the Gremlin graph throughput under an existing Azure Cosmos DB database account with the provided name.

SELECT
id,
name,
identity,
location,
resource,
systemData,
tags,
type
FROM azure.cosmosdb.gremlin_resources
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND account_name = '{{ account_name }}' -- required
AND database_name = '{{ database_name }}' -- required
AND graph_name = '{{ graph_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

Lifecycle Methods

Retrieves the list of all Azure Cosmos DB Gremlin Role Definitions.

EXEC azure.cosmosdb.gremlin_resources.list_gremlin_role_definitions 
@resource_group_name='{{ resource_group_name }}' --required,
@account_name='{{ account_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;