docs
api
Cloud Network(UGN)
GetUGNRouteTable

Get UGN Route Table - GetUGNRouteTable

Overview

Get UGN Route Table

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is GetUGNRouteTable.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
ProjectIdstringProject ID. Leave it blank for the default project. Sub-accounts must fill in. Please refer to the GetProjectList APIYes
UGNIDstringUGN Instance IDYes
TypestringRouting table type, divided into initial routing table, intermediate routing table, and final routing table, with limited values: "Origin"/"Middle"/"FinalYes

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
UGNIDstringUGN Instance IDYes
Routesarray[SimpleRoute]Routing Table, use this for "Origin"/"Middle".Yes
VRoutesarray[VRoute]The routing table corresponding to the network instance, use "Final" for thisYes

Data Model

SimpleRoute

Field NameTypeDescription InformationRequired
DstAddrstringDestination SegmentNo
NextHopIDstringNext Hop Network Instance IDNo
NextHopTypestringNext hop network instance typeNo
NextHopRegionstringRegion of the next hop network instanceNo
NextHopRegionIDintRegion id of the next hop network instanceNo
PriorityintRouting PriorityNo
DenybooleanInvalid due to hitting routing policyNo
Restrictbooleantrue: Invalid due to lower priority than other routes with the same prefixNo
Conflictbooleantrue: Invalid due to the same priority but later insertion into the database than other routes with the same prefix.No
InPolicyIdstringInbound routing policy id in matchNo
InPolicyNamestringInbound routing policy name in matchNo
OutPolicyIdstringOutgoing routing policy id in matchNo
OutPolicyNamestringName of the outbound routing policy in matchNo

VRoute

Field NameTypeDescription InformationRequired
NetworkIdstringNetwork Instance IDNo
Routesarray[SimpleRoute]The route corresponding to this network instanceNo

Example

Request Example

https://api.surfercloud.com/?Action=GetUGNRouteTable
&ProjectId=QCvgkWeh
&UGNID=VwptbMxl
&Type=YlkaMOMa

Response Example

{
  "Action": "GetUGNRouteTableResponse",
  "RetCode": 0,
  "Routes": [
    {
      "DstAddr": "fAHJcMtE",
      "NexthopID": "vZDcdnBj",
      "NexthopRegion": "dgMYWzEd",
      "NexthopRegionID": 1,
      "NexthopType": "gGkNeCqn",
      "Priority": 2
    }
  ],
  "UGNID": "FAQELVHF",
  "VRoutes": "BPilasKo"
}
  • Company
  • ContactUs
  • Blog
Copyright © 2024 SurferCloud All Rights Reserved