bare_metal_machine_key_sets
Creates, updates, deletes, gets or lists a bare_metal_machine_key_sets
resource.
Overview
Name | bare_metal_machine_key_sets |
Type | Resource |
Id | azure.nexus.bare_metal_machine_key_sets |
Fields
- vw_bare_metal_machine_key_sets
- bare_metal_machine_key_sets
Name | Datatype | Description |
---|---|---|
azure_group_id | text | field from the properties object |
bareMetalMachineKeySetName | text | field from the properties object |
clusterName | text | field from the properties object |
detailed_status | text | field from the properties object |
detailed_status_message | text | field from the properties object |
expiration | text | field from the properties object |
extended_location | text | field from the properties object |
jump_hosts_allowed | text | field from the properties object |
last_validation | text | field from the properties object |
location | text | The geo-location where the resource lives |
os_group_name | text | field from the properties object |
privilege_level | 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 |
tags | text | Resource tags. |
user_list | text | field from the properties object |
user_list_status | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
extendedLocation | object | |
location | string | The geo-location where the resource lives |
properties | object | |
tags | object | Resource tags. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | bareMetalMachineKeySetName, clusterName, resourceGroupName, subscriptionId | Get bare metal machine key set of the provided cluster. |
list_by_cluster | SELECT | clusterName, resourceGroupName, subscriptionId | Get a list of bare metal machine key sets for the provided cluster. |
create_or_update | INSERT | bareMetalMachineKeySetName, clusterName, resourceGroupName, subscriptionId, data__extendedLocation, data__properties | Create a new bare metal machine key set or update the existing one for the provided cluster. |
delete | DELETE | bareMetalMachineKeySetName, clusterName, resourceGroupName, subscriptionId | Delete the bare metal machine key set of the provided cluster. |
update | UPDATE | bareMetalMachineKeySetName, clusterName, resourceGroupName, subscriptionId | Patch properties of bare metal machine key set for the provided cluster, or update the tags associated with it. Properties and tag updates can be done independently. |
SELECT
examples
Get a list of bare metal machine key sets for the provided cluster.
- vw_bare_metal_machine_key_sets
- bare_metal_machine_key_sets
SELECT
azure_group_id,
bareMetalMachineKeySetName,
clusterName,
detailed_status,
detailed_status_message,
expiration,
extended_location,
jump_hosts_allowed,
last_validation,
location,
os_group_name,
privilege_level,
provisioning_state,
resourceGroupName,
subscriptionId,
tags,
user_list,
user_list_status
FROM azure.nexus.vw_bare_metal_machine_key_sets
WHERE clusterName = '{{ clusterName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
SELECT
extendedLocation,
location,
properties,
tags
FROM azure.nexus.bare_metal_machine_key_sets
WHERE clusterName = '{{ clusterName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new bare_metal_machine_key_sets
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.nexus.bare_metal_machine_key_sets (
bareMetalMachineKeySetName,
clusterName,
resourceGroupName,
subscriptionId,
data__extendedLocation,
data__properties,
extendedLocation,
properties,
tags,
location
)
SELECT
'{{ bareMetalMachineKeySetName }}',
'{{ clusterName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__extendedLocation }}',
'{{ data__properties }}',
'{{ extendedLocation }}',
'{{ properties }}',
'{{ tags }}',
'{{ location }}'
;
- name: your_resource_model_name
props:
- name: extendedLocation
value:
- name: name
value: string
- name: type
value: string
- name: properties
value:
- name: azureGroupId
value: string
- name: detailedStatus
value: string
- name: detailedStatusMessage
value: string
- name: expiration
value: string
- name: jumpHostsAllowed
value:
- string
- name: lastValidation
value: string
- name: osGroupName
value: string
- name: privilegeLevel
value: string
- name: provisioningState
value: string
- name: userList
value:
- - name: azureUserName
value: string
- name: description
value: string
- name: sshPublicKey
value:
- name: keyData
value: string
- name: userPrincipalName
value: string
- name: userListStatus
value:
- - name: azureUserName
value: string
- name: status
value: string
- name: statusMessage
value: string
- name: tags
value: object
- name: location
value: string
UPDATE
example
Updates a bare_metal_machine_key_sets
resource.
/*+ update */
UPDATE azure.nexus.bare_metal_machine_key_sets
SET
properties = '{{ properties }}',
tags = '{{ tags }}'
WHERE
bareMetalMachineKeySetName = '{{ bareMetalMachineKeySetName }}'
AND clusterName = '{{ clusterName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
DELETE
example
Deletes the specified bare_metal_machine_key_sets
resource.
/*+ delete */
DELETE FROM azure.nexus.bare_metal_machine_key_sets
WHERE bareMetalMachineKeySetName = '{{ bareMetalMachineKeySetName }}'
AND clusterName = '{{ clusterName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';