NorskManager.describeInstanceType() method

Cloud facts for a machine type: vCPU / memory / architectures, from the Manager’s instance-type cache for provider (default "aws"; "oci" reads its shape list; "cloud-hypervisor" reads the host agents' shapes). Authoritative for capacity ≡ vCPUs. With region (an AWS region / OCI availability domain / Cloud Hypervisor host) it also says whether the type is offered there. Returns undefined when the type is unknown to the provider; a provider or region the Manager does not run rejects with FAILED_PRECONDITION, a cache not yet warm with UNAVAILABLE.

Signature:

describeInstanceType(instanceType: string, options?: {
        provider?: "aws" | "oci" | "cloud-hypervisor";
        region?: string;
    }): Promise<{
        instanceType: string;
        defaultVcpus: number;
        defaultCores: number;
        memoryBytes: number;
        architectures: string[];
        offeredInRegion?: boolean;
    } | undefined>;

Parameters

Parameter Type Description

instanceType

string

options

{ provider?: "aws" | "oci" | "cloud-hypervisor"; region?: string; }

(Optional)

Returns:

Promise<{ instanceType: string; defaultVcpus: number; defaultCores: number; memoryBytes: number; architectures: string[]; offeredInRegion?: boolean; } | undefined>