fabrics
Creates, updates, deletes, gets or lists a fabrics
resource.
Overview
Name | fabrics |
Type | Resource |
Id | azure.data_replication.fabrics |
Fields
- vw_fabrics
- fabrics
Name | Datatype | Description |
---|---|---|
id | text | Gets or sets the Id of the resource. |
name | text | Gets or sets the name of the resource. |
custom_properties | text | field from the properties object |
fabricName | text | field from the properties object |
health | text | field from the properties object |
health_errors | text | field from the properties object |
location | text | Gets or sets the location of the fabric. |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
service_endpoint | text | field from the properties object |
service_resource_id | text | field from the properties object |
subscriptionId | text | field from the properties object |
system_data | text | field from the properties object |
tags | text | Gets or sets the resource tags. |
type | text | Gets or sets the type of the resource. |
Name | Datatype | Description |
---|---|---|
id | string | Gets or sets the Id of the resource. |
name | string | Gets or sets the name of the resource. |
location | string | Gets or sets the location of the fabric. |
properties | object | Fabric model properties. |
systemData | object | System data required to be defined for Azure resources. |
tags | object | Gets or sets the resource tags. |
type | string | Gets or sets the type of the resource. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | fabricName, resourceGroupName, subscriptionId | Gets the details of the fabric. |
list | SELECT | resourceGroupName, subscriptionId | Gets the list of fabrics in the given subscription and resource group. |
list_by_subscription | SELECT | subscriptionId | Gets the list of fabrics in the given subscription. |
create | INSERT | fabricName, resourceGroupName, subscriptionId, data__location, data__properties | Creates the fabric. |
delete | DELETE | fabricName, resourceGroupName, subscriptionId | Removes the fabric. |
update | UPDATE | fabricName, resourceGroupName, subscriptionId | Performs update on the fabric. |
SELECT
examples
Gets the list of fabrics in the given subscription.
- vw_fabrics
- fabrics
SELECT
id,
name,
custom_properties,
fabricName,
health,
health_errors,
location,
provisioning_state,
resourceGroupName,
service_endpoint,
service_resource_id,
subscriptionId,
system_data,
tags,
type
FROM azure.data_replication.vw_fabrics
WHERE subscriptionId = '{{ subscriptionId }}';
SELECT
id,
name,
location,
properties,
systemData,
tags,
type
FROM azure.data_replication.fabrics
WHERE subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new fabrics
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.data_replication.fabrics (
fabricName,
resourceGroupName,
subscriptionId,
data__location,
data__properties,
location,
tags,
properties
)
SELECT
'{{ fabricName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__location }}',
'{{ data__properties }}',
'{{ location }}',
'{{ tags }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: location
value: string
- name: tags
value: object
- name: properties
value:
- name: provisioningState
value: string
- name: serviceEndpoint
value: string
- name: serviceResourceId
value: string
- name: health
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
UPDATE
example
Updates a fabrics
resource.
/*+ update */
UPDATE azure.data_replication.fabrics
SET
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
fabricName = '{{ fabricName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
DELETE
example
Deletes the specified fabrics
resource.
/*+ delete */
DELETE FROM azure.data_replication.fabrics
WHERE fabricName = '{{ fabricName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';