NorskManager.listInstanceTypes() method
Every instance type a provider offers, each with the regions that offer it, for picking one rather than typing it. known is false for a provider that cannot enumerate (aws, oci), with an empty list; the cloud-hypervisor list is its hosts' shape lists (one host’s with region). Protocol 1.10.
Signature:
listInstanceTypes(options?: {
provider?: "aws" | "oci" | "cloud-hypervisor";
region?: string;
}): Promise<{
known: boolean;
instanceTypes: Array<{
instanceType: string;
defaultVcpus: number;
defaultCores: number;
memoryBytes: number;
architectures: string[];
regions: string[];
}>;
}>;
Parameters
| Parameter | Type | Description |
|---|---|---|
options |
{ provider?: "aws" | "oci" | "cloud-hypervisor"; region?: string; } |
(Optional) |
Returns:
Promise<{ known: boolean; instanceTypes: Array<{ instanceType: string; defaultVcpus: number; defaultCores: number; memoryBytes: number; architectures: string[]; regions: string[]; }>; }>