Skip to main content

enterprise_knowledge_graphs

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

Overview

Nameenterprise_knowledge_graphs
TypeResource
Idazure_extras.enterprise_knowledge_graph.enterprise_knowledge_graphs

Fields

NameDatatypeDescription
idtextSpecifies the resource ID.
nametextSpecifies the name of the resource.
descriptiontextfield from the properties object
locationtextSpecifies the location of the resource.
metadatatextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
resourceNametextfield from the properties object
skutextThe SKU of the EnterpriseKnowledgeGraph service account.
subscriptionIdtextfield from the properties object
tagstextContains resource tags defined as key/value pairs.
typetextSpecifies the type of the resource.

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, resourceName, subscriptionIdReturns a EnterpriseKnowledgeGraph service specified by the parameters.
listSELECTsubscriptionIdReturns all the resources of a particular type belonging to a subscription.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdReturns all the resources of a particular type belonging to a resource group
createINSERTresourceGroupName, resourceName, subscriptionIdCreates a EnterpriseKnowledgeGraph Service. EnterpriseKnowledgeGraph Service is a resource group wide resource type.
deleteDELETEresourceGroupName, resourceName, subscriptionIdDeletes a EnterpriseKnowledgeGraph Service from the resource group.
updateUPDATEresourceGroupName, resourceName, subscriptionIdUpdates a EnterpriseKnowledgeGraph Service

SELECT examples

Returns all the resources of a particular type belonging to a subscription.

SELECT
id,
name,
description,
location,
metadata,
provisioning_state,
resourceGroupName,
resourceName,
sku,
subscriptionId,
tags,
type
FROM azure_extras.enterprise_knowledge_graph.vw_enterprise_knowledge_graphs
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new enterprise_knowledge_graphs resource.

/*+ create */
INSERT INTO azure_extras.enterprise_knowledge_graph.enterprise_knowledge_graphs (
resourceGroupName,
resourceName,
subscriptionId,
location,
tags,
sku,
properties
)
SELECT
'{{ resourceGroupName }}',
'{{ resourceName }}',
'{{ subscriptionId }}',
'{{ location }}',
'{{ tags }}',
'{{ sku }}',
'{{ properties }}'
;

UPDATE example

Updates a enterprise_knowledge_graphs resource.

/*+ update */
UPDATE azure_extras.enterprise_knowledge_graph.enterprise_knowledge_graphs
SET
location = '{{ location }}',
tags = '{{ tags }}',
sku = '{{ sku }}',
properties = '{{ properties }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified enterprise_knowledge_graphs resource.

/*+ delete */
DELETE FROM azure_extras.enterprise_knowledge_graph.enterprise_knowledge_graphs
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';