Help Center> Virtual Private Cloud> API Reference> API V3> Supplementary Network Interfaces> Querying the Number of Supplementary Network Interfaces
Updated on 2024-04-16 GMT+08:00

Querying the Number of Supplementary Network Interfaces

Function

This API is used to query the number of supplementary network interfaces.

URI

GET /v3/{project_id}/vpc/sub-network-interfaces/count

Table 1 Parameter description

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID.

Request Parameters

None

Response Parameters

When the status code is 200, the response parameters are as follows:

Table 2 Response body parameters

Parameter

Type

Description

request_id

String

Request ID.

sub_network_interfaces

Integer

Number of supplementary network interfaces.

Example Request

Query the number of supplementary network interfaces.
GET https://{Endpoint}/v3/{project_id}/vpc/sub-network-interfaces/count

Example Response

When the status code is 200, the response parameters are as follows:

OK

{
  "sub_network_interfaces" : 2,
  "request_id" : "4a79f1f7-67eb-43be-a8be-eb57ba894f90"
}

Status Codes

Status Code

Description

200

OK

Error Codes

See Error Codes.