Skip to main content

instances

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

Overview

Nameinstances
TypeResource
Idazure_extras.dyn365_fraud_protection.instances

Fields

The following fields are returned by SELECT queries:

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 the provision operation request.
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

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_by_resource_groupselectresourceGroupName, subscriptionIdGets all the Dedicated instance for the given resource group.
listselectsubscriptionIdLists all the Dedicated instances for the given subscription.
createinsertresourceGroupName, instanceName, subscriptionId, data__locationProvisions the specified DFP instance based on the configuration specified in the request.
updateupdateresourceGroupName, instanceName, subscriptionIdUpdates the current state of the specified DFP instance.
deletedeleteresourceGroupName, instanceName, subscriptionIdDeletes the specified DFP instance.
check_name_availabilityexeclocation, subscriptionIdCheck the name availability in the target location.

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
instanceNamestringThe name of the DFP instance. It must be at least 3 characters in length, and no more than 63.
locationstringThe region name which the operation will lookup into.
resourceGroupNamestringThe name of the Azure Resource group of which a given DFP instance is part. This name must be at least 1 character in length, and no more than 90.
subscriptionIdstringA unique identifier for a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.

SELECT examples

Gets all the Dedicated instance for the given resource group.

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

INSERT examples

Provisions the specified DFP instance based on the configuration specified in the request.

INSERT INTO azure_extras.dyn365_fraud_protection.instances (
data__properties,
data__location,
data__tags,
resourceGroupName,
instanceName,
subscriptionId
)
SELECT
'{{ properties }}',
'{{ location }}' /* required */,
'{{ tags }}',
'{{ resourceGroupName }}',
'{{ instanceName }}',
'{{ subscriptionId }}'
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type
;

UPDATE examples

Updates the current state of the specified DFP instance.

UPDATE azure_extras.dyn365_fraud_protection.instances
SET
data__tags = '{{ tags }}',
data__properties = '{{ properties }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}' --required
AND instanceName = '{{ instanceName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type;

DELETE examples

Deletes the specified DFP instance.

DELETE FROM azure_extras.dyn365_fraud_protection.instances
WHERE resourceGroupName = '{{ resourceGroupName }}' --required
AND instanceName = '{{ instanceName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
;

Lifecycle Methods

Check the name availability in the target location.

EXEC azure_extras.dyn365_fraud_protection.instances.check_name_availability 
@location='{{ location }}' --required,
@subscriptionId='{{ subscriptionId }}' --required
@@json=
'{
"name": "{{ name }}",
"type": "{{ type }}"
}'
;