Query SecondaryIp - DescribeSecondaryIp
Overview
Query SecondaryIp (used by UK8S)
Definition
Public Parameters
Parameter Name | Type | Description Information | Required |
---|---|---|---|
Action | string | Corresponding API command name, the current API is DescribeSecondaryIp . | Yes |
PublicKey | string | The user's public key can be obtained from Console (opens in a new tab) | Yes |
Signature | string | User signature generated based on public key and API command, see Signature Algorithm | Yes |
Request Parameters
Parameter Name | Type | Description Information | Required |
---|---|---|---|
Region | string | Region. See List of Regions and Availability Zones | Yes |
ProjectId | string | Project ID. If not filled in, the default project is used, sub-accounts must be filled in. Please refer to the GetProjectList interface. | No |
SubnetId | string | Subnet Id | Yes |
VPCId | string | VPCId | Yes |
Ip | string | IP | No |
Mac | string | Mac | No |
Response Field
Field Name | Type | Description Information | Required |
---|---|---|---|
RetCode | int | Return status code. If it is 0, it means successful return. If it is not 0, it means failure. | Yes |
Action | string | Operation command name. | Yes |
Message | string | Returns an error message, providing detailed description when RetCode is non-zero. | No |
DataSet | array[IpInfo] | No |
Data Model
IpInfo
Field Name | Type | Description Information | Required |
---|---|---|---|
Ip | string | No | |
Mask | string | No | |
Gateway | string | No | |
Mac | string | No | |
SubnetId | string | No | |
VPCId | string | No |
Example
Request Example
https://api.surfercloud.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
}