master_sites_controllers
Creates, updates, deletes, gets or lists a master_sites_controllers
resource.
Overview
Name | master_sites_controllers |
Type | Resource |
Id | azure.migrate.master_sites_controllers |
Fields
- vw_master_sites_controllers
- master_sites_controllers
Name | Datatype | Description |
---|---|---|
allow_multiple_sites | text | field from the properties object |
customer_storage_account_arm_id | text | field from the properties object |
location | text | The geo-location where the resource lives |
nested_sites | text | field from the properties object |
private_endpoint_connections | text | field from the properties object |
provisioning_state | text | field from the properties object |
public_network_access | text | field from the properties object |
resourceGroupName | text | field from the properties object |
siteName | text | field from the properties object |
sites | text | field from the properties object |
subscriptionId | text | field from the properties object |
tags | text | Resource tags. |
Name | Datatype | Description |
---|---|---|
location | string | The geo-location where the resource lives |
properties | object | Class for site properties. |
tags | object | Resource tags. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | resourceGroupName, siteName, subscriptionId | Get a MasterSite |
list_by_resource_group | SELECT | resourceGroupName, subscriptionId | Get all the sites in the resource group. |
list_by_subscription | SELECT | subscriptionId | List MasterSite resources by subscription ID |
create | INSERT | resourceGroupName, siteName, subscriptionId | Method to create or update a site. |
delete | DELETE | resourceGroupName, siteName, subscriptionId | Method to delete a site. |
update | UPDATE | resourceGroupName, siteName, subscriptionId | Method to update an existing site. |
error_summary | EXEC | resourceGroupName, siteName, subscriptionId | Method to get error summary from master site for an appliance. |
SELECT
examples
List MasterSite resources by subscription ID
- vw_master_sites_controllers
- master_sites_controllers
SELECT
allow_multiple_sites,
customer_storage_account_arm_id,
location,
nested_sites,
private_endpoint_connections,
provisioning_state,
public_network_access,
resourceGroupName,
siteName,
sites,
subscriptionId,
tags
FROM azure.migrate.vw_master_sites_controllers
WHERE subscriptionId = '{{ subscriptionId }}';
SELECT
location,
properties,
tags
FROM azure.migrate.master_sites_controllers
WHERE subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new master_sites_controllers
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.migrate.master_sites_controllers (
resourceGroupName,
siteName,
subscriptionId,
properties,
tags,
location
)
SELECT
'{{ resourceGroupName }}',
'{{ siteName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ tags }}',
'{{ location }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: publicNetworkAccess
value: []
- name: allowMultipleSites
value: boolean
- name: sites
value:
- string
- name: customerStorageAccountArmId
value: string
- name: privateEndpointConnections
value:
- - name: properties
value:
- name: groupIds
value:
- string
- name: provisioningState
value: []
- name: privateEndpoint
value:
- name: id
value: string
- name: privateLinkServiceConnectionState
value:
- name: status
value: []
- name: description
value: string
- name: actionsRequired
value: string
- name: nestedSites
value:
- string
- name: tags
value: object
- name: location
value: string
UPDATE
example
Updates a master_sites_controllers
resource.
/*+ update */
UPDATE azure.migrate.master_sites_controllers
SET
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}'
AND siteName = '{{ siteName }}'
AND subscriptionId = '{{ subscriptionId }}';
DELETE
example
Deletes the specified master_sites_controllers
resource.
/*+ delete */
DELETE FROM azure.migrate.master_sites_controllers
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND siteName = '{{ siteName }}'
AND subscriptionId = '{{ subscriptionId }}';