Skip to main content
GET
/
preview
/
v2
/
instance_skus
/
{id}
Get instance SKU
curl --request GET \
  --url https://api.sfcompute.com/preview/v2/instance_skus/{id} \
  --header 'Authorization: Bearer <token>'
import requests

url = "https://api.sfcompute.com/preview/v2/instance_skus/{id}"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch('https://api.sfcompute.com/preview/v2/instance_skus/{id}', 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.sfcompute.com/preview/v2/instance_skus/{id}",
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.sfcompute.com/preview/v2/instance_skus/{id}"

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.sfcompute.com/preview/v2/instance_skus/{id}")
.header("Authorization", "Bearer <token>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.sfcompute.com/preview/v2/instance_skus/{id}")

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
{
  "object": "instance_sku",
  "id": "isku_k3R-nX9vLm7Qp2Yw5Jd8F",
  "alias": "<string>",
  "region": {
    "value": "<string>",
    "display_value": "<string>"
  },
  "availability_zone": {
    "value": "<string>",
    "display_value": "<string>"
  },
  "accelerator": {
    "value": "<string>",
    "display_value": "<string>"
  },
  "form_factor": {
    "value": "<string>",
    "display_value": "<string>"
  },
  "rdma_type": {
    "display_value": "<string>"
  },
  "num_accelerators": {
    "value": 1,
    "display_value": "<string>"
  },
  "num_vcpus": {
    "value": 1,
    "display_value": "<string>"
  },
  "memory": {
    "value": 1,
    "display_value": "<string>"
  },
  "local_storage": {
    "value": 1,
    "display_value": "<string>"
  },
  "supports_public_ipv4": {
    "value": true,
    "display_value": "<string>"
  }
}
{
"error": {
"type": "authentication_error",
"message": "<string>"
}
}
{
"error": {
"type": "not_found",
"message": "<string>"
}
}
{
"error": {
"type": "api_error",
"message": "<string>"
}
}

Authorizations

Authorization
string
header
required

Create an API token using sf tokens create or at https://sfcompute.com/account/api-keys.

Path Parameters

id
required

Instance SKU ID Accepts the canonical prefix below; additional legacy prefixes are aliased for read compatibility. Writes always emit the canonical form.

Pattern: isku_[0-9a-zA-Z_-]{1,21}
Example:

"isku_k3R-nX9vLm7Qp2Yw5Jd8F"

Response

Instance SKU details.

Instance SKU details. See the instance SKUs guide.

object
string
default:instance_sku
required
read-only
Allowed value: "instance_sku"
id
required

Accepts the canonical prefix below; additional legacy prefixes are aliased for read compatibility. Writes always emit the canonical form.

Pattern: isku_[0-9a-zA-Z_-]{1,21}
Example:

"isku_k3R-nX9vLm7Qp2Yw5Jd8F"

alias
string
required

A short, unique, human-recognizable name for this SKU, e.g. richmond. For display only - reference the SKU by id.

Required string length: 1 - 255
Pattern: [a-zA-Z0-9][a-zA-Z0-9._-]{0,254}
Example:

"my-resource-name"

region
null | object
availability_zone
null | object
accelerator
null | object
form_factor
null | object
rdma_type
null | object
num_accelerators
null | object
num_vcpus
null | object
memory
null | object
local_storage
null | object
supports_public_ipv4
null | object