Docs
api
Private Network(UVPC)
DescribeSecondaryIp

Query SecondaryIp - DescribeSecondaryIp

Overview

Query SecondaryIp (used by UK8S)

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is DescribeSecondaryIp.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.No
SubnetIdstringSubnet IdYes
VPCIdstringVPCIdYes
IpstringIPNo
MacstringMacNo

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
DataSetarray[IpInfo]No

Data Model

IpInfo

Field NameTypeDescription InformationRequired
IpstringNo
MaskstringNo
GatewaystringNo
MacstringNo
SubnetIdstringNo
VPCIdstringNo

Example

Request Example

https://api.ucloud-global.com/?Action=DescribeSecondaryIp
&Region=cn-zj
&Zone=cn-zj-01
&ProjectId=AoNgCvkX
&SubnetId=QfAOEXSt
&VPCId=jynlDzxI
&VPCId=gBCuTpQD
&Ip=OgMnUuly
&Mac=ZklzXnCK

Response Example

{
  "Action": "DescribeSecondaryIpResponse",
  "DataSet": [
    {
      "Gateway": "THcrBgtL",
      "Ip": "pzFfyUxt",
      "Mac": "saGJPQnC",
      "Mask": "odqYlFTt",
      "SubnetId": "QGHAqxdN",
      "VPCId": "DCeltDBF"
    },
    {
      "Gateway": "ikjbDLGS",
      "Ip": "EAmSwUhq",
      "Mac": "TfrndLLZ",
      "Mask": "NIJJogNw",
      "SubnetId": "RlQuDqll",
      "VPCId": "RjIGnCAB"
    },
    {
      "Gateway": "xjLsRaUU",
      "Ip": "iiimiQCX",
      "Mac": "VdJDfgBW",
      "Mask": "UwQXlcpQ",
      "SubnetId": "QDqLaStd",
      "VPCId": "odrmxTaN"
    }
  ],
  "RetCode": 0
}