docs
api
Cloud Network(UGN)
describe_ugn_route_rule

Query Routing Rules - DescribeUGNRouteRule

Overview

Query Routing Rules

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is DescribeUGNRouteRule.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. If not filled in, the default project is used, sub-accounts must be filled in. Please refer to the GetProjectList interface.Yes
UGNIdstringUGN IdYes
OffsetintData offset. Default is 0No
LimitintData pagination value. Default is 20No
RouteRuleIds.NstringRouting Rule IdNo

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
UGNRouteRulesarray[RouteRule]Routing Rule InformationNo
TotalCountintThe number of UGNRouteRules fieldsNo

Data Model

RouteRule

Field NameTypeDescription InformationRequired
DstAddrstringDestination AddressYes
NextHopIdstringBelonging Instance Route Next HopYes
NextHopTypestringType of Next Hop in Instance Route OwnershipYes
DeriveRouteTableIdstringBelonging Instance Route Table IdYes
DeriveRouteRuleIdstringBelonging Instance Routing Rule IdYes
DeriveInstanceIdstringBelonging Instance IdYes
PriorityintPriorityYes
RouteRuleIdstringRouting Rule IdYes
DeriveInstanceTypestringBelonging Instance TypeYes
DeriveInstanceRegionstringInstance Region OwnershipYes
RouteRuleTypeintRouting rule type, enumeration value 0: Automatically published LOCAL and dynamic routes
1: Manually published custom routes
Yes
Enablebooleanfalse: Not enabled true: EnabledYes
Rollbackbooleanfalse:Irreversibletrue:ReversibleYes
CreateTimeintCreation TimeYes

Example

Request Example

https://api.surfercloud.com/?Action=DescribeUGNRouteRule
&ProjectId=zDpYQVNi
&UGNId=NfHiAOnF
&RouteRuleIds.n=hJTOlnLD
&OffSet=2
&Limit=3

Response Example

{
  "Action": "DescribeUGNRouteRuleResponse",
  "Message": "success",
  "RetCode": 0,
  "TotalCount": 3,
  "UGNRouteRules": [
    {
      "CreateTime": 4,
      "DeriveInstanceId": "lMFSGSTa",
      "DeriveInstanceType": "vpc",
      "DeriveNexthopId": "CpHHDMEU",
      "DeriveNexthopType": "CeqPNAli",
      "DeriveRouteRuleId": "xYumiZiw",
      "DeriveRouteTableId": "svdfRIed",
      "DstAddr": "vBanLhIQ",
      "Priority": "tAxNlVUZ",
      "RouteRuleId": "SKQbGyfJ",
      "RouteRuleType": 0,
      "State": 1
    }
  ]
}
  • Company
  • ContactUs
  • Blog
Copyright © 2024 SurferCloud All Rights Reserved