curl --request GET \
--url https://api.mountthor.com/v1/compute/apis/compute.mountthor.com/v1alpha1/namespaces/{namespace}/baremetalmachines/{name} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.mountthor.com/v1/compute/apis/compute.mountthor.com/v1alpha1/namespaces/{namespace}/baremetalmachines/{name}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.mountthor.com/v1/compute/apis/compute.mountthor.com/v1alpha1/namespaces/{namespace}/baremetalmachines/{name}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.mountthor.com/v1/compute/apis/compute.mountthor.com/v1alpha1/namespaces/{namespace}/baremetalmachines/{name}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.mountthor.com/v1/compute/apis/compute.mountthor.com/v1alpha1/namespaces/{namespace}/baremetalmachines/{name}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.mountthor.com/v1/compute/apis/compute.mountthor.com/v1alpha1/namespaces/{namespace}/baremetalmachines/{name}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mountthor.com/v1/compute/apis/compute.mountthor.com/v1alpha1/namespaces/{namespace}/baremetalmachines/{name}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"apiVersion": "compute.mountthor.com/v1alpha1",
"kind": "BareMetalMachine",
"metadata": {
"name": "<string>",
"annotations": {},
"creationTimestamp": "2023-11-07T05:31:56Z",
"deletionTimestamp": "2023-11-07T05:31:56Z",
"generation": 1,
"labels": {},
"namespace": "<string>",
"resourceVersion": "<string>",
"uid": "<string>"
},
"spec": {
"class": "<string>",
"image": "<string>",
"region": "<string>"
},
"status": {
"capacitySource": "<string>",
"failureCode": "InvalidSpec",
"failureMessage": "<string>",
"observedGeneration": 123,
"phase": "Pending",
"readyForAccess": true
}
}{
"apiVersion": "v1",
"kind": "Status",
"status": "Success",
"code": 349,
"message": "<string>",
"reason": "<string>"
}{
"apiVersion": "v1",
"kind": "Status",
"status": "Success",
"code": 349,
"message": "<string>",
"reason": "<string>"
}{
"apiVersion": "v1",
"kind": "Status",
"status": "Success",
"code": 349,
"message": "<string>",
"reason": "<string>"
}{
"apiVersion": "v1",
"kind": "Status",
"status": "Success",
"code": 349,
"message": "<string>",
"reason": "<string>"
}{
"apiVersion": "v1",
"kind": "Status",
"status": "Success",
"code": 349,
"message": "<string>",
"reason": "<string>"
}{
"apiVersion": "v1",
"kind": "Status",
"status": "Success",
"code": 349,
"message": "<string>",
"reason": "<string>"
}{
"apiVersion": "v1",
"kind": "Status",
"status": "Success",
"code": 349,
"message": "<string>",
"reason": "<string>"
}{
"apiVersion": "v1",
"kind": "Status",
"status": "Success",
"code": 349,
"message": "<string>",
"reason": "<string>"
}{
"apiVersion": "v1",
"kind": "Status",
"status": "Success",
"code": 349,
"message": "<string>",
"reason": "<string>"
}{
"apiVersion": "v1",
"kind": "Status",
"status": "Success",
"code": 349,
"message": "<string>",
"reason": "<string>"
}Get Bare Metal Machine
Returns one bare-metal machine by name, including desired state and customer-visible status.
curl --request GET \
--url https://api.mountthor.com/v1/compute/apis/compute.mountthor.com/v1alpha1/namespaces/{namespace}/baremetalmachines/{name} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.mountthor.com/v1/compute/apis/compute.mountthor.com/v1alpha1/namespaces/{namespace}/baremetalmachines/{name}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.mountthor.com/v1/compute/apis/compute.mountthor.com/v1alpha1/namespaces/{namespace}/baremetalmachines/{name}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.mountthor.com/v1/compute/apis/compute.mountthor.com/v1alpha1/namespaces/{namespace}/baremetalmachines/{name}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.mountthor.com/v1/compute/apis/compute.mountthor.com/v1alpha1/namespaces/{namespace}/baremetalmachines/{name}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.mountthor.com/v1/compute/apis/compute.mountthor.com/v1alpha1/namespaces/{namespace}/baremetalmachines/{name}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mountthor.com/v1/compute/apis/compute.mountthor.com/v1alpha1/namespaces/{namespace}/baremetalmachines/{name}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"apiVersion": "compute.mountthor.com/v1alpha1",
"kind": "BareMetalMachine",
"metadata": {
"name": "<string>",
"annotations": {},
"creationTimestamp": "2023-11-07T05:31:56Z",
"deletionTimestamp": "2023-11-07T05:31:56Z",
"generation": 1,
"labels": {},
"namespace": "<string>",
"resourceVersion": "<string>",
"uid": "<string>"
},
"spec": {
"class": "<string>",
"image": "<string>",
"region": "<string>"
},
"status": {
"capacitySource": "<string>",
"failureCode": "InvalidSpec",
"failureMessage": "<string>",
"observedGeneration": 123,
"phase": "Pending",
"readyForAccess": true
}
}{
"apiVersion": "v1",
"kind": "Status",
"status": "Success",
"code": 349,
"message": "<string>",
"reason": "<string>"
}{
"apiVersion": "v1",
"kind": "Status",
"status": "Success",
"code": 349,
"message": "<string>",
"reason": "<string>"
}{
"apiVersion": "v1",
"kind": "Status",
"status": "Success",
"code": 349,
"message": "<string>",
"reason": "<string>"
}{
"apiVersion": "v1",
"kind": "Status",
"status": "Success",
"code": 349,
"message": "<string>",
"reason": "<string>"
}{
"apiVersion": "v1",
"kind": "Status",
"status": "Success",
"code": 349,
"message": "<string>",
"reason": "<string>"
}{
"apiVersion": "v1",
"kind": "Status",
"status": "Success",
"code": 349,
"message": "<string>",
"reason": "<string>"
}{
"apiVersion": "v1",
"kind": "Status",
"status": "Success",
"code": 349,
"message": "<string>",
"reason": "<string>"
}{
"apiVersion": "v1",
"kind": "Status",
"status": "Success",
"code": 349,
"message": "<string>",
"reason": "<string>"
}{
"apiVersion": "v1",
"kind": "Status",
"status": "Success",
"code": 349,
"message": "<string>",
"reason": "<string>"
}{
"apiVersion": "v1",
"kind": "Status",
"status": "Success",
"code": 349,
"message": "<string>",
"reason": "<string>"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Tenant namespace returned by Get Account.
Kubernetes object name for the BareMetalMachine.
Response
Resource returned
Customer-owned bare-metal Mac allocation managed through the Compute API.
Kubernetes API version. Must be compute.mountthor.com/v1alpha1.
compute.mountthor.com/v1alpha1 Kubernetes resource kind. Must be BareMetalMachine.
BareMetalMachine Customer-safe metadata for the BareMetalMachine.
Show child attributes
Show child attributes
BareMetalMachine spec is immutable. Delete and recreate the resource to change it.
Show child attributes
Show child attributes
Observed Mount Thor status for the BareMetalMachine. Customers read status; create and update requests should not set it.
Show child attributes
Show child attributes