Querying Enterprise Switch Specifications
Function
This API is used to query the enterprise switch specifications available to a tenant.
Authorization Information
Each account has all the permissions required to call all APIs, but IAM users must be assigned the following required identity policy-based permissions. For details about the required permissions, see Permissions Policies and Supported Actions.
|
Action |
Access Level |
Resource Type (*: required) |
Condition Key |
Alias |
Dependencies |
|---|---|---|---|---|---|
|
esw:flavor:list |
List |
- |
- |
- |
- |
URI
GET /v3/{project_id}/l2cg/flavors
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
project_id |
Yes |
String |
|
Request Parameters
None
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
flavors |
Array of Flavor objects |
|
|
request_id |
String |
|
|
Parameter |
Type |
Description |
|---|---|---|
|
name |
String |
|
|
id |
String |
|
|
connections |
Integer |
|
|
bandwidth |
Integer |
|
|
pps |
Integer |
|
|
available_zones |
Array of strings |
|
Example Requests
GET https://{{endpoint}}/v3/060576782980d5762f9ec014dd2f1148/l2cg/flavors
Example Responses
Status code: 200
The GET operation is successful. For more status codes, see Status Codes.
{
"flavors" : [ {
"name" : "l2cg.small.ha",
"id" : "1",
"connections" : 1,
"bandwidth" : 3,
"pps" : 500000,
"available_zones" : [ "cn-southwest-242b", "cn-southwest-242a" ]
}, {
"name" : "l2cg.medium.ha",
"id" : "2",
"connections" : 3,
"bandwidth" : 5,
"pps" : 1000000,
"available_zones" : [ "cn-southwest-242b", "cn-southwest-242a" ]
}, {
"name" : "l2cg.large.ha",
"id" : "3",
"connections" : 6,
"bandwidth" : 10,
"pps" : 2000000,
"available_zones" : [ "cn-southwest-242b", "cn-southwest-242a" ]
} ],
"request_id" : "7c7d90893b78412b49b2075a685fdebd"
}
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
The GET operation is successful. For more status codes, see Status Codes. |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot