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

Viewing Details of a Flavor

Function

This API is used to view details of a flavor.

Calling Method

For details, see Calling APIs.

URI

GET /v3/{project_id}/elb/flavors/{flavor_id}

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Specifies the project ID.

flavor_id

Yes

String

Specifies the flavor ID.

Request Parameters

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

Specifies the token used for IAM authentication.

Response Parameters

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

request_id

String

Specifies the request ID. The value is automatically generated.

flavor

Flavor object

Specifies the flavor.

Table 4 Flavor

Parameter

Type

Description

id

String

Specifies the flavor ID.

info

FlavorInfo object

Specifies the flavor metrics.

name

String

Specifies the flavor name.

  • L4_flavor.elb.s1.small

  • L4_flavor.elb.s2.small

  • L4_flavor.elb.s1.medium

  • L4_flavor.elb.s2.medium

  • L4_flavor.elb.s1.large

  • L4_flavor.elb.s2.large

  • L4_flavor.elb.pro.max

  • L7_flavor.elb.s1.small

  • L7_flavor.elb.s2.small

  • L7_flavor.elb.s1.medium

  • L7_flavor.elb.s2.medium

  • L7_flavor.elb.s1.large

  • L7_flavor.elb.s2.large

  • L7_flavor.elb.s1.extra-large

  • L7_flavor.elb.s2.extra-large

  • L7_flavor.elb.pro.max

shared

Boolean

Specifies whether the flavor is available to all users.

  • true indicates that the flavor is available to all users.

  • false indicates that the flavor is available only to a specific user.

project_id

String

Specifies the project ID.

type

String

Specifies the flavor type. The type can be:

  • L4 indicates a Layer-4 flavor.

  • L7 indicates a Layer-7 flavor.

  • gateway indicates the flavor of a gateway load balancer.

  • L4_elastic indicates the minimum Layer-4 flavor for elastic scaling. L7_elastic indicates the minimum Layer-7 flavor for elastic scaling.

  • L4_elastic_max indicates the maximum Layer-4 flavor for elastic scaling. L7_elastic_max indicates the maximum Layer-7 flavor for elastic scaling. gateway_elastic_max indicates the maximum falvor for elastic scaling.

Minimum: 1

Maximum: 32

flavor_sold_out

Boolean

Specifies the flavor is available.

  • true indicates you can create a load balancer with this flavor.

  • false indicates you cannot create a load balancer with this flavor.

public_border_group

String

Specifies the AZ group, for example, center.

category

Integer

Specifies the AZ code. 0 indicates center. 21 indicates homezone.

Table 5 FlavorInfo

Parameter

Type

Description

connection

Integer

Specifies the number of concurrent connections per second.

cps

Integer

Specifies the number of new connections per second.

qps

Integer

Specifies the number of requests per second. This parameter is available only for load balancers at Layer 7.

bandwidth

Integer

Specifies the bandwidth.

lcu

Integer

Specifies the number of LCUs in the flavor. An LCU measures the dimensions on which a dedicated load balancer routes the traffic. The higher value indicates better performance.

https_cps

Integer

Specifies the number of new HTTPS connections. This parameter is available only for load balancers at Layer 7.

Example Requests

Querying details of a flavor

GET https://{ELB_Endpoint}/v3/{project_id}/elb/flavors/{flavor_id}

Example Responses

Status code: 200

Successful request.

{
  "flavor" : {
    "shared" : true,
    "project_id" : "8d53f081ea24444aa95e2bfa942ef6ee",
    "info" : {
      "bandwidth" : 10000000,
      "connection" : 8000000,
      "cps" : 80000,
      "qps" : 160000,
      "lcu" : 100
    },
    "id" : "3588b525-63ed-4b8f-8a03-6aaa9ad1c36a",
    "name" : "L7_flavor.slb.s2.large",
    "type" : "L7",
    "flavor_sold_out" : false
  },
  "request_id" : "3b9fb516-b7bb-4760-9128-4a23dd36ae10"
}

Status Codes

Status Code

Description

200

Successful request.

Error Codes

See Error Codes.