# Get Available UK8S Instance Types - GetUK8SAvailableInstanceTypes

## Overview

Get available instance types supported by UK8S nodes.






## Definition

### Public Parameters

| Parameter Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **Action**     | string  | Corresponding API command name, the current API is `GetUK8SAvailableInstanceTypes`.                      | **Yes** |
| **PublicKey**  | string  | AccessKey ID, obtained from [Console](https://console.feb.sg/uaccount/api_manage)                                              | **Yes** |
| **Signature**  | string  | User signature generated based on public key and API command, see [Signature Algorithm](/docs/api/summary/signature.md)  | **Yes** |

### Request Parameters

| Parameter Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **Region** | string | Region. See [Region and Zone List](/docs/api/summary/regionlist) |**Yes**|
| **Zone** | string | Zone. See [Region and Zone List](/docs/api/summary/regionlist) |No|
| **ProjectId** | string | Project ID. Leave it blank for the default project. Sub-accounts must fill in. Please refer to the [GetProjectList API](/docs/api/summary/get_project_list) |No|

### Response Field

| Field Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **RetCode** | int | Return status code. If it is 0, it means successful return. If it is not 0, it means failure. |**Yes**|
| **Action** | string | Operation command name. |**Yes**|
| **Message** | string | Returns an error message, providing detailed description when `RetCode` is non-zero. |No|
| **Status** | string | Available for sale |No|
| **AvailableInstanceTypes** | array[[*UK8SAvailableInstanceType*](#uk8savailableinstancetype)] | Available instance types supported by UK8S. |No|

#### Data Model


#### UK8SAvailableInstanceType

| Field Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **Zone** | string | Availability zone. |No|
| **Name** | string | Instance type name. |No|
| **Status** | string | Instance type status. |No|
| **Description** | string | Instance type description. |No|
| **UHostFamilies** | array[[*InstanceTypeUHostFamily*](#instancetypeuhostfamily)] | UHost families. |No|
| **Disks** | array[[*InstanceTypeDisk*](#instancetypedisk)] | Supported disk configurations. |No|
| **MachineSizes** | array[[*InstanceTypeMachineSize*](#instancetypemachinesize)] | Supported machine sizes. |No|
| **Features** | array[[*InstanceTypeFeature*](#instancetypefeature)] | Instance type features. |No|
| **MachineClass** | string | Machine class. |No|
| **InstanceType** | string | Instance type. |No|
| **ParentType** | string | Parent instance type. |No|
| **GraphicsMemory** | [*InstanceTypeValueRate*](#instancetypevaluerate) | Graphics memory information. |No|
| **Performance** | [*InstanceTypeValueRate*](#instancetypevaluerate) | Performance information. |No|

#### InstanceTypeUHostFamily

| Field Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **Name** | string | Instance family name. |No|
| **CpuFrequency** | string | CPU frequency. |No|
| **CpuPlatforms** | array[[*InstanceTypeCpuPlatform*](#instancetypecpuplatform)] | Supported CPU platforms. |No|

#### InstanceTypeDisk

| Field Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **Name** | string | Disk configuration name. |No|
| **BootDisk** | array[[*InstanceTypeBootDisk*](#instancetypebootdisk)] | Supported boot disk configurations. |No|
| **DataDisk** | array[[*InstanceTypeDataDisk*](#instancetypedatadisk)] | Supported data disk configurations. |No|

#### InstanceTypeMachineSize

| Field Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **Gpu** | int | Number of GPUs. |No|
| **Collection** | array[[*InstanceTypeMachineSizeCollection*](#instancetypemachinesizecollection)] | CPU and memory size combinations. |No|

#### InstanceTypeFeature

| Field Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **Name** | string | Feature name. |No|
| **Modes** | array[[*InstanceTypeFeatureMode*](#instancetypefeaturemode)] | Feature modes. |No|

#### InstanceTypeValueRate

| Field Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **Value** | float | Value. |No|
| **Rate** | int | Rating. |No|

#### InstanceTypeFeatureMode

| Field Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **Name** | string | Mode name. |No|
| **RelatedToImageFeature** | array[string] | Related image features. |No|
| **MinimalCpuPlatform** | array[string] | Minimum CPU platforms. |No|

#### InstanceTypeMachineSizeCollection

| Field Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **Cpu** | int | Number of CPU cores. |No|
| **Memory** | array[int] | Available memory sizes. |No|
| **MinimalCpuPlatform** | array[string] | Minimum CPU platforms. |No|

#### InstanceTypeBootDisk

| Field Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **Name** | string | Boot disk type name. |No|
| **InstantResize** | boolean | Whether instant resizing is supported. |No|
| **MaximalSize** | int | Maximum disk size. |No|
| **Features** | array[string] | Disk features. |No|

#### InstanceTypeDataDisk

| Field Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **Name** | string | Data disk type name. |No|
| **MinimalSize** | int | Minimum disk size. |No|
| **MaximalSize** | int | Maximum disk size. |No|
| **Features** | array[string] | Disk features. |No|

#### InstanceTypeCpuPlatform

| Field Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **Name** | string | CPU platform name. |No|
| **CpuModels** | array[string] | CPU model names. |No|
| **CpuFrequency** | string | CPU frequency. |No|

## Example

### Request Example
    
```
https://api.feb.sg/?Action=GetUK8SAvailableInstanceTypes
&Region=cn-zj
&Zone=cn-zj-01
&ProjectId=yCiRMcyT
```

### Response Example
    
```json
{
  "Action": "GetUK8SAvailableInstanceTypesResponse",
  "AvailableInstanceTypes": [
    "RxpeRdCZ"
  ],
  "RetCode": 0,
  "Status": "OCKLEmML"
}
```





