Skip to main content

modelings

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

Overview

Namemodelings
TypeResource
Idazure_extras.intelligent_recommendations.modelings

Fields

NameDatatypeDescription
locationstringThe geo-location where the resource lives
propertiesobjectModeling resource properties.
systemDataobjectMetadata pertaining to creation and last modification of the resource.
tagsobjectResource tags.

Methods

NameAccessible byRequired ParamsDescription
getSELECTaccountName, modelingName, resourceGroupName, subscriptionIdReturns Modeling resources for a given name.
list_by_account_resourceSELECTaccountName, resourceGroupName, subscriptionIdReturns list of Modeling resources for a given Account name.
create_or_updateINSERTaccountName, modelingName, resourceGroupName, subscriptionIdCreates or updates Modeling resource.
deleteDELETEaccountName, modelingName, resourceGroupName, subscriptionIdDeletes Modeling resources of a given name.
updateUPDATEaccountName, modelingName, resourceGroupName, subscriptionIdUpdates Modeling resource details.

SELECT examples

Returns list of Modeling resources for a given Account name.

SELECT
location,
properties,
systemData,
tags
FROM azure_extras.intelligent_recommendations.modelings
WHERE accountName = '{{ accountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure_extras.intelligent_recommendations.modelings (
accountName,
modelingName,
resourceGroupName,
subscriptionId,
tags,
location,
properties,
systemData
)
SELECT
'{{ accountName }}',
'{{ modelingName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ tags }}',
'{{ location }}',
'{{ properties }}',
'{{ systemData }}'
;

UPDATE example

Updates a modelings resource.

/*+ update */
UPDATE azure_extras.intelligent_recommendations.modelings
SET
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
accountName = '{{ accountName }}'
AND modelingName = '{{ modelingName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified modelings resource.

/*+ delete */
DELETE FROM azure_extras.intelligent_recommendations.modelings
WHERE accountName = '{{ accountName }}'
AND modelingName = '{{ modelingName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';