extensions
Creates, updates, deletes, gets or lists a extensions
resource.
Overview
Name | extensions |
Type | Resource |
Id | azure_stack.azure_stack_hci.extensions |
Fields
- vw_extensions
- extensions
Name | Datatype | Description |
---|---|---|
aggregate_state | text | field from the properties object |
arcSettingName | text | field from the properties object |
clusterName | text | field from the properties object |
extensionName | text | field from the properties object |
extension_parameters | text | field from the properties object |
managed_by | text | field from the properties object |
per_node_extension_details | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
subscriptionId | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
properties | object | Status of Arc Extension for a particular node in HCI Cluster. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | arcSettingName, clusterName, extensionName, resourceGroupName, subscriptionId | Get particular Arc Extension of HCI Cluster. |
list_by_arc_setting | SELECT | arcSettingName, clusterName, resourceGroupName, subscriptionId | List all Extensions under ArcSetting resource. |
create | INSERT | arcSettingName, clusterName, extensionName, resourceGroupName, subscriptionId | Create Extension for HCI cluster. |
delete | DELETE | arcSettingName, clusterName, extensionName, resourceGroupName, subscriptionId | Delete particular Arc Extension of HCI Cluster. |
update | UPDATE | arcSettingName, clusterName, extensionName, resourceGroupName, subscriptionId | Update Extension for HCI cluster. |
upgrade | EXEC | arcSettingName, clusterName, extensionName, resourceGroupName, subscriptionId | Upgrade a particular Arc Extension of HCI Cluster. |
SELECT
examples
List all Extensions under ArcSetting resource.
- vw_extensions
- extensions
SELECT
aggregate_state,
arcSettingName,
clusterName,
extensionName,
extension_parameters,
managed_by,
per_node_extension_details,
provisioning_state,
resourceGroupName,
subscriptionId
FROM azure_stack.azure_stack_hci.vw_extensions
WHERE arcSettingName = '{{ arcSettingName }}'
AND clusterName = '{{ clusterName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
SELECT
properties
FROM azure_stack.azure_stack_hci.extensions
WHERE arcSettingName = '{{ arcSettingName }}'
AND clusterName = '{{ clusterName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new extensions
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure_stack.azure_stack_hci.extensions (
arcSettingName,
clusterName,
extensionName,
resourceGroupName,
subscriptionId,
properties
)
SELECT
'{{ arcSettingName }}',
'{{ clusterName }}',
'{{ extensionName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: provisioningState
value: string
- name: extensionParameters
value:
- name: forceUpdateTag
value: string
- name: publisher
value: string
- name: type
value: string
- name: typeHandlerVersion
value: string
- name: autoUpgradeMinorVersion
value: boolean
- name: settings
value: object
- name: protectedSettings
value: object
- name: enableAutomaticUpgrade
value: boolean
- name: aggregateState
value: string
- name: perNodeExtensionDetails
value:
- - name: name
value: string
- name: extension
value: string
- name: typeHandlerVersion
value: string
- name: state
value: string
- name: instanceView
value:
- name: name
value: string
- name: type
value: string
- name: typeHandlerVersion
value: string
- name: status
value:
- name: code
value: string
- name: level
value: string
- name: displayStatus
value: string
- name: message
value: string
- name: time
value: string
- name: managedBy
value: string
UPDATE
example
Updates a extensions
resource.
/*+ update */
UPDATE azure_stack.azure_stack_hci.extensions
SET
properties = '{{ properties }}'
WHERE
arcSettingName = '{{ arcSettingName }}'
AND clusterName = '{{ clusterName }}'
AND extensionName = '{{ extensionName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
DELETE
example
Deletes the specified extensions
resource.
/*+ delete */
DELETE FROM azure_stack.azure_stack_hci.extensions
WHERE arcSettingName = '{{ arcSettingName }}'
AND clusterName = '{{ clusterName }}'
AND extensionName = '{{ extensionName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';