graph_resources_graphs
Creates, updates, deletes, gets or lists a graph_resources_graphs
resource.
Overview
Name | graph_resources_graphs |
Type | Resource |
Id | azure.cosmos_db.graph_resources_graphs |
Fields
The following fields are returned by SELECT
queries:
- get
- list
The Graph resource property was retrieved successfully.
Name | Datatype | Description |
---|---|---|
id | string | The unique resource identifier of the ARM resource. |
name | string | The name of the ARM resource. |
identity | object | Identity for the resource. |
location | string | The location of the resource group to which the resource belongs. |
properties | object | The properties of an Azure Cosmos DB Graph resource. |
tags | object | Tags 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". |
type | string | The type of Azure resource. |
The graph resource properties were retrieved successfully.
Name | Datatype | Description |
---|---|---|
id | string | The unique resource identifier of the ARM resource. |
name | string | The name of the ARM resource. |
identity | object | Identity for the resource. |
location | string | The location of the resource group to which the resource belongs. |
properties | object | The properties of an Azure Cosmos DB Graph resource. |
tags | object | Tags 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". |
type | string | The type of Azure resource. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get | select | subscriptionId , resourceGroupName , accountName , graphName | Gets the Graph resource under an existing Azure Cosmos DB database account with the provided name. | |
list | select | subscriptionId , resourceGroupName , accountName | Lists the graphs under an existing Azure Cosmos DB database account. | |
create_update | insert | subscriptionId , resourceGroupName , accountName , graphName , data__properties | Create or update an Azure Cosmos DB 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.
Name | Datatype | Description |
---|---|---|
accountName | string | Cosmos DB database account name. |
graphName | string | Cosmos DB graph resource name. |
resourceGroupName | string | The name of the resource group. The name is case insensitive. |
subscriptionId | string | The ID of the target subscription. |
SELECT
examples
- get
- list
Gets the Graph resource under an existing Azure Cosmos DB database account with the provided name.
SELECT
id,
name,
identity,
location,
properties,
tags,
type
FROM azure.cosmos_db.graph_resources_graphs
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND accountName = '{{ accountName }}' -- required
AND graphName = '{{ graphName }}' -- required
;
Lists the graphs under an existing Azure Cosmos DB database account.
SELECT
id,
name,
identity,
location,
properties,
tags,
type
FROM azure.cosmos_db.graph_resources_graphs
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND accountName = '{{ accountName }}' -- required
;
INSERT
examples
- create_update
- Manifest
Create or update an Azure Cosmos DB Graph.
INSERT INTO azure.cosmos_db.graph_resources_graphs (
data__properties,
data__location,
data__tags,
data__identity,
subscriptionId,
resourceGroupName,
accountName,
graphName
)
SELECT
'{{ properties }}' /* required */,
'{{ location }}',
'{{ tags }}',
'{{ identity }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ accountName }}',
'{{ graphName }}'
RETURNING
id,
name,
identity,
location,
properties,
tags,
type
;
# Description fields are for documentation purposes
- name: graph_resources_graphs
props:
- name: subscriptionId
value: string
description: Required parameter for the graph_resources_graphs resource.
- name: resourceGroupName
value: string
description: Required parameter for the graph_resources_graphs resource.
- name: accountName
value: string
description: Required parameter for the graph_resources_graphs resource.
- name: graphName
value: string
description: Required parameter for the graph_resources_graphs resource.
- name: properties
value: object
description: |
Properties to create and update Azure Cosmos DB Graph resource.
- name: location
value: string
description: |
The location of the resource group to which the resource belongs.
- name: tags
value: object
description: |
Tags 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".
- name: identity
value: object
description: |
Identity for the resource.