web_app_discovery_site_data_sources_controllers
Creates, updates, deletes, gets or lists a web_app_discovery_site_data_sources_controllers
resource.
Overview
Name | web_app_discovery_site_data_sources_controllers |
Type | Resource |
Id | azure.migrate.web_app_discovery_site_data_sources_controllers |
Fields
- vw_web_app_discovery_site_data_sources_controllers
- web_app_discovery_site_data_sources_controllers
Name | Datatype | Description |
---|---|---|
discoverySiteDataSourceName | text | field from the properties object |
discovery_site_id | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
siteName | text | field from the properties object |
subscriptionId | text | field from the properties object |
webAppSiteName | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
properties | object | Discovery site data source properties class. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | discoverySiteDataSourceName, resourceGroupName, siteName, subscriptionId, webAppSiteName | Method to get a Web app data source in site. |
list_by_web_app_site | SELECT | resourceGroupName, siteName, subscriptionId, webAppSiteName | Method to get all Web app data sources in site. |
create | INSERT | discoverySiteDataSourceName, resourceGroupName, siteName, subscriptionId, webAppSiteName | Method to create or update a Web app data source in site. |
delete | DELETE | discoverySiteDataSourceName, resourceGroupName, siteName, subscriptionId, webAppSiteName | Method to delete a Web app data source in site. |
SELECT
examples
Method to get all Web app data sources in site.
- vw_web_app_discovery_site_data_sources_controllers
- web_app_discovery_site_data_sources_controllers
SELECT
discoverySiteDataSourceName,
discovery_site_id,
provisioning_state,
resourceGroupName,
siteName,
subscriptionId,
webAppSiteName
FROM azure.migrate.vw_web_app_discovery_site_data_sources_controllers
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND siteName = '{{ siteName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND webAppSiteName = '{{ webAppSiteName }}';
SELECT
properties
FROM azure.migrate.web_app_discovery_site_data_sources_controllers
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND siteName = '{{ siteName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND webAppSiteName = '{{ webAppSiteName }}';
INSERT
example
Use the following StackQL query and manifest file to create a new web_app_discovery_site_data_sources_controllers
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.migrate.web_app_discovery_site_data_sources_controllers (
discoverySiteDataSourceName,
resourceGroupName,
siteName,
subscriptionId,
webAppSiteName,
properties
)
SELECT
'{{ discoverySiteDataSourceName }}',
'{{ resourceGroupName }}',
'{{ siteName }}',
'{{ subscriptionId }}',
'{{ webAppSiteName }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: discoverySiteId
value: string
- name: provisioningState
value: []
DELETE
example
Deletes the specified web_app_discovery_site_data_sources_controllers
resource.
/*+ delete */
DELETE FROM azure.migrate.web_app_discovery_site_data_sources_controllers
WHERE discoverySiteDataSourceName = '{{ discoverySiteDataSourceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND siteName = '{{ siteName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND webAppSiteName = '{{ webAppSiteName }}';