docs
api
Cloud Network(UGN)
DetachUGNNetworks

Batch detach network instances - DetachUGNNetworks

Overview

Batch detach network instances

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is DetachUGNNetworks.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
UGNIDstringUGNIDYes
Networks.NstringNetworkIDYes

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, with enumerated values: VPC/UCVR/...; Region: string, region to which the network instance belongs, 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=DetachUGNNetworks
&Region=cn-zj
&Zone=cn-zj-01
&ProjectId=OYrJdefD
&UGNID=PFsyuYNs
&Networks.N=XYZqarpI
&ProjectId=xAWefAzC

Response Example

{
  "Action": "DetachUGNNetworksResponse",
  "Message": "vwQGcwaD",
  "Networks": [
    {
      "CreateTime": "KSPTmeyt",
      "Name": "RBmdyKKH",
      "NetworkID": "MXqqOBna",
      "RegionID": "cn-zj",
      "Type": "CorznUMt",
      "VNI": 3
    }
  ],
  "RetCode": 0
}
  • Company
  • ContactUs
  • Blog
Copyright © 2024 SurferCloud All Rights Reserved