Help Center/ Virtual Private Cloud/ API Reference/ API V3/ Supplementary Network Interface/ Querying the Number of Supplementary Network Interfaces
Updated on 2024-10-11 GMT+08:00

Querying the Number of Supplementary Network Interfaces

Function

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

Debugging

You can debug this API through automatic authentication in API Explorer.

URI

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

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID.

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

Request Parameters

None

Response Parameters

Status code: 200

Table 2 Response body parameters

Parameter

Type

Description

request_id

String

Request ID.

sub_network_interfaces

Integer

Number of supplementary network interfaces.

Example Requests

Querying the number of supplementary network interfaces.

GET https://{Endpoint}/v3/8c6fb137a48a428aaf9a0229dca4edb3/vpc/sub-network-interfaces/count

Example Responses

Status code: 200

Normal response to the GET operation. For more status codes, see Status Codes.

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

Status Codes

Status Code

Description

200

Normal response to the GET operation. For more status codes, see Status Codes.

Error Codes

See Error Codes.