Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive

Querying DDM Node Classes Available in an AZ

Updated on 2024-08-02 GMT+08:00

Function

This API is used to query DDM node classes available in an AZ.

Constraints

None

URI

GET /v2/{project_id}/flavors?engine_id={engine_id}&offset={offset}&limit={limit}

Table 1 Path parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID of a tenant in a region

To obtain this value, see Obtaining a Project ID.

Table 2 Query parameters

Parameter

Mandatory

Type

Description

engine_id

Yes

String

Engine ID, which can be obtained by calling the API for querying DDM engine information.

offset

No

Integer

Index offset.

The query starts from the next piece of data indexed by this parameter. The value is 0 by default.

The value must be a positive integer.

limit

No

Integer

Maximum node classes to be queried.

Value range: 1 to 128.

If the parameter value is not specified, 10 node classes are queried by default.

Request Parameters

Table 3 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

User token

You can obtain the token by calling the IAM API used to obtain a user token.

Response Parameters

Status code: 200

Table 4 Response body parameters

Parameter

Type

Description

computeFlavorGroups

Array of ComputeFlavorGroupsInfo objects

Compute flavor information

Table 5 ComputeFlavorGroupsInfo

Parameter

Type

Description

groupType

String

Compute resource architecture type. The value can be x86 or Arm.

computeFlavors

Array of ComputeFlavors objects

Compute flavors

offset

Integer

Which page the server starts returning items

limit

Integer

Number of records displayed on each page

total

Integer

Total number of compute flavors

Table 6 ComputeFlavors

Parameter

Type

Description

id

String

Class ID

typeCode

String

Resource type code

code

String

VM flavor types recorded in DDM

iaasCode

String

VM flavor types recorded by the IaaS layer

cpu

String

Number of vCPUs

mem

String

Memory size in GB

maxConnections

String

Maximum number of connections

serverType

String

Compute resource type

architecture

String

Compute resource architecture type. The value can be x86 or ARM.

azStatus

Map<String,String>

Status of the AZ where node classes are available. The key is the AZ ID and the value is the AZ status. The value can be:

  • normal: indicates that the node classes in the AZ are available.
  • unsupported: indicates that the node classes are not supported by the AZ.
  • sellout: indicates that the node classes in the AZ are sold out.

regionStatus

String

Region status

groupType

String

Compute resource architecture type. The value can be x86 or ARM.

dbType

String

Engine type

extendFields

Map<String,String>

Extension field for storing AZ information

Status code: 400

Table 7 Response body parameters

Parameter

Type

Description

errCode

String

Service error code

externalMessage

String

Error message

Status code: 500

Table 8 Response body parameters

Parameter

Type

Description

errCode

String

Service error code

externalMessage

String

Error message

Example Request

Querying DDM node classes available in an AZ

GET https://{endpoint}/v2/{project_id}/flavors?engine_id={engine_id}&offset={offset}&limit={limit}

Example Response

Status code: 200

OK

{
  "computeFlavorGroups" : [ {
    "offset" : 0,
    "limit" : 128,
    "total" : 6,
    "groupType" : "X86",
    "computeFlavors" : [ {
      "id" : "8f2e696c-a9c1-30bd-af90-25522bc67606",
      "typeCode" : "hws.resource.type.ddm",
      "code" : "ddm.c3.large.2",
      "iaasCode" : "c3.large.2",
      "cpu" : "2",
      "mem" : "4",
      "maxConnections" : "null",
      "serverType" : "KVM",
      "architecture" : "X86",
      "azStatus" : {
        "az2.dc0" : "unsupported",
        "az3xahz" : "normal",
        "az2xahz" : "normal",
        "az1xahz" : "normal"
      },
      "regionStatus" : "normal",
      "dbType" : "DDM",
      "extendFields" : {
        "azCode" : "az2.dc0,az3xahz,az2xahz,az1xahz",
        "azDescription" : "az2.dc0,az3xahz,az2xahz,az1xahz"
      }
    } ]
  }, {
    "offset" : 0,
    "limit" : 128,
    "total" : 3,
    "groupType" : "ARM",
    "computeFlavors" : [ {
      "id" : "87a6cb8b-0c56-3e16-a91d-9b680a1f8b7f",
      "typeCode" : "hws.resource.type.ddm",
      "code" : "ddm.rc6.large.2",
      "iaasCode" : "kc1.xlarge.2",
      "cpu" : "4",
      "mem" : "8",
      "maxConnections" : "null",
      "serverType" : "KVM",
      "architecture" : "ARM",
      "azStatus" : {
        "az2.dc0" : "unsupported",
        "az3xahz" : "normal",
        "az2xahz" : "normal",
        "az1xahz" : "normal"
      },
      "regionStatus" : "normal",
      "groupType" : "null",
      "dbType" : "DDM",
      "extendFields" : {
        "azCode" : "az2.dc0,az3xahz,az2xahz,az1xahz",
        "azDescription" : "az2.dc0,az3xahz,az2xahz,az1xahz"
      }
    } ]
  } ]
}

Status code: 400

bad request

{
  "externalMessage" : "Parameter error.",
  "errCode" : "DBS.280001"
}

Status code: 500

server error

{
  "externalMessage" : "Server failure.",
  "errCode" : "DBS.200412"
}

Status Codes

Status Code

Description

200

OK

400

bad request

500

server error

Error Codes

For details, see Error Codes.

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback