hyperv_host_controllers
Creates, updates, deletes, gets or lists a hyperv_host_controllers
resource.
Overview
Name | hyperv_host_controllers |
Type | Resource |
Id | azure.migrate.hyperv_host_controllers |
Fields
- vw_hyperv_host_controllers
- hyperv_host_controllers
Name | Datatype | Description |
---|---|---|
created_timestamp | text | field from the properties object |
errors | text | field from the properties object |
fqdn | text | field from the properties object |
hostName | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
run_as_account_id | text | field from the properties object |
siteName | text | field from the properties object |
subscriptionId | text | field from the properties object |
updated_timestamp | text | field from the properties object |
version | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
properties | object | The properties of Hyperv Host |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | hostName, resourceGroupName, siteName, subscriptionId | Get a HypervHost |
list_by_hyperv_site | SELECT | resourceGroupName, siteName, subscriptionId | List HypervHost resources by HypervSite |
create | INSERT | hostName, resourceGroupName, siteName, subscriptionId | Create a HypervHost |
delete | DELETE | hostName, resourceGroupName, siteName, subscriptionId | Delete a HypervHost |
SELECT
examples
List HypervHost resources by HypervSite
- vw_hyperv_host_controllers
- hyperv_host_controllers
SELECT
created_timestamp,
errors,
fqdn,
hostName,
provisioning_state,
resourceGroupName,
run_as_account_id,
siteName,
subscriptionId,
updated_timestamp,
version
FROM azure.migrate.vw_hyperv_host_controllers
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND siteName = '{{ siteName }}'
AND subscriptionId = '{{ subscriptionId }}';
SELECT
properties
FROM azure.migrate.hyperv_host_controllers
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND siteName = '{{ siteName }}'
AND subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new hyperv_host_controllers
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.migrate.hyperv_host_controllers (
hostName,
resourceGroupName,
siteName,
subscriptionId,
properties
)
SELECT
'{{ hostName }}',
'{{ resourceGroupName }}',
'{{ siteName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: createdTimestamp
value: string
- name: updatedTimestamp
value: string
- name: fqdn
value: string
- name: runAsAccountId
value: string
- name: version
value: string
- name: errors
value:
- - name: message
value: string
- name: messageParameters
value: object
- name: applianceName
value: string
- name: id
value: integer
- name: code
value: string
- name: possibleCauses
value: string
- name: recommendedAction
value: string
- name: severity
value: string
- name: summaryMessage
value: string
- name: source
value: []
- name: updatedTimeStamp
value: string
- name: runAsAccountId
value: string
- name: discoveryScope
value: []
- name: provisioningState
value: []
DELETE
example
Deletes the specified hyperv_host_controllers
resource.
/*+ delete */
DELETE FROM azure.migrate.hyperv_host_controllers
WHERE hostName = '{{ hostName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND siteName = '{{ siteName }}'
AND subscriptionId = '{{ subscriptionId }}';