Share via


Bmc Key Sets - List By Cluster

List baseboard management controller key sets of the cluster.
Get a list of baseboard management controller key sets for the provided cluster.

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/bmcKeySets?api-version=2025-02-01

URI Parameters

Name In Required Type Description
clusterName
path True

string

pattern: ^([a-zA-Z0-9][a-zA-Z0-9-_]{0,28}[a-zA-Z0-9])$

The name of the cluster.

resourceGroupName
path True

string

minLength: 1
maxLength: 90

The name of the resource group. The name is case insensitive.

subscriptionId
path True

string (uuid)

The ID of the target subscription. The value must be an UUID.

api-version
query True

string

minLength: 1

The API version to use for this operation.

Responses

Name Type Description
200 OK

BmcKeySetList

The resource list has been successfully retrieved.

Other Status Codes

ErrorResponse

Error response describing why the operation failed.

Security

azure_auth

Azure Active Directory OAuth2 Flow.

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation impersonate your user account

Examples

List baseboard management controller key sets of the cluster

Sample request

GET https://management.azure.com/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/clusters/clusterName/bmcKeySets?api-version=2025-02-01

Sample response

{
  "value": [
    {
      "id": "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/clusters/clusterName/bmcKeySets/bmcKeySetName",
      "name": "bmcKeySetName",
      "systemData": {
        "createdAt": "2021-01-22T13:27:03.008Z",
        "createdBy": "identityA",
        "createdByType": "Application",
        "lastModifiedAt": "2021-01-22T13:29:03.001Z",
        "lastModifiedBy": "identityB",
        "lastModifiedByType": "User"
      },
      "type": "Microsoft.NetworkCloud/clusters/bmcKeySets",
      "location": "location",
      "tags": {
        "key1": "myvalue1",
        "key2": "myvalue2"
      },
      "extendedLocation": {
        "type": "CustomLocation",
        "name": "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName"
      },
      "properties": {
        "privilegeLevel": "Administrator",
        "expiration": "2022-12-31T23:59:59.008Z",
        "azureGroupId": "f110271b-XXXX-4163-9b99-214d91660f0e",
        "userList": [
          {
            "azureUserName": "userABC",
            "sshPublicKey": {
              "keyData": "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm"
            },
            "userPrincipalName": "userABC@contoso.com",
            "description": "Needs access for troubleshooting as a part of the support team"
          },
          {
            "azureUserName": "userXYZ",
            "sshPublicKey": {
              "keyData": "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm"
            },
            "userPrincipalName": "userXYZ@contoso.com",
            "description": "Needs access for troubleshooting as a part of the support team"
          }
        ],
        "provisioningState": "Succeeded",
        "userListStatus": [
          {
            "azureUserName": "userABC",
            "status": "Active",
            "statusMessage": "User has been provisioned"
          },
          {
            "azureUserName": "userXYZ",
            "status": "Invalid",
            "statusMessage": "User is not a valid Azure user"
          }
        ],
        "lastValidation": "2022-12-12T12:00:00.008Z",
        "detailedStatus": "SomeInvalid",
        "detailedStatusMessage": "Invalid Azure user(s) were provided: userXYZ"
      }
    }
  ],
  "nextLink": "https://fully.qualified.hyperlink"
}

Definitions

Name Description
BareMetalMachineKeySetUserSetupStatus

The indicator of whether the user is currently deployed for access.

BmcKeySet

BmcKeySet represents the baseboard management controller key set.

BmcKeySetDetailedStatus

The more detailed status of the key set.

BmcKeySetList

BmcKeySetList represents a list of baseboard management controller key sets.

BmcKeySetPrivilegeLevel

The access level allowed for the users in this key set.

BmcKeySetProvisioningState

The provisioning state of the baseboard management controller key set.

createdByType

The type of identity that created the resource.

ErrorAdditionalInfo

The resource management error additional info.

ErrorDetail

The error detail.

ErrorResponse

Error response

ExtendedLocation

ExtendedLocation represents the Azure custom location where the resource will be created.

KeySetUser

KeySetUser represents the properties of the user in the key set.

KeySetUserStatus

KeySetUserStatus represents the status of the key set user.

SshPublicKey

SshPublicKey represents the public key used to authenticate with a resource through SSH.

systemData

