dras
Creates, updates, deletes, gets or lists a dras
resource.
Overview
Name | dras |
Type | Resource |
Id | azure.data_replication.dras |
Fields
- vw_dras
- dras
Name | Datatype | Description |
---|---|---|
id | text | Gets or sets the Id of the resource. |
name | text | Gets or sets the name of the resource. |
authentication_identity | text | field from the properties object |
correlation_id | text | field from the properties object |
custom_properties | text | field from the properties object |
fabricAgentName | text | field from the properties object |
fabricName | text | field from the properties object |
health_errors | text | field from the properties object |
is_responsive | text | field from the properties object |
last_heartbeat | text | field from the properties object |
machine_id | text | field from the properties object |
machine_name | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
resource_access_identity | text | field from the properties object |
subscriptionId | text | field from the properties object |
system_data | text | field from the properties object |
type | text | Gets or sets the type of the resource. |
version_number | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
id | string | Gets or sets the Id of the resource. |
name | string | Gets or sets the name of the resource. |
properties | object | Dra model properties. |
systemData | object | System data required to be defined for Azure resources. |
type | string | Gets or sets the type of the resource. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | fabricAgentName, fabricName, resourceGroupName, subscriptionId | Gets the details of the fabric agent. |
list | SELECT | fabricName, resourceGroupName, subscriptionId | Gets the list of fabric agents in the given fabric. |
create | INSERT | fabricAgentName, fabricName, resourceGroupName, subscriptionId, data__properties | Creates the fabric agent. |
delete | DELETE | fabricAgentName, fabricName, resourceGroupName, subscriptionId | Deletes the fabric agent. |
SELECT
examples
Gets the list of fabric agents in the given fabric.
- vw_dras
- dras
SELECT
id,
name,
authentication_identity,
correlation_id,
custom_properties,
fabricAgentName,
fabricName,
health_errors,
is_responsive,
last_heartbeat,
machine_id,
machine_name,
provisioning_state,
resourceGroupName,
resource_access_identity,
subscriptionId,
system_data,
type,
version_number
FROM azure.data_replication.vw_dras
WHERE fabricName = '{{ fabricName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
SELECT
id,
name,
properties,
systemData,
type
FROM azure.data_replication.dras
WHERE fabricName = '{{ fabricName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new dras
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.data_replication.dras (
fabricAgentName,
fabricName,
resourceGroupName,
subscriptionId,
data__properties,
properties
)
SELECT
'{{ fabricAgentName }}',
'{{ fabricName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: correlationId
value: string
- name: machineId
value: string
- name: machineName
value: string
- name: authenticationIdentity
value:
- name: tenantId
value: string
- name: applicationId
value: string
- name: objectId
value: string
- name: audience
value: string
- name: aadAuthority
value: string
- name: isResponsive
value: boolean
- name: lastHeartbeat
value: string
- name: versionNumber
value: string
- name: provisioningState
value: string
- name: healthErrors
value:
- - name: affectedResourceType
value: string
- name: affectedResourceCorrelationIds
value:
- string
- name: childErrors
value:
- - name: code
value: string
- name: healthCategory
value: string
- name: category
value: string
- name: severity
value: string
- name: source
value: string
- name: creationTime
value: string
- name: isCustomerResolvable
value: boolean
- name: summary
value: string
- name: message
value: string
- name: causes
value: string
- name: recommendation
value: string
- name: code
value: string
- name: healthCategory
value: string
- name: category
value: string
- name: severity
value: string
- name: source
value: string
- name: creationTime
value: string
- name: isCustomerResolvable
value: boolean
- name: summary
value: string
- name: message
value: string
- name: causes
value: string
- name: recommendation
value: string
- name: customProperties
value:
- name: instanceType
value: string
- name: id
value: string
- name: name
value: string
- name: type
value: string
- name: systemData
value: string
DELETE
example
Deletes the specified dras
resource.
/*+ delete */
DELETE FROM azure.data_replication.dras
WHERE fabricAgentName = '{{ fabricAgentName }}'
AND fabricName = '{{ fabricName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';