Help Center/ ModelArts/ API Reference/ Lite Server Management/ Obtaining the Resource Flavor List
Updated on 2026-01-30 GMT+08:00

Obtaining the Resource Flavor List

Function

This API is used to obtain available resource specifications. It is used when you need to know the available resource specifications so that you can select proper configurations when creating or adjusting a Lite Server instance. Before using this API, ensure that you have logged in to the system and have the permission to query resource specifications. After the query, the API returns information about all available resource specifications, including the specification ID, CPU, memory, and storage. If you do not have the required permission or the system does not have available resource specifications, the API returns an error message.

Debugging

You can debug this API through automatic authentication in API Explorer or use the SDK sample code generated by API Explorer.

Authorization Information

Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions.

  • If you are using role/policy-based authorization, see Permissions Policies and Supported Actions for details on the required permissions.
  • If you are using identity policy-based authorization, no identity policy-based permission required for calling this API.

URI

GET /v1/{project_id}/dev-servers/resource-flavors

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Definition: Project ID. For details, see Obtaining a Project ID and Name.

Constraints: The value can contain 1 to 64 characters. Letters, digits, and hyphens (-) are allowed.

Range: N/A

Default Value: N/A

Table 2 Query Parameters

Parameter

Mandatory

Type

Description

server_type

No

String

Definition: Service type.

Constraints: N/A

Range

  • bms: The resource type is Bare Metal Server (BMS).

  • ecs: The resource type is Elastic Cloud Server (ECS)

  • hps: The resource type is supernode server.

Default Value: N/A

arch

No

String

Definition: CPU architecture of the flavor.

Constraints: N/A

Range

  • X86: The CPU architecture is x86.

  • ARM: The CPU architecture is Arm.

Default Value: N/A

charging_mode

No

String

Definition: CPU architecture of the flavor.

Constraints: N/A

Range

  • X86: The CPU architecture is x86.

  • ARM: The CPU architecture is Arm.

Default Value: N/A

Request Parameters

None

Response Parameters

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

current

Integer

Definition: Current page number.

Constraints: N/A

Default Value: N/A

data

Array of ServerResourceFlavorInstanceResponse objects

DevServer flavor list.

pages

Integer

Definition: Total number of pages.

Constraints: N/A

Default Value: N/A

size

Integer

Definition: Number of records on each page.

Constraints: N/A

Default Value: N/A

total

Long

Definition: Total number of records.

Constraints: N/A

Default Value: N/A

Table 4 ServerResourceFlavorInstanceResponse

Parameter

Type

Description

flavor

String

IaaS flavor name.

specification

String

Flavor specifications.

arch

String

Cloud server architecture.

server_type

String

Cloud server type.

sku_code

String

Flavor billing code.

charging_mode

String

Billing mode.

roce_num

Integer

NIC quantity.

count

Integer

Supernode instance nodes.

status

String

Server specifications status.

server_flavors

Array of ServerFlavorInfo objects

Available flavors for supernode scaling.

flavor_type

String

Compute PU type.

availability_zones

Array of AvailabilityZoneResponse objects

AZ and on-sale status.

Table 5 ServerFlavorInfo

Parameter

Type

Description

name

String

Server flavor name.

Table 6 AvailabilityZoneResponse

Parameter

Type

Description

id

String

AZ ID.

is_sold_out

Boolean

Flavor on-sale status.

Status code: 400

Table 7 Response body parameters

Parameter

Type

Description

error_code

String

  • Definition: ModelArts error code.

Range: N/A

error_msg

String

Definition: Error message.

Range: N/A

Status code: 401

Table 8 Response body parameters

Parameter

Type

Description

error_code

String

  • Definition: ModelArts error code.

Range: N/A

error_msg

String

Definition: Error message.

Range: N/A

Status code: 403

Table 9 Response body parameters

Parameter

Type

Description

error_code

String

  • Definition: ModelArts error code.

Range: N/A

error_msg

String

Definition: Error message.

Range: N/A

Status code: 500

Table 10 Response body parameters

Parameter

Type

Description

error_code

String

  • Definition: ModelArts error code.

Range: N/A

error_msg

String

Definition: Error message.

Range: N/A

Example Requests

GET https://{endpoint}/v1/{project_id}/dev-servers/resource-flavors

Example Responses

Status code: 200

Accepted

{
  "current" : 1,
  "data" : [ {
    "arch" : "ARM",
    "availability_zones" : [ {
      "id" : "cn-north-7c",
      "is_sold_out" : false
    }, {
      "id" : "cn-north-7b",
      "is_sold_out" : false
    }, {
      "id" : "cn-north-7a",
      "is_sold_out" : false
    } ],
    "charging_mode" : "COMMON",
    "count" : 1,
    "flavor" : "modelarts.bm.npu.arm.8snt9b3.d.physical",
    "flavor_type" : "ASCEND_SNT9B",
    "roce_num" : 8,
    "server_flavors" : [ {
      "name" : "kat2e.48xlarge.8.376t.physical"
    }, {
      "name" : "kat2e.48xlarge.8.400t.physical"
    } ],
    "server_type" : "ECS",
    "sku_code" : "modelarts.vm.cpu.2u.d",
    "specification" : "8*Snt9b3|8*64GB|192vcpus|768GiB"
  } ],
  "pages" : 1,
  "size" : 1,
  "total" : 1
}

Status Codes

Status Code

Description

200

Accepted

400

Bad Request

401

Unauthorized

403

Forbidden

500

Server Internal Error

Error Codes

See Error Codes.