Skip to main content

bare_metal_machine_key_sets

Creates, updates, deletes, gets or lists a bare_metal_machine_key_sets resource.

Overview

Namebare_metal_machine_key_sets
TypeResource
Idazure.nexus.bare_metal_machine_key_sets

Fields

The following fields are returned by SELECT queries:

The resource has been successfully retrieved.

NameDatatypeDescription
extendedLocationobjectThe extended location of the cluster associated with the resource. (title: ExtendedLocation represents the Azure custom location where the resource will be created.)
locationstringThe geo-location where the resource lives
propertiesobjectThe list of the resource properties. (title: BareMetalMachineKeySetProperties represents the properties of bare metal machine key set.)
tagsobjectResource tags.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, clusterName, bareMetalMachineKeySetNameGet bare metal machine key set of the provided cluster.
list_by_clusterselectsubscriptionId, resourceGroupName, clusterNameGet a list of bare metal machine key sets for the provided cluster.
create_or_updateinsertsubscriptionId, resourceGroupName, clusterName, bareMetalMachineKeySetName, data__extendedLocation, data__propertiesCreate a new bare metal machine key set or update the existing one for the provided cluster.
updateupdatesubscriptionId, resourceGroupName, clusterName, bareMetalMachineKeySetNamePatch 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.
deletedeletesubscriptionId, resourceGroupName, clusterName, bareMetalMachineKeySetNameDelete the bare metal machine key set of the provided cluster.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
bareMetalMachineKeySetNamestringThe name of the bare metal machine key set.
clusterNamestringThe name of the cluster.
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.

SELECT examples

Get bare metal machine key set of the provided cluster.

SELECT
extendedLocation,
location,
properties,
tags
FROM azure.nexus.bare_metal_machine_key_sets
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND clusterName = '{{ clusterName }}' -- required
AND bareMetalMachineKeySetName = '{{ bareMetalMachineKeySetName }}' -- required
;

INSERT examples

Create a new bare metal machine key set or update the existing one for the provided cluster.

INSERT INTO azure.nexus.bare_metal_machine_key_sets (
data__extendedLocation,
data__properties,
data__tags,
data__location,
subscriptionId,
resourceGroupName,
clusterName,
bareMetalMachineKeySetName
)
SELECT
'{{ extendedLocation }}' /* required */,
'{{ properties }}' /* required */,
'{{ tags }}',
'{{ location }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ clusterName }}',
'{{ bareMetalMachineKeySetName }}'
RETURNING
extendedLocation,
location,
properties,
tags
;

UPDATE examples

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.

UPDATE azure.nexus.bare_metal_machine_key_sets
SET
data__properties = '{{ properties }}',
data__tags = '{{ tags }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND clusterName = '{{ clusterName }}' --required
AND bareMetalMachineKeySetName = '{{ bareMetalMachineKeySetName }}' --required
RETURNING
extendedLocation,
location,
properties,
tags;

DELETE examples

Delete the bare metal machine key set of the provided cluster.

DELETE FROM azure.nexus.bare_metal_machine_key_sets
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND clusterName = '{{ clusterName }}' --required
AND bareMetalMachineKeySetName = '{{ bareMetalMachineKeySetName }}' --required
;