Metadata pertaining to creation and last modification of the resource.

BareMetalMachineKeySetUserSetupStatus

The indicator of whether the user is currently deployed for access.

Value Description
Active
Invalid

BmcKeySet

BmcKeySet represents the baseboard management controller key set.

Name Type Description
etag

string

Resource ETag.

extendedLocation

ExtendedLocation

ExtendedLocation represents the Azure custom location where the resource will be created.
The extended location of the cluster associated with the resource.

id

string (arm-id)

Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"

location

string

The geo-location where the resource lives

name

string

The name of the resource

properties.azureGroupId

string

The 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.

properties.detailedStatus

BmcKeySetDetailedStatus

The more detailed status of the key set.

properties.detailedStatusMessage

string

The descriptive message about the current detailed status.

properties.expiration

string (date-time)

The date and time after which the users in this key set will be removed from the baseboard management controllers.

properties.lastValidation

string (date-time)

The last time this key set was validated.

properties.privilegeLevel

BmcKeySetPrivilegeLevel

The access level allowed for the users in this key set.

properties.provisioningState

BmcKeySetProvisioningState

The provisioning state of the baseboard management controller key set.

properties.userList

KeySetUser[]

The unique list of permitted users.

properties.userListStatus

KeySetUserStatus[]

The status evaluation of each user.

systemData

systemData

Azure Resource Manager metadata containing createdBy and modifiedBy information.

tags

object

Resource tags.

type

string

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

BmcKeySetDetailedStatus

The more detailed status of the key set.

Value Description
AllActive
SomeInvalid
AllInvalid
Validating

BmcKeySetList

BmcKeySetList represents a list of baseboard management controller key sets.

Name Type Description
nextLink

string

The link used to get the next page of operations.

value

BmcKeySet[]

The list of baseboard management controller key sets.

BmcKeySetPrivilegeLevel

The access level allowed for the users in this key set.

Value Description
ReadOnly
Administrator

BmcKeySetProvisioningState

The provisioning state of the baseboard management controller key set.

Value Description
Succeeded
Failed
Canceled
Accepted
Provisioning

createdByType

The type of identity that created the resource.

Value Description
User
Application
ManagedIdentity
Key

ErrorAdditionalInfo

The resource management error additional info.

Name Type Description
info

object

The additional info.

type

string

The additional info type.

ErrorDetail

The error detail.

Name Type Description
additionalInfo

ErrorAdditionalInfo[]

The error additional info.

code

string

The error code.

details

ErrorDetail[]

The error details.

message

string

The error message.

target

string

The error target.

ErrorResponse

Error response

Name Type Description
error

ErrorDetail

The error object.

ExtendedLocation

ExtendedLocation represents the Azure custom location where the resource will be created.

Name Type Description
name

string

The resource ID of the extended location on which the resource will be created.

type

string

The extended location type, for example, CustomLocation.

KeySetUser

KeySetUser represents the properties of the user in the key set.

Name Type Description
azureUserName

string

The user name that will be used for access.

description

string

maxLength: 256

The free-form description for this user.

sshPublicKey

SshPublicKey

SshPublicKey represents the public key used to authenticate with a resource through SSH.
The SSH public key that will be provisioned for user access. The user is expected to have the corresponding SSH private key for logging in.

userPrincipalName

string

The user principal name (email format) used to validate this user's group membership.

KeySetUserStatus

KeySetUserStatus represents the status of the key set user.

Name Type Description
azureUserName

string

The user name that will be used for access.

status

BareMetalMachineKeySetUserSetupStatus

The indicator of whether the user is currently deployed for access.

statusMessage

string

maxLength: 256

The additional information describing the current status of this user, if any available.

SshPublicKey

SshPublicKey represents the public key used to authenticate with a resource through SSH.

Name Type Description
keyData

string

minLength: 1

The SSH public key data.

systemData

Metadata pertaining to creation and last modification of the resource.

Name Type Description
createdAt

string (date-time)

The timestamp of resource creation (UTC).

createdBy

string

The identity that created the resource.

createdByType

createdByType

The type of identity that created the resource.

lastModifiedAt

string (date-time)

The timestamp of resource last modification (UTC)

lastModifiedBy

string

The identity that last modified the resource.

lastModifiedByType

createdByType

The type of identity that last modified the resource.