This API is used to query the flavors available for a notebook instance.
None
GET /v1/{project_id}/notebooks/{id}/flavors
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
id |
Yes |
String |
Notebook instance ID. |
project_id |
Yes |
String |
Project ID. For details, see Obtaining a Project ID. |
None
Status code: 200
Parameter |
Type |
Description |
---|---|---|
flavors |
Array of NotebookFlavor objects |
Flavor list |
Parameter |
Type |
Description |
---|---|---|
arch |
String |
Architecture type. Options: - X86_64 - AARCH64 |
ascend |
AscendInfo object |
NPU information |
billing |
BillingInfo object |
Billing information |
category |
String |
Processor type. Options: - CPU - GPU - ASCEND |
description |
String |
Instance flavor description |
feature |
String |
Flavor category. Options: - DEFAULT: CodeLab - NOTEBOOK: Notebook |
free |
Boolean |
Free flavor or not |
gpu |
GPUInfo object |
GPU information |
id |
String |
Flavor ID |
memory |
Long |
Memory size |
name |
String |
Flavor name |
sold_out |
Boolean |
Whether the resources are sufficient. Options:
|
storages |
Array of strings |
Storage type supported by the flavor. Options:
|
vcpus |
Integer |
Number of vCPUs |
Parameter |
Type |
Description |
---|---|---|
npu |
Integer |
Number of NPUs |
npu_memory |
String |
NPU memory |
type |
String |
NPU type |
None
Status code: 200
OK
{
"flavors" : [ {
"arch" : "X86_64",
"feature" : "NOTEBOOK",
"free" : false,
"storages" : [ "EFS" ],
"id" : "modelarts.vm.cpu.8u",
"category" : "CPU",
"vcpus" : 1,
"memory" : 1048576,
"name" : "CPU: 8vCPUs 32GB",
"description" : "General computing-plus Intel CPU specifications, ideal for compute-intensive applications.",
"billing" : {
"code" : "modelarts.vm.cpu.2u",
"unitNum" : 4
},
"sold_out" : false
} ]
}
Status Code |
Description |
---|---|
200 |
OK |
401 |
Unauthorized |
403 |
Forbidden |
404 |
Not Found |
See Error Codes.