docs
api
Cloud Network(UGN)
AttachUGNNetworks

Batch attach network instances - AttachUGNNetworks

Overview

Batch attach network instances

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is AttachUGNNetworks.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 left blank, the default project will be used. Sub-accounts must fill in this field. Please refer to the GetProjectListYes
UGNIDstringUGN IDYes
Networks.NstringAn array, with each element containing the following fields: NetworkID: string, representing the network instance ID, such as uvnet-xxxx; Type: string, indicating the network instance type, with enumerated values like VPC/UCVR/…; Region: string, denoting the region where the network instance belongs, for example, cn-sh2; OrgName: string, specifying the project name to which the network instance belongs, such as org-xxx.Yes

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
Networksarray[Network]Array, with each element containing the following fields: NetworkID: string, network instance ID, such as uvnet-xxxx; Type: string, network instance type, enumeration values: VPC/UCVR/...; Region: string, region where the network instance is located, such as cn-sh2; OrgName: string, project name to which the network instance belongs, such as org-xxxYes

Data Model

Network

Field NameTypeDescription InformationRequired
RegionstringRegion of the Network InstanceYes
NetworkIDstringID of the network instance, such as vnet-xxxxxYes
NamestringNetwork Instance NameYes
TypestringNetwork Instance Type: VPC/UCVR/...Yes
OrgNamestringProject name where the network instance is locatedYes
RegionIDintRegion ID of the network instanceNo
OrgIDintID of the project where the network instance is locatedNo
VNIintThe unique identifier of the network instance, such as the tunnel_id of vpcNo
InsertTimeintCreation TimeNo

Example

Request Example

https://api.surfercloud.com/?Action=AttachUGNNetworks
&Region=cn-zj
&Zone=cn-zj-01
&ProjectId=OvrPyXtA
&UGNID=hEUWUHZz
&Networks.N=FOqETOhP
&ProjectId=EoFSIcPY

Response Example

{
  "Action": "AttachUGNNetworksResponse",
  "Message": "NZDutucr",
  "Networks": [
    {
      "CreateTime": "nHkzkLLW",
      "Name": "sXKmMQrv",
      "NetworkID": "aTTLUmtn",
      "RegionID": "cn-zj",
      "Type": "LGChldgl",
      "VNI": 7
    }
  ],
  "RetCode": 0
}
  • Company
  • ContactUs
  • Blog
Copyright © 2024 SurferCloud All Rights Reserved