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_extras.network_cloud.bare_metal_machine_key_sets

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
azureGroupIdstringThe object ID of Azure Active Directory group that all users in the list must be in for access to be granted. Users that are not in the group will not have access. Required.
detailedStatusstringThe more detailed status of the key set. Known values are: "AllActive", "SomeInvalid", "AllInvalid", and "Validating". (AllActive, SomeInvalid, AllInvalid, Validating)
detailedStatusMessagestringThe descriptive message about the current detailed status.
etagstring"If etag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.").
expirationstring (date-time)The date and time after which the users in this key set will be removed from the bare metal machines. Required.
extendedLocationobjectThe extended location of the resource. This property is required when creating the resource. Required.
jumpHostsAllowedarrayThe list of IP addresses of jump hosts with management network access from which a login will be allowed for the users. Required.
lastValidationstring (date-time)The last time this key set was validated.
locationstringThe geo-location where the resource lives. Required.
osGroupNamestringThe name of the group that users will be assigned to on the operating system of the machines.
privilegeLevelstringThe access level allowed for the users in this key set. Required. Known values are: "Standard", "Superuser", and "Other". (Standard, Superuser, Other)
privilegeLevelNamestringThe name of the access level to apply when the privilege level is set to Other.
provisioningStatestringThe provisioning state of the bare metal machine key set. Known values are: "Succeeded", "Failed", "Canceled", "Accepted", and "Provisioning". (Succeeded, Failed, Canceled, Accepted, Provisioning)
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectResource tags.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
userListarrayThe unique list of permitted users. Required.
userListStatusarrayThe status evaluation of each user.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, cluster_name, bare_metal_machine_key_set_name, subscription_idGet bare metal machine key set of the provided cluster.
list_by_clusterselectresource_group_name, cluster_name, subscription_id$top, $skipTokenGet a list of bare metal machine key sets for the provided cluster.
create_or_updateinsertresource_group_name, cluster_name, bare_metal_machine_key_set_name, subscription_id, location, properties, extendedLocationCreate a new bare metal machine key set or update the existing one for the provided cluster.
updateupdateresource_group_name, cluster_name, bare_metal_machine_key_set_name, subscription_idPatch 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.
create_or_updatereplaceresource_group_name, cluster_name, bare_metal_machine_key_set_name, subscription_id, location, properties, extendedLocationCreate a new bare metal machine key set or update the existing one for the provided cluster.
deletedeleteresource_group_name, cluster_name, bare_metal_machine_key_set_name, subscription_idDelete 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
bare_metal_machine_key_set_namestringThe name of the bare metal machine key set. Required.
cluster_namestringThe name of the cluster. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
$skipTokenstringThe opaque token that the server returns to indicate where to continue listing resources from. This is used for paging through large result sets. Default value is None.
$topintegerThe maximum number of resources to return from the operation. Example: '$top=10'. Default value is None.

SELECT examples

Get bare metal machine key set of the provided cluster.

SELECT
id,
name,
azureGroupId,
detailedStatus,
detailedStatusMessage,
etag,
expiration,
extendedLocation,
jumpHostsAllowed,
lastValidation,
location,
osGroupName,
privilegeLevel,
privilegeLevelName,
provisioningState,
systemData,
tags,
type,
userList,
userListStatus
FROM azure_extras.network_cloud.bare_metal_machine_key_sets
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND cluster_name = '{{ cluster_name }}' -- required
AND bare_metal_machine_key_set_name = '{{ bare_metal_machine_key_set_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

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

INSERT INTO azure_extras.network_cloud.bare_metal_machine_key_sets (
tags,
location,
properties,
extendedLocation,
resource_group_name,
cluster_name,
bare_metal_machine_key_set_name,
subscription_id
)
SELECT
'{{ tags }}',
'{{ location }}' /* required */,
'{{ properties }}' /* required */,
'{{ extendedLocation }}' /* required */,
'{{ resource_group_name }}',
'{{ cluster_name }}',
'{{ bare_metal_machine_key_set_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
etag,
extendedLocation,
location,
properties,
systemData,
tags,
type
;

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_extras.network_cloud.bare_metal_machine_key_sets
SET
properties = '{{ properties }}',
tags = '{{ tags }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND cluster_name = '{{ cluster_name }}' --required
AND bare_metal_machine_key_set_name = '{{ bare_metal_machine_key_set_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
etag,
extendedLocation,
location,
properties,
systemData,
tags,
type;

REPLACE examples

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

REPLACE azure_extras.network_cloud.bare_metal_machine_key_sets
SET
tags = '{{ tags }}',
location = '{{ location }}',
properties = '{{ properties }}',
extendedLocation = '{{ extendedLocation }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND cluster_name = '{{ cluster_name }}' --required
AND bare_metal_machine_key_set_name = '{{ bare_metal_machine_key_set_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND location = '{{ location }}' --required
AND properties = '{{ properties }}' --required
AND extendedLocation = '{{ extendedLocation }}' --required
RETURNING
id,
name,
etag,
extendedLocation,
location,
properties,
systemData,
tags,
type;

DELETE examples

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

DELETE FROM azure_extras.network_cloud.bare_metal_machine_key_sets
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND cluster_name = '{{ cluster_name }}' --required
AND bare_metal_machine_key_set_name = '{{ bare_metal_machine_key_set_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;