targets
Creates, updates, deletes, gets or lists a targets
resource.
Overview
Name | targets |
Type | Resource |
Id | azure.iot_orchestrator.targets |
Fields
- vw_targets
- targets
Name | Datatype | Description |
---|---|---|
name | text | field from the properties object |
components | text | field from the properties object |
extended_location | text | field from the properties object |
location | text | The geo-location where the resource lives |
provisioning_state | text | field from the properties object |
reconciliation_policy | text | field from the properties object |
resourceGroupName | text | field from the properties object |
scope | text | field from the properties object |
subscriptionId | text | field from the properties object |
tags | text | Resource tags. |
topologies | text | field from the properties object |
version | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
extendedLocation | object | Extended location is an extension of Azure locations. They provide a way to use their Azure ARC enabled Kubernetes clusters as target locations for deploying Azure services instances. |
location | string | The geo-location where the resource lives |
properties | object | The properties of a Target resource. |
tags | object | Resource tags. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | name, resourceGroupName, subscriptionId | Get a Target |
list_by_resource_group | SELECT | resourceGroupName, subscriptionId | List Target resources by resource group |
list_by_subscription | SELECT | subscriptionId | List Target resources by subscription ID |
create_or_update | INSERT | name, resourceGroupName, subscriptionId, data__extendedLocation | Create a Target |
delete | DELETE | name, resourceGroupName, subscriptionId | Delete a Target |
update | UPDATE | name, resourceGroupName, subscriptionId | Update a Target |
SELECT
examples
List Target resources by subscription ID
- vw_targets
- targets
SELECT
name,
components,
extended_location,
location,
provisioning_state,
reconciliation_policy,
resourceGroupName,
scope,
subscriptionId,
tags,
topologies,
version
FROM azure.iot_orchestrator.vw_targets
WHERE subscriptionId = '{{ subscriptionId }}';
SELECT
extendedLocation,
location,
properties,
tags
FROM azure.iot_orchestrator.targets
WHERE subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new targets
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.iot_orchestrator.targets (
name,
resourceGroupName,
subscriptionId,
data__extendedLocation,
properties,
extendedLocation,
tags,
location
)
SELECT
'{{ name }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__extendedLocation }}',
'{{ properties }}',
'{{ extendedLocation }}',
'{{ tags }}',
'{{ location }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: components
value:
- - name: dependencies
value:
- string
- name: name
value: string
- name: properties
value: object
- name: type
value: string
- name: scope
value: string
- name: topologies
value:
- - name: bindings
value:
- - name: config
value: object
- name: provider
value: string
- name: role
value: string
- name: reconciliationPolicy
value:
- name: type
value: []
- name: interval
value: string
- name: version
value: string
- name: provisioningState
value: []
- name: extendedLocation
value:
- name: name
value: string
- name: type
value: string
- name: tags
value: object
- name: location
value: string
UPDATE
example
Updates a targets
resource.
/*+ update */
UPDATE azure.iot_orchestrator.targets
SET
tags = '{{ tags }}'
WHERE
name = '{{ name }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
DELETE
example
Deletes the specified targets
resource.
/*+ delete */
DELETE FROM azure.iot_orchestrator.targets
WHERE name = '{{ name }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';