Querying the Cloud Phone Server Flavors

Function

  • API Name

    GetCloudPhoneServerModels

  • Function

    Query the Cloud Phone server flavors.

URI

GET /v1/{project_id}/cloud-phone/server-models?product_type={product_type}

For details, see Table 1.
Table 1 Parameter description

Parameter

Mandatory

Type

Description

project_id

Yes

String

Specifies the project ID.

For details about how to obtain the project ID, see Obtaining a Project ID.

product_type

No

Integer

Specifies the Cloud Phone server type.

  • 0: cloud phone
  • 1: cloud mobile gaming phone

Request

  • Request parameters

    None

  • Example request
    1
    GET https://{CPH Endpoint}/v1/{project_id}/cloud-phone/server-models?product_type=0
    

Response

  • Parameter description

    Parameter

    Type

    Description

    request_id

    String

    Specifies the request ID, which is unique.

    server_models

    Array of objects

    Specifies the Cloud Phone server specifications. For details, see Table 2.

    Table 2 server_model field description

    Parameter

    Type

    Description

    server_model_name

    String

    Specifies the Cloud Phone server flavor. The value can contain a maximum of 64 bytes.

    server_type

    String

    Specifies the model of the Cloud Phone server, for example, Hi1616. The value can contain a maximum of 32 bytes.

    cpu

    Integer

    Specifies the number of CPU cores of the Cloud Phone server.

    memory

    Integer

    Specifies the memory size (GB) of the Cloud Phone server.

    extend_spec

    Object

    Specifies the attribute description of the Cloud Phone server. The value can contain a maximum of 512 bytes.

    product_type

    Integer

    Specifies the product type.

    • 0: cloud phone
    • 1: cloud mobile gaming
  • Example response
    {
        "request_id": "4d4aefaa7b1d4a2bb5637e9d5631342f",
        "server_models": [
            {
                "server_model_name": "physical.rx1.xlarge",
                "server_type": "Hi1616",
                "cpu": 64,
                "memory": 256,
                "extend_spec": {
                   "cpu": "Hi1616(2*32Core*2.4GHz)",
                   "memory": "DDR4 RAM",
                   "disk": "2*1.2T SAS + 800G SSD",
                   "network_interface": "2 x 2*10GE",
                   "gpu": "3*WX5100"
                }
            }
        ]
    }

Returned Values

See Returned Values.

Error Codes

See Error Codes.