Bare Metal Machines - Build or Update - REST API (Azure Azure Operator Nexus - Cloud) (2023)

  • Reference
Work:
Azure Operator Nexus - network cloud
API version:
Review 12/12/2022

Create or update a machine without an operating system.
Create a new bare machine or update the properties of an existing one. All user-initiated requests are rejected because the lifecycle of this asset is managed by the system.

PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/bareMetalMachines/{bareMetalMachineName}?api-version=2022-12-12-preview

Parameter-URI

To doWRequiredTipDescription

to discoverMetalMachineTo do

padWHERE

series

The name of the bare machine.

Sample regular expression:^([a-zA-Z0-9][a-zA-Z0-9]{0,62}[a-zA-Z0-9])$

blushGroupTo do

padWHERE

series

The name of the resource group. The name is not case sensitive.

Subscriptionidentification card

padWHERE

series

Target Subscription ID.

API version

queryWHERE

series

The API version to use for this operation.

Request body

To doRequiredTipDescription
extensive LocationWHERE

Extended localization

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

PlaceWHERE

series

The geographic location where the resource is located

svojstva.bmcConnectionStringWHERE

series

Connection string for the motherboard's management controller, including IP address and protocol.

properties.bmcCredentialsWHERE

Administrative credentials

AdministrativeCredentials represents the administrative credentials for a device that requires password-based authentication.
Controller credentials to manage the motherboard on this barebones machine.

properties.bmcMacAddressWHERE

series

The MAC address of the BMC device.

properties.bootMacAddressWHERE

series

The MAC address of the network adapter connected to the PXE network.

properties.machineDetailsWHERE

series

Custom data provided by the customer.

characteristics. machine nameWHERE

series

Operating system-level host name assigned to this computer.

properties.machineSkuIdWHERE

series

The unique internal SKU ID of the bare machine.

properties.Mode IDWHERE

series

The resource ID of the rack that this bare metal machine resides in.

properties.rackSlotWHERE

round number

The rack slot in which this metal machine is located is arranged from bottom to top, i.e. the lowest slot is 1.

properties. serial numberWHERE

series

Serial number of the bare machine.

tip

object

Brontags.

Answers

To doTipDescription
200 is great

BareMetalMaszyna

Alright

201 Created

BareMetalMaszyna

made

Titles

Azure asynchronous operation: string

Other status codes

FoutAnwoord

An error response that describes why the operation failed.

Security

azure_auth

Przepływ Azure Active Directory OAuth2.

Tip:eed2
Currently:allegedly
Authorization URL:https://login.microsoftonline.com/common/oauth2/authorize

It reaches

To doDescription
impersonate the userimpersonate your account

Examples

Create or update a bare machine

sample request

  • HTTP
  • Java
  • Python
  • To go
  • javascript
PUT https://management.azure.com/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/bareMetalMachines/bareMetalMachineName?api-version=2022-12-12-preview{ "Lokacija": "Lokacija", " oznake": { "key1": "myvalue1", "key2": "myvalue2" }, "extendedLocation": { "type": "CustomLocation", "name": "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/ Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName" }, "properties": { "rackId": "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/racks/rackName", "machineSkuId": "684E-3B16-399E ", "rackSlot": 1, "machineName": "r01c001", "bootMacAddress": "00:00:4e:00:58:af", "bmcMacAddress": "00:00:4f:00:57:00 ", "bmcCredentials": { "username": "bmcuser", "password": "{password}" }, "bmcConnectionString": "bmcconnectionstring", "machineDetails": "Door gebruiker verstrekte machinegegevens.", "serienummer " : "BM1219XXX" }}
(Video) Webinar: Build Apps Easier & Faster with Data APIs | DataStax

Example answer

Status code:
200
{ "id": "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/bareMetalMachines/bareMetalMachineName", "name": "bareMetalMachineName", "systemData": { "createdAt": "2021-01-22T13: 27:03.008Z", "createdBy": "identityA", "createdByType": "Aplikacija", "lastModifiedAt": "2021-01-22T13:29:03.001Z", "lastModifiedBy": "tożsamośćB", "lastModifiedByType" : "Użytkownik" }, "type": "Microsoft.NetworkCloud/bareMetalMachines", "location": "lokalizacja", "tags": { "key1": "myvalue1", "key2": "myvalue2" }, "extendedLocation ": { "type": "CustomLocation", "name": "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName" }, "properties": { "rackId": "/subscriptions/ identifikator_subskrypcji/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/racks/rackName", "machineSkuId": "684E-3B16-399E", "rackSlot": 1, "machineName": "r01c001", "bootMacAddress": "00: 00:4e:00:58:af", "bmcMacAddress": "00:00:4f:00:57:00", "bmcCredentials": { "gebruikersnaam": "bmcuser" }, "bmcConnectionString": "bmcconnectionstring" , "machineDetails": "Imam veliki broj korisnika u državi.", "serialNumber": "BM1219XXX", "provisioningState": "Uspjelo", "clusterId": "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft .NetworkCloud/ clusters/clusterName", "readyState": "True", "cordonStatus": "Uncordoned", "powerState": "On", "hardwareInventory": { "interfaces": [ { "name": "networkInterfaceName" , "macAddress " ": "2C:54:91:88:C9:E3", "linkStatus": "Omhoog", "networkInterfaceId": "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkDevices/ networkDeviceName/networkInterfaces / networkInterfaceName" } ], "additionalHostInformation": "Specifieke informatie over de maszyny..." }, "detailedStatus": "Stepn", "detailedStatusMessage": "DetailedStatusMessage", "serviceTag": "ST1219XXX", " kubernetesNodeName": " node01" , "kubernetesVersion": "1.21", "osImage": "v20220805e", "oamIpv4Address": "192.0.2.1", "oamIpv6Address": "0:0:0:0:0:FFFF: 7F00:0001" , " hardwareValidationStatus": { "result": "Prošlo", "lastValidationTime": "2022-09-30T13:27:03.008Z" }, "hybridAksClustersAssociatedIds": [ "/subscriptions/subscriptionId/resourceGroups/resourceGroupName /providers/Microsoft .NetworkCloud /hybridAksClusters/hybridAksClusterName" ], "virtualMachinesAssociatedIds": [ "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/virtualMachines/virtualMachineName" ] }}
Status code:
201
Azure-AsyncOperation: https://management.azure.com/subscriptions/subscriptionId/providers/Microsoft.NetworkCloud/locations/location/operationStatuses/operationId?api-version=2022-12-12-preview
Response body
{ "id": "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/bareMetalMachines/bareMetalMachineName", "name": "bareMetalMachineName", "systemData": { "createdAt": "2021-01-22T13: 27:03.008Z", "createdBy": "identityA", "createdByType": "Aplikacija", "lastModifiedAt": "2021-01-22T13:29:03.001Z", "lastModifiedBy": "tożsamośćB", "lastModifiedByType" : "Użytkownik" }, "type": "Microsoft.NetworkCloud/bareMetalMachines", "location": "lokalizacja", "tags": { "key1": "myvalue1", "key2": "myvalue2" }, "extendedLocation ": { "type": "CustomLocation", "name": "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName" }, "properties": { "rackId": "/subscriptions/ identifikator_subskrypcji/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/racks/rackName", "machineSkuId": "684E-3B16-399E", "rackSlot": 1, "machineName": "r01c001", "bootMacAddress": "00: 00:4e:00:58:af", "bmcMacAddress": "00:00:4f:00:57:00", "bmcCredentials": { "gebruikersnaam": "bmcuser" }, "bmcConnectionString": "bmcconnectionstring" , "machineDetails": "SerialNumber": "BM1219XXX", "provisioningState": "Zaakceptowano", "clusterId": "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/ clusters/clusterName", "readyState": "True", "cordonStatus": "Uncordoned", "powerState": "On", "hardwareInventory": { "interfaces": [ { "name": "networkInterfaceName", "macAddress " ": "2C:54:91 : 88: C9: E3 "," LinkStatus ":" OMHOOG "," NetworkInterfaceid ":" /Subscriptions/subscription/resourcegroups/resourcegroupName/providers/Microsoft.NamanagenFers/NETWORKCENENSE/NETWORDWORDCENSE/NETWORKCIC/NETWORDWORCICENFORGENCES/NETWORNGENSENCIC/NETWORMENFENCENS /NETWORMENFENCENS/NETWOSTWORCIC/NETWORNENFENCENCIJE " : "Specifieke informatie over de maszyny..." }, "detailedStatus": "Stepn", "detailedStatusMessage": "DetailedStatusMessage", "serviceTag": "ST1219XXX", "kubernetesNodeName": " node01" , "kubernetesVersion": " 1.21", "osImage": "v20220805e", "oamIpv4Address": "192.0.2.1", "oamIpv6Address": "0:0:0:0:0:FFFF:7F00:0001" , " hardwareValidationStatus": { "rezultat ": "Prošlo", "lastValidationTime": "2022-09-30T13:27:03.008Z"}, "hybridAksClustersAssociatedIds": [ "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft .NetworkCloud /hybridAksClusters/hybridAks Naziv klastera" ] , "virtualMachinesAssociatedIds": [ "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/virtualMachines/virtualMachineName" ] }}

Definitions

To doDescription
Administrative credentials

AdministrativeCredentials represents the administrative credentials for a device that requires password-based authentication.

BareMetalMaszyna

BareMetalMachine is a physical machine in a rack.

BareMetalMachineCordonStatus

Bare metal cordon stands for machines.

BareMetalMachineDetailedStatus

Detailed condition of the bare machine.

BareMetalMachineHardwareValidationResult

Hardware check result.

BareMetalMachinePowerState

Power status received from motherboard management controller.

BareMetalMachineProvisioningState

Supply state of the bare machine.

BareMetalMachineReadyState

An indicator of whether a bare computer is ready to accept workloads.

made according to type

The identity type that created the resource.

ErrorAdditional information

Additional information about the resource manager error.

Error details

Error details.

FoutAnwoord

Wrong answer

Extended localization

ExtendedLocation represents the custom Azure location where the resource is created.

Equipment inventory

HardwareInventory shows the hardware configuration of this machine as available to the customer, including information obtained from the model information and ironic inspector.

HardwareInventoryNetworkInterfejs

HardwareInventoryNetworkInterface represents the network interface details as part of the hardware inventory.

Hardware check status

HardwareValidationStatus represents the latest hardware validation details performed for this bare machine.

LldpSąsiad

Outdated guy. This will be removed in the next version. LldpNeighbor presents detailed information about the device connected to the network card.

Nick

Outdated guy. This will be removed in the next version. Nothing represents the network interface card details.

system information

Metadata about the creation and last modification of the resource.

Administrative credentials

AdministrativeCredentials represents the administrative credentials for a device that requires password-based authentication.

(Video) Open Q&A with Intel: How to Leverage API-driven Bare Metal in a Public Cloud World

To doTipDescription
password

series

Device administrator password used during initialization.

username

series

Device administrator username used during initialization.

BareMetalMaszyna

BareMetalMachine is a physical machine in a rack.

To doTipDescription
extensive Location

Extended localization

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

identification card

series

Potpuni kvalificirani ID resursa za resurs. npr. - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

Place

series

The geographic location where the resource is located

To do

series

Source name

svojstva.bmcConnectionString

series

Connection string for the motherboard's management controller, including IP address and protocol.

properties.bmcCredentials

Administrative credentials

AdministrativeCredentials represents the administrative credentials for a device that requires password-based authentication.
Controller credentials to manage the motherboard on this barebones machine.

properties.bmcMacAddress

series

The MAC address of the BMC device.

properties.bootMacAddress

series

The MAC address of the network adapter connected to the PXE network.

characteristics. Cluster ID

series

The resource ID of the cluster to which this physical computer is associated.

properties. cordonStatus

BareMetalMachineCordonStatus

Bare metal cordon stands for machines.

properties.detailedStatus

BareMetalMachineDetailedStatus

Detailed condition of the bare machine.

properties.detailedStatusMessage

series

A descriptive message about the current detailed status.

properties. equipment. inventory

Equipment inventory

HardwareInventory shows the hardware configuration of this machine as available to the customer, including information obtained from the model information and ironic inspector.
Equipment list, including info gleaned from make/model info and from the rude inspector.

properties.hardwareValidationStatus

Hardware check status

HardwareValidationStatus represents the latest hardware validation details performed for this bare machine.
Details of the last hardware check performed on this metal machine.

properties.hybridAksClustersAssociatedIds

series[]

A list of resource IDs for HybridAksClusters with nodes located on this bare machine.

properties.kubernetesNodeName

series

The name of this machine, represented by the host object in the cluster's Kubernetes control plane.

properties.kubernetesVersion

series

The version of Kubernetes running on this computer.

properties.machineDetails

series

Custom data provided by the customer.

characteristics. machine name

series

Operating system-level host name assigned to this computer.

properties.machineSkuId

series

The unique internal SKU ID of the bare machine.

properties.oamIpv4Address

series

The IPv4 address assigned to the physical computer when the cluster was set up.

properties.oamIpv6Address

series

The IPv6 address assigned to the physical computer during cluster setup.

properties.osImage

series

The image that is currently on the operating system disk.

characteristics. power status

BareMetalMachinePowerState

Power status received from motherboard management controller.

properties.provisioningState

BareMetalMachineProvisioningState

Supply state of the bare machine.

properties.Mode ID

series

The resource ID of the rack that this bare metal machine resides in.

properties.rackSlot

round number

The rack slot in which this metal machine is located is arranged from bottom to top, i.e. the lowest slot is 1.

characteristics. wait

BareMetalMachineReadyState

An indicator of whether a bare computer is ready to accept workloads.

properties. serial number

series

Serial number of the bare machine.

properties. Service mark

series

Detected machine service tag value.

svojstva.virtualMachinesAssociatedIds

series[]

List of resource IDs for VMs hosted on this bare machine.

system information

system information

Azure Resource Manager metadata that contains information created and modified by it.

tip

object

Brontags.

tip

series

Tip Zasobu. Np. "Microsoft.Compute/virtualMachines" od "Microsoft.Storage/storageAccounts"

BareMetalMachineCordonStatus

Bare metal cordon stands for machines.

To doTipDescription
Fenced

series

No cordon

series

BareMetalMachineDetailedStatus

Detailed condition of the bare machine.

To doTipDescription
Available

series

Checkout

series

wrong

series

Preparation

series

Equipped

series

accessories

series

BareMetalMachineHardwareValidationResult

Hardware check result.

To doTipDescription
Failure

series

passage

series

BareMetalMachinePowerState

Power status received from motherboard management controller.

To doTipDescription
Van

series

AND

series

BareMetalMachineProvisioningState

Supply state of the bare machine.

(Video) Cluster API Intro and Deep Dive - Yuvaraj Balaji Rao Kakaraparthi & Vince Prignano, VMware

To doTipDescription
Adopted

series

Cancelled

series

lost

series

accessories

series

It worked

series

BareMetalMachineReadyState

An indicator of whether a bare computer is ready to accept workloads.

To doTipDescription
LIE

series

WHERE

series

made according to type

The identity type that created the resource.

To doTipDescription
application

series

Key

series

Managed identity

series

User

series

ErrorAdditional information

Additional information about the resource manager error.

To doTipDescription
information

object

More information.

tip

series

An additional type of information.

Error details

Error details.

To doTipDescription
More information

ErrorAdditional information[]

Additional information about the error.

to code

series

Error code.

details

Error details[]

Error details.

message

series

Error message.

FROM

series

Error target.

FoutAnwoord

Wrong answer

To doTipDescription
wrong

Error details

Error object.

Extended localization

ExtendedLocation represents the custom Azure location where the resource is created.

(Video) Workshop: Arm, Ubuntu, K8s: Build Your Own Cloud for Edge Computing

To doTipDescription
To do

series

The resource ID of the extended location where the resource was created.

tip

series

An extended location type, such as CustomLocation.

Equipment inventory

HardwareInventory shows the hardware configuration of this machine as available to the customer, including information obtained from the model information and ironic inspector.

To doTipDescription
additional information about the host

series

All data extracted from the environment for this machine. This information depends on your specific hardware and configuration.

interfaces

HardwareInventoryNetworkInterfejs[]

List of network interfaces and related details for a bare computer.

nicki

Nick[]

Retired field. This will be removed in the next version. List of network interface cards and related data about a bare metal computer.

HardwareInventoryNetworkInterfejs

HardwareInventoryNetworkInterface represents the network interface details as part of the hardware inventory.

To doTipDescription
pairing status

series

Current connection status.

mac address

series

The MAC address associated with this interface.

To do

series

Interface name.

ID of the network interface

series

The network interface resource ID for the port on the switch to which this machine's interface is connected.

Hardware check status

HardwareValidationStatus represents the latest hardware validation details performed for this bare machine.

To doTipDescription
lastValidationTime

series

Hardware check execution timestamp.

result

BareMetalMachineHardwareValidationResult

Hardware check result.

LldpSąsiad

Outdated guy. This will be removed in the next version. LldpNeighbor presents detailed information about the device connected to the network card.

To doTipDescription
port description

series

Descriptive information about the port on the connected device.

port name

series

The port name assigned by the system of the connected device.

Description of the system

series

Descriptive information about the connected device.

system name

series

Name of the connected device assigned by the system.

Nick

Outdated guy. This will be removed in the next version. Nothing represents the network interface card details.

To doTipDescription
lldpSąsiad

LldpSąsiad

Outdated guy. This will be removed in the next version. LldpNeighbor presents detailed information about the device connected to the network card.
Information about the device connected to this network card.

mac address

series

The MAC address associated with this network adapter.

To do

series

The name of the network adapter/interface.

system information

Metadata about the creation and last modification of the resource.

(Video) Build Your Own Cluster API Provider the Easy Way - Anusha Hegde, VMware & Richard Case, Weaveworks

To doTipDescription
created

series

Resource creation timestamp (UTC).

did

series

The identity that created the resource.

made according to type

made according to type

The identity type that created the resource.

Last changes

series

Resource Last Modified Timestamp (UTC)

last modified

series

The identity that last modified the resource.

lastModifiedByType

made according to type

The identity type last modified by the resource.

Videos

1. TGI Kubernetes 158: Bare metal clusters with Cluster API Tinkerbell
(VMware Cloud Native Apps)
2. Build scalable API based Microservices
(DataStax Developers)
3. Vishal Ghariwala at APIDays Australia: Building an agile foundation for your Enterprise APIs
(SUSE)
4. OCI DevOps: your complete CI/CD platform
(Oracle Learning)
5. Taking Bare Metal to the Clouds with Tinkerbell - Mark Coleman, Equinix Metal
(CNCF [Cloud Native Computing Foundation])
6. Surge 2010 ~ Libcloud: a unified interface into the cloud
(OmniTISurge)

References

Top Articles
Latest Posts
Article information

Author: Lidia Grady

Last Updated: 09/09/2023

Views: 5435

Rating: 4.4 / 5 (65 voted)

Reviews: 88% of readers found this page helpful

Author information

Name: Lidia Grady

Birthday: 1992-01-22

Address: Suite 493 356 Dale Fall, New Wanda, RI 52485

Phone: +29914464387516

Job: Customer Engineer

Hobby: Cryptography, Writing, Dowsing, Stand-up comedy, Calligraphy, Web surfing, Ghost hunting

Introduction: My name is Lidia Grady, I am a thankful, fine, glamorous, lucky, lively, pleasant, shiny person who loves writing and wants to share my knowledge and understanding with you.