Docs
api
Private Network(UVPC)
DescribeInstanceNetworkInterface

Display the network card information bound to the cloud host - DescribeInstanceNetworkInterface

Overview

Display the network card information bound to the cloud host

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is DescribeInstanceNetworkInterface.Yes
PublicKeystringThe user's public key can be obtained from Console (opens in a new tab)Yes
SignaturestringUser signature generated based on public key and API command, see Signature AlgorithmYes

Request Parameters

Parameter NameTypeDescription InformationRequired
RegionstringRegion. See List of Regions and Availability ZonesYes
ProjectIdstringProject ID. If not filled in, the default project is used, sub-accounts must be filled in. Please refer to the GetProjectList interface.Yes
InstanceIdstringUHost IDYes
OffsetintDefault is 0No
LimitintDefault is 20No

Response Field

Field NameTypeDescription InformationRequired
RetCodeintReturn status code. If it is 0, it means successful return. If it is not 0, it means failure.Yes
ActionstringOperation command name.Yes
MessagestringReturns an error message, providing detailed description when RetCode is non-zero.No
NetworkInterfaceSetarray[InstanceNetworkInterface]Virtual Network Card InformationYes

Data Model

InstanceNetworkInterface

Field NameTypeDescription InformationRequired
InterfaceIdstringVirtual Network Card Resource IDYes
VPCIdstringBelonging VPCYes
SubnetIdstringSubnet OwnershipYes
PrivateIpSetarray[string]Associate with the internal network IP. Currently, a network card only supports binding with one internal network IP.Yes
MacAddressstringAssociate MacYes
StatusintBinding StatusYes
NamestringVirtual Network Card NameNo
NetmaskstringPrivate Network IP MaskNo
GatewaystringDefault GatewayNo
AttachInstanceIdstringBind Instance Resource IDNo
DefaultbooleanIs it the default network card bound to the instance? false: No true: YesNo
CreateTimeintCreation TimeNo
RemarkstringNoteNo
TagstringBusiness GroupNo
EIPIdSetarray[string]EIP ID information bound to the virtual network cardNo
FirewallIdSetarray[string]Information of the firewall ID bound to the virtual network cardNo

Example

Request Example

{
	"Action": "DescribeInstanceNetworkInterface",
	"Region": "pre",
	"InstanceId": "uhost-p5ye1u"
}

Response Example

{
  "Action": "DescribeInstanceNetworkInterfaceResponse",
  "NetworkInterfaceSet": [
    {
      "AttachInstanceId": "uhost-p5ye1u",
      "CreateTime": 1513238069,
      "Default": true,
      "Gateway": "10.21.0.1",
      "InterfaceId": "uni-xe1xkj",
      "MacAddress": "52:54:00:7D:24:FF",
      "Name": "chd-2",
      "Netmask": "255.255.0.0",
      "PrivateIpSet": [
        "10.21.180.210"
      ],
      "Remark": "chd",
      "Status": 1,
      "SubnetId": "subnet-pnctmk",
      "Tag": "chd_group",
      "VPCId": "uvnet-lksdw0"
    }
  ],
  "RetCode": 0
}