Skip to main content

instances

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

Overview

Nameinstances
TypeResource
Idazure_extras.dyn365_fraud_protection.instances

Fields

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
namestringThe name of the resource
locationstringLocation of the DFP resource.
propertiesobjectProperties of DFP resource.
systemDataobjectMetadata pertaining to creation and last modification of the resource.
tagsobjectKey-value pairs of additional resource provisioning properties.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Methods

NameAccessible byRequired ParamsDescription
listSELECTsubscriptionIdLists all the Dedicated instances for the given subscription.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdGets all the Dedicated instance for the given resource group.
createINSERTinstanceName, resourceGroupName, subscriptionId, data__locationProvisions the specified DFP instance based on the configuration specified in the request.
deleteDELETEinstanceName, resourceGroupName, subscriptionIdDeletes the specified DFP instance.
updateUPDATEinstanceName, resourceGroupName, subscriptionIdUpdates the current state of the specified DFP instance.
check_name_availabilityEXEClocation, subscriptionIdCheck the name availability in the target location.

SELECT examples

Lists all the Dedicated instances for the given subscription.

SELECT
id,
name,
location,
properties,
systemData,
tags,
type
FROM azure_extras.dyn365_fraud_protection.instances
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure_extras.dyn365_fraud_protection.instances (
instanceName,
resourceGroupName,
subscriptionId,
data__location,
properties,
location,
tags
)
SELECT
'{{ instanceName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__location }}',
'{{ properties }}',
'{{ location }}',
'{{ tags }}'
;

UPDATE example

Updates a instances resource.

/*+ update */
UPDATE azure_extras.dyn365_fraud_protection.instances
SET
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
instanceName = '{{ instanceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified instances resource.

/*+ delete */
DELETE FROM azure_extras.dyn365_fraud_protection.instances
WHERE instanceName = '{{ instanceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';