All Products
Search
Document Center

Performance Testing:GetUserVpcVSwitch

Last Updated:Oct 31, 2024

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
PageNumberintegerYes

The number of the page to return.

1
PageSizeintegerYes

The number of entries to return per page.

1
RegionIdstringYes

The region ID.

cn-hangzhou
VpcIdstringYes

The ID of the virtual private cloud (VPC).

vpc-2ze22scdz2ebdfjasdfjkqhf4pyj

Response parameters

ParameterTypeDescriptionExample
object
Codestring

The system status code.

200
HttpStatusCodeinteger

The HTTP status code.

200
Messagestring

The returned message. If the request was successful, this parameter is left empty.

PageNumberinteger

The number of the returned page.

1
PageSizeinteger

The number of returned entries per page.

5
RequestIdstring

The request ID.

0235E5FC-4C7C-5F0C-843C-FC674F15F947
Successboolean

Indicates whether the request was successful. Valid values:

  • true
  • false
true
VSwitchCountinteger

The number of vSwitches.

6
VSwitchListarray<object>

The vSwitches.

VSwitchobject

The vSwitch.

AvailableIpAddressCountlong

The number of available IP addresses in the vSwitch.

1000
MaxAgentCountinteger

The maximum number of stress testers to be added.

1000
VSwitchIdstring

The vSwitch ID.

vsw-bp1eil9df23rsd8l1sevebiszooj
VSwitchNamestring

The vSwitch name.

my-vswitch
VpcIdstring

The VPC ID.

vpc-wz9bpdaebft6j23fesdf84v2f1um3a

Examples

Sample success responses

JSONformat

{
  "Code": "200",
  "HttpStatusCode": 200,
  "Message": "",
  "PageNumber": 1,
  "PageSize": 5,
  "RequestId": "0235E5FC-4C7C-5F0C-843C-FC674F15F947",
  "Success": true,
  "VSwitchCount": 6,
  "VSwitchList": [
    {
      "AvailableIpAddressCount": 1000,
      "MaxAgentCount": 1000,
      "VSwitchId": "vsw-bp1eil9df23rsd8l1sevebiszooj",
      "VSwitchName": "my-vswitch",
      "VpcId": "vpc-wz9bpdaebft6j23fesdf84v2f1um3a"
    }
  ]
}

Error codes

HTTP status codeError codeError message
403CodeThe specified parameter is invalid.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2022-04-12The Error code has changed. The response structure of the API has changedView Change Details
2022-04-12Add OperationView Change Details