Get node model configuration - GetUKafkaNodeType
Overview
Get node model configuration
Definition
Public Parameters
| Parameter Name | Type | Description Information | Required |
|---|---|---|---|
| Action | string | Corresponding API command name, the current API is GetUKafkaNodeType. | Yes |
| PublicKey | string | The user’s public key can be obtained from Console  | Yes |
| Signature | string | User signature generated based on public key and API command, see Signature Algorithm | Yes |
Request Parameters
| Parameter Name | Type | Description Information | Required |
|---|---|---|---|
| Region | string | Region. See List of Regions and Availability Zones | Yes |
| Zone | string | Availability zones. See List of Availability Zones | Yes |
| ProjectId | string | Project ID. Leave it blank for the default project. Sub-accounts must fill in. Please refer to the GetProjectList API | No |
| NodeType | string | Returns information for a specified model when passing parameters; returns information for all models when the parameter is empty. | 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 |
| NodeTypeSet | array[InstanceType] | Model information list | Yes |
Data Model
InstanceType
| Field Name | Type | Description Information | Required |
|---|---|---|---|
| DiskSet | DiskSet | Machine Disk Type Information | No |
| CPU | int | Number of CPU cores | No |
| DiskType | string | Disk Type。RSSD represents solid-state cloud disk, SSD represents local solid-state disk, and COMMON represents local SATA disk. | No |
| NodeTypeName | string | Model Name | No |
| Memory | string | Memory Size (Unit MB) | No |
DiskSet
| Field Name | Type | Description Information | Required |
|---|---|---|---|
| Type | string | Disk Type。Boot represents the system disk and Data represents the data disk. | Yes |
| Size | string | Disk Size | Yes |
Example
Request Example
https://api.ucloud-global.com/?Action=GetUKafkaNodeType
&Region=cn-zj
&Zone=cn-zj-01
&InstanceGroupType=PUjASMlY
&ProjectId=iKJxgdAcResponse Example
{
"Action": "GetUKafkaNodeTypeResponse",
"InstanceTypeSet": [
{
"CPU": 2,
"DiskSet": [
{
"Size": 20,
"Type": "Boot"
},
{
"Size": 200,
"Type": "Data"
}
],
"DiskType": "SSD",
"InstanceTypeName": "J1-large",
"IsUseable": "Yes",
"Memory": 4096,
"SuitableRole": [
"k",
"a",
"f",
"k",
"a"
]
},
{
"CPU": 4,
"DiskSet": [
{
"Size": 20,
"Type": "Boot"
},
{
"Size": 400,
"Type": "Data"
}
],
"DiskType": "SSD",
"InstanceTypeName": "J1-xlarge",
"IsUseable": "Yes",
"Memory": 8192,
"SuitableRole": [
"k",
"a",
"f",
"k",
"a"
]
},
{
"CPU": 8,
"DiskSet": [
{
"Size": 20,
"Type": "Boot"
},
{
"Size": 800,
"Type": "Data"
}
],
"DiskType": "SSD",
"InstanceTypeName": "J1-2xlarge",
"IsUseable": "Yes",
"Memory": 16384,
"SuitableRole": [
"k",
"a",
"f",
"k",
"a"
]
},
{
"CPU": 16,
"DiskSet": [
{
"Size": 20,
"Type": "Boot"
},
{
"Size": 1500,
"Type": "Data"
}
],
"DiskType": "SSD",
"InstanceTypeName": "J1-3xlarge",
"IsUseable": "Yes",
"Memory": 32768,
"SuitableRole": [
"k",
"a",
"f",
"k",
"a"
]
},
{
"CPU": 16,
"DiskSet": [
{
"Size": 20,
"Type": "Boot"
},
{
"Size": 2000,
"Type": "Data"
}
],
"DiskType": "SSD",
"InstanceTypeName": "J1-4xlarge",
"IsUseable": "Yes",
"Memory": 65536,
"SuitableRole": [
"k",
"a",
"f",
"k",
"a"
]
},
{
"CPU": 2,
"DiskSet": [
{
"Size": 20,
"Type": "Boot"
},
{
"Size": 500,
"Type": "Data"
}
],
"DiskType": "COMMON",
"InstanceTypeName": "N1-large",
"IsUseable": "Yes",
"Memory": 8192,
"SuitableRole": [
"k",
"a",
"f",
"k",
"a"
]
},
{
"CPU": 4,
"DiskSet": [
{
"Size": 20,
"Type": "Boot"
},
{
"Size": 1000,
"Type": "Data"
}
],
"DiskType": "COMMON",
"InstanceTypeName": "N1-xlarge",
"IsUseable": "Yes",
"Memory": 16384,
"SuitableRole": [
"k",
"a",
"f",
"k",
"a"
]
},
{
"CPU": 8,
"DiskSet": [
{
"Size": 20,
"Type": "Boot"
},
{
"Size": 2000,
"Type": "Data"
}
],
"DiskType": "COMMON",
"InstanceTypeName": "N1-2xlarge",
"IsUseable": "Yes",
"Memory": 32768,
"SuitableRole": [
"k",
"a",
"f",
"k",
"a"
]
},
{
"CPU": 16,
"DiskSet": [
{
"Size": 20,
"Type": "Boot"
},
{
"Size": 2000,
"Type": "Data"
}
],
"DiskType": "COMMON",
"InstanceTypeName": "N1-4xlarge",
"IsUseable": "Yes",
"Memory": 65536,
"SuitableRole": [
"k",
"a",
"f",
"k",
"a"
]
},
{
"CPU": 4,
"DiskSet": [
{
"Size": 20,
"Type": "Boot"
},
{
"Size": 800,
"Type": "Data"
}
],
"DiskType": "SSD_LARGE_DATA",
"InstanceTypeName": "Q1-large",
"IsUseable": "No",
"Memory": 8192,
"SuitableRole": [
"k",
"a",
"f",
"k",
"a"
]
},
{
"CPU": 8,
"DiskSet": [
{
"Size": 20,
"Type": "Boot"
},
{
"Size": 1600,
"Type": "Data"
}
],
"DiskType": "SSD_LARGE_DATA",
"InstanceTypeName": "Q1-xlarge",
"IsUseable": "No",
"Memory": 16384,
"SuitableRole": [
"k",
"a",
"f",
"k",
"a"
]
},
{
"CPU": 16,
"DiskSet": [
{
"Size": 20,
"Type": "Boot"
},
{
"Size": 3700,
"Type": "Data"
}
],
"DiskType": "SSD_LARGE_DATA",
"InstanceTypeName": "Q1-2xlarge",
"IsUseable": "No",
"Memory": 32768,
"SuitableRole": [
"k",
"a",
"f",
"k",
"a"
]
}
],
"Message": "pXAPKgfv",
"RetCode": 0,
"TotalCount": 12
}