Skip to main content

enterprise_knowledge_graphs

Creates, updates, deletes, gets or lists an enterprise_knowledge_graphs resource.

Overview

Nameenterprise_knowledge_graphs
TypeResource
Idazure_extras.enterprise_knowledge_graph.enterprise_knowledge_graphs

Fields

The following fields are returned by SELECT queries:

The resource provider should return 200 (OK) to indicate that the operation completed successfully.

NameDatatypeDescription
idstringSpecifies the resource ID.
namestringSpecifies the name of the resource.
locationstringSpecifies the location of the resource.
propertiesobjectThe set of properties specific to EnterpriseKnowledgeGraph resource
skuobjectGets or sets the SKU of the resource.
tagsobjectContains resource tags defined as key/value pairs.
typestringSpecifies the type of the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, resourceName, subscriptionIdReturns a EnterpriseKnowledgeGraph service specified by the parameters.
list_by_resource_groupselectresourceGroupName, subscriptionIdReturns all the resources of a particular type belonging to a resource group
listselectsubscriptionIdReturns all the resources of a particular type belonging to a subscription.
createinsertresourceGroupName, resourceName, subscriptionIdCreates a EnterpriseKnowledgeGraph Service. EnterpriseKnowledgeGraph Service is a resource group wide resource type.
updateupdateresourceGroupName, resourceName, subscriptionIdUpdates a EnterpriseKnowledgeGraph Service
deletedeleteresourceGroupName, resourceName, subscriptionIdDeletes a EnterpriseKnowledgeGraph Service from the resource group.

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
resourceGroupNamestringThe name of the EnterpriseKnowledgeGraph resource group in the user subscription.
resourceNamestringThe name of the EnterpriseKnowledgeGraph resource.
subscriptionIdstringAzure Subscription ID.

SELECT examples

Returns a EnterpriseKnowledgeGraph service specified by the parameters.

SELECT
id,
name,
location,
properties,
sku,
tags,
type
FROM azure_extras.enterprise_knowledge_graph.enterprise_knowledge_graphs
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND resourceName = '{{ resourceName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;

INSERT examples

Creates a EnterpriseKnowledgeGraph Service. EnterpriseKnowledgeGraph Service is a resource group wide resource type.

INSERT INTO azure_extras.enterprise_knowledge_graph.enterprise_knowledge_graphs (
data__location,
data__tags,
data__sku,
data__properties,
resourceGroupName,
resourceName,
subscriptionId
)
SELECT
'{{ location }}',
'{{ tags }}',
'{{ sku }}',
'{{ properties }}',
'{{ resourceGroupName }}',
'{{ resourceName }}',
'{{ subscriptionId }}'
RETURNING
id,
name,
location,
properties,
sku,
tags,
type
;

UPDATE examples

Updates a EnterpriseKnowledgeGraph Service

UPDATE azure_extras.enterprise_knowledge_graph.enterprise_knowledge_graphs
SET
data__location = '{{ location }}',
data__tags = '{{ tags }}',
data__sku = '{{ sku }}',
data__properties = '{{ properties }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}' --required
AND resourceName = '{{ resourceName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
RETURNING
id,
name,
location,
properties,
sku,
tags,
type;

DELETE examples

Deletes a EnterpriseKnowledgeGraph Service from the resource group.

DELETE FROM azure_extras.enterprise_knowledge_graph.enterprise_knowledge_graphs
WHERE resourceGroupName = '{{ resourceGroupName }}' --required
AND resourceName = '{{ resourceName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
;