import_sites_controllers
Creates, updates, deletes, gets or lists a import_sites_controllers
resource.
Overview
Name | import_sites_controllers |
Type | Resource |
Id | azure.migrate.import_sites_controllers |
Fields
- vw_import_sites_controllers
- import_sites_controllers
Name | Datatype | Description |
---|---|---|
discovery_solution_id | text | field from the properties object |
location | text | The geo-location where the resource lives |
master_site_id | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
service_endpoint | text | field from the properties object |
siteName | 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 | The properties of ImportSiteResource |
tags | object | Resource tags. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | resourceGroupName, siteName, subscriptionId | Get a ImportSite |
list_by_resource_group | SELECT | resourceGroupName, subscriptionId | Get all import sites. |
list_by_subscription | SELECT | subscriptionId | List ImportSite resources by subscription ID |
create | INSERT | resourceGroupName, siteName, subscriptionId | Create a ImportSite |
delete | DELETE | resourceGroupName, siteName, subscriptionId | Delete a ImportSite |
update | UPDATE | resourceGroupName, siteName, subscriptionId | Update a ImportSite |
export_uri | EXEC | resourceGroupName, siteName, subscriptionId | Method to export a site. |
import_uri | EXEC | resourceGroupName, siteName, subscriptionId | Method to import a site. |
SELECT
examples
List ImportSite resources by subscription ID
- vw_import_sites_controllers
- import_sites_controllers
SELECT
discovery_solution_id,
location,
master_site_id,
provisioning_state,
resourceGroupName,
service_endpoint,
siteName,
subscriptionId,
tags
FROM azure.migrate.vw_import_sites_controllers
WHERE subscriptionId = '{{ subscriptionId }}';
SELECT
location,
properties,
tags
FROM azure.migrate.import_sites_controllers
WHERE subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new import_sites_controllers
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.migrate.import_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: discoverySolutionId
value: string
- name: masterSiteId
value: string
- name: serviceEndpoint
value: string
- name: provisioningState
value: []
- name: tags
value: object
- name: location
value: string
UPDATE
example
Updates a import_sites_controllers
resource.
/*+ update */
UPDATE azure.migrate.import_sites_controllers
SET
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}'
AND siteName = '{{ siteName }}'
AND subscriptionId = '{{ subscriptionId }}';
DELETE
example
Deletes the specified import_sites_controllers
resource.
/*+ delete */
DELETE FROM azure.migrate.import_sites_controllers
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND siteName = '{{ siteName }}'
AND subscriptionId = '{{ subscriptionId }}';