Professional Documents
Culture Documents
IMaster NCE-Fabric V100R021C10 RESTful API Development Guide
IMaster NCE-Fabric V100R021C10 RESTful API Development Guide
V100R021C10
Issue 01
Date 2022-04-29
and other Huawei trademarks are trademarks of Huawei Technologies Co., Ltd.
All other trademarks and trade names mentioned in this document are the property of their respective
holders.
Notice
The purchased products, services and features are stipulated by the contract made between Huawei and
the customer. All or part of the products, services and features described in this document may not be
within the purchase scope or the usage scope. Unless otherwise specified in the contract, all statements,
information, and recommendations in this document are provided "AS IS" without warranties, guarantees
or representations of any kind, either express or implied.
The information in this document is subject to change without notice. Every effort has been made in the
preparation of this document to ensure accuracy of the contents, but all statements, information, and
recommendations in this document do not constitute a warranty of any kind, express or implied.
Website: https://www.huawei.com
Email: support@huawei.com
Contents
2.11.2 Obtain the URL of the Actual Subscription Notification (Message in XML Format)......................... 3955
2.11.3 Obtain the URL of the Actual Subscription Notification (Message in JSON Format)........................3957
2.11.4 Notification Event Query Within a Specified Period...................................................................................... 3958
2.12 Configuration Transaction API Provided by the Southbound Service..........................................................3960
2.12.1 Overview....................................................................................................................................................................... 3960
2.12.1.1 URI Prefix................................................................................................................................................................... 3960
2.12.1.2 URI Format................................................................................................................................................................ 3961
2.12.1.3 Status Codes............................................................................................................................................................. 3962
2.12.1.4 Error Information.................................................................................................................................................... 3963
2.12.2 Development Example............................................................................................................................................. 3964
2.12.2.1 POST Operation.......................................................................................................................................................3965
2.12.2.2 PUT Operation......................................................................................................................................................... 3966
2.12.2.3 DELETE Operation.................................................................................................................................................. 3967
2.12.2.4 GET Operation......................................................................................................................................................... 3967
2.12.3 API................................................................................................................................................................................... 3968
2.12.3.1 Service Management............................................................................................................................................. 3968
2.12.3.1.1 AOC Northbound API......................................................................................................................................... 3968
2.12.3.1.2 Asynchronous Restoration northbound API of the AOC........................................................................4013
2.12.3.1.3 CLI northbound transparent transmission.................................................................................................. 4043
2.12.3.1.4 Service Consistency............................................................................................................................................. 4049
2.12.3.1.5 Northbound Consistency Collection..............................................................................................................4075
2.12.3.1.6 AOC Device Group Inventory Information API..........................................................................................4085
2.12.3.1.7 AOC commit manager....................................................................................................................................... 4104
2.12.3.1.8 Service Consistency............................................................................................................................................. 4112
2.12.3.2 Device Management.............................................................................................................................................. 4135
2.12.3.2.1 Consistency verification for southbound data...........................................................................................4135
2.12.3.2.2 Device configuration history............................................................................................................................4181
2.12.3.2.3 AocUniRealDeviceRpc........................................................................................................................................ 4215
2.12.3.2.4 AocUniRealDeviceQuery................................................................................................................................... 4219
2.12.3.3 Template Management........................................................................................................................................ 4223
2.12.3.3.1 AOC Template Parameter Northbound API............................................................................................... 4224
2.12.3.3.2 AOC Configuration Template Application Northbound Interface...................................................... 4239
2.12.3.3.3 Northbound API for AOC configuration templates................................................................................. 4276
2.12.3.3.4 AOC Device Template Northbound API....................................................................................................... 4305
2.12.3.4 Resource Management......................................................................................................................................... 4321
2.12.3.4.1 HuaweiNceResourcePoolManager................................................................................................................ 4321
2.13 Notification Reference................................................................................................................................................. 4348
2.13.1 Base Inventory Info (huawei-ac-inventory-base.yang)................................................................................. 4348
2.13.1.1 add-ne........................................................................................................................................................................ 4348
2.13.1.2 ltp-down-clear......................................................................................................................................................... 4352
2.13.1.3 ltp-down.................................................................................................................................................................... 4353
2.13.1.4 add-ltp........................................................................................................................................................................ 4356
192.168.1.125 and 18002 are the northbound floating IP address and port number
of the controller. Set the northbound floating IP address based on the site
requirements. The port number is fixed to 18002.
Request Parameters
authCredi Yes REFEREN For details, see Table Obtaining the token
t CE 1-2. input parameter.
Sample Response
● Response status code 200: OK.
HTTP/1.1 200 OK
Date: Tue,30 Oct 2018 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"data" : {
"token_id" : "**************************************************",
"expiredDate" : "2018-10-30 10:09:23"
},
"errcode" : "0",
"errmsg" : "get token successfully."
}
Response Parameters
Response status code 200: OK.
The values of the URL fields (product, version, interface type, and module name)
are case-sensitive.
URL for a DC's northbound interface: http(s)://IP:port/controller/dc/v2/interface
type/{module name}
Default URL for the iMaster NCE-Fabric's northbound interface: https://IP:18002/
controller/dc/v2/interface type/{module name}
1.2.4 service_name
The iMaster NCE-Fabric supports the service_name field for northbound
interfaces. The field type is string, and has 1 to 255 bytes. This field indicates a
cloud platform name. This field is mandatory during service provisioning through
a northbound interface. The iMaster NCE-Fabric can distinguish services from
different cloud platforms based on the field.
The following example describes how to create a network.
{
"service_name": "openstack11",
"network":
{
"shared": "false",
"name": "liudongtest",
"admin_state_up": "true",
"tenant_id": "6fbe9263116a4b68818cf1edce16bc4"
}
}
The service_name field is mandatory for the creation operation of all modules
through the Neutron APIs.
L2/L3: subnet, network, port, router, router interface
L4-L7: all services
Interface Description
● Interface access path:
https://{ip}:{port}/controller/dc/v2.0/neutronapi/{module name}
If HTTPS is used, the port number is 18002.
Sample:
https://{ip}:{port}/controller/dc/v2.0/neutronapi/networks
NOTE
HTTP and HTTPS are supported, and HTTPS is recommended. In all the sample interface
URIs, HTTPS is used.
● HTTP request mode:
POST/GET/DELETE/PUT
● Parameter format:
application/json;charset=UTF-8
NOTE
Key Value
Content-Type application/json
Accept application/json
Parameter Description
CRUD Description
In computing, CRUD is an acronym for create, retrieve, update, and delete. It refers
to the basic operations of a database or persistence layer in a software system.
CRUD indicates that this parameter can be manually entered in the operation. The
value of Mandatory or Not can be as follows:
For example, in the object model of a network, the parameter tenantId can be
manually entered during network creation and query, and is mandatory during
network creation.
Sample:
POST /controller/dc/v2/neutronapi/networks
{
"network":
{
"status": "ACTIVE",
"subnets": null,
"name": "network_test",
"routerExternal": "false",
"adminStateUp": "false",
"tenantId": "7ce8490f-cf5f-411f-b3e5-d576dfdc7330",
"shared": "false",
"id": "00000000-0000-0000-0000-000000000004",
"physicalNetwork": "physnet1",
"networkType": "vlan",
"segmentationId": 2006
},
"serviceName":"physnet1"
If the request body for creating networks does not contain tenantId, the network
creation operation fails.
1.4 Prerequisites
Table 1-6 Prerequisites for global services
● A northbound interface account has been created and the password has been
changed.
● Devices have been discovered.
● A fabric has been created and devices have been added.
● An L4-L7 resource pool has been created and associated with the fabric.
Devices have been added to the VAS pool.
● Links have been discovered automatically or created manually.
● Host access links have been created.
● Internal and external links have been configured for firewalls.
● Global resources have been created.
● A cloud platform has been created.
● External gateways have been configured on the iMaster NCE-Fabric.
Networks -
Security group rules ● Networks, subnets, and ports have been created.
● Security groups have been created.
IPSec site connection ● Networks, subnets, routers, and gateway ports have
been created.
● SNAT has been set to true for updating a router.
● IKE policies, IPsec policies, router interfaces, and VPN
services have been created.
● An IPsec site connection has been created.
Instances and projects are created on the cloud management platform directly
instead of through the RESTful interfaces. Port management interface on the
RESTful is used when creating instances to assign VMs to use the ports.
All the other service modules are created through invoking the RESTful interfaces.
Interface Mappings
Table 1-8 describes the mappings between all service modules and the RESTful
interfaces.
Table 1-8 Mappings between service modules and the RESTful interfaces
Communication between intranets On the same VPC (the data does not
pass through firewalls)
Special services:
● L2 refers to the data link layer at the second layer of the OSI model. At L2, data is
transmitted based on MAC addresses.
● L3 refers to the network layer at the third layer of the OSI model. At L3, data is
transmitted based on IP addresses.
If port rate limiting or traffic limiting is required, port QoS needs to be configured.
Basic Networking
Only tenant's networks need to be created by invoking the eSDK interface and all
the other steps can be performed on the cloud platform directly. This document
describes the configuration process of creating tenant's networks.
The configuration process varies as users' requests are different. The details are as
follows:
● Communication between the intranet and the Internet: For detailed
configuration process, see 1.6.2 Communication Between an Intranet and
the Internet.
● Communication between the intranet and an external private network: For
detailed configuration process, see 1.6.4 Communication Between an
Intranet and an External Private Network Through IPSec VPN.
● Communication between VPCs: For detailed configuration process, see 1.6.5
Communication Between VPCs.
● Communication within a VPC: For detailed configuration process, see 1.6.6
Communication Within a VPC.
● Traffic limiting of VMs using security groups: For details, see 1.6.7 Traffic
Limiting of VMs Using Security Groups.
Prerequisites
● You have logged in to the management plane.
● You have obtained the passwords for the sopuser, ossuser, and ossadm users
of the node where the hiroer process instance resides. If the service plane is
deployed in cluster mode, you need to obtain the passwords for the sopuser,
ossuser, and ossadm users of the nodes where the active and standby hiroer
process instances reside.
Procedure
Step 1 Modify the configuration parameters to enable the blacklist configuration
function.
1. On the management plane, choose Product > Software Management >
Deploy Product Software from the main menu.
2. On the Deploy Product Software page, click the product with configurations
to be modified. The page for the product details is displayed.
3. In the upper right corner of the page, click More and choose Modify
Configurations from the drop-down menu.
NOTE
Exercise caution when performing this operation. Incorrect parameters may cause
configuration failures or even system unavailability.
4. Set enableBlacklist to true and perform operations as prompted.
NOTE
If the service plane is deployed in single-server mode, log in to the node where the
hiroer process instance resides. For details about how to obtain the IP address of the
node where the hiroer process instance resides.
2. Run the following command to switch to the ossuser user:
su - ossuser
Password: password for the ossuser user
3. Run the following command to switch to the directory that stores the
hiro_tool script:
cd /opt/oss/SOP/apps/HIROERService/init
4. Run the following command to import environment variables:
source hiro_tool.sh
5. Perform operations by referring to Table 1-16.
Task Operation
su - ossadm
Password: password for the ossadm user
source /opt/oss/manager/bin/engr_profile.sh
Step 6 When the service plane is deployed in cluster mode, repeat Step 2on the node
where the standby hiroer process instance resides to configure the interface
blacklist.
----End
Prerequisites
You have obtained the passwords for the sopuser, ossuser, and ossadm users of
the nodes where the active and standby hiroapig process instances reside.
Procedure
Step 1 Use PuTTY to log in to the node where the active hiroapig process instance of
MinApiMgr resides, as the sopuser user. For details about how to check the active/
standby status and IP address of a process instance.
NOTE
If the O&M plane is deployed in single-server mode, log in to the node where MinApiMgr
resides. For details about how to obtain the IP address of the node where MinApiMgr
resides.
Task Operation
su - ossadm
Password: password for the ossadm user
Step 9 If the O&M plane is deployed in cluster mode, repeat Step 1 to #EN-
US_TOPIC_0000001192232474/en-us_topic_0000001176302258_en-
us_topic_0000001171744844_en-us_topic_0000001171880654_li1275783513176
on the node where the standby hiroapig process instance resides to configure the
interface blacklist.
----End
NOTE
Being the first interface invoked by a third-party application system, the authentication
interface returns the Token ID. Before invoking any other interface, the third-party
application system must set X-ACCESS-TOKEN in the HTTP header to a Token ID.
Otherwise, the system will display "403: Authentication failed." when another interface is
invoked.
Interface Description
Interface access path:
https://{ip}:{port}/controller/v2/tokens
Parameter Description
Request body parameters
Sample
Message Type Reference
JSON response {
"errmsg": "get token successfully.",
"errcode": "0",
"data": {
"expiredDate": "2016-12-22 16:14:19",
"token_id":
"67D5807D096CF5DA:CECC49BBC0394778AAC056E35D690FF88ADFB19
D949F2E41C329D372CBD99FD4"
}
}
1.8 SNMP
iMaster NCE-Fabric provides the SNMP NBI for the OSS to manage alarms.
1.8.1 Overview
The SNMP NBI is one of the NBIs provided by iMaster NCE-Fabric. The OSS can
access iMaster NCE-Fabric through the SNMP NBI to monitor and manage alarms
in networks.
The SNMP protocol consists of a set of standards for network management and is
one of the most widely used protocols in TCP/IP networks.
As one of the widely applied network management protocols in the TCP/IP
network, SNMP aims to:
● Transmit the management information between two nodes.
● Help the manager search and modify the information, and locate faults on
any node in the network.
● Help the manager diagnose faults, configure NEs, and generate reports.
The features of SNMP are as follows:
● Uses the polling mechanism and provides basic operation sets.
● Fits small, fast, and cost-effective networks.
Huawei developed the SNMP NBI for iMaster NCE-Fabric in compliance with
industry standards. With this NBI, the OSS can interconnect with iMaster NCE-
Fabric quickly and monitor and manage alarms on the network.
The Simple Network Management Protocol (SNMP) northbound interface (NBI)
supports three formats of management information bases (MIBs): MIB1, MIB2,
and MIB3. Currently, iMaster NCE-Fabric supports only MIB1.
1.8.2 MIB1
MIB1 has two versions: HW-IMAPV1NORTHBOUND-TRAP-MIB and HW-
IMAPV2NORTHBOUND-TRAP-MIB. The OSS selects a version based on its
supported SMI version.
SMI-V1 HW-IMAPV1NORTHBOUND-TRAP-MIB.mib
SMI-V2 HW-IMAPV2NORTHBOUND-TRAP-MIB.mib
1.8.2.1 MIB1
The MIB1 is used to manage transport, access, and datacom devices or manage
multi-domain devices. When the MIB1 is loaded, the SNMP NBI supports
automatic alarm reporting, synchronization (querying active alarms), clearance,
acknowledgement/unacknowledgement, and alarm acknowledgement and
clearance status reporting.
NCE
On the NCE side, the primary functions are:
● Reporting alarms
● Reporting heartbeats
NOTE
To enable automatic alarm reporting, set OSS parameters on NCE when configuring the
SNMP NBI. Alarm information will be received at the preset port of the OSS server.
After receiving alarms from devices or NCE, the SNMP NBI reports these alarms to
the OSS by means of standard SNMP trap messages.
The SNMP NBI sends heartbeat traps to the OSS periodically. Based on the
heartbeats, the OSS determines whether the connection with the SNMP NBI is
proper.
For details about traps, see 1.8.2.4 MIB1 Trap.
Functio Description
n
Subscrib Subscribes alarms by alarm severity and category. You can set the
ing severity and category when deploying the SNMP NBI.
alarms Sets the alarm field or variable binding (VB).
OSS
On the OSS side, the primary functions are:
● Synchronizing alarms (querying active alarms)
● Changing filter criteria in real time
● Acknowledging/Unacknowledging alarms
● Clearing alarms
NOTE
Ensure that the OSS is connected to the SNMP NBI properly before performing operations.
Functio Description
n
Queryin Reports alarms by alarm severity and category. The filter criteria are
g specified during alarm subscription.
alarms You can change filter criteria in real time when loading the MIB1.
by
criteria
Changin Changes filter criteria using the Set operation when the SNMP NBI is
g filter running. The filter criteria are specified during alarm subscription.
criteria The change will take effect without restarting the SNMP NBI.
in real
time
|---- hwNmFault(3)
For details about the function interfaces of MIB1, see 1.8.8.1 MIB1 Subinterfaces.
When the MIB frame is set to MIB1, the SNMP NBI reports the following alarm
fields. You can customize them as required.
T2000Support=0
The following table describes the fields reported by the SNMP NBI if
T2000Support is 0.
– 2009/12/23 - 19:30:30
+ 08:00[+01:00] (The DST
offset is 1 hour.)
● Local time. The format is
YYYY-MM-dd hh:mm:ss +
hh:mm TZ + hh:mm DST,
where TZ stands for the time
zone information and DST
stands for the DST offset.
The following lists examples:
– 2009-12-23 19:30:30
+ 08:00 TZ (The date is
not in DST.)
– 2009-12-23 19:30:30
+ 08:00 TZ + 01:00 DST
(The DST offset is 1
hour.)
● UTC time. The format is
YYYY-MM-dd hh:mm:ss, for
example, 2009-12-23
11:30:30.
Root hwNmNort Whether the alarm is the root Integer Yes. See
Alarm hboundRoo alarm or not. Options are as the
tAlarm follows: enumerat
● 0: Non-root alarm ed value.
● 1: Root alarm
T2000Support=1
The following table describes the fields reported by the SNMP NBI if
T2000Support is 1.
Function
When alarms are generated on NEs or iMaster NCE-Fabric, iMaster NCE-Fabric
actively sends this type of traps to inform third-party systems of real-time alarms
automatically using the SNMP NBI.
Trigger Condition
When alarms are generated on NEs or iMaster NCE-Fabric, alarm notification
traps are triggered.
Definition
Name OID Type Description
VB List
NOTE
The definitions of alarm fields in alarm synchronization result traps are the same as those
in alarm notification traps. The only difference is that the former is iMaster NCE-Fabric's
response to the query of valid alarms, whereas the latter is actively reported by iMaster
NCE-Fabric.
Example
The following is an example of the real-time alarm trap complying with SNMPv3:
hwNmNorthboundEventNotify
Message reception date: 2020/3/22
Message reception time: 0:03:07.120
Time stamp: 0 days 01h:41m:36s.96th (609696)
Message type: Notification (Trap)
Protocol version: SNMPv3
Transport: IP/UDP
Agent
Address: 10.185.199.167
Port: 6666
Manager
Address: 192.168.57.114
Port: 8899
Security parameters
Security level: Authentication and Privacy
Security name: admin
Security engine ID: 0x80 0x00 0x13 0x70 0x01 0xC0 0xA8 0x80 0x9E
Context engine ID: 0x80 0x00 0x13 0x70 0x01 0xC0 0xA8 0x80 0x9E
Authentication protocol: HMAC SHA
Privacy protocol: CFB AES 128
Bindings (25)
Binding #1: sysUpTime.0 *** (TimeTicks) 0 days 01h:41m:36s.96th (609696)
Binding #2: snmpModules.1.1.4.1.0 *** (object identifier) hwNmNorthboundEventNotify
Binding #3: hwNmNorthboundNEName.0 *** (OCTET STRING) OSS
Binding #4: hwNmNorthboundNEType.0 *** (OCTET STRING) OSS
Binding #5: hwNmNorthboundObjectInstance.0 *** (OCTET STRING) source=OSS location=Product
Name=iMaster NCE-Fabric
Binding #6: hwNmNorthboundEventType.0 *** (OCTET STRING) Process
Binding #7: hwNmNorthboundEventTime.0 *** (OCTET STRING) 2020/03/21 - 15:00:59Z
Binding #8: hwNmNorthboundProbableCause.0 *** (OCTET STRING) (zero-length)
Binding #9: hwNmNorthboundSeverity.0 *** (OCTET STRING) Warning
Binding #10: hwNmNorthboundEventDetail.0 *** (OCTET STRING)
Binding #11: hwNmNorthboundAdditionalInfo.0 *** (OCTET STRING) Weak algorithm: CBC
algorithm(Port:22) ;Weak protocol: NA ;Plaintext transmission port: NA
Binding #12: hwNmNorthboundFaultFlag.0 *** (OCTET STRING) Acknowledge
Binding #13: hwNmNorthboundFaultFunction.0 *** (OCTET STRING) Process
Function
After the OSS sends alarm query requests, the SNMP NBI returns this type of trap
to the OSS to indicate that alarm synchronization has started.
Trigger Condition
The OSS triggers the alarm synchronization. For details, see 1.8.8.1.3
Synchronizing Alarms.
The OSS sets hwNmNorthboundEventSynchronizationCommandStart in the
following format:
NMS IP address:Port:Start time:End time
NOTE
Definition
Name ENTERPRISE Type Description
VB List
None
Function
After the third-party system sends an alarm synchronization request, iMaster NCE-
Fabric sends the alarm synchronization trap through the SNMP NBI to return
alarms meeting the query conditions to the third-party system.
Trigger Condition
The third-party system triggers alarm synchronization.
The third-party system sets
hwNmNorthboundEventSynchronizationCommandStart in the MIB to start
alarm synchronization. Format: NMS IP address:port number:start time:end time
NOTE
● NMS IP address:port number indicates the IP address and port number of the third-party
system.
● The format for start and end time is YYYYMMDDhhmmss.
Definition
Name OID Type Description
VB List
NOTE
The definitions of alarm fields in alarm synchronization result traps are the same as those
in alarm notification traps. The only difference is that the former is iMaster NCE-Fabric's
response to the query of valid alarms, whereas the latter is actively reported by iMaster
NCE-Fabric.
Example
The following is an example of the alarm synchronization trap complying with
SNMPv3:
hwNmNorthboundEventSynchronizationQueryResultNotify
Message reception date: 2020/3/21
Message reception time: 23:53:52.074
Time stamp: 0 days 01h:32m:21s.92th (554192)
Message type: Notification (Trap)
Protocol version: SNMPv3
Transport: IP/UDP
Agent
Address: 10.185.199.167
Port: 6666
Manager
Address: 192.168.57.114
Port: 8899
Security parameters
Security level: Authentication and Privacy
Security name: admin
Security engine ID: 0x80 0x00 0x13 0x70 0x01 0xC0 0xA8 0x80 0x9E
Context engine ID: 0x80 0x00 0x13 0x70 0x01 0xC0 0xA8 0x80 0x9E
Authentication protocol: HMAC SHA
Privacy protocol: CFB AES 128
Bindings (25)
Function
iMaster NCE-Fabric sends the alarm synchronization end trap to inform the third-
party system of the end of alarm synchronization. After the third-party system
receives the trap, the alarm query is complete.
Trigger Condition
Alarm synchronization end traps are triggered when:
● All alarms meeting the query conditions have been sent in traps to the third-
party system from iMaster NCE-Fabric.
● The third-party stops the synchronization.
NOTE
NMS IP address:port number indicates the IP address and port number of the third-party
system.
Definition
Name OID Type Description
VB List
VB OID Data Description
Type
Example
The following is an example of the alarm synchronization end trap complying with
SNMPv3:
hwNmNorthboundEventSynchronizationEndNotify
Message reception date: 2020/3/21
Message reception time: 23:53:52.137
Time stamp: 0 days 01h:32m:21s.98th (554198)
Message type: Notification (Trap)
Protocol version: SNMPv3
Transport: IP/UDP
Agent
Address: 10.185.199.167
Port: 6666
Manager
Address: 192.168.57.114
Port: 8899
Security parameters
Security level: Authentication and Privacy
Security name: admin
Security engine ID: 0x80 0x00 0x13 0x70 0x01 0xC0 0xA8 0x80 0x9E
Context engine ID: 0x80 0x00 0x13 0x70 0x01 0xC0 0xA8 0x80 0x9E
Function
iMaster NCE-Fabric regularly sends heartbeat traps to the third-party system in
each heartbeat period. If the third-party system receives the traps, the connection
between the third-party system and iMaster NCE-Fabric is normal. If the third-
party system does not receive traps within the heartbeat period and the heartbeat
is unavailable, the third-party system is disconnected from iMaster NCE-Fabric.
NOTE
Trigger Condition
iMaster NCE-Fabric sends the KeepAlive info (heartbeat) trap to the OSS regularly
in the preset period.
Definition
Name OID Type Description
VB List
Name OID Data Type Descriptio
n
NOTICE
By default, the heartbeat notification trap reports the hwNMAgent field. You can
make modifications for the trap to report the hwNmNorthboundKeepAlive field.
Example
The following is an example of the heartbeat trap complying with SNMPv3:
hwNmNorthboundEventKeepAlive
Message reception date: 2020/3/21
Message reception time: 23:53:31.661
Time stamp: 0 days 01h:32m:01s.51th (552151)
Message type: Notification (Trap)
Protocol version: SNMPv3
Transport: IP/UDP
Agent
Address: 10.185.199.167
Port: 6666
Manager
Address: 192.168.57.114
Port: 8899
Security parameters
Security level: Authentication and Privacy
Security name: admin
Security engine ID: 0x80 0x00 0x13 0x70 0x01 0xC0 0xA8 0x80 0x9E
Context engine ID: 0x80 0x00 0x13 0x70 0x01 0xC0 0xA8 0x80 0x9E
Authentication protocol: HMAC SHA
Privacy protocol: CFB AES 128
Bindings (3)
Binding #1: sysUpTime.0 *** (TimeTicks) 0 days 01h:32m:01s.51th (552151)
Binding #2: snmpModules.1.1.4.1.0 *** (object identifier) hwNmNorthboundEventKeepAlive
Binding
mib1.T2000Support=0
13: Specific trap hwNmNorthboundEventInfo::hwNmNorthboundEventNotify #1 trap(v1)
received from: 10.71.224.13 at 2011-12-27 16:19:58
Time stamp: 0 days 00h:05m:29s.09th
Agent address: 10.71.224.13 Port: 6666 Transport: IP/UDP Protocol: SNMPv1 Trap
Manager address: 10.70.71.97 Port: 6666 Transport: IP/UDP
Community: ********
SNMPv1 agent address: 10.71.224.13
Enterprise: hwNmNorthboundEventInfo
Specific Trap MIB Lookup Results
Name: hwNmNorthboundEventNotify, Module: HW-IMAPV1NORTHBOUND-TRAP-MIB,
Enterprise: hwNmNorthboundEventInfo
Bindings (24)
Binding #1: hwNmNorthboundNEName.0 *** (octets) NE(9-3500)
Binding #2: hwNmNorthboundNEType.0 *** (octets) OptiX OSN 3500
Binding #3: hwNmNorthboundObjectInstance.0 *** (octets) Slot=4 Port=1 TTP_TYPE=1 4-
N1SL16-1(SDH-1)-SPI:1
Binding #4: hwNmNorthboundEventType.0 *** (octets) Communication
Binding #5: hwNmNorthboundEventTime.0 *** (octets) 2011/04/27 - 16:11:30
Binding #6: hwNmNorthboundProbableCause.0 *** (octets) ID:1,DeviceType:0,
(1)The fiber jumper is not connected at the optical interface of the board;
(2)The laser of the board on the opposite station is shutdown;
(3)A fiber break occurs in the transm ...
Binding #7: hwNmNorthboundSeverity.0 *** (octets) Critical
Binding #8: hwNmNorthboundEventDetail.0 *** (octets) ID:1,DeviceType:0,Loss of signal
Binding #9: hwNmNorthboundAdditionalInfo.0 *** (octets)
Alarm Parameter(hex) 0x01 0x00 0x01 0x01 0x01
Binding #10: hwNmNorthboundFaultFlag.0 *** (octets) Fault
Binding #11: hwNmNorthboundFaultFunction.0 *** (octets) Communication
Binding #12: hwNmNorthboundDeviceIP.0 *** (ipaddr) 10.70.71.97
Binding #13: hwNmNorthboundSerialNo.0 *** (int32) 85415
Binding #14: hwNmNorthboundProbableRepair.0 *** (octets) ID:1,DeviceType:0,
Binding #15: hwNmNorthboundResourceIDs.0 *** (octets) 3145893.-1.4.1.1.1.-1.-1
Binding #16: hwNmNorthboundEventName.0 *** (octets) ID:1,DeviceType:0,R_LOS
Binding #17: hwNmNorthboundReasonID.0 *** (int32) 1
Binding #18: hwNmNorthboundFaultID.0 *** (int32) 1
Binding #19: hwNmNorthboundDeviceType.0 *** (octets) 0
Binding #20: hwNmNorthboundTrailName.0 *** (octets) PWE3:2
Binding #21: hwNmNorthboundRootAlarm.0 *** (int32) 0
Binding #22: hwNmNorthboundGroupID.0 *** (int32) 268374017
Binding #23: hwNmNorthboundMaintainStatus.0 *** (int32) 0
Binding #24: hwNmNorthboundRootAlarmSerialNo.0 *** (octets) (zero-length)
mib1.T2000Support=1
21: Specific trap hwNmNorthboundEventInfo::hwNmNorthboundEventNotify #1 trap(v1)
received from: 10.71.224.13 at 2011-4-27 16:25:24
Time stamp: 0 days 00h:02m:02s.27th
Agent address: 10.71.224.13 Port: 6666 Transport: IP/UDP Protocol: SNMPv1 Trap
Manager address: 10.70.71.97 Port: 6666 Transport: IP/UDP
Community: ********
Agent address: 10.71.88.151 Port: 6666 Transport: IP/UDP Protocol: SNMPv1 Trap
Manager address: 10.70.73.96 Port: 8888 Transport: IP/UDP
Community: ********
SNMPv1 agent address: 10.71.88.151
Enterprise: hwNmNorthboundEventSynchronizationEnd
Specific Trap MIB Lookup Results
Name: hwNmNorthboundEventSynchronizationEndNotify, Module: HW-
IMAPV1NORTHBOUND-TRAP-MIB, Enterprise: hwNmNorthboundEventSynchronizationEnd
Bindings (2)
Binding #1: hwNmNorthboundEventSynchronizationEndStatus.0 *** (int32) normalEnd(1)
Binding #2: hwNmNorthboundEventSynchronizationEndStatusDetail.0 *** (octets) Sync End:
Successfully queried all alarms!
NOTE
hwNmAgent (Default)
795: Specific trap hwNmNorthboundEventKeepAliveInfo::hwNmNorthboundEventKeepAlive #2
trap(v1) received from: 10.71.88.151 at 2010-11-24 15:57:20
Time stamp: 0 days 00h:07m:00s.12th
Agent address: 10.71.88.151 Port: 6666 Transport: IP/UDP Protocol: SNMPv1 Trap
Manager address: 10.70.73.96 Port: 8888 Transport: IP/UDP
Community: ********
SNMPv1 agent address: 10.71.88.151
Enterprise: hwNmNorthboundEventKeepAliveInfo
Specific Trap MIB Lookup Results
Name: hwNmNorthboundEventKeepAlive, Module: HW-IMAPV1NORTHBOUND-TRAP-MIB,
Enterprise: hwNmNorthboundEventKeepAliveInfo
Bindings (1)
Binding #1: hwNmAgent *** (octets) SNMP Agent
hwNmNorthboundKeepAlive (Configurable-1.3.6.1.4.1.2011.2.15.1.7.2.1)
8: Specific trap hwNmNorthboundEventKeepAliveInfo::hwNmNorthboundEventKeepAlive #2
trap(v1) received from: 10.67.192.220 at 2012/6/26 11:19:13
Time stamp: 0 days 00h:00m:15s.04th
Agent address: 10.67.192.220 Port: 6666 Transport: IP/UDP Protocol: SNMPv1 Trap
Manager address: 10.66.102.169 Port: 6666 Transport: IP/UDP
Community: ********
SNMPv1 agent address: 10.67.192.220
Enterprise: hwNmNorthboundEventKeepAliveInfo
Specific Trap MIB Lookup Results
Name: hwNmNorthboundEventKeepAlive, Module: HW-IMAPV1NORTHBOUND-TRAP-MIB,
Enterprise: hwNmNorthboundEventKeepAliveInfo
Bindings (1)
Binding #1: hwNmNorthboundKeepAlive *** (octets) SNMP Agent
hwNmNorthboundKeepAlive (Configurable-1.3.6.1.4.1.2011.2.15.1.7.2.1.0)
3: Specific trap hwNmNorthboundEventKeepAliveInfo::hwNmNorthboundEventKeepAlive #2
trap(v1) received from: 10.78.219.70 at 2012/7/26 19:11:29
Time stamp: 0 days 00h:01m:45s.11th
Agent address: 10.78.219.70 Port: 6666 Transport: IP/UDP Protocol: SNMPv1 Trap
Manager address: 10.66.103.78 Port: 6666 Transport: IP/UDP
Community: ********
SNMPv1 agent address: 10.78.219.70
Enterprise: hwNmNorthboundEventKeepAliveInfo
Specific Trap MIB Lookup Results
Name: hwNmNorthboundEventKeepAlive, Module: HW-IMAPV1NORTHBOUND-TRAP-MIB,
Enterprise: hwNmNorthboundEventKeepAliveInfo
Bindings (1)
Binding #1: hwNmNorthboundKeepAlive.0 *** (octets) SNMP Agent
Context
NOTICE
● Collect general parameters only and use default values for advanced
parameters.
● For iMaster NCE-Fabric upgrades, select the MIB structure carefully by referring
to 1.8.5.3.2 Advanced Configuration.
● For security purposes, the SNMP NBI does not support the following insecure
configuration items by default:
● Protocol version: SNMPv1 and SNMPv2c
● Security level: Not authenticated nor encrypted and Authenticated but not
encrypted
● Authentication protocol: MD5, SHA, and SHA2-224
● Encryption protocol: DES
● You can view, check, and modify the security configurations of the SNMP NBI in
Security Configuration. For details, see Security Configurations of the SNMP
NBI.
● SNMPv3 is recommended because it is securer than SNMPv1 and SNMPv2c.
Port for sending Port used to send traps and informs. 6666
traps The default value is recommended.
Configuring the SNMP NBI may affect OSS and other components of iMaster NCE-
Fabric. Modifying configuration items may also depend on iMaster NCE-Fabric
components. Therefore, confirm whether the configuration items to be modified
will bring such type of impact and submit a request to the customer for approval
before configuring the SNMP NBI.
Alarm Field The alarm fields will be Confirm the alarm fields
changed if you modify and the detailed fields
this configuration item. with the OSS, and then
The OSS may fail to set this configuration
parse the alarm. item.
● If the iMaster NCE-Fabric server is configured with multiple NICs and they are
in different network segments, set the IP address for connecting to the OSS as
the IP address selected by the SNMP NBI for alarm reporting (By default, the
IP address is the northbound network communication IP address. If you
manually change the IP address, you need to reconfigure the NBI
synchronously.) is the IP address of the NIC for connecting to the OSS of the
iMaster NCE-Fabric server to ensure that the iMaster NCE-Fabric server and
the OSS can communicate with each other. Otherwise, the OSS cannot
interconnect with the NBI of iMaster NCE-Fabric.
● You must configure the NBI again after the IP address of iMaster NCE-Fabric
is changed. By default, the northbound communication IP address specified
during iMaster NCE-Fabric installation is used as Address for receiving
requests and Address for sending traps. If the northbound communication
IP address is changed, you need to manually update Address for receiving
requests and Address for sending traps as follows:
a. Management plane: Choose Maintenance > Network Configuration >
Configure IP Address or Configure Floating IP Address from the main
menu. Select Modify IP Address.
b. Control Plane: Open the System app and choose System Settings >
Northbound Interface from the main menu. In the navigation tree on
the left, choose SNMP NBI > Basic Settings and modify Address for
receiving requests and Address for sending traps in the right pane.
Prerequisites
● The iMaster NCE-Fabric license includes the SNMP NBI function.
● SNMP NBI processes are running.
Procedure
Step 1 Log in to the control plane as the admin user.
Step 2 Open the System app and choose System Settings > Northbound Interface from
the main menu..
Step 3 Choose SNMP NBI > Basic Settings from the navigation pane.
Step 4 On the Basic Settings page, set the IP addresses and port numbers for receiving
requests and sending traps.
For details about the SNMP agent parameters, see 1.8.5.3.1 General Parameters.
NOTICE
– Address for receiving requests and Address for sending traps both are
the iMaster NCE-Fabric server IP address. The SNMP NBI supports both
IPv4 and IPv6. If third-party system A requires IPv4 but third-party system
B requires IPv6, you can select both IPv4 and IPv6 addresses for the two
systems to communicate with at the same time. Ensure that this IP address
can be used for successful communication between iMaster NCE-Fabric
and the OSS.
– Refer to iMaster NCE-FabricCommunication Matrix before you configure
ports for the SNMP NBI. Before configuring these ports, ensure that the
specified ports are idle.
– The recommended port number is from 1025 to 32767.
2. In the case of SNMPv3, set the security level, authentication protocol, and
encryption protocol.
By default, iMaster NCE-Fabric supports SNMPv3.
On the Basic Settings page, click Advanced Settings > SNMPv3 Parameter
Settings. For details about SNMPv3 parameters, see SNMPv3 Parameter
Settings.
NOTICE
In the case of SNMPv3, it is recommended that the OSS use the more secure SHA
and AES algorithms.
Step 5 Choose SNMP NBI > Third-party System Settings from the navigation pane, click
Create, and set the parameters of the OSS. The port must be set to 162 or 10162.
For details about the parameter description, see 1.8.5.3.3 Third-Party NMS.
1. Set the server parameters of the OSS.
The value of IPv4 address is the IP address of the OSS server.
NOTE
– The value of IPv4 address is not the IP address of the iMaster NCE-Fabric server
but the IP address of the OSS. If the OSS uses two servers to receive traps and send
requests, the IP addresses for these two servers must be configured separately.
– To configure multiple third-party system users, you are advised to set different
read-write community names (v1 or v2) for them, use different usernames (v3), or
ensure that not all usernames are identical. If not all read-write community names
(v1 or v2) are identical, duplicate usernames (v3) exist, and the passwords for
authentication and encryption are different, the interworking may fail for some
users.
– Currently a maximum of 10 OSSs are supported.
2. Set SNMP security parameters.
The following are the default security parameters. SNMPv3 is recommended
for security concern. In the case of SNMPv3, set V3 User Name, V3
Authentication Password, and V3 Privacy Password. The default username
is admin.
NOTICE
3. On the page for creating an OSS, click Expand Filter Settings to set the
alarm filter criteria.
When setting filter criteria, you need to mask alarms of physical devices
(including CEs, NEs, and firewalls). The operations are as follows:
– Filter mode is Mask
iii. Select all CE, NE, and firewall physical devices in the list and click
OK.
NOTICE
NOTICE
Step 7 Log in to the iMaster NCE-Fabric management plane and check the SNMP service
status.
If the status is Running, the SNMP NBI has been enabled successfully.
1. Log in to the iMaster NCE-Fabric management plane.
2. Choose Maintenance > Operation and Maintenance Management >
Panoramic Monitoring from the main menu. In the navigation pane, choose
Service Monitoring.
3. On the Processes tab page, enter snmpagentservice in the search box and
process details page is displayed.
4. Check the running status of the snmpagentservice process on the displayed
page. The status of the service is Running.
----End
Prerequisites
You have the Northbound Interface operation right.
Procedure
Step 1 Log in to the NCEO&M plane as the admin user.
Step 2 Open the System Settings app and choose System Settings > Northbound
Interface from the main menu.
Step 3 In the navigation pane, choose SNMP NBI > Security Settings.
----End
Navigation Path
Log in to the control plane. Open the System app and choose System Settings >
Northbound Interface from the main menu. Choose SNMP NBI > Basic Settings
from the navigation pane.
Parameters
NOTICE
The trap sending address and request receiving address are both the NCE server IP
address (You are advised to use the default IP address, that is, the planned
network communication IP address of the SNMP NBI. If you select other IPv4
addresses, NCE may fail to communicate with third-party systems. The SNMP NBI
supports both IPv4 and IPv6. If third-party system A requires IPv4 but third-party
system B requires IPv6, you can select both IPv4 and IPv6 addresses for the two
systems to communicate with NCE at the same time.). Ensure that this IP address
can be used for successful communication between NCE and the OSS.
When configuring ports for the SNMP NBI, refer to iMaster NCE Communication
Matrix to prevent port conflicts.
On NCE, the recommended port number of the SNMP protocol is from 1025 to
32767.
Navigation Path
1. Open the System app and choose System Settings > Northbound Interface
from the main menu..
2. Choose SNMP NBI > Basic Settings from the navigation pane.
MIB type MIB1: The OSS uses the MIB file HW- MIB1
IMAPV1NORTHBOUND-TRAP-MIB.mib or HW-
IMAPV2NORTHBOUND-TRAP-MIB.mib.
● For details about the supported alarm fields (VB),
see 1.8.2.3 Alarm Fields Reported by MIB1.
● iMaster NCE-Fabric supports only MIB1.
MIB2: The OSS uses the MIB file
IMAP_NORTHBOUND_MIB-V1.mib or
IMAP_NORTHBOUND_MIB-V2.mib.
MIB3: The OSS uses the MIB file T2000-
NETMANAGEMENT-MIB.mib.
Time Time format of the VB field that identifies alarm UTC time
format time. in the
● UTC time in the format of yyyy/MM/dd - format of
HH:mm:ssZ: uses the local time without the time yyyy/MM/
zone. dd -
HH:mm:ss
● Local time without the time zone in the format of Z
yyyy/MM/dd - HH:mm:ss: uses the UTC time
which has a different time format from the UTC
time used when this parameter is set to 0.
● Local time with the time zone in the format of
yyyy/MM/dd - HH:mm:ssTZ[DST]
● UTC time in the format of yyyy-MM-dd HH:mm:ss
● Local time in the format of yyyy-MM-dd
HH:mm:ss + hh:mm TZ + hh:mm DST
● Local time without the time zone in the format of
yyyy-MM-dd,HH:mm:ss.0
Number of Cache size for real-time alarms. The value can range 10000
cached from 10000 to 50000.
alarms
NOTICE
This setting has a direct impact on the successful communication between iMaster
NCE-Fabric and the OSS for alarm management. Confirm with the OSS when
setting the MIB frame.
Inform/Trap Settings
You can set the reporting mode and the relevant parameters.
CAUTION
Security Level Security level. This parameter can only be set Authenticated
to Authenticated and encrypted by default. and encrypted
NOTICE
Navigation Path
1. Open the System app and choose System Settings > Northbound Interface
from the main menu. on the control plane.
2. In the navigation pane, choose SNMP NBI > Third-party System Settings.
3. On the Third-party System Settings page, click Create and set third-party
NMS parameters.
Parameters
NOTE
● SNMPv3 is recommended, because it is more secure than SNMPv1 and SNMPv2c. Before
setting Protocol version to SNMPv1 or SNMPv2c, set SNMP Insecure Switch to
Enable for Northbound interface-SNMP insecure configuration switch. For details,
see Checking Security Configurations.
● The value of IPv4 address is not the IP address of the iMaster NCE-Fabric server but the
IP address of a third-party NMS at the upper layer. If the third-party NMS uses two
servers to receive traps and send requests, the IP addresses for these two servers must
be configured separately. Currently a maximum of 10 third-party NMSs are supported.
Table 1-28 lists the configuration requirements of the third-party NMS.
NOTICE
Filter Settings
NOTE
Filter settings ensure that the third-party or upper-layer NMS servers will receive the alarms
they need.
Step 2 In the Available area, select the NEs whose alarms need to be masked or
----End
Alarm Sources
Step 1 In the Alarm sources area, click Add Alarm Sources.
Step 2 In the Available area, select the NEs whose alarms need to be masked or
reported.
Step 3 In the Selected area, select the NEs set in Step 2 and click OK.
----End
Alarms
Step 1 In the Alarms area, click Add Alarms/Events.
Step 2 In the Available area, select the alarms or events that need to be masked or
Step 3 In the Selected area, select the alarms or events set in Step 2 and click OK.
----End
1.8.6.1 MIB1
This section describes how to verify the running status of the SNMP NBI after the
MIB1 is loaded. The MIB1 includes HW-IMAPV1NORTHBOUND-TRAP-MIB.mib
and HW-IMAPV2NORTHBOUND-TRAP-MIB.mib.
Prerequisites
● SnmpAgentService is correctly configured.
● NbiSnmpConfigWebsite is correctly configured.
● The SNMP heartbeat information is configured.
– Heartbeat Period: 60s
– Report Heartbeat Info: yes
Procedure
Step 1 Log in to the iMaster NCE-Fabric management plane and check the SNMP service
status.
If the status is Running, the SNMP NBI has been enabled successfully.
1. Log in to the iMaster NCE-Fabric management plane.
2. Choose Maintenance > Operation and Maintenance Management >
Panoramic Monitoring from the main menu. In the navigation pane, choose
Service Monitoring.
3. On the Processes tab page, enter snmpagentservice in the search box and
process details page is displayed.
4. Check the running status of the snmpagentservice process on the displayed
page. The status of the service is Running.
If the SNMP NBI process fails to be started, see SNMP Service Process Fails to
Be Started for troubleshooting.
Step 2 Check whether heartbeat messages are received on the related OSS port.
----End
Prerequisites
● The SNMP version is set to SNMPv3, and Authenticated and encrypted is
selected from the Security level drop-down list (navigation path: Advanced
Settings > SNMPv3 Parameter Settings).
● The OSS has been created and the OSS server can receive real-time alarms or
heartbeats from iMaster NCE-Fabric.
Procedure
Step 1 Confirm SNMP NBI parameters with the iMaster NCE-Fabric administrator.
1. Log in to the control plane as the admin user.
2. Open the System app and choose System Settings > Northbound Interface
from the main menu..
3. Choose SNMP NBI > Third-party System Settings from the navigation pane.
4. Locate the OSS in the list and click in the Operation column.
On the displayed page, set the OSS parameters.
Parameter Description Default Navigation Path
Value
Step 2 Configure the OSS based on the preceding parameters set on iMaster NCE-Fabric.
CAUTION
----End
Follow-up Procedure
When viewing OSS information, you can perform the following operations:
NOTE
Ensure that the OSS has been connected to NCE through the SNMP NBI and the desired
operations have been licensed for use.
NOTICE
Ensure that the MIB1 has been loaded to the OSS. To load the MIB1, set the MIB
type to MIB1 when configuring the SNMP NBI.
Function
The OSS can call the alarm filtering interface to change alarm filter criteria
dynamically when the SNMP NBI is running.
MIB Definition
The OID is 1.3.6.1.4.1.2011.2.15.1.3.5.
The full path is as follows:
iso(1).org(3).dod(6).internet(1).private(4).enterprises(1).huawei(2011).products(2)
.hwNetManagement(15).hwNmAgent(1).hwNmFault(3).thirdNMSFaultFilter(5)
Setting Method
The OSS can set the value of the MIB node to change the alarm filter criteria. The
format is as follows:
IPAddress:Port:AlarmFilterLevel:AlarmCategoryFilter
NOTICE
● The thirdNMSFaultFilter node only supports the set operation, that is, only the
write attribute is enabled. Therefore, you need to query the setting results of
the thirdNMSFaultFilter node on the NCE SNMP NBI configuration page.
● When you set the OID of the MIB node, you must add .0 to the end of the
original OID of the MIB node.
Parameter Description
IPAddress IP address used by the OSS. This IP address is the trap receiving
IP address preset when the SNMP NBI is configured.
Port Port used by the OSS. This port is the trap receiving port preset
when the SNMP NBI is configured.
Sample
Prerequisites
● The IP address of the OSS is set to 10.70.73.97 and the port for receiving
alarms is set to 6666.
● The OSS connects to the SNMP NBI and can receive heartbeats or real-time
alarms.
Purpose
To change the filter criteria so that only critical or major fault and clear alarms are
reported.
The following table lists the parameters of this sample.
Procedure
1. The OSS sets the OID of the thirdNMSFaultFilter node to:
1.3.6.1.4.1.2011.2.15.1.3.5.0.
2. The OSS sets thirdNMSFaultFilter to:
10.70.73.97:6666:0011:100111.
The OSS receives responses from NCE, indicating that the filter criteria are
changed successfully. The OSS will then receive the required alarms only.
Function
The UDP-based SNMP protocol cannot guarantee that all alarms are reported to
the OSS. Therefore, the OSS synchronizes alarms to ensure alarm data consistency
with NCE. The OSS can pause the synchronization as required.
When the synchronization starts, the SNMP NBI sends a "start" trap to inform the
OSS that alarm synchronization has started.
When the synchronization is successfully complete or paused, the SNMP NBI sends
a "stop" trap to inform the OSS that alarm synchronization has stopped.
The following figure shows the alarm synchronization process.
Operation Description
Operation Description
NOTE
MIB Definition
There are two MIB nodes for alarm synchronization:
hwNmNorthboundEventSynchronizationCommandStart and
hwNmNorthboundEventSynchronizationCommandStop. The former indicates
starting alarm synchronization, whereas the latter indicates stopping alarm
synchronization.
iso(1).org(3).dod(6).internet(1).private(4).enterprises(1).huawei(2011).products(2)
.hwNetManagement(15).hwNmAgent(1).hwNmNorthboundEvent(7).hwNmNorth
boundEventSynchronization(7).hwNmNorthboundEventSynchronizationCommand
Start(4)
iso(1).org(3).dod(6).internet(1).private(4).enterprises(1).huawei(2011).products(2)
.hwNetManagement(15).hwNmAgent(1).hwNmNorthboundEvent(7).hwNmNorth
boundEventSynchronization(7).hwNmNorthboundEventSynchronizationCommand
Stop(5)
Setting Method
Start alarm synchronization.
The OSS can set the value of the MIB node to start alarm synchronization within a
specified period. The format is as follows:
The OSS can set the value of the MIB node to stop alarm synchronization. The
format is as follows:
IP:port
NOTE
● When you set the OID of the MIB node, you must add .0 to the end of the original OID
of the MIB node.
● You do not need to set the start and end time to stop the alarm synchronization.
Parameter Description
port Port used by the OSS. This port is the trap receiving port preset
when the SNMP NBI is configured.
Sample
Prerequisites
● The IP address of the OSS is set to 10.70.73.97 and the port for receiving
alarms is set to 6666.
● The OSS connects to the SNMP NBI and can receive heartbeats or real-time
alarms.
Purpose
Procedure
Function
The OSS can acknowledge NCE alarms based on the alarm SNs.
The alarm status will change after the alarm is acknowledged. If acknowledged
alarms are specified as the filter criteria, the OSS will receive the information
about state changes along with the alarms.
NOTE
The Acknowledgement User parameter is SNMP Agent User on the NCE client after an
alarm is acknowledged by the OSS through the SNMP NBI.
Alarms with invalid or nonexistent SNs and historical alarms cannot be acknowledged and
the SNs will be returned to the OSS.
MIB Definition
The OID is 1.3.6.1.4.1.2011.2.15.1.3.7.
The full path is as follows:
iso(1).org(3).dod(6).internet(1).private(4).enterprises(1).huawei(2011).products(2)
.hwNetManagement(15).hwNmAgent(1).hwNmFault(3).hwNmAcknowledgeAlarm
s(7)
NOTE
Setting Method
The OSS can set the value of the MIB node to acknowledge the active alarm on
NCE. The format is as follows:
Serial Number,Serial Number,...
Serial SN of an alarm.
Number,Seri Integer, separated by a comma (,).
al Number,...
The following table lists the status changes when alarms are acknowledged.
NOTE
If you set the lifecycle for acknowledged and cleared alarms and these alarms are not
converted to historical alarms, no data will be returned after you acknowledge these
alarms. The lifecycle specifies the period in which these alarms are saved in the current-
alarm database.
When you set the OID of the MIB node, you must add .0 to the end of the original OID of
the MIB node.
Sample
Prerequisites
The OSS connects to the SNMP NBI and can receive heartbeats or real-time
alarms.
Purpose
To acknowledge the alarm on NCE with the SN of 20,30,10005,18000.
The following table lists the parameters of this sample.
Procedure
Query the alarm status on the OSS or NCE. The state for alarm 20,30,10005,18000
is Acknowledge, indicating that the alarm is acknowledged successfully. The
Acknowledgement User parameter is SNMP Agent User on the NCE client.
NOTE
If acknowledged alarms are specified as the filter criteria, the OSS will receive the
information about state changes along with the alarms. The alarm time is when the alarm
is acknowledged.
Function
The OSS can unacknowledge alarms on NCE based on alarm SNs.
NOTE
The Acknowledgement User parameter is SNMP Agent User on the NCE client after an
alarm is unacknowledged by the OSS through the SNMP NBI.
Alarms with invalid or nonexistent SNs and historical alarms cannot be unacknowledged
and the SNs will be returned to the OSS.
MIB Definition
The OID is 1.3.6.1.4.1.2011.2.15.1.3.8.
iso(1).org(3).dod(6).internet(1).private(4).enterprises(1).huawei(2011).products(2)
.hwNetManagement(15).hwNmAgent(1).hwNmFault(3).hwNmUnAcknowledgeAla
rms(8)
NOTE
Setting Method
The OSS can set the value of the MIB node to unacknowledge the active alarm on
NCE. The format is as follows:
Serial Number,Serial Number,...
Serial SN of an alarm.
Number,Seri Integer, separated by a comma (,).
al Number,...
The following table lists the status changes when alarms are unacknowledged.
NOTE
If you set the lifecycle for acknowledged and cleared alarms and these alarms are not
converted to historical alarms, no data will be returned after you unacknowledge these
alarms. The lifecycle specifies the period in which these alarms are saved in the current-
alarm database.
When you set the OID of the MIB node, you must add .0 to the end of the original OID of
the MIB node.
Sample
Prerequisites
The OSS connects to the SNMP NBI and can receive heartbeats or real-time
alarms.
Purpose
To unacknowledge the alarm on NCE with the SN of 20,30,10005,18000.
The following table lists the parameters of this sample.
Procedure
● The OSS sets the OID of the hwNmUnAcknowledgeAlarms node to:
1.3.6.1.4.1.2011.2.15.1.3.8.0.
● The OSS sets hwNmUnAcknowledgeAlarms to:
20,30,10005,18000.
Query the alarm status on the OSS or NCE. The state for alarm 20,30,10005,18000
is Unacknowledge, indicating that the alarm is unacknowledged successfully. The
Acknowledgement User parameter is SNMP Agent User on the NCE client.
NOTE
If unacknowledged alarms are specified as the filter criteria, the OSS will receive the
information about state changes along with the alarms. The alarm time is when the alarm
is generated.
Function
The OSS can clear alarms on NCE based on the alarm SNs.
The alarm status will change after the alarm is cleared. If cleared alarms are
specified as the filter criteria, the OSS will receive the information about state
changes along with the alarms.
NOTE
The Clearance User parameter is SNMP Agent User on the NCE client after an alarm is
cleared by the OSS through the SNMP NBI.
Alarms with invalid or nonexistent SNs and historical alarms cannot be cleared and the SNs
will be returned to the OSS.
MIB Definition
The OID is 1.3.6.1.4.1.2011.2.15.1.3.6.
iso(1).org(3).dod(6).internet(1).private(4).enterprises(1).huawei(2011).products(2)
.hwNetManagement(15).hwNmAgent(1).hwNmFault(3).hwNmClearAlarms(6)
NOTE
Setting Method
The OSS can set the value of the MIB node to clear the active alarm on NCE. The
format is as follows:
Parameter Description
Serial SN of an alarm.
Number,Seri Integer, separated by a comma (,).
al Number,...
The following table lists the status changes when alarms are cleared.
NOTE
If you set the lifecycle for acknowledged and cleared alarms and these alarms are not
converted to historical alarms, no data will be returned after you clear these alarms. The
lifecycle specifies the period in which these alarms are saved in the current-alarm database.
When you set the OID of the MIB node, you must add .0 to the end of the original OID of
the MIB node.
Sample
Prerequisites
The OSS connects to the SNMP NBI and can receive heartbeats or real-time
alarms.
Purpose
To clear the alarm on NCE with the SN of 20,30,10005,18000.
The following table lists the parameters of this sample.
Procedure
1. The OSS sets the OID of the hwNmClearAlarms node to:
1.3.6.1.4.1.2011.2.15.1.3.6.0.
2. The OSS sets hwNmClearAlarms to:
20,30,10005,18000.
Query the alarm status on the OSS or NCE. The state for alarm 20,30,10005,18000
is Clear, indicating that the alarm is cleared successfully. The Clearance User
parameter is SNMP Agent User on the NCE client.
NOTE
Function
After you configure alarm acknowledgement status reporting through the SNMP
NBI on NCE, the OSS receives alarm acknowledgement status in real time.
MIB Definition
The OID is 1.3.6.1.4.1.2011.2.15.1.7.1.33.
iso(1).org(3).dod(6).internet(1).private(4).enterprises(1).huawei(2011).products(2)
.netManagement(15).nmAgent(1).nmNorthboundEvent(7).hwNmNorthboundEven
tInfo(1).hwNmNorthboundConfirmStatus(33)
NOTE
The Get and Set operations are not supported on this MIB node.
Setting Method
For details, see Configuration Operations.
Function
After you configure alarm clearance status reporting through the SNMP NBI on
NCE, the OSS receives alarm clearance status in real time.
MIB Definition
The OID is 1.3.6.1.4.1.2011.2.15.1.7.1.34.
The full path is as follows:
iso(1).org(3).dod(6).internet(1).private(4).enterprises(1).huawei(2011).products(2)
.netManagement(15).nmAgent(1).nmNorthboundEvent(7).hwNmNorthboundEven
tInfo(1).hwNmNorthboundRestoreStatus(34)
NOTE
The Get and Set operations are not supported on this MIB node.
Setting Method
For details, see Configuration Operations.
Typical Scenarios
A token needs to be obtained using the user name and password when a third-
party system is interconnected and needs to access an open API.
Functions
Allow northbound systems to obtain tokens. By default, an account is locked for
10 minutes when it fails to obtain a token for five consecutive times within 10
minutes. The account policy can be customized based on site requirements.The
interface can process a maximum of 25 requests per second. If there are more
than 25 requests, the interface will return a message indicating that the system is
busy.
Constraints
N/A.
HTTP Method
POST
URI
/controller/v2/tokens
Request Parameters
Sample Request
cURL
HTTP
POST /controller/v2/tokens HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
{
"userName" : "zhangsan@xxx.com",
"password" : "******"
}
Response Parameters
Response status code 200: OK
Sample Response
Response status code 200: OK
HTTP/1.1 200 OK
Date: Tue,30 Oct 2018 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"data" : {
"token_id" : "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"expiredDate" : "2018-10-30 10:09:23"
},
"errcode" : "0x11aa22bb",
"errmsg" : "The userName or password is incorrect."
}
Typical Scenarios
A token used during interconnection with a third-party system needs to be deleted
if it is no longer used.
Functions
Delete a token.
Constraints
N/A.
HTTP Method
DELETE
URI
/controller/v2/tokens
Request Parameters
Sample Request
cURL
curl -k -s -L -i -X DELETE -H 'Content-Type: application/json' -H 'Accept: application/json' -H 'Accept-
Language: en-US' 'https://192.168.1.125:18002/controller/v2/tokens' -d '{
"token" : "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}'
HTTP
DELETE /controller/v2/tokens HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
{
"token" : "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}
Response Parameters
Response status code 200: OK
Sample Response
Response status code 200: OK
HTTP/1.1 200 OK
Date: Tue,30 Oct 2018 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"errcode" : "0x22aa33bb",
"errmsg" : "The parameter is invalid."
}
Typical Scenarios
The password of the northbound operator needs to be changed when a third-
party system is interconnected and the user password becomes invalid. Only the
password of the current user can be changed. When this API is invoked, the token
value that identifies the user must be transferred in the HTTP context header.
Functions
Change the password.
Constraints
N/A.
HTTP Method
POST
URI
/restconf/operations/huawei-ac-access-token:update-password
Request Parameters
Sample Request
cURL
curl -k -s -L -i -X POST -H 'Content-Type: application/json' -H 'Accept: application/json' -H 'Accept-
Language: en-US' -H 'x-access-token: ' 'https://192.168.1.125:18002/restconf/operations/huawei-ac-access-
token:update-password' -d '{
"input" : {
"oldpwd" : "******",
"newpwd" : "******"
}
}'
HTTP
POST /restconf/operations/huawei-ac-access-token:update-password HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
x-access-token:
{
"input" : {
"oldpwd" : "******",
"newpwd" : "******"
}
}
Response Parameters
Response status code 200: OK
Sample Response
Response status code 200: OK
HTTP/1.1 200 OK
Date: Tue,30 Oct 2018 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Functions
This interface is used for third-party user authentication and login.
Availability Tier2
Throughput 20 tps
Precautions
When accessing the application interface, set the HTTP header to the session
obtained after the northbound login. The key is X-Auth-Token and the value is the
session value, for example, X-Auth-Token:xxx.
HTTP Method
PUT
URI
/rest/plat/smapp/v1/sessions
Path parameters
None
Query parameters
None
Request
● Header parameters
See the sample request.
● Body parameters
● Sample request
PUT /rest/plat/smapp/v1/sessions HTTP/1.1
Accept:application/json
Content-Type:application/json;charset=UTF-8
{
"grantType": "password",
"userName": "XXX",
"value": "***"
}
Response
● Response parameters
– Response status code 200:
The string is returned.
● Sample response
HTTP/1.1 200 OK
Content-Type:application/json
{
"accessSession": "x-yyyyyyy",
"roaRand": "xxxxxxx",
"expires": 1800,
"additionalInfo": {
"expires":"2",
"passwdStatus":"expiring"
}
}
Status Codes
Status Code Description
Operation Severity
Minor
Functions
This interface is used to log out the current third-party session or a common
session.
Availability Tier2
Throughput 20 tps
Precautions
None
HTTP Method
DELETE
URI
/rest/plat/smapp/v1/sessions
Path parameters
None
Query parameters
None
Request
● Header parameters
Paramete Mandato Type Value Description
r ry Range
● Body parameters
None
● Sample request
Response
● Response parameters
● Sample response
HTTP/1.1 200 OK
Content-Type:application/json
Status Codes
Status Code Description
Operation Severity
Minor
Functions
This interface is used for third-party user authentication and login.
Availability Tier2
Throughput 20 tps
Precautions
When accessing the application interface, set the HTTP header to the session
obtained after the northbound login. The key is X-Auth-Token and the value is the
session value, for example, X-Auth-Token:xxx.
HTTP Method
PUT
URI
/rest/plat/smapp/v1/oauth/token
Path parameters
None
Query parameters
None
Request
● Header parameters
See the sample request.
● Body parameters
● Sample request
PUT /rest/plat/smapp/v1/oauth/token HTTP/1.1
Accept:application/json
Content-Type:application/json;charset=UTF-8
{
"grantType": "password",
"userName": "XXX",
"value": "***"
}
Response
● Response parameters
– Response status code 200:
The string is returned.
● Sample response
HTTP/1.1 200 OK
Content-Type:application/json
{
"accessSession": "x-yyyyyyy",
"roaRand": "xxxxxxx",
"expires": 1800,
"additionalInfo": {
"expires":"2",
"passwdStatus":"expiring"
}
}
Status Codes
Status Code Description
Operation Severity
Minor
Functions
Add an SSO server whitelist.
Availability Tier2
Throughput 20 tps
Precautions
Users attached to the SMManagers role can call this interface. When accessing the
application interface, set the HTTP header to the session obtained after the
northbound login. The key is X-Auth-Token and the value is the session value, for
example, X-Auth-Token:xxx.
HTTP Method
POST
URI
/rest/plat/smapp/v1/sso-server
Path parameters
None
Query parameters
None
Request
● Header parameters
See the sample request.
● Body parameters
● Sample request
POST /rest/plat/smapp/v1/sso-server HTTP/1.1
Content-Type:application/json;charset=UTF-8
Accept:application/json
{
"description":"fdaf",
"host":"***.***.***",
"startip":"",
"endip":"",
"type":2
}
Response
● Response parameters
● Sample response
HTTP/1.1 200 OK
Content-Type:text/plain
Status Codes
Status Code Description
Operation Severity
Minor
Functions
Query SSO server whitelists.
Availability Tier2
Throughput 20 tps
Precautions
Users attached to the SMManagers role can call this interface. When accessing the
application interface, set the HTTP header to the session obtained after the
northbound login. The key is X-Auth-Token and the value is the session value, for
example, X-Auth-Token:xxx.
HTTP Method
GET
URI
/rest/plat/smapp/v1/sso-server
Path parameters
None
Query parameters
Request
● Header parameters
See the sample request.
● Body parameters
None
● Sample request
GET /rest/plat/smapp/v1/sso-server?ssoServerAddress=10.111.111.111~10.222.222.222
HTTP/1.1
Content-Type:application/json;charset=UTF-8
Accept:application/json
Response
● Response parameters
– Response status code 200:
The string is returned.
● Sample response
HTTP/1.1 200 OK
Content-Type:application/json
{
"id":1,
"description":"",
"host":null,
"startip":"10.111.111.111",
"endip":"10.222.222.222",
"createDateTime":null,
"type":3
}
Status Codes
Status Code Description
Operation Severity
Minor
Functions
Delete SSO server whitelists in batches.
Availability Tier2
Throughput 20 tps
Precautions
Users attached to the SMManagers role can call this interface. When accessing the
application interface, set the HTTP header to the session obtained after the
northbound login. The key is X-Auth-Token and the value is the session value, for
example, X-Auth-Token:xxx. All corresponding IDs of the SSO server whitelists to
be deleted must exist. Otherwise, the interface fails to be called and the error
code 400 is returned.
HTTP Method
DELETE
URI
/rest/plat/smapp/v1/sso-server
Path parameters
None
Query parameters
Request
● Header parameters
See the sample request.
● Body parameters
None
● Sample request
DELETE /rest/plat/smapp/v1/sso-server?ids=[1,2,3,4] HTTP/1.1
Content-Type:application/json;charset=UTF-8
Accept:text/plain
Response
● Response parameters
● Sample response
HTTP/1.1 200 OK
Content-Type:application/json
Status Codes
Status Code Description
Operation Severity
Minor
Functions
Modify the SSO server whitelist of a specified ID.
Availability Tier2
Throughput 20 tps
Precautions
Users attached to the SMManagers role can call this interface. When accessing the
application interface, set the HTTP header to the session obtained after the
northbound login. The key is X-Auth-Token and the value is the session value, for
example, X-Auth-Token:xxx. Any modified SSO server whitelist cannot be identical
to an existing one. Otherwise, the interface fails to be called and the error code
400 is returned.
HTTP Method
PUT
URI
/rest/plat/smapp/v1/sso-server/{id}
Path parameters
Query parameters
None
Request
● Header parameters
See the sample request.
● Body parameters
Paramete Mandato Type Value Description
r ry Range
● Sample request
PUT /rest/plat/smapp/v1/sso-server/1 HTTP/1.1
Content-Type:application/json;charset=UTF-8
{
"description":"testDescription",
"host":"X.X.X.X",
"startip":"",
"endip":"",
"type":0
}
Response
● Response parameters
● Sample response
HTTP/1.1 200 OK
Content-Type:text/plain
Status Codes
Status Code Description
Operation Severity
Minor
Functions
This interface is used for third-party user authentication and login.
Availability Tier2
Throughput 20 tps
Precautions
When accessing the application interface, set the HTTP header to the session
obtained after the northbound login. The key is X-Auth-Token and the value is the
HTTP Method
PUT
URI
/rest/openapi/sm/session
Path parameters
None
Query parameters
None
Request
● Header parameters
See the sample request.
● Body parameters
Paramete Mandato Type Value Description
r ry Range
● Sample request
PUT /rest/openapi/sm/session HTTP/1.1
Accept:application/json
Content-Type:application/json;charset=UTF-8
{
"userid": "XXX",
"value": "XXX",
"ipaddr": "127.0.0.1"
}
Accept:application/x-www-form-urlencoded
Content-Type:application/x-www-form-urlencoded;charset=UTF-8
userid=XXX&value=XXX&ipaddr=127.0.0.1
Response
● Response parameters
– Response status code 200:
The OpenAPIResult object is returned.
Attributes of the OpenAPIResult object
Paramet Mandato Type Value Description
er ry Range
● Sample response
HTTP/1.1 200 OK
Content-Type:application/json
{
"code" : 0,
"data" : "xxxxxxxxxxxxxxxxxxxxxxxx",
"description" : "Operation success."
}
HTTP/1.1 200 OK
Content-Type:application/json
{
"code" : 1,
"description" : "Login failure. Incorrect user name or password."
}
HTTP/1.1 200 OK
Content-Type:application/json
{
"code" : 1,
"description" : "Login failed due to incorrect user name or password. The user account
has been locked."
}
HTTP/1.1 200 OK
Content-Type:application/json
{
"code" : 1,
"description" : "Password has expired."
}
HTTP/1.1 200 OK
Content-Type:application/json
{
"code" : 1,
Status Codes
Status Code Description
Operation Severity
Minor
Functions
This interface is used to log out the current third-party session or a common
session.
Availability Tier2
Throughput 20 tps
Precautions
None
HTTP Method
DELETE
URI
/rest/openapi/sm/session
Path parameters
None
Query parameters
None
Request
● Header parameters
Paramete Mandato Type Value Description
r ry Range
● Body parameters
● Sample request
DELETE /rest/openapi/sm/session HTTP/1.1
Accept:application/json
Content-Type:application/json;charset=UTF-8
openid:r-xxxxxxxxxxxxxxxxx
Response
● Response parameters
– Response status code 200:
The OpenAPIResult object is returned.
Attributes of the OpenAPIResult object
Paramet Mandato Type Value Description
er ry Range
● Sample response
HTTP/1.1 200 OK
Content-Type:application/json
{
"code" : 0,
"description" : "Operation success."
}
HTTP/1.1 200 OK
Content-Type:application/json
{
"code" : 1,
"description" : "openID is wrong."
}
HTTP/1.1 200 OK
Content-Type:application/json
{
"code" : 1,
"description" : "failed. user has logout."
}
Status Codes
Status Code Description
Operation Severity
Minor
Functions
This interface authenticates the login of a common user or a remote user.
Availability Tier2
Throughput 20 tps
Precautions
This interface must be accessed through HTTPS.
HTTP Method
PUT
URI
/rest/plat/uam/v1/auth/uniauth
Path parameters
None
Query parameters
None
Request
● Header parameters
See the sample request.
● Body parameters
● Sample request
PUT /rest/plat/uam/v1/auth/uniauth HTTP/1.1
Accept:application/json
Content-Type:application/json;charset=UTF-8
X-Auth-Token: x-hesbaoru3sj********bznw7x7xfy2kaptjju
{
"terminal": "127.0.0.1",
"userName": "XXX",
"value": "***",
"sessionInvalid": "true"
}
Response
● Response parameters
– Response status code 200:
The UniUserInfo object is returned.
Attributes of the UniUserInfo object
Paramet Mandato Type Value Description
er ry Range
● Sample response
HTTP/1.1 200 OK
Content-Type:application/json
{
"userId": 198245,
"userName": "user007",
"type": 0,
"enableIdleTime": true,
"idleTime": 600000,
"roleIds": [1],
"roleNames": ["Administrators"],
"region": {
"id": "global",
"name": "global",
"description": null,
"domain": 0,
"mgrRoleId": 0
},
"resourceGroups": {
"1": [{
"source": null,
"groupId": "2",
"tag": null
}
]
},
"permissions": {},
"callBackUrl": {
"roleCallBack": "/rest/plat/xxx/xxx",
"resourceCallBack": "/rest/plat/xxx/xxx",
"permissionCallBack": ""
},
"domain": {
"id": "0",
"name": "global",
"description": null,
"domain": 0,
"mgrRoleId": 0
}
}
Status Codes
Status Code Description
Operation Severity
Minor
1.9.2 ZTP
Typical Scenarios
The global configuration needs to be queried.
Functions
Query global configurations.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/sdn/acdcn/v3/underlay/ztp/regions/global
Request Parameters
N/A
Sample Request
HTTP
GET /sdn/acdcn/v3/underlay/ztp/regions/global HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: OK
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 200: OK
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"snmpAccount" : "huawei",
"authProtocol" : "HMAC_SHA",
"encryptAlgorithm" : "AES_128",
"snmpPort" : 161,
"timeout" : 4000,
"repetitions" : 3,
"netconfAccount" : "huawei",
"netconfPort" : 22
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
The global configuration needs to be queried.
Functions
Update global configurations.
Constraints
User role: northbound operator.
HTTP Method
PUT
URI
/sdn/acdcn/v3/underlay/ztp/regions/global
Request Parameters
Sample Request
HTTP
PUT /sdn/acdcn/v3/underlay/ztp/regions/global HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"snmpAccount" : "huawei",
"authProtocol" : "HMAC_SHA",
"authPWDInfo" : "********",
"encryptAlgorithm" : "AES_128",
"encryptPWDInfo" : "********",
"snmpPort" : 161,
"timeout" : 4000,
"repetitions" : 3,
"netconfAccount" : "huawei",
"netconfPWDInfo" : "********",
"netconfPort" : 22
}
Response Parameters
Response status code 200: OK
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 200: OK
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Detailed region information needs to be queried.
Functions
Query detailed region information by region ID.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/sdn/acdcn/v3/underlay/ztp/regions/info
Request Parameters
N/A
Sample Request
HTTP
GET /sdn/acdcn/v3/underlay/ztp/regions/info?regionid=DBB702C3-7719-4FE6-A5AD-3A9C9E265309 HTTP/
1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: OK
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Response status code 500: Response status code 500: Internal server error.
Sample Response
Response status code 200: OK
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"regionId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"regionName" : "Region One",
"deployMode" : "IN_BAND",
"relyLldp" : true,
"precisePlan" : false,
"manageVpn" : "vpn",
"fabricId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"fabricName" : "Fabric One",
"ftpIp" : "192.168.1.1",
"ftpPort" : 22,
"ftpAccount" : "admin",
"ftpPWDInfo" : "********",
"ftpMerge" : false,
"ftpIpv6" : "fc00::/7",
"ftpPortv6" : 22,
"ftpAccountv6" : "admin",
"ftpPWDInfov6" : "******",
"backupFtpIp" : "10.0.0.0",
"backupFtpPort" : 22,
"backupFtpAccount" : "admin",
"backupFtpPWDInfo" : "******",
"usedSlaveBackupFtp" : false,
"slaveBackupFtpIp" : "10.2.3.4",
"slaveBackupFtpPort" : 22,
"slaveBackupFtpAccount" : "admin",
"slaveBackupFtpPWDInfo" : "******",
"dhcpIp" : "10.0.0.0",
"regionMemo" : "memo",
"regionExtendedList" : [
{
"extAttrId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"extAttrName" : "A-1",
"extAttrValue" : "123"
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Basic region information needs to be queried.
Functions
Query basic region information based on the pagination information and keyword.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/sdn/acdcn/v3/underlay/ztp/regions/list
Request Parameters
N/A
Sample Request
HTTP
GET /sdn/acdcn/v3/underlay/ztp/regions/list?limit=10&offset=1&keyword=region1 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: OK
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 200: OK
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"pageIndex" : 1,
"pageSize" : 10,
"totalRecords" : 100,
"data" : [
{
"regionId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"regionName" : "Region One",
"deployMode" : "IN_BAND",
"relyLldp" : true,
"precisePlan" : false,
"manageVpn" : "vpn",
"fabricId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"fabricName" : "Fabric One",
"ftpIp" : "192.168.1.1",
"ftpPort" : 22,
"ftpAccount" : "admin",
"ftpPWDInfo" : "********",
"ftpMerge" : false,
"ftpIpv6" : "fc00::/7",
"ftpPortv6" : 22,
"ftpAccountv6" : "admin",
"ftpPWDInfov6" : "******",
"backupFtpIp" : "10.0.0.0",
"backupFtpPort" : 22,
"backupFtpAccount" : "admin",
"backupFtpPWDInfo" : "******",
"usedSlaveBackupFtp" : false,
"slaveBackupFtpIp" : "10.2.3.4",
"slaveBackupFtpPort" : 22,
"slaveBackupFtpAccount" : "admin",
"slaveBackupFtpPWDInfo" : "******",
"dhcpIp" : "10.0.0.0",
"regionMemo" : "memo",
"regionExtendedList" : [
{
"extAttrId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"extAttrName" : "A-1",
"extAttrValue" : "123"
}
]
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
The password of a file server in a region needs to be queried.
Functions
Change the password of the file server in a region.
Constraints
User role: northbound operator.
HTTP Method
PUT
URI
/sdn/acdcn/v3/underlay/ztp/regions/password
Request Parameters
Sample Request
HTTP
PUT /sdn/acdcn/v3/underlay/ztp/regions/password HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"regionId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"type" : "ftp",
"oldPWDInfo" : "******",
"newPWDInfo" : "********"
}
Response Parameters
Response status code 200: OK
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 200: OK
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A region needs to be created.
Functions
Create a region based on related information.
Constraints
User role: northbound operator.
HTTP Method
POST
URI
/sdn/acdcn/v3/underlay/ztp/regions/region
Request Parameters
Sample Request
HTTP
POST /sdn/acdcn/v3/underlay/ztp/regions/region HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"regionId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"regionName" : "Region One",
"deployMode" : "IN_BAND",
"relyLldp" : true,
"precisePlan" : false,
"manageVpn" : "vpn",
"fabricId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"fabricName" : "Fabric One",
"ftpIp" : "192.168.1.1",
"ftpPort" : 22,
"ftpAccount" : "admin",
"ftpPWDInfo" : "********",
"ftpMerge" : false,
"ftpIpv6" : "fc00::/7",
"ftpPortv6" : 22,
"ftpAccountv6" : "admin",
"ftpPWDInfov6" : "******",
"backupFtpIp" : "10.0.0.0",
"backupFtpPort" : 22,
"backupFtpAccount" : "admin",
"backupFtpPWDInfo" : "******",
"usedSlaveBackupFtp" : false,
"slaveBackupFtpIp" : "10.2.3.4",
"slaveBackupFtpPort" : 22,
"slaveBackupFtpAccount" : "admin",
"slaveBackupFtpPWDInfo" : "******",
"dhcpIp" : "10.0.0.0",
"regionMemo" : "memo",
"regionExtendedList" : [
{
"extAttrId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"extAttrName" : "A-1",
"extAttrValue" : "123"
}
]
}
Response Parameters
Response status code 201: Created
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 201: Created
HTTP/1.1 201 Created
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Region information needs to be modified.
Functions
Modify a region.
Constraints
User role: northbound operator.
HTTP Method
PUT
URI
/sdn/acdcn/v3/underlay/ztp/regions/region
Request Parameters
Sample Request
HTTP
PUT /sdn/acdcn/v3/underlay/ztp/regions/region HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"regionId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"regionName" : "Region One",
"deployMode" : "IN_BAND",
"relyLldp" : true,
"precisePlan" : false,
"manageVpn" : "vpn",
"fabricId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"fabricName" : "Fabric One",
"ftpIp" : "192.168.1.1",
"ftpPort" : 22,
"ftpAccount" : "admin",
"ftpPWDInfo" : "********",
"ftpMerge" : false,
"ftpIpv6" : "fc00::/7",
"ftpPortv6" : 22,
"ftpAccountv6" : "admin",
"ftpPWDInfov6" : "******",
"backupFtpIp" : "10.0.0.0",
"backupFtpPort" : 22,
"backupFtpAccount" : "admin",
"backupFtpPWDInfo" : "******",
"usedSlaveBackupFtp" : false,
"slaveBackupFtpIp" : "10.2.3.4",
"slaveBackupFtpPort" : 22,
"slaveBackupFtpAccount" : "admin",
"slaveBackupFtpPWDInfo" : "******",
"dhcpIp" : "10.0.0.0",
"regionMemo" : "memo",
"regionExtendedList" : [
{
"extAttrId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"extAttrName" : "A-1",
"extAttrValue" : "123"
}
]
}
Response Parameters
Response status code 200: OK
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 200: OK
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A region needs to be deleted.
Functions
Delete a region by ID.
Constraints
User role: northbound operator.
HTTP Method
DELETE
URI
/sdn/acdcn/v3/underlay/ztp/regions/region
Request Parameters
Sample Request
HTTP
DELETE /sdn/acdcn/v3/underlay/ztp/regions/region HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"regionIdList" : [
"DBB702C3-7719-4FE6-A5AD-3A9C9E265309"
]
}
Response Parameters
Response status code 200: OK
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 200: OK
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A resource pool needs to be created.
Functions
Create resource pools based on related information.
Constraints
User role: northbound operator.
HTTP Method
POST
URI
/sdn/acdcn/v3/underlay/ztp/respool/region/{regionId}
Request Parameters
Sample Request
HTTP
POST /sdn/acdcn/v3/underlay/ztp/respool/region/DBB702C3-7719-4FE6-A5AD-3A9C9E265309 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"region" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"respool" : [
{
"pool" : "Inter",
"segments" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"start" : "10.0.0.0",
"end" : "10.0.0.1",
"mask" : "24",
"ip-version" : "Ipv4"
}
]
}
]
}
Response Parameters
Response status code 201: Created
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 201: Created
HTTP/1.1 201 Created
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"regionId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"respool" : [
{
"respoolType" : "Vlan",
"segments" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"mask" : "24",
"ipVersion" : "Ipv4",
"startIp" : "10.2.3.4",
"endIp" : "10.2.3.5"
}
]
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
Typical Scenarios
Resource pools need to be queried.
Functions
Query resource pools by region ID, IP version, and resource pool type.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/sdn/acdcn/v3/underlay/ztp/respool/region/{regionId}
Request Parameters
N/A
Sample Request
HTTP
GET /sdn/acdcn/v3/underlay/ztp/respool/region/DBB702C3-7719-4FE6-A5AD-3A9C9E265309?ip-
version=Ipv4&pool-type=Vlan HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: OK
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
Sample Response
Response status code 200: OK
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"region" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"respool" : [
{
"pool" : "Inter",
"segments" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"start" : "10.0.0.0",
"end" : "10.0.0.1",
"mask" : "24",
"ip-version" : "Ipv4"
}
]
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Resource pools need to be deleted.
Functions
Delete resource pools by region ID and IP version.
Constraints
User role: northbound operator.
HTTP Method
DELETE
URI
/sdn/acdcn/v3/underlay/ztp/respool/region/{regionId}
Request Parameters
Sample Request
HTTP
DELETE /sdn/acdcn/v3/underlay/ztp/respool/region/DBB702C3-7719-4FE6-A5AD-3A9C9E265309 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"ip-version" : "Ipv4",
"ids" : [
"DBB702C3-7719-4FE6-A5AD-3A9C9E265309"
]
}
Response Parameters
Response status code 200: OK
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Response status code 500: Response status code 500: Internal server error.
Sample Response
Response status code 200: OK
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A whitelist needs to be created.
Functions
Create a whitelist based on the planned information.
Constraints
User role: northbound operator.
HTTP Method
POST
URI
/sdn/acdcn/v3/underlay/ztp/whitelist
Request Parameters
Sample Request
HTTP
POST /sdn/acdcn/v3/underlay/ztp/whitelist HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"regionId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"dtoList" : [
{
"esn" : "1234567890QWERTYUIOP",
"mac" : "0000-1122-3344"
}
],
"total-num" : 100
}
Response Parameters
Response status code 201: Created
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 201: Created
HTTP/1.1 201 Created
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"regionId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"dtoList" : [
{
"esn" : "1234567890QWERTYUIOP",
"mac" : "0000-1122-3344"
}
],
"total-num" : 100
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Whitelists need to be queried.
Functions
Query whitelist information based on keywords and other information.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/sdn/acdcn/v3/underlay/ztp/whitelist
Request Parameters
N/A
Sample Request
HTTP
GET /sdn/acdcn/v3/underlay/ztp/whitelist?regionId=DBB702C3-7719-4FE6-
A5AD-3A9C9E265309&keyword=dhc&limit=6 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: OK
WhiteListWrapper parameters, For details, see Table 1-90.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 200: OK
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"regionId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"dtoList" : [
{
"esn" : "1234567890QWERTYUIOP",
"mac" : "0000-1122-3344"
}
],
"total-num" : 100
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Delete Whitelists by region ID.
Functions
Delete whitelists by region ID.
Constraints
User role: northbound operator.
HTTP Method
DELETE
URI
/sdn/acdcn/v3/underlay/ztp/whitelist
Request Parameters
Sample Request
HTTP
DELETE /sdn/acdcn/v3/underlay/ztp/whitelist HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"regionId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceIdList" : [
"CE39"
]
}
Response Parameters
Response status code 200: OK
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 200: OK
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Devices need to be imported.
Functions
Import devices based on a data plan.
Constraints
User role: northbound operator.
HTTP Method
POST
URI
/sdn/acdcn/v3/underlay/ztp/topo/device
Request Parameters
Sample Request
HTTP
POST /sdn/acdcn/v3/underlay/ztp/topo/device HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"device-total-num" : 100,
"l2link-total-num" : 100,
"l3link-total-num" : 100,
"device-list" : [
{
"ne-index" : "CE39",
"ne-role" : "Spine",
"sysname" : "CE39",
"location" : "Nanjing",
"mgnt-ipv4" : "10.1.3.4/24",
"mgnt-ipv6" : "fc00::/7",
"vtep-ipv4" : "10.1.3.4",
"vtep-ipv6" : "fc00::/7",
"ztp-level" : 2,
"is-isolate" : false,
"esn" : "1234567890QWERTYUIOP",
"stack" : "Stack One",
"loopback1-ipv4" : "10.1.3.4/24",
"loopbackX-ipv6" : "fc00::/7",
"status" : "NORMAL",
"identifier" : 2,
"extend" : [
{
"key-name" : "abcd",
"value" : "abcd"
}
]
}
],
"l2link-list" : [
{
"l2-link-id" : "fc00::/7",
"ne-index-a" : "CEA",
"port-index-a" : "10GE1/0/1",
"eth-trunk-no-a" : "Eth-Trunk0",
"ne-index-b" : "CEB",
"port-index-b" : "10GE1/0/1",
"eth-trunk-no-b" : "Eth-Trunk0",
"status" : "NORMAL",
"extend" : [
{
"key-name" : "abcd",
"value" : "abcd"
}
]
}
],
"l3link-list" : [
{
"l3-link-id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"ne-index-a" : "CEA",
"if-a" : "Vlanif1000",
"ne-a-conn-ipv4" : "10.1.3.4/30",
"ne-a-conn-ipv6" : "FE80::/10",
"ne-index-b" : "CEB",
"if-b" : "Vlanif1000",
"ne-b-conn-ipv4" : "10.2.3.4/30",
"ne-b-conn-ipv6" : "FE80::/10",
"extend" : [
{
"key-name" : "abcd",
"value" : "abcd"
}
]
}
],
"region-id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"is-overwritten" : true
}
Response Parameters
Response status code 201: Created
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 201: Created
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Device information needs to be queried.
Functions
Query device information based on keywords and other information.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/sdn/acdcn/v3/underlay/ztp/topo/device
Request Parameters
N/A
Sample Request
HTTP
GET /sdn/acdcn/v3/underlay/ztp/topo/device?regionid=DBB702C3-7719-4FE6-
A5AD-3A9C9E265309&keyword=region1&limit=1&offset=1 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: OK
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 200: OK
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"device-total-num" : 100,
"l2link-total-num" : 100,
"l3link-total-num" : 100,
"device-list" : [
{
"ne-index" : "CE39",
"ne-role" : "Spine",
"sysname" : "CE39",
"location" : "Nanjing",
"mgnt-ipv4" : "10.1.3.4/24",
"mgnt-ipv6" : "fc00::/7",
"vtep-ipv4" : "10.1.3.4",
"vtep-ipv6" : "fc00::/7",
"ztp-level" : 2,
"is-isolate" : false,
"esn" : "1234567890QWERTYUIOP",
"stack" : "Stack One",
"loopback1-ipv4" : "10.1.3.4/24",
"loopbackX-ipv6" : "fc00::/7",
"status" : "NORMAL",
"identifier" : 2,
"extend" : [
{
"key-name" : "abcd",
"value" : "abcd"
}
]
}
],
"l2link-list" : [
{
"l2-link-id" : "fc00::/7",
"ne-index-a" : "CEA",
"port-index-a" : "10GE1/0/1",
"eth-trunk-no-a" : "Eth-Trunk0",
"ne-index-b" : "CEB",
"port-index-b" : "10GE1/0/1",
"eth-trunk-no-b" : "Eth-Trunk0",
"status" : "NORMAL",
"extend" : [
{
"key-name" : "abcd",
"value" : "abcd"
}
]
}
],
"l3link-list" : [
{
"l3-link-id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"ne-index-a" : "CEA",
"if-a" : "Vlanif1000",
"ne-a-conn-ipv4" : "10.1.3.4/30",
"ne-a-conn-ipv6" : "FE80::/10",
"ne-index-b" : "CEB",
"if-b" : "Vlanif1000",
"ne-b-conn-ipv4" : "10.2.3.4/30",
"ne-b-conn-ipv6" : "FE80::/10",
"extend" : [
{
"key-name" : "abcd",
"value" : "abcd"
}
]
}
],
"region-id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"is-overwritten" : true
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
Typical Scenarios
A device needs to be deleted.
Functions
Delete a device.
Constraints
User role: northbound operator.
HTTP Method
DELETE
URI
/sdn/acdcn/v3/underlay/ztp/topo/device
Request Parameters
Sample Request
HTTP
DELETE /sdn/acdcn/v3/underlay/ztp/topo/device HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"delete-devices" : [
{
"ne-index" : "CE39"
}
]
}
Response Parameters
Response status code 201: OK
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 201: OK
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Layer 2 links need to be imported.
Functions
Import Layer 2 links based on a data plan.
Constraints
User role: northbound operator.
HTTP Method
POST
URI
/sdn/acdcn/v3/underlay/ztp/topo/l2link
Request Parameters
Sample Request
HTTP
POST /sdn/acdcn/v3/underlay/ztp/topo/l2link HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"device-total-num" : 100,
"l2link-total-num" : 100,
"l3link-total-num" : 100,
"device-list" : [
{
"ne-index" : "CE39",
"ne-role" : "Spine",
"sysname" : "CE39",
"location" : "Nanjing",
"mgnt-ipv4" : "10.1.3.4/24",
"mgnt-ipv6" : "fc00::/7",
"vtep-ipv4" : "10.1.3.4",
"vtep-ipv6" : "fc00::/7",
"ztp-level" : 2,
"is-isolate" : false,
"esn" : "1234567890QWERTYUIOP",
"stack" : "Stack One",
"loopback1-ipv4" : "10.1.3.4/24",
"loopbackX-ipv6" : "fc00::/7",
"status" : "NORMAL",
"identifier" : 2,
"extend" : [
{
"key-name" : "abcd",
"value" : "abcd"
}
]
}
],
"l2link-list" : [
{
"l2-link-id" : "fc00::/7",
"ne-index-a" : "CEA",
"port-index-a" : "10GE1/0/1",
"eth-trunk-no-a" : "Eth-Trunk0",
"ne-index-b" : "CEB",
"port-index-b" : "10GE1/0/1",
"eth-trunk-no-b" : "Eth-Trunk0",
"status" : "NORMAL",
"extend" : [
{
"key-name" : "abcd",
"value" : "abcd"
}
]
}
],
"l3link-list" : [
{
"l3-link-id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"ne-index-a" : "CEA",
"if-a" : "Vlanif1000",
"ne-a-conn-ipv4" : "10.1.3.4/30",
"ne-a-conn-ipv6" : "FE80::/10",
"ne-index-b" : "CEB",
"if-b" : "Vlanif1000",
"ne-b-conn-ipv4" : "10.2.3.4/30",
"ne-b-conn-ipv6" : "FE80::/10",
"extend" : [
{
"key-name" : "abcd",
"value" : "abcd"
}
]
}
],
"region-id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"is-overwritten" : true
}
Response Parameters
Response status code 201: Created
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 201: Created
HTTP/1.1 201 Created
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Layer 2 links need to be queried.
Functions
Query Layer 2 link information based on a keyword.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/sdn/acdcn/v3/underlay/ztp/topo/l2link
Request Parameters
N/A
Sample Request
HTTP
GET /sdn/acdcn/v3/underlay/ztp/topo/l2link?regionid=region1&limit=1&offset=1 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: OK
TopologyImportDtoWrapper parameters, For details, see Table 1-105.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
Sample Response
Response status code 200: OK
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"device-total-num" : 100,
"l2link-total-num" : 100,
"l3link-total-num" : 100,
"device-list" : [
{
"ne-index" : "CE39",
"ne-role" : "Spine",
"sysname" : "CE39",
"location" : "Nanjing",
"mgnt-ipv4" : "10.1.3.4/24",
"mgnt-ipv6" : "fc00::/7",
"vtep-ipv4" : "10.1.3.4",
"vtep-ipv6" : "fc00::/7",
"ztp-level" : 2,
"is-isolate" : false,
"esn" : "1234567890QWERTYUIOP",
"stack" : "Stack One",
"loopback1-ipv4" : "10.1.3.4/24",
"loopbackX-ipv6" : "fc00::/7",
"status" : "NORMAL",
"identifier" : 2,
"extend" : [
{
"key-name" : "abcd",
"value" : "abcd"
}
]
}
],
"l2link-list" : [
{
"l2-link-id" : "fc00::/7",
"ne-index-a" : "CEA",
"port-index-a" : "10GE1/0/1",
"eth-trunk-no-a" : "Eth-Trunk0",
"ne-index-b" : "CEB",
"port-index-b" : "10GE1/0/1",
"eth-trunk-no-b" : "Eth-Trunk0",
"status" : "NORMAL",
"extend" : [
{
"key-name" : "abcd",
"value" : "abcd"
}
]
}
],
"l3link-list" : [
{
"l3-link-id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"ne-index-a" : "CEA",
"if-a" : "Vlanif1000",
"ne-a-conn-ipv4" : "10.1.3.4/30",
"ne-a-conn-ipv6" : "FE80::/10",
"ne-index-b" : "CEB",
"if-b" : "Vlanif1000",
"ne-b-conn-ipv4" : "10.2.3.4/30",
"ne-b-conn-ipv6" : "FE80::/10",
"extend" : [
{
"key-name" : "abcd",
"value" : "abcd"
}
]
}
],
"region-id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"is-overwritten" : true
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Layer 3 links need to be imported.
Functions
Import Layer 3 links based on a data plan.
Constraints
User role: northbound operator.
HTTP Method
POST
URI
/sdn/acdcn/v3/underlay/ztp/topo/l3link
Request Parameters
Sample Request
HTTP
POST /sdn/acdcn/v3/underlay/ztp/topo/l3link HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"device-total-num" : 100,
"l2link-total-num" : 100,
"l3link-total-num" : 100,
"device-list" : [
{
"ne-index" : "CE39",
"ne-role" : "Spine",
"sysname" : "CE39",
"location" : "Nanjing",
"mgnt-ipv4" : "10.1.3.4/24",
"mgnt-ipv6" : "fc00::/7",
"vtep-ipv4" : "10.1.3.4",
"vtep-ipv6" : "fc00::/7",
"ztp-level" : 2,
"is-isolate" : false,
"esn" : "1234567890QWERTYUIOP",
"stack" : "Stack One",
"loopback1-ipv4" : "10.1.3.4/24",
"loopbackX-ipv6" : "fc00::/7",
"status" : "NORMAL",
"identifier" : 2,
"extend" : [
{
"key-name" : "abcd",
"value" : "abcd"
}
]
}
],
"l2link-list" : [
{
"l2-link-id" : "fc00::/7",
"ne-index-a" : "CEA",
"port-index-a" : "10GE1/0/1",
"eth-trunk-no-a" : "Eth-Trunk0",
"ne-index-b" : "CEB",
"port-index-b" : "10GE1/0/1",
"eth-trunk-no-b" : "Eth-Trunk0",
"status" : "NORMAL",
"extend" : [
{
"key-name" : "abcd",
"value" : "abcd"
}
]
}
],
"l3link-list" : [
{
"l3-link-id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"ne-index-a" : "CEA",
"if-a" : "Vlanif1000",
"ne-a-conn-ipv4" : "10.1.3.4/30",
"ne-a-conn-ipv6" : "FE80::/10",
"ne-index-b" : "CEB",
"if-b" : "Vlanif1000",
"ne-b-conn-ipv4" : "10.2.3.4/30",
"ne-b-conn-ipv6" : "FE80::/10",
"extend" : [
{
"key-name" : "abcd",
"value" : "abcd"
}
]
}
],
"region-id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"is-overwritten" : true
}
Response Parameters
Response status code 201: Created
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 201: Created
HTTP/1.1 201 Created
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Layer 3 links need to be queried.
Functions
Query Layer 3 links based on a keyword.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/sdn/acdcn/v3/underlay/ztp/topo/l3link
Request Parameters
N/A
Sample Request
HTTP
GET /sdn/acdcn/v3/underlay/ztp/topo/l3link?regionid=region1&keyword=region1&limit=1&offset=1 HTTP/
1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: OK
TopologyImportDtoWrapper parameters, For details, see Table 1-105.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 200: OK
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"device-total-num" : 100,
"l2link-total-num" : 100,
"l3link-total-num" : 100,
"device-list" : [
{
"ne-index" : "CE39",
"ne-role" : "Spine",
"sysname" : "CE39",
"location" : "Nanjing",
"mgnt-ipv4" : "10.1.3.4/24",
"mgnt-ipv6" : "fc00::/7",
"vtep-ipv4" : "10.1.3.4",
"vtep-ipv6" : "fc00::/7",
"ztp-level" : 2,
"is-isolate" : false,
"esn" : "1234567890QWERTYUIOP",
"stack" : "Stack One",
"loopback1-ipv4" : "10.1.3.4/24",
"loopbackX-ipv6" : "fc00::/7",
"status" : "NORMAL",
"identifier" : 2,
"extend" : [
{
"key-name" : "abcd",
"value" : "abcd"
}
]
}
],
"l2link-list" : [
{
"l2-link-id" : "fc00::/7",
"ne-index-a" : "CEA",
"port-index-a" : "10GE1/0/1",
"eth-trunk-no-a" : "Eth-Trunk0",
"ne-index-b" : "CEB",
"port-index-b" : "10GE1/0/1",
"eth-trunk-no-b" : "Eth-Trunk0",
"status" : "NORMAL",
"extend" : [
{
"key-name" : "abcd",
"value" : "abcd"
}
]
}
],
"l3link-list" : [
{
"l3-link-id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"ne-index-a" : "CEA",
"if-a" : "Vlanif1000",
"ne-a-conn-ipv4" : "10.1.3.4/30",
"ne-a-conn-ipv6" : "FE80::/10",
"ne-index-b" : "CEB",
"if-b" : "Vlanif1000",
"ne-b-conn-ipv4" : "10.2.3.4/30",
"ne-b-conn-ipv6" : "FE80::/10",
"extend" : [
{
"key-name" : "abcd",
"value" : "abcd"
}
]
}
],
"region-id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"is-overwritten" : true
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Device information needs to be queried.
Functions
Query device information by device index.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/sdn/acdcn/v3/underlay/ztp/topo/deviceext/{neIndex}
Request Parameters
N/A
Sample Request
HTTP
GET /sdn/acdcn/v3/underlay/ztp/topo/deviceext/519491659 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: OK
DeviceEntityDto parameters, For details, see Table 1-106.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 200: OK
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"ne-index" : "CE39",
"ne-role" : "Spine",
"sysname" : "CE39",
"location" : "Nanjing",
"mgnt-ipv4" : "10.1.3.4/24",
"mgnt-ipv6" : "fc00::/7",
"vtep-ipv4" : "10.1.3.4",
"vtep-ipv6" : "fc00::/7",
"ztp-level" : 2,
"is-isolate" : false,
"esn" : "1234567890QWERTYUIOP",
"stack" : "Stack One",
"loopback1-ipv4" : "10.1.3.4/24",
"loopbackX-ipv6" : "fc00::/7",
"status" : "NORMAL",
"identifier" : 2,
"extend" : [
{
"key-name" : "abcd",
"value" : "abcd"
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Layer 2 links need to be queried.
Functions
Query Layer 2 link information by link ID.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/sdn/acdcn/v3/underlay/ztp/topo/l2linkext/{l2LinkId}
Request Parameters
N/A
Sample Request
HTTP
GET /sdn/acdcn/v3/underlay/ztp/topo/l2linkext/132165 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: OK
L2LinkEntityDto parameters, For details, see Table 1-108.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 200: OK
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"l2-link-id" : "fc00::/7",
"ne-index-a" : "CEA",
"port-index-a" : "10GE1/0/1",
"eth-trunk-no-a" : "Eth-Trunk0",
"ne-index-b" : "CEB",
"port-index-b" : "10GE1/0/1",
"eth-trunk-no-b" : "Eth-Trunk0",
"status" : "NORMAL",
"extend" : [
{
"key-name" : "abcd",
"value" : "abcd"
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
Typical Scenarios
Layer 3 links need to be queried.
Functions
Query Layer 3 link information by link ID.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/sdn/acdcn/v3/underlay/ztp/topo/l3linkext/{l3LinkId}
Request Parameters
N/A
Sample Request
HTTP
GET /sdn/acdcn/v3/underlay/ztp/topo/l3linkext/43129859 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: OK
L3LinkEntityDto parameters, For details, see Table 1-110.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 200: OK
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"l3-link-id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"ne-index-a" : "CEA",
"if-a" : "Vlanif1000",
"ne-a-conn-ipv4" : "10.1.3.4/30",
"ne-a-conn-ipv6" : "FE80::/10",
"ne-index-b" : "CEB",
"if-b" : "Vlanif1000",
"ne-b-conn-ipv4" : "10.2.3.4/30",
"ne-b-conn-ipv6" : "FE80::/10",
"extend" : [
{
"key-name" : "abcd",
"value" : "abcd"
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Topology information needs to be cleared by region ID.
Functions
Clear topology information by region ID.
Constraints
User role: northbound operator.
HTTP Method
DELETE
URI
/sdn/acdcn/v3/underlay/ztp/topo/topoinfo
Request Parameters
N/A
Sample Request
HTTP
DELETE /sdn/acdcn/v3/underlay/ztp/topo/topoinfo?regionid=321553&type=INBAND HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: OK
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 200: OK
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
1.9.2.5 Task
Typical Scenarios
Start ZTP Tasks.
Functions
Start ZTP tasks based on the region ID and device ID list.
Constraints
User role: northbound operator.
HTTP Method
POST
URI
/sdn/acdcn/v3/underlay/ztp/ztpmgnt/operation
Request Parameters
Sample Request
HTTP
POST /sdn/acdcn/v3/underlay/ztp/ztpmgnt/operation HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"regionId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceIdList" : [
"CE39"
]
}
Response Parameters
Response status code 200: OK
Sample Response
Response status code 200: OK
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
ZTP tasks need to be stopped by region ID.
Functions
Stop ZTP tasks by region ID.
Constraints
User role: northbound operator.
HTTP Method
DELETE
URI
/sdn/acdcn/v3/underlay/ztp/ztpmgnt/operation
Request Parameters
Sample Request
HTTP
DELETE /sdn/acdcn/v3/underlay/ztp/ztpmgnt/operation HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"regionId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309"
}
Response Parameters
Response status code 200: OK
Sample Response
Response status code 200: OK
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"regionId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"taskId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309"
}
Typical Scenarios
The port of a managed device needs to be changed.
Functions
Update the device port based on the device ID and re-collect the port information.
Constraints
User role: northbound operator.
HTTP Method
POST
URI
/sdn/acdcn/v3/underlay/ztp/hostexpan/refreshport
Request Parameters
Sample Request
HTTP
POST /sdn/acdcn/v3/underlay/ztp/hostexpan/refreshport HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"deviceId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309"
}
Response Parameters
Response status code 200: OK
Sample Response
Response status code 200: OK
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
ZTP tasks need to be queried.
Functions
Query ZTP tasks based on the pagination information, device information, and
region ID.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/sdn/acdcn/v3/underlay/ztp/taskManagement/query
Request Parameters
N/A
Sample Request
HTTP
GET /sdn/acdcn/v3/underlay/ztp/taskManagement/query?
limit=10&offset=100&deviceInfo=dhc®ionId=DBB702C3-7719-4FE6-A5AD-3A9C9E265309 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: OK
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 200: OK
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"pageIndex" : 1,
"pageSize" : 10,
"totalRecords" : 100,
"data" : [
{
"taskId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"regionId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"regionName" : "Region One",
"deviceIndex" : "CE39",
"deviceName" : "CE39",
"managementIp" : "10.0.0.0/24",
"status" : "PROCESS",
"progress" : 100,
"information" : "START:2018/04/23 15:42:42"
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
ZTP tasks need to be queried on Day 0.
Functions
Query ZTP tasks based on the pagination information, device information, and
region ID.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/sdn/acdcn/v3/underlay/ztp/taskManagement/queryall
Request Parameters
N/A
Sample Request
HTTP
GET /sdn/acdcn/v3/underlay/ztp/taskManagement/queryall?limit=10&offset=100&taskInfo=dhc HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: OK
Sample Response
Response status code 200: OK
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"pageIndex" : 1,
"pageSize" : 10,
"totalRecords" : 100,
"data" : [
{
"taskId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"taskName" : "snapShot1",
"regionId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"regionName" : "Region One",
"operationType" : "OPENING",
"taskStatus" : "PROCESS",
"progress" : 100
}
]
}
Typical Scenarios
Syslog information needs to be queried when a device goes online on Day 0.
Functions
Query device syslog information based on the page information, device
information, log level, and task ID.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/sdn/acdcn/v3/underlay/ztp/taskManagement/syslog
Request Parameters
N/A
Sample Request
HTTP
GET /sdn/acdcn/v3/underlay/ztp/taskManagement/syslog?
pageSize=20&pageIndex=1&taskId=00000000-0000-0000-0000-000000000000&deviceName=DTS&deviceIp=
192.168.0.0&logLevel=Informational&precise=true HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: OK
Sample Response
Response status code 200: OK
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"sysName" : "Spine",
"esn" : "",
"mac" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"manageIp" : "",
"logLevel" : "Informational",
"currentTimestamp" : "PROCESS",
"taskId" : "100"
}
Typical Scenarios
Devices need to be isolated.
Functions
Isolate devices based on device indexes, task IDs, and region IDs.
Constraints
User role: northbound operator.
HTTP Method
PUT
URI
/sdn/acdcn/v3/underlay/ztp/devicemgnt/isolation
Request Parameters
Sample Request
HTTP
PUT /sdn/acdcn/v3/underlay/ztp/devicemgnt/isolation HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"ne-index" : "CE39",
"region-id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"isIsolate" : true
}
Response Parameters
Response status code 200: OK
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 200: OK
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Devices need to be replaced.
Functions
Replace devices based on device indexes, task IDs, and region IDs.
Constraints
User role: northbound operator.
HTTP Method
PUT
URI
/sdn/acdcn/v3/underlay/ztp/devicemgnt/replace
Request Parameters
Sample Request
HTTP
PUT /sdn/acdcn/v3/underlay/ztp/devicemgnt/replace HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"ne-index" : "CE39",
"region-id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"esn" : "1234567890QWERTYUIOP"
}
Response Parameters
Response status code 200: OK
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Response status code 500: Response status code 500: Internal server error.
Sample Response
Response status code 200: OK
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Devices need to be reset.
Functions
Reset devices by device index.
Constraints
User role: northbound operator.
HTTP Method
PUT
URI
/sdn/acdcn/v3/underlay/ztp/devicemgnt/reset
Request Parameters
Sample Request
HTTP
PUT /sdn/acdcn/v3/underlay/ztp/devicemgnt/reset HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"neIndexList" : [
"CE39"
]
}
Response Parameters
Response status code 200: OK
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Response status code 500: Response status code 500: Internal server error.
Sample Response
Response status code 200: OK
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Topology comparison information needs to be exported.
Functions
Export topology comparison information based on the status.
Constraints
User role: northbound operator.
HTTP Method
POST
URI
/sdn/acdcn/v3/underlay/ztp/underlayTopo/exportTopoInfo
Request Parameters
Sample Request
HTTP
POST /sdn/acdcn/v3/underlay/ztp/underlayTopo/exportTopoInfo HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"regionId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"status" : "All"
}
Response Parameters
Response status code 200: OK
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Response status code 500: Response status code 500: Internal server error.
Sample Response
Response status code 200: OK
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Topology comparison information needs to be queried.
Functions
Query topology comparison information based on certain conditions.
Constraints
User role: northbound operator.
HTTP Method
POST
URI
/sdn/acdcn/v3/underlay/ztp/underlayTopo/queryTopoByPage
Request Parameters
Sample Request
HTTP
POST /sdn/acdcn/v3/underlay/ztp/underlayTopo/queryTopoByPage HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"regionId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"taskId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"status" : "All",
"pageIndex" : 1,
"pageSize" : 10,
"keyword" : "CE"
}
Response Parameters
Response status code 200: OK
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 200: OK
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"compareTopoInfo" : [
{
"linkId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"localDevice" : "CE39",
"localDeviceIndex" : "CE39",
"localMgntIpv4" : "10.0.0.0/24",
"localPort" : "10GE1/0/1",
"desPlanDevice" : "CE39",
"desPlanDeviceIndex" : "CE39",
"desPlanPort" : "10GE1/0/1",
"desActualDevice" : "CE39",
"desActualDeviceIndex" : "CE39",
"desActualPort" : "10GE1/0/1",
"status" : "INITIAL"
}
],
"countIteam" : 10
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
2. Query various resource pools and resource pool topologies of the DC network.
Typical Scenarios
Device groups need to be queried.
Functions
Query device groups by pool ID or device group ID.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/acdcn/v3/topoapi/dcntopo/devicegroup
Request Parameters
N/A
Sample Request
HTTP
GET /acdcn/v3/topoapi/dcntopo/devicegroup?poolId=DBB702C3-7719-4FE6-
A5AD-3A9C9E265309&id=DBB702C3-7719-4FE6-A5AD-3A9C9E265309&pageSize=1&pageIndex=1 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"deviceGroups" : [
{
"poolId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "10",
"type" : "10",
"description" : "10"
}
],
"pageIndex" : 1,
"pageSize" : 1,
"totalNum" : 1
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Devices need to be queried.
Functions
Query devices by pool ID or device ID.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/acdcn/v3/topoapi/dcntopo/device
Request Parameters
N/A
Sample Request
HTTP
GET /acdcn/v3/topoapi/dcntopo/device?poolId=DBB702C3-7719-4FE6-
A5AD-3A9C9E265309&id=DBB702C3-7719-4FE6-A5AD-3A9C9E265309&pageSize=1&pageIndex=1&mac=H-
H-H-H-H-H&ip=172.16.1.1&deviceType=VSWITCH HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Content-Type: application/json
{
"devices": [
{
"id": "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name": "device1",
"location": "nanjing",
"ip": "10.0.0.0",
"status": 0,
"type": "10",
"mac": "H-H-H-H-H-H",
"mode": "CE6850",
"vtepIp": "192.168.1.2",
"stack": false,
"members": {
"type": "CSS",
"mastser": "H-H-H-H-H-H",
"standby": "H-H-H-H-H-H",
"leaf": [
"leaf"
]
},
"poolId": "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"softWare": "string"
}
],
"pageIndex": 1,
"pageSize": 1,
"totalNum": 1
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Host links need to be queried.
Functions
Query host links by link ID, switch ID, or vSwitch ID.
Constraints
User role: northbound operator.
HTTP Method
POST
URI
/acdcn/v3/topoapi/dcntopo/getHostlinks
Request Parameters
Sample Request
HTTP
POST /acdcn/v3/topoapi/dcntopo/getHostlinks HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"switchId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"vSwitchId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceType" : "VSWITCH",
"pageSize" : "1",
"pageIndex" : "1"
}
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Content-Type: application/json
{
"linkList": [
{
"linkId": "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"hostId": "DBB702C3-7719-4FE6-A5AD-1A9C9E265309",
"hostName": "server1",
"hostMac": "10",
"switchId": "DBB702C3-7719-4FE6-A5AD-3A9C9E265319",
"switchPortId": "DBB702C3-7719-1FE6-A5AD-3A9C9E265309",
"switchPortName": "10",
"trunkName": "trunkName",
"switchIp": "10.0.0.0"
}
],
"pageIndex": 1,
"pageSize": 1,
"totalNum": 1
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Hosts need to be queried.
Functions
Query hosts by host ID list.
Constraints
User role: northbound operator.
HTTP Method
POST
URI
/acdcn/v3/topoapi/dcntopo/getHosts
Request Parameters
Sample Request
HTTP
POST /acdcn/v3/topoapi/dcntopo/getHosts HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"pageSize" : "1",
"pageIndex" : "1"
}
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"hostList" : [
{
"deviceId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"hostName" : "server1"
}
],
"pageIndex" : 1,
"pageSize" : 1,
"totalNum" : 1
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Device links need to be queried.
Functions
Query device links based on localDeviceId and peerDeviceId.
Constraints
User role: northbound operator.
HTTP Method
POST
URI
/acdcn/v3/topoapi/dcntopo/getLinks
Request Parameters
Sample Request
HTTP
POST /acdcn/v3/topoapi/dcntopo/getLinks HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"localDeviceId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"peerDeviceId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"pageSize" : "1",
"pageIndex" : "1"
}
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"links" : [
{
"trunk" : true,
"status" : 1,
"mode" : 1,
"localNode" : {
"poolId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceIp" : "192.168.1.1",
"deviceId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceName" : "CE6883_125.6.123.37",
"port" : "gig3/0/1"
},
"peerNode" : {
"poolId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceIp" : "192.168.1.1",
"deviceId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceName" : "CE6883_125.6.123.37",
"port" : "gig3/0/1"
},
"trunkMems" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"localPort" : "gig3/0/0",
"peerPort" : "gig3/0/1",
"linkMode" : 10
}
]
}
],
"pageIndex" : 1,
"pageSize" : 1,
"totalNum" : 1
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Ports need to be queried.
Functions
Query the port list based on deviceIdList.
Constraints
User role: northbound operator.
HTTP Method
POST
URI
/acdcn/v3/topoapi/dcntopo/getPorts
Request Parameters
Sample Request
HTTP
POST /acdcn/v3/topoapi/dcntopo/getPorts HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"deviceIdList" : [
"DBB702C3-7719-4FE6-A5AD-3A9C9E265309"
],
"portList" : [
{
"deviceId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"ifName" : "Eth-trunk1"
}
],
"pageSize" : "1",
"pageIndex" : "1"
}
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"devicePortList" : [
{
"deviceId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"portList" : [
{
"portId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"portName" : "10GE1/0/2",
"portStatus" : "UP",
"ethTrunkName" : "Eth-Trunk11",
"portMac" : "H-H-H-H-H-H",
"portSpeed" : "1",
"portIp" : "192.168.0.0",
"portType" : "IFMIPHYTYPEETHTRUNK"
}
]
}
],
"pageIndex" : 1,
"pageSize" : 1,
"totalNum" : 1
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Topologies in a resource pool need to be queried.
Functions
Query the topologies in a resource pool by pool ID.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/acdcn/v3/topoapi/dcntopo/pool/{poolId}
Request Parameters
N/A
Sample Request
HTTP
GET /acdcn/v3/topoapi/dcntopo/pool/DBB702C3-7719-4FE6-A5AD-3A9C9E265309 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"deviceGroups" : [
{
"poolId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "10",
"type" : "10",
"description" : "10"
}
],
"devices" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "device1",
"location" : "nanjing",
"ip" : "10.0.0.0",
"status" : 1,
"type" : "10",
"mac" : "H-H-H-H-H-H",
"mode" : "CE6850",
"vtepIp" : "192.168.1.2",
"members" : {
"type" : "CSS",
"mastser" : "H-H-H-H-H-H",
"standby" : "H-H-H-H-H-H"
},
"poolId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"softWare" : "V100R020C10",
"cpuRate" : 1
}
],
"links" : [
{
"trunk" : true,
"status" : 1,
"mode" : 1,
"localNode" : {
"poolId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceIp" : "192.168.1.1",
"deviceId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceName" : "CE6883_125.6.123.37",
"port" : "gig3/0/1"
},
"peerNode" : {
"poolId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceIp" : "192.168.1.1",
"deviceId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceName" : "CE6883_125.6.123.37",
"port" : "gig3/0/1"
},
"trunkMems" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"localPort" : "gig3/0/0",
"peerPort" : "gig3/0/1",
"linkMode" : 10
}
]
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
The DCN topology needs to be queried.
Functions
Query the DCN network topology, including the fabric resource pools and VAS
resource pools.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/acdcn/v3/topoapi/dcntopo/resourcepool
Request Parameters
N/A
Sample Request
HTTP
GET /acdcn/v3/topoapi/dcntopo/resourcepool HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"pools" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "fabric1",
"type" : 1,
"vastype" : "Firewall",
"description" : "this is fabric in beijing"
}
],
"links" : [
{
"localPoolId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"peerPoolId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309"
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
The number of services referenced by the bypass link need to be counted during
the upgrade from Agile Controller-DCN C00 to a later version.
Functions
Configure the bypass link to make it compatible with the version after the
upgrade.
Constraints
User role: northbound operator.
HTTP Method
POST
URI
/acdcn/v3/topoapi/dcntopo/upgrade/escape/links
Request Parameters
N/A
Sample Request
HTTP
POST /acdcn/v3/topoapi/dcntopo/upgrade/escape/links HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: successfully
Response status code 500: Response status code 500: Internal server error.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"errCode" : "13107201",
"errParas" : [
"13af679b-b8f4-3744-9aaa-d588b957c999"
]
}
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
This API needs to be invoked to query the bypass link of a device.
Functions
Query the bypass link of a device.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/acdcn/v3/topoapi/dcntopo/deviceEscapeLinks
Request Parameters
N/A
Sample Request
HTTP
GET /acdcn/v3/topoapi/dcntopo/deviceEscapeLinks HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: successfully
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
1.9.3.2 Fabric
API description:
1. Query the fabric pool list.
Typical Scenarios
A fabric needs to be created.
Functions
Create a fabric.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 200 times/minute.
HTTP Method
POST
URI
/controller/dc/v3/physicalnetwork/fabricresource/fabrics
Request Parameters
Sample Request
HTTP
POST /controller/dc/v3/physicalnetwork/fabricresource/fabrics HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"fabric" : [
{
"id" : "dbb702c3-7719-4fe6-a5ad-3a9c9e265309",
"name" : "Fabric",
"description" : "description",
"networkType" : "Distributed",
"physicalNetworkMode" : "Vxlan",
"bgpEvpnEnable" : true,
"extInterfaceType" : "Vbdif",
"arpBroadcastSuppression" : false,
"dciSplitGroup" : "1",
"microSegmentCapability" : false,
"multicastCapability" : false,
"aclModel" : "loose",
"sfcCapability" : "Pbr",
"faultService" : false,
"underLay" : "BGP",
"management" : "INBAND",
"localCrossErt" : "2:100",
"sdnMode" : true
}
],
"totalNum" : "1"
}
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"fabric" : [
{
"id" : "dbb702c3-7719-4fe6-a5ad-3a9c9e265309",
"name" : "Fabric",
"description" : "description",
"networkType" : "Distributed",
"physicalNetworkMode" : "Vxlan",
"bgpEvpnEnable" : true,
"extInterfaceType" : "Vbdif",
"arpBroadcastSuppression" : false,
"dciSplitGroup" : "1",
"microSegmentCapability" : false,
"multicastCapability" : false,
"aclModel" : "loose",
"sfcCapability" : "Pbr",
"faultService" : false,
"underLay" : "BGP",
"management" : "INBAND",
"localCrossErt" : "2:100",
"sdnMode" : true
}
],
"totalNum" : "1"
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
All fabric pools need to be queried.
Functions
Query all fabric pools.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/controller/dc/v3/physicalnetwork/fabricresource/fabrics
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v3/physicalnetwork/fabricresource/fabrics?pageIndex=1&pageSize=1 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: successfully
FabricListRestfulDtoWrapper parameters, For details, see Table 1-197.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"fabric" : [
{
"id" : "dbb702c3-7719-4fe6-a5ad-3a9c9e265309",
"name" : "Fabric",
"description" : "description",
"networkType" : "Distributed",
"physicalNetworkMode" : "Vxlan",
"bgpEvpnEnable" : true,
"extInterfaceType" : "Vbdif",
"arpBroadcastSuppression" : false,
"dciSplitGroup" : "1",
"microSegmentCapability" : false,
"multicastCapability" : false,
"aclModel" : "loose",
"sfcCapability" : "Pbr",
"faultService" : false,
"underLay" : "BGP",
"management" : "INBAND",
"localCrossErt" : "2:100",
"sdnMode" : true
}
],
"totalNum" : "1"
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Query a Fabric by ID.
Functions
Query a fabric by ID.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/controller/dc/v3/physicalnetwork/fabricresource/fabrics/fabric/{id}
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v3/physicalnetwork/fabricresource/fabrics/fabric/DBB702C3-7719-4FE6-
A5AD-3A9C9E265309 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"fabric" : [
{
"id" : "dbb702c3-7719-4fe6-a5ad-3a9c9e265309",
"name" : "Fabric",
"description" : "description",
"networkType" : "Distributed",
"physicalNetworkMode" : "Vxlan",
"bgpEvpnEnable" : true,
"extInterfaceType" : "Vbdif",
"arpBroadcastSuppression" : false,
"dciSplitGroup" : "1",
"microSegmentCapability" : false,
"multicastCapability" : false,
"aclModel" : "loose",
"sfcCapability" : "Pbr",
"faultService" : false,
"underLay" : "BGP",
"management" : "INBAND",
"localCrossErt" : "2:100",
"sdnMode" : true
}
],
"totalNum" : "1"
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A fabric needs to be updated by ID.
Functions
Update a fabric by ID.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 200 times/minute.
HTTP Method
PUT
URI
/controller/dc/v3/physicalnetwork/fabricresource/fabrics/fabric/{id}
Request Parameters
Sample Request
HTTP
PUT /controller/dc/v3/physicalnetwork/fabricresource/fabrics/fabric/DBB702C3-7719-4FE6-
A5AD-3A9C9E265309 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"fabric" : [
{
"id" : "dbb702c3-7719-4fe6-a5ad-3a9c9e265309",
"name" : "Fabric",
"description" : "description",
"networkType" : "Distributed",
"physicalNetworkMode" : "Vxlan",
"bgpEvpnEnable" : true,
"extInterfaceType" : "Vbdif",
"arpBroadcastSuppression" : false,
"dciSplitGroup" : "1",
"microSegmentCapability" : false,
"multicastCapability" : false,
"aclModel" : "loose",
"sfcCapability" : "Pbr",
"faultService" : false,
"underLay" : "BGP",
"management" : "INBAND",
"localCrossErt" : "2:100",
"sdnMode" : true
}
],
"totalNum" : "1"
}
Response Parameters
Response status code 200: successfully
FabricListRestfulDtoWrapper parameters, For details, see Table 1-197.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"fabric" : [
{
"id" : "dbb702c3-7719-4fe6-a5ad-3a9c9e265309",
"name" : "Fabric",
"description" : "description",
"networkType" : "Distributed",
"physicalNetworkMode" : "Vxlan",
"bgpEvpnEnable" : true,
"extInterfaceType" : "Vbdif",
"arpBroadcastSuppression" : false,
"dciSplitGroup" : "1",
"microSegmentCapability" : false,
"multicastCapability" : false,
"aclModel" : "loose",
"sfcCapability" : "Pbr",
"faultService" : false,
"underLay" : "BGP",
"management" : "INBAND",
"localCrossErt" : "2:100",
"sdnMode" : true
}
],
"totalNum" : "1"
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A fabric needs to be deleted by ID.
Functions
Delete a fabric by ID.
Constraints
User role: northbound operator.
HTTP Method
DELETE
URI
/controller/dc/v3/physicalnetwork/fabricresource/fabrics/fabric/{id}
Request Parameters
N/A
Sample Request
HTTP
DELETE /controller/dc/v3/physicalnetwork/fabricresource/fabrics/fabric/DBB702C3-7719-4FE6-
A5AD-3A9C9E265309 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 204: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Sample Response
Response status code 204: successfully
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A device group with a specified role in a specified fabric needs to be queried.
Functions
Query a device group with a specified role in a specified or all fabrics.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/controller/dc/v3/physicalnetwork/fabricresource/fabric-nodes
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v3/physicalnetwork/fabricresource/fabric-nodes?fabricId=aecd1cb4-b76a-405e-a5ed-
cb44744a2f3c&nodeRole=DCI&pageIndex=1&pageSize=1 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"fabricNodesList" : [
{
"id" : "c45b0dd9-fb41-3cf4-925a-103ad846df9e",
"fabricId" : "c45b0dd9-fb41-3cf4-925a-103ad846df9e",
"name" : "c45b0dd9-fb41-3cf4-925a-103ad846df9e",
"nodeRole" : "DCI",
"vtepIp" : "10.1.1.1"
}
],
"totalNum" : "1"
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
The name and usage of a logical resource need to be queried.
Functions
Query the name and usage of child resources based on the parent resource ID.
Constraints
User role: northbound operator.
HTTP Method
POST
URI
/controller/dc/v3/physicalnetwork/fabricresource/fabrics/logicresusage
Request Parameters
Sample Request
HTTP
POST /controller/dc/v3/physicalnetwork/fabricresource/fabrics/logicresusage HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"id" : "c45b0dd9-fb41-3cf4-925a-103ad846df9e",
"pageIndex" : 5,
"pageSize" : 5,
"order" : "desc",
"orderValue" : "logicResourceName"
}
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
The total number and usage of static resources needs to be queried.
Functions
Query the total amount and usage of static resources based on neId.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/controller/dc/v3/physicalnetwork/fabricresource/fabrics/resourceusage/{neId}
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v3/physicalnetwork/fabricresource/fabrics/resourceusage/cd76c5db-bc96-36b4-9888-
d76495ff333c HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
dtid: "G20190612094934616_25e4586-eb8a-4ee1-902b-ad5205e617c7d"
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Query Node Relations.
Functions
Query node relations.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 200 times/minute.
HTTP Method
GET
URI
/controller/dc/v3/physicalnetwork/fabricresource/node-relations
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v3/physicalnetwork/fabricresource/node-relations?description=mdc HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"inUse" : false,
"nodeRelationList" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309-DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"nodeId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"fabricId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"description" : "10"
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
The inUse state of node relations needs to be updated.
Functions
Update node relations.
Constraints
User role: northbound operator.
HTTP Method
PUT
URI
/controller/dc/v3/physicalnetwork/fabricresource/node-relations
Request Parameters
Sample Request
HTTP
PUT /controller/dc/v3/physicalnetwork/fabricresource/node-relations HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"inUse" : false,
"nodeRelationList" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309-DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"nodeId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"fabricId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"description" : "10"
}
]
}
Response Parameters
Response status code 200: successfully
NodeRelationListWrapper parameters, For details, see Table 1-216.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"inUse" : false,
"nodeRelationList" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309-DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"nodeId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"fabricId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"description" : "10"
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A device group needs to be added to a fabric.
Functions
Add a device group to the fabric.
Constraints
User role: northbound operator.
HTTP Method
POST
URI
/controller/dc/v3/physicalnetwork/fabricresource/fabricnode
Request Parameters
Sample Request
HTTP
POST /controller/dc/v3/physicalnetwork/fabricresource/fabricnode HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"node" : {
"fabricId" : "00278832-0000-0000-0000-100000000001",
"nodeIds" : ["56A4E7F5-F912-4657-8ED3-D397144A89D9","9AC3A545-
B4DB-4879-847F-3645B809E265"],
"nodeRoles" : [
{
"nodeId" : "00278832-0000-0000-0000-200000000001",
"nodeRole" : "Egress Gateway"
}
]
}
}
Response Parameters
Response status code 201: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Sample Response
Response status code 201: successfully
HTTP/1.1 201 Created
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"nodeResult" : [
{
"nodeId" : "00278832-0000-0000-0000-200000000001"
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Typical Scenarios
A device group needs to be removed from a fabric.
Functions
Remove a device group from a fabric.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 200 times/minute.
HTTP Method
DELETE
URI
/controller/dc/v3/physicalnetwork/fabricresource/fabricnode
Request Parameters
Sample Request
HTTP
DELETE /controller/dc/v3/physicalnetwork/fabricresource/fabricnode HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"node" : {
"fabricId" : "00278832-0000-0000-0000-100000000001",
"nodeIds" : ["56A4E7F5-F912-4657-8ED3-D397144A89D9","9AC3A545-
B4DB-4879-847F-3645B809E265"],
"nodeRoles" : [
{
"nodeId" : "00278832-0000-0000-0000-200000000001",
"nodeRole" : "Egress Gateway"
}
]
}
}
Response Parameters
Response status code 200: successfully
NodesResultDtoWrapper parameters, For details, see Table 1-225.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"nodeResult" : [
{
"nodeId" : "00278832-0000-0000-0000-200000000001"
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Fabric node information needs to be queried.
Functions
Query fabric node information.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/controller/dc/v3/physicalnetwork/fabricresource/fabricnode/{id}
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v3/physicalnetwork/fabricresource/fabricnode/DBB702C3-7719-4FE6-
A5AD-3A9C9E265309?pageSize=10&pageIndex=1&flag=1&keyword=acl1&nodetype=5 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"fabricnode" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"nodeType" : "L2enableandl3ewenable",
"vtepIp" : "192.168.1.1",
"virtualMac" : "00:00:5E:00:01:01",
"fabricId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"vtepMac" : "00:00:5E:00:01:01",
"enablenve" : "1",
"negroupId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"groupMode" : "Single",
"status" : "Active",
"isHardware" : "6",
"bgpEvpnMode" : "enable",
"total" : 10,
"name" : "CE6880_39"
}
],
"total" : 50,
"totalError" : 30
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A VAS resource pool needs to be created.
Functions
A VAS resource pool needs to be created.
Constraints
User role: northbound operator.
HTTP Method
POST
URI
/controller/dc/v3/physicalnetwork/vaspool/
Request Parameters
Sample Request
HTTP
POST /controller/dc/v3/physicalnetwork/vaspool HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"vasPoolDto" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "vaspool0",
"description" : "This is a VAS resource pool.",
"vasType" : "unmanaged-firewall",
"deviceQuota" : [
{
"quota" : 0,
"recoveryThreshold" : 0,
"alarmThreshold" : 10
}
]
}
]
}
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"vasPoolDto" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "vaspool0",
"description" : "This is a VAS resource pool.",
"vasType" : "unmanaged-firewall",
"deviceQuota" : [
{
"quota" : 0,
"recoveryThreshold" : 0,
"alarmThreshold" : 10
}
]
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
The list of VAS resource pools needs to be queried.
Functions
The VAS resource pool list needs to be queried.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/controller/dc/v3/physicalnetwork/vaspool/
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v3/physicalnetwork/vaspool?pageIndex=1&pageSize=1 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"vasPoolDtos" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "vaspool0",
"description" : "This is a VAS resource pool.",
"vasType" : "unmanaged-firewall",
"deviceQuota" : [
{
"quota" : 0,
"recoveryThreshold" : 0,
"alarmThreshold" : 10
}
]
}
],
"totalNum" : 200,
"pageIndex" : 10,
"pageSize" : 10
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Details about a specified VAS resource pool need to be queried.
Functions
Details about a specified VAS resource pool need to be queried.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/controller/dc/v3/physicalnetwork/vaspool/{id}
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v3/physicalnetwork/vaspool/DBB702C3-7719-4FE6-A5AD-3A9C9E265309 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: successfully
VasPoolDtoWrapper parameters, For details, see Table 1-236.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"vasPoolDto" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "vaspool0",
"description" : "This is a VAS resource pool.",
"vasType" : "unmanaged-firewall",
"deviceQuota" : [
{
"quota" : 0,
"recoveryThreshold" : 0,
"alarmThreshold" : 10
}
]
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A specified VAS resource pool needs to be updated.
Functions
A specified VAS resource pool needs to be updated.
Constraints
User role: northbound operator.
HTTP Method
PUT
URI
/controller/dc/v3/physicalnetwork/vaspool/{id}
Request Parameters
Sample Request
HTTP
PUT /controller/dc/v3/physicalnetwork/vaspool/DBB702C3-7719-4FE6-A5AD-3A9C9E265309 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"vasPoolDto" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "vaspool0",
"description" : "This is a VAS resource pool.",
"vasType" : "unmanaged-firewall",
"deviceQuota" : [
{
"quota" : 0,
"recoveryThreshold" : 0,
"alarmThreshold" : 10
}
]
}
]
}
Response Parameters
Response status code 200: successfully
VasPoolDtoWrapper parameters, For details, see Table 1-236.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"vasPoolDto" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "vaspool0",
"description" : "This is a VAS resource pool.",
"vasType" : "unmanaged-firewall",
"deviceQuota" : [
{
"quota" : 0,
"recoveryThreshold" : 0,
"alarmThreshold" : 10
}
]
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A specified VAS resource pool needs to be deleted.
Functions
A specified VAS resource pool needs to be deleted.
Constraints
User role: northbound operator.
HTTP Method
DELETE
URI
/controller/dc/v3/physicalnetwork/vaspool/{id}
Request Parameters
N/A
Sample Request
HTTP
DELETE /controller/dc/v3/physicalnetwork/vaspool/DBB702C3-7719-4FE6-A5AD-3A9C9E265309 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 204: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 204: successfully
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Device groups need to be added to a VAS resource pool.
Functions
Device groups need to be added to the VAS resource pool.
Constraints
User role: northbound operator.
HTTP Method
POST
URI
/controller/dc/v3/physicalnetwork/vaspool/add-node
Request Parameters
Sample Request
HTTP
POST /controller/dc/v3/physicalnetwork/vaspool/add-node HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 204: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Sample Response
Response status code 204: successfully
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A device group needs to be deleted from the VAS resource pool.
Functions
Device groups need to be deleted from the VAS resource pool.
Constraints
User role: northbound operator.
HTTP Method
POST
URI
/controller/dc/v3/physicalnetwork/vaspool/delete-node
Request Parameters
Sample Request
HTTP
POST /controller/dc/v3/physicalnetwork/vaspool/delete-node HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 204: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Sample Response
Response status code 204: successfully
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
1.9.3.3.8 Query Information About Device Groups in a Specified VAS Resource Pool
Typical Scenarios
Information about device groups in a specified VAS resource pool needs to be
queried.
Functions
Information about device groups in a specified VAS resource pool needs to be
queried.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/controller/dc/v3/physicalnetwork/vaspool/{id}/node
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v3/physicalnetwork/vaspool/DBB702C3-7719-4FE6-A5AD-3A9C9E265309/node HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Fabric VAS mappings need to be queried.
Functions
Query fabric-VAS mappings by VAS pool ID.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 200 times/minute.
Single-interface performance: ≤ 3600s.
HTTP Method
GET
URI
/controller/dc/v3/servicenetwork/fabricvas/by/vaspool/{id}
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v3/servicenetwork/fabricvas/by/vaspool/CBB702C3-7719-4FE6-A5AD-3A9C9E265309
HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"id" : "CCB702C3-7719-4FE6-A5AD-3A9C9E265309",
"fabricId" : "CCB702C3-7719-4FE6-A5AD-3A9C9E265309",
"vaspoolId" : "CCB702C3-7719-4FE6-A5AD-3A9C9E265309",
"vaspoolType" : "Firewall",
"vaspoolName" : "vaspoll1"
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Fabric VAS mappings need to be queried.
Functions
Query fabric VAS mappings based on the fabric ID list.
Constraints
User role: northbound operator.
HTTP Method
POST
URI
/controller/dc/v3/servicenetwork/fabricvas/by/fabricIds
Request Parameters
Sample Request
HTTP
POST /controller/dc/v3/servicenetwork/fabricvas/by/fabricIds HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"fabricIds" : [
"CBB702C3-7719-4FE6-A5AD-3A9C9E265309"
],
"vaspoolName" : "vaspoll1",
"pageIndex" : 1,
"pageSize" : 4000,
"queryValue" : "vaspool1",
"order" : "asc or desc"
}
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"fabricVasMappings" : [
{
"id" : "CCB702C3-7719-4FE6-A5AD-3A9C9E265309",
"fabricId" : "CCB702C3-7719-4FE6-A5AD-3A9C9E265309",
"vaspoolId" : "CCB702C3-7719-4FE6-A5AD-3A9C9E265309",
"vaspoolType" : "Firewall",
"vaspoolName" : "vaspoll1"
}
],
"totalNum" : 10
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A third-party system needs to import host links.
Functions
Import host access links in a batch.
Constraints
None.
HTTP Method
POST
URI
/controller/platform/v1/basetopo/host-link-mgr/action/import
Request Parameters
Sample Request
HTTP
POST /controller/platform/v1/basetopo/host-link-mgr/action/import HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"hostLinkInputList" : [
{
"deviceIp" : "10.1.1.1",
"devicePort" : "Ethernet0/1/8",
"hostId" : "huawei1",
"hostMac" : "FA:16:3E:CF:1D:66",
"providerNetwork" : "network1"
}
]
}
Response Parameters
Response status code 200: OK.
Sample Response
Response status code 200: OK.
HTTP/1.1 200 OK
Date: Tue,30 Oct 2018 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"failedLinkList" : [
{
"deviceIp" : "10.1.1.1",
"devicePort" : "Ethernet0/1/8",
"hostId" : "huawei1",
"hostMac" : "FA:16:3E:CF:1D:66",
"failedReason" : "Device ip is not exist",
"providerNetwork" : "network1"
}
]
}
Typical Scenarios
A third-party system needs to delete host links.
Functions
Delete host access links in a batch.
Constraints
None.
HTTP Method
POST
URI
/restconf/operations/huawei-ac-net-l2link:delete-host-link
Request Parameters
Sample Request
cURL
curl -k -s -L -i -X POST -H 'Content-Type: application/json' -H 'Accept: application/json' -H 'Accept-
Language: en-US' -H 'X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan' 'https://192.168.1.125:18002/restconf/operations/huawei-ac-net-
l2link:delete-host-link' -d '{
"huawei-ac-net-l2link:input" : {
"delete-host-links" : [
{
"host-mac" : "FA:16:3E:CF:1D:66",
"device-port" : "Ethernet0/1/8",
"host-name" : "huawei1",
"device-ip" : "10.1.1.1"
}
]
}
}'
HTTP
POST /restconf/operations/huawei-ac-net-l2link:delete-host-link HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"huawei-ac-net-l2link:input" : {
"delete-host-links" : [
{
"host-mac" : "FA:16:3E:CF:1D:66",
"device-port" : "Ethernet0/1/8",
"host-name" : "huawei1",
"device-ip" : "10.1.1.1"
}
]
}
}
Response Parameters
Response status code 200: OK.
Sample Response
Response status code 200: OK.
HTTP/10.1.1.111111 OK
Date: Tue,30 Oct 2018 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"huawei-ac-net-l2link:output" : {
"failed-host-links" : [
{
"host-mac" : "FA:16:3E:CF:1D:66",
"device-port" : "Ethernet0/1/8",
"host-name" : "huawei1",
"device-ip" : "10.1.1.1",
"failed-reason" : "Local deivce ip is invalid"
}
]
}
}
Typical Scenarios
A third-party system needs to import inter-device links.
Functions
Import inter-device links in a batch.
Constraints
None.
HTTP Method
POST
URI
/restconf/operations/huawei-ac-net-l2link:import-device-link
Request Parameters
Sample Request
cURL
curl -k -s -L -i -X POST -H 'Content-Type: application/json' -H 'Accept: application/json' -H 'Accept-
Language: en-US' -H 'X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan' 'https://192.168.1.125:18002/restconf/operations/huawei-ac-net-
l2link:import-device-link' -d '{
"huawei-ac-net-l2link:input" : {
"import-device-links" : [
{
"local-manage-ip" : "10.1.1.1",
"local-ltp-port" : "Ethernet0/1/8",
"peer-device-name" : "DTB",
"peer-id" : "10.1.1.2",
"peer-id-type" : "ip",
"peer-ltp-port" : "Ethernet0/1/5",
"provider-network" : "network1"
}
]
}
}'
HTTP
POST /restconf/operations/huawei-ac-net-l2link:import-device-link HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"huawei-ac-net-l2link:input" : {
"import-device-links" : [
{
"local-manage-ip" : "10.1.1.1",
"local-ltp-port" : "Ethernet0/1/8",
"peer-device-name" : "DTB",
"peer-id" : "10.1.1.2",
"peer-id-type" : "ip",
"peer-ltp-port" : "Ethernet0/1/5",
"provider-network" : "network1"
}
]
}
}
Response Parameters
Response status code 200: OK.
Sample Response
Response status code 200: OK.
HTTP/10.1.1.22OK10.1.1.1111111
Tue,30 Oct 2018 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"huawei-ac-net-l2link:output" : {
"import-failed-links" : [
{
"local-manage-ip" : "10.1.1.1",
"local-ltp-port" : "Ethernet0/1/8",
"peer-device-name" : "DTB",
"peer-id" : "10.1.1.2",
"peer-id-type" : "ip",
"peer-ltp-port" : "Ethernet0/1/5",
"failed-reason" : "The ip format is invalid",
"provider-network" : "network1"
}
]
}
}
Typical Scenarios
A third-party system needs to delete inter-device links.
Functions
Delete inter-device links in a batch.
Constraints
None.
HTTP Method
POST
URI
/restconf/operations/huawei-ac-net-l2link:delete-device-link
Request Parameters
Sample Request
cURL
curl -k -s -L -i -X POST -H 'Content-Type: application/json' -H 'Accept: application/json' -H 'Accept-
Language: en-US' -H 'X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan' 'https://192.168.1.125:18002/restconf/operations/huawei-ac-net-
l2link:delete-device-link' -d '{
"huawei-ac-net-l2link:input" : {
"delete-device-links" : [
{
"local-manage-ip" : "10.1.1.1",
"local-ltp-port" : "Ethernet0/1/8",
"peer-device-name" : "DTB",
"peer-id" : "10.1.1.2",
"peer-id-type" : "ip",
"peer-ltp-port" : "Ethernet0/1/5"
}
]
}
}'
HTTP
POST /restconf/operations/huawei-ac-net-l2link:delete-device-link HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"huawei-ac-net-l2link:input" : {
"delete-device-links" : [
{
"local-manage-ip" : "10.1.1.1",
"local-ltp-port" : "Ethernet0/1/8",
"peer-device-name" : "DTB",
"peer-id" : "10.1.1.2",
"peer-id-type" : "ip",
"peer-ltp-port" : "Ethernet0/1/5"
}
]
}
}
Response Parameters
Response status code 200: OK.
Sample Response
Response status code 200: OK.
HTTP/10.1.1.22OK10.1.1.1111
Tue,30 Oct 2018 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"huawei-ac-net-l2link:output" : {
"failed-device-links" : [
{
"local-manage-ip" : "10.1.1.1",
"local-ltp-port" : "Ethernet0/1/8",
"peer-device-name" : "DTB",
"peer-id" : "10.1.1.2",
"peer-id-type" : "ip",
"peer-ltp-port" : "Ethernet0/1/5",
"failed-reason" : "Local device info is invalid"
}
]
}
}
northbound user, log in to the NCE management plane and choose System >
System Security > Security Policies from the main menu. On the displayed page,
choose Password Policy from the navigation pane, deselect Min. password usage
period (days), and click Apply.)
Typical Scenarios
The SNMP protocol needs to be changed for a device.
Functions
A device group needs to be added to an SNMP resource pool.
Constraints
User role: northbound operator.
HTTP Method
POST
URI
/controller/dc/v3/physicalnetwork/device/snmp
Request Parameters
Sample Request
HTTP
POST /controller/dc/v3/physicalnetwork/device/snmp HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"managerIp" : [
"192.168.0.0"
],
"snmpParam" : {
"snmpVersion" : "v3",
"authProtocol" : "HMAC_MD5",
"authPassword" : "*******",
"privacyProtocol" : "AES_128",
"encryptionPassword" : "*******",
"username" : "Huawei@456",
"port" : 161,
"timeoutPeriod" : 15000,
"retries" : 3
}
}
Response Parameters
Response status code 204: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Sample Response
Response status code 204: successfully
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Devices need to be automatically discovered.
Functions
Automatically discover devices.
Constraints
User role: northbound operator.
HTTP Method
POST
URI
/controller/dc/v3/physicalnetwork/device/discover/start
Request Parameters
Sample Request
HTTP
POST /controller/dc/v3/physicalnetwork/device/discover/start HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"ipSegParamDtoList" : [
{
"startIp" : "192.168.0.0",
"endIp" : "192.168.0.1"
}
],
"snmpParamDto" : {
"snmpVersion" : "v3",
"authProtocol" : "HMAC_MD5",
"authPassword" : "*******",
"privacyProtocol" : "AES_128",
"encryptionPassword" : "*******",
"username" : "Huawei@456",
"port" : 161,
"timeoutPeriod" : 15000,
"retries" : 3
},
"netconfParamDto" : {
"ncPort" : 22,
"ncUserName" : "custom",
"ncKey" : "*******"
}
}
Response Parameters
Response status code 204: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 204: successfully
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Discovered devices need to be queried by keyword.
Functions
Query discovered devices based on keywords.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/controller/dc/v3/physicalnetwork/device/discover/result
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v3/physicalnetwork/device/discover/result?pageIndex=1&pageSize=20 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: OK.
ip string - - Device -
management
IP address.
Response status code 500: Response status code 500: Internal server error.
Sample Response
Response status code 200: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A device needs to be added.
Functions
Add the Default IP Address of the Device.
Constraints
User role: northbound operator.
HTTP Method
POST
URI
/controller/dc/v3/physicalnetwork/device/discover/add
Request Parameters
Sample Request
HTTP
POST /controller/dc/v3/physicalnetwork/device/discover/add HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 204: OK.
Sample Response
Response status code 204: OK.
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Added devices need to be queried.
Functions
Query the added device based on keywords.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/controller/dc/v3/physicalnetwork/device/discover/add/result
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v3/physicalnetwork/device/discover/add/result?pageIndex=1&pageSize=20 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: OK.
Response status code 500: Response status code 500: Internal server error.
Sample Response
Response status code 200: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A device needs to be added.
Functions
Add a device to the ATIC.
Constraints
User role: northbound operator.
HTTP Method
POST
URI
/controller/dc/v3/physicalnetwork/device/manager/staticimport
Request Parameters
Sample Request
HTTP
POST /controller/dc/v3/physicalnetwork/device/manager/staticimport HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"deviceInfo" : [
{
"deviceBasicInfo" : {
"id" : "7f0f98d0-daa2-4239-b838-440bd12830b8",
"managIp" : "192.168.1.1",
"name" : "CE6850_47.105-12.12.47.104",
"mac" : "a1:b2:c3:d4:e5:f6",
"esn" : "D6DB0F514994E85517180C0F6585C7B5523B69CC",
"deviceType" : "SWITCH",
"deviceModel" : "CE6850-48S6Q-HI",
"manufacturer" : "HUAWEI",
"hardwareVersion" : "CE6850-48S6Q-HI",
"softwareVersion" : "V200R019C10SPC800"
},
"userAccounts" : [
{
"protocolType" : "NETCONF",
"userName" : "v3r1user",
"portNum" : 22,
"snmpVersion" : "V3",
"snmpAuthProtocol" : "HMAC_SHA2_256",
"snmpPrivacyProtocol" : "AES_128",
"snmpTimeoutPeriod" : 15000,
"snmpRetries" : 3,
"snmpSysOid" : "1.3.6.1.4.1.9.1.1018"
}
]
}
]
}
Response Parameters
Response status code 200: Response status code 200: OK.
ip string - - ip "192.168.1.1"
ip string - - ip "192.168.1.1"
Response status code 400: Response status code 400: Bad request.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 200: Response status code 200: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"result" : {
"successList" : [
{
"id" : "7f0f98d0-daa2-4239-b838-440bd12830b8",
"ip" : "192.168.1.1",
"name" : "CE6850_47.105-12.12.47.104"
}
],
"failedList" : [
{
"id" : "7f0f98d0-daa2-4239-b838-440bd12830b8",
"ip" : "192.168.1.1",
"mac" : "00:00:5E:00:01:01",
"esn" : "D6DB0F514994E85517180C0F6585C7B5523B69CC"
}
]
}
}
Response status code 400: Response status code 400: Bad request.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A device needs to be deleted.
Functions
Delete a device.
Constraints
User role: northbound operator.
HTTP Method
DELETE
URI
/controller/dc/v3/physicalnetwork/device/manager/delete
Request Parameters
Sample Request
HTTP
DELETE /controller/dc/v3/physicalnetwork/device/manager/delete HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"deviceInfo" : [
{
"id" : "7f0f98d0-daa2-4239-b838-440bd12830b8"
}
]
}
Response Parameters
Response status code 200: Response status code 200: OK.
Response status code 400: Response status code 400: Bad request.
Response status code 500: Response status code 500: Internal server error.
Sample Response
Response status code 200: Response status code 200: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"result" : {
"successList" : [
{
"id" : "7f0f98d0-daa2-4239-b838-440bd12830b8",
"ip" : "192.168.1.1",
"name" : "CE6850_47.105-12.12.47.104"
}
],
"failedList" : [
{
"id" : "7f0f98d0-daa2-4239-b838-440bd12830b8",
"ip" : "192.168.1.1",
"mac" : "00:00:5E:00:01:01",
"esn" : "D6DB0F514994E85517180C0F6585C7B5523B69CC"
}
]
}
}
Response status code 400: Response status code 400: Bad request.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Authentication information needs to be saved.
Functions
Save the authentication information.
Constraints
User role: northbound operator.
HTTP Method
POST
URI
/controller/dc/v3/physicalnetwork/device/protocol
Request Parameters
Sample Request
HTTP
POST /controller/dc/v3/physicalnetwork/device/protocol HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"authInfos" : [
{
"deviceId" : "7f0f98d0-daa2-4239-b838-440bd12830b8",
"UserAccountInfo" : {
"protocolType" : "NETCONF",
"userName" : "v3r1user",
"portNum" : 22,
"snmpVersion" : "V3",
"snmpAuthProtocol" : "HMAC_SHA2_256",
"snmpPrivacyProtocol" : "AES_128",
"snmpTimeoutPeriod" : 15000,
"snmpRetries" : 3,
"snmpSysOid" : "1.3.6.1.4.1.9.1.1018"
}
}
]
}
Response Parameters
Response status code 200: Response status code 200: OK.
Response status code 400: Response status code 400: Bad request.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 200: Response status code 200: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"saveAuthInfoSuccessList" : [
{
"deviceId" : "7f0f98d0-daa2-4239-b838-440bd12830b8"
}
],
"saveAuthInfoFailedList" : [
{
"deviceId" : "7f0f98d0-daa2-4239-b838-440bd12830b8"
}
]
}
Response status code 400: Response status code 400: Bad request.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A device group needs to be created.
Functions
Create a Device Group.
Constraints
User role: northbound operator.
HTTP Method
POST
URI
/controller/dc/v3/physicalnetwork/device-groups
Request Parameters
Sample Request
HTTP
POST /controller/dc/v3/physicalnetwork/device-groups HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"id" : "88886666-6666-8888-6666-888866666111",
"name" : "Leaf2",
"groupMode" : "active-active",
"device" : [
{
"deviceId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E260001"
}
]
}
Response Parameters
Response status code 200: OK.
Sample Response
Response status code 200: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E260001",
"device" : [
{
"deviceId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E260001"
}
],
"poolId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E260001",
"provider" : "Local"
}
Response status code 500: Failed request due to an internal service error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A device group needs to be deleted.
Functions
Delete a device group. A device group that has been added to a resource pool
cannot be deleted.
Constraints
User role: northbound operator.
HTTP Method
DELETE
URI
/controller/dc/v3/physicalnetwork/device-groups/{id}
Request Parameters
N/A
Sample Request
HTTP
DELETE /controller/dc/v3/physicalnetwork/device-groups/DBB702C3-7719-4FE6-A5AD-3A9C9E260001 HTTP/
1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 204: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Sample Response
Response status code 204: successfully
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Functions
Query network link information, including the link list, total number of device
records meeting the query condition, and total number of pages for displaying
records.
Throughput 60 tps
Constraints
This API supports access from northbound users and can be used only after a user
session has been established.
HTTP Method
GET
URI
/rest/openapi/network/link
aporta No integer ● 1 - 1: up 1
dminst
atus ● 2 2: down
● 3 3: testing
aporto No integer ● 1 - 1: up 1
perstat
us ● 2 2: down
● 3 3: testing
● 4 4: unknown
● 5 5: dormant
● 6 6: notPresent
● 7 7:
lowerLayerDow
n
zporta No integer ● 1 - 1: up 1
dminst
atus ● 2 2: down
● 3 3: testing
zporto No integer ● 1 - 1: up 1
perstat
us ● 2 2: down
● 3 3: testing
● 4 4: unknown
● 5 5: dormant
● 6 6: notPresent
● 7 7:
lowerLayerDow
n
Request Parameters
N/A
Sample Request
cURL
curl -k -s -L -i -X GET -H 'Content-Type: application/json' -H 'Accept: application/json' -H 'Accept-Language:
en-US' -H 'X-AUTH-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan' 'https://192.168.1.125:18002/rest/openapi/network/link?
anedn=da453377-eb06-11e9-8aae-
d2f2c051aa41&anename=scp101&aneip=10.10.12.11&anestate=1&aportdn=2961c398-0994-4d3c-8bdb-3efa
29370edf&aportname=eth1&aportip=10.10.13.11&aportadminstatus=1&aportoperstatus=1&znedn=sa423377
-eb06-11e9-8aae-
d2f2c051aa31&znename=scp102&zneip=10.10.12.12&znestate=1&zportdn=2231c398-0994-4d3c-8bdb-3efa2
9370231&zportname=eth2&zportip=10.10.13.12&zportadminstatus=1&zportoperstatus=1&linkdn=2--151449
2827838740513-449855270147124082&linkname=1111&linkstatus=1&linktype=1&speed=1000&start=0&size
=20&orderby=linkdn&desc=false'
HTTP
GET /rest/openapi/network/link?anedn=da453377-eb06-11e9-8aae-
d2f2c051aa41&anename=scp101&aneip=10.10.12.11&anestate=1&aportdn=2961c398-0994-4d3c-8bdb-3efa
29370edf&aportname=eth1&aportip=10.10.13.11&aportadminstatus=1&aportoperstatus=1&znedn=sa423377
-eb06-11e9-8aae-
d2f2c051aa31&znename=scp102&zneip=10.10.12.12&znestate=1&zportdn=2231c398-0994-4d3c-8bdb-3efa2
9370231&zportname=eth2&zportip=10.10.13.12&zportadminstatus=1&zportoperstatus=1&linkdn=2--151449
2827838740513-449855270147124082&linkname=1111&linkstatus=1&linktype=1&speed=1000&start=0&size
=20&orderby=linkdn&desc=false HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-AUTH-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: Link list.
aporta integer ● 1 - 1: up -
dminst
atus ● 2 2: down
● 3 3: testing
aporto integer ● 1 - 1: up -
perstat
us ● 2 2: down
● 3 3: testing
● 4 4: unknown
● 5 5: dormant
● 6 6: notPresent
● 7 7:
lowerLayerDow
n
zporta integer ● 1 - 1: up -
dminst
atus ● 2 2: down
● 3 3: testing
zporto integer ● 1 - 1: up -
perstat
us ● 2 2: down
● 3 3: testing
● 4 4: unknown
● 5 5: dormant
● 6 6: notPresent
● 7 7:
lowerLayerDow
n
Sample Response
Response status code 200:
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
{
"code": 0,
"data":[
{
"linkdn": "2--1514492827838740513-449855270147124082",
"linkname": "1111",
"anedn": "da453377-eb06-11e9-8aae-d2f2c051aa41",
"anename": "scp101",
"aneip": "10.10.12.11",
"anestate": 1,
"aportdn": "2961c398-0994-4d3c-8bdb-3efa29370edf",
"aportname": "eth1",
"aportip": "10.10.13.11",
"aportadminstatus": 1,
"aportoperstatus": 1,
"znedn": "sa423377-eb06-11e9-8aae-d2f2c051aa31",
"znename": "scp102",
"zneip": "10.10.12.12",
"znestate": 1,
"zportdn": "2231c398-0994-4d3c-8bdb-3efa29370231",
"zportname": "eth2",
"zportip": "10.10.13.12",
"zportadminstatus": 1,
"zportoperstatus": 1,
"linkStatus": 1,
"linktype": 1,
"speed": "1000",
"aportindex": "8",
"zportindex": "5"
}
],
"description": "Operation success"
}
Typical Scenarios
The host link status needs to be queried.
Functions
Query the host link status.
Constraints
User role: northbound operator.
HTTP Method
POST
URI
/restconf/data/huawei-ac-neutron:neutron-cfg/query-host-status
Request Parameters
Sample Request
HTTP
POST /restconf/data/huawei-ac-neutron:neutron-cfg/query-host-status HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"hosts" : [
{
"host-id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265339"
}
]
}
Response Parameters
Response status code 201: Demo Information
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 201: Demo Information
HTTP/1.1 201 Created
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
X-request-id:
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
The controller needs to be installed by the preinstallation operator.
Functions
Preconfigure the controller.
Constraints
User role: northbound operator.
HTTP Method
POST
URI
/controller/dc/v3/common/preconfig
Request Parameters
N/A
Sample Request
HTTP
POST /controller/dc/v3/common/preconfig HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 201: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Result parameters, For details, see Table 1-334.
Sample Response
Response status code 201: successfully
HTTP/1.1 201 Created
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"result" : "Resources cannot be deleted because vni are being occupied."
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"result" : "Resources cannot be deleted because vni are being occupied."
}
Typical Scenarios
An external gateway needs to be queried.
Functions
Query an external gateway.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 200 times/minute.
HTTP Method
GET
URI
/controller/dc/v3/publicservice/external-gateways/external-gateway/{id}
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v3/publicservice/external-gateways/external-gateway/DBB702C3-7719-4FE6-
A5AD-3A9C9E265309 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"externalGateway" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "10",
"description" : "10",
"gatewayType" : "Public",
"publicIppool" : ["10.1.1.0/24"],
"serviceIppool" : ["10.1.1.1"],
"isTelcoGateway" : false,
"vrfName" : "extgw_vrf",
"isAllShared" : true,
"fabricConfigs" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"fabricId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"fabricRole" : "master",
"fabricName" : "fabricName"
}
],
"serviceIpDefaultPolicy" : true,
"preConfigured" : true,
"interfaceType" : 1,
"routeExportModel" : 1,
"vpnTarget" : "2:2000",
"l3Vni" : 1,
"fabricVpnTarget" : "2:2000",
"deviceGroups" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"fabricId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"fabricName" : "fabricName",
"deviceGroupId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceGroupName" : "deviceGroupName",
"deviceId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceName" : "deviceName"
}
],
"type" : "l3-share-export",
"additional" : {
"producer" : "10",
"createAt" : "2016-03-08T20:19:41.000+00:00",
"updateAt" : "2016-03-08T20:19:41.000+00:00"
}
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
An external gateway needs to be updated.
Functions
Update an external gateway based on conditions.
Constraints
User role: northbound operator.
HTTP Method
PUT
URI
/controller/dc/v3/publicservice/external-gateways/external-gateway/{id}
Request Parameters
Sample Request
HTTP
PUT /controller/dc/v3/publicservice/external-gateways/external-gateway/DBB702C3-7719-4FE6-
A5AD-3A9C9E265309 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"externalGateway" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "10",
"description" : "10",
"gatewayType" : "Public",
"publicIppool" : ["10.1.1.0/24"],
"serviceIppool" : ["10.1.1.1"],
"isTelcoGateway" : false,
"vrfName" : "extgw_vrf",
"isAllShared" : true,
"fabricConfigs" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"fabricId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"fabricRole" : "master",
"fabricName" : "fabricName"
}
],
"serviceIpDefaultPolicy" : true,
"preConfigured" : true,
"interfaceType" : 1,
"routeExportModel" : 1,
"vpnTarget" : "2:2000",
"l3Vni" : 1,
"fabricVpnTarget" : "2:2000",
"deviceGroups" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"fabricId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"fabricName" : "fabricName",
"deviceGroupId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceGroupName" : "deviceGroupName",
"deviceId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceName" : "deviceName"
}
],
"type" : "l3-share-export",
"additional" : {
"producer" : "10",
"createAt" : "2016-03-08T20:19:41.000+00:00",
"updateAt" : "2016-03-08T20:19:41.000+00:00"
}
}
]
}
Response Parameters
Response status code 200: successfully
ExternalGatewayRestfulDtoWrapper parameters, For details, see Table 1-336.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"externalGateway" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "10",
"description" : "10",
"gatewayType" : "Public",
"publicIppool" : ["10.1.1.0/24"],
"serviceIppool" : ["10.1.1.1"],
"isTelcoGateway" : false,
"vrfName" : "extgw_vrf",
"isAllShared" : true,
"fabricConfigs" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"fabricId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"fabricRole" : "master",
"fabricName" : "fabricName"
}
],
"serviceIpDefaultPolicy" : true,
"preConfigured" : true,
"interfaceType" : 1,
"routeExportModel" : 1,
"vpnTarget" : "2:2000",
"l3Vni" : 1,
"fabricVpnTarget" : "2:2000",
"deviceGroups" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"fabricId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"fabricName" : "fabricName",
"deviceGroupId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceGroupName" : "deviceGroupName",
"deviceId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceName" : "deviceName"
}
],
"type" : "l3-share-export",
"additional" : {
"producer" : "10",
"createAt" : "2016-03-08T20:19:41.000+00:00",
"updateAt" : "2016-03-08T20:19:41.000+00:00"
}
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
An external gateway and related interconnection interfaces need to be deleted.
Functions
Delete an external gateway and related interconnection interfaces.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 200 times/minute.
HTTP Method
DELETE
URI
/controller/dc/v3/publicservice/external-gateways/external-gateway/{id}
Request Parameters
N/A
Sample Request
HTTP
DELETE /controller/dc/v3/publicservice/external-gateways/external-gateway/DBB702C3-7719-4FE6-
A5AD-3A9C9E265309 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 204: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 204: successfully
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
External gateways need to be queried.
Functions
Query external gateways.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 200 times/minute.
HTTP Method
POST
URI
/controller/dc/v3/publicservice/external-gateways/access-external-gateway
Request Parameters
Sample Request
HTTP
POST /controller/dc/v3/publicservice/external-gateways/access-external-gateway?pageIndex=1&pageSize=1
HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"fabricIds" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309"
}
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"externalGateway" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "10",
"description" : "10",
"gatewayType" : "Public",
"publicIppool" : ["10.1.1.0/24"],
"serviceIppool" : ["10.1.1.1"],
"isTelcoGateway" : false,
"vrfName" : "extgw_vrf",
"isAllShared" : true,
"fabricConfigs" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"fabricId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"fabricRole" : "master",
"fabricName" : "fabricName"
}
],
"serviceIpDefaultPolicy" : true,
"preConfigured" : true,
"interfaceType" : 1,
"routeExportModel" : 1,
"vpnTarget" : "2:2000",
"l3Vni" : 1,
"fabricVpnTarget" : "2:2000",
"deviceGroups" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"fabricId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"fabricName" : "fabricName",
"deviceGroupId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceGroupName" : "deviceGroupName",
"deviceId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceName" : "deviceName"
}
],
"type" : "l3-share-export",
"additional" : {
"producer" : "10",
"createAt" : "2016-03-08T20:19:41.000+00:00",
"updateAt" : "2016-03-08T20:19:41.000+00:00"
}
}
],
"totalNum" : 1,
"pageIndex" : 1,
"pageSize" : 1
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Typical Scenarios
External gateways need to be queried.
Functions
Query external networks based on conditions. Data can be displayed in pages.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 200 times/minute.
HTTP Method
GET
URI
/controller/dc/v3/publicservice/external-gateways
Request Parameters
N/A
Sample Request
HTTP
Response Parameters
Response status code 200: successfully
ExternalGatewayPagedDtoWrapper parameters, For details, see Table 1-352.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"externalGateway" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "10",
"description" : "10",
"gatewayType" : "Public",
"publicIppool" : ["10.1.1.0/24"],
"serviceIppool" : ["10.1.1.1"],
"isTelcoGateway" : false,
"vrfName" : "extgw_vrf",
"isAllShared" : true,
"fabricConfigs" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"fabricId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"fabricRole" : "master",
"fabricName" : "fabricName"
}
],
"serviceIpDefaultPolicy" : true,
"preConfigured" : true,
"interfaceType" : 1,
"routeExportModel" : 1,
"vpnTarget" : "2:2000",
"l3Vni" : 1,
"fabricVpnTarget" : "2:2000",
"deviceGroups" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"fabricId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"fabricName" : "fabricName",
"deviceGroupId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceGroupName" : "deviceGroupName",
"deviceId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceName" : "deviceName"
}
],
"type" : "l3-share-export",
"additional" : {
"producer" : "10",
"createAt" : "2016-03-08T20:19:41.000+00:00",
"updateAt" : "2016-03-08T20:19:41.000+00:00"
}
}
],
"totalNum" : 1,
"pageIndex" : 1,
"pageSize" : 1
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
The public IP usage status of an external gateway needs to be updated.
Functions
Update the public IP usage status of an external gateway.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 200 times/minute.
HTTP Method
PUT
URI
/controller/dc/v3/publicservice/external-gateways/external-gateway/{id}/public-ip
Request Parameters
Sample Request
HTTP
PUT /controller/dc/v3/publicservice/external-gateways/external-gateway/DBB702C3-7719-4FE6-
A5AD-3A9C9E265309/public-ip HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"externalGatewayId" : "CEB702C3-7719-4FE6-A5AD-3A9C9E265309",
"publicIp" : "10.23.15.0/24",
"isUsed" : false,
"producer" : "10"
}
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"externalGatewayId" : "CEB702C3-7719-4FE6-A5AD-3A9C9E265309",
"publicIp" : "10.23.15.0/24",
"isUsed" : false,
"producer" : "10"
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
An external gateway and related interconnection interfaces need to be queried.
Functions
Query an external gateway and related interconnection interfaces.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/controller/dc/v3/publicservice/external-gateways/easy-external-gateways
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v3/publicservice/external-gateways/easy-external-gateways?
pageIndex=1&pageSize=1&name=10&id=DBB702C3-7719-4FE6-A5AD-3A9C9E265309&type=4 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"externalGateway" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "10",
"description" : "10",
"gatewayType" : 4,
"publicIpPool" : ["192.168.1.0/24"],
"serviceIpPool" : ["192.168.1.0/24"],
"isTelcoGateway" : false,
"vrfName" : "extgw_vrf",
"enableEscape" : true,
"escapeIpVersion" : "Unknown",
"isAllShared" : false,
"fabricConfigs" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"fabricId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"fabricRole" : "master",
"fabricName" : "fabricName"
}
],
"serviceIpDefaultPolicy" : false,
"preConfigured" : false,
"interfaceType" : 1,
"routeExportModel" : 1,
"vpnTarget" : "2:2000",
"l3Vni" : 1,
"deviceGroups" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"fabricId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"fabricName" : "fabricName",
"deviceGroupId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceGroupName" : "deviceGroupName",
"deviceId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceName" : "deviceName"
}
],
"type" : "l3-share-export",
"additional" : {
"producer" : "10",
"createAt" : "2016-03-08T20:19:41.000+00:00",
"updateAt" : "2016-03-08T20:19:41.000+00:00"
},
"connectInterfaces" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "10",
"description" : "10",
"vlanId" : 10,
"routeInterface" : false,
"subInterfaceNumber" : 2000,
"connectionIps" : [
{
"localIp" : "192.168.10.1/24",
"peerIp" : "192.168.10.2/24"
}
],
"connectDevices" : [
{
"fabricId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"fabricName" : "theFabric",
"deviceGroupId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceGroupName" : "theFabric",
"deviceId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceName" : "CE_45",
"portName" : "10GE1/0/1"
}
]
}
]
}
],
"totalNum" : 1,
"pageIndex" : 1,
"pageSize" : 1
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
The API needs to be invoked in easy network deployment mode, which can be
used to create an external gateway and related interconnection interfaces.
Functions
Create an external gateway and related interconnection interfaces.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 100 times/minute.
HTTP Method
POST
URI
/controller/dc/v3/publicservice/external-gateways/easy-external-gateway
Request Parameters
Sample Request
HTTP
POST /controller/dc/v3/publicservice/external-gateways/easy-external-gateway HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"externalGateway" : {
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "10",
"description" : "10",
"type" : 4,
"vrfName" : "extgw_vrf",
"serviceIpPool" : ["192.168.1.0/24"],
"publicIpPool" : ["192.168.1.0/24"],
"staticRouteAuto" : true,
"fabrics" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"fabricId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"fabricRole" : "master",
"fabricName" : "fabricName"
}
],
"isTelcoGateway" : false,
"interfaceType" : 1,
"enableEscape" : true,
"escapeIpVersion" : "Unknown",
"deviceGroups" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"fabricId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"fabricName" : "fabricName",
"deviceGroupId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceGroupName" : "deviceGroupName"
}
],
"vpnTarget" : "2:2000",
"l3Vni" : 1,
"vniAllocType" : "Automatic",
"fabricImportRt" : "2:2000",
"connectInterfaces" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "10",
"description" : "10",
"vlanId" : 10,
"routeInterface" : false,
"subInterfaceNumber" : 2000,
"connectionIps" : [
{
"localIp" : "192.168.10.1/24",
"peerIp" : "192.168.10.2/24"
}
],
"connectDevices" : [
{
"fabricId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"fabricName" : "theFabric",
"deviceGroupId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceGroupName" : "theFabric",
"deviceId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceName" : "CE_45",
"portName" : "10GE1/0/1"
}
]
}
]
}
}
Response Parameters
Response status code 201: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 201: successfully
HTTP/1.1 201 Created
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A routing policy needs to be created.
Functions
Create a routing policy.
Constraints
User role: northbound operator.
HTTP Method
POST
URI
/controller/dc/v2/neutronapi/routePolicy/{router_id}/add_route_policy
Request Parameters
Sample Request
HTTP
POST /controller/dc/v2/neutronapi/routePolicy/ff000000-ff00-0000-abce-000000000001/add_route_policy
HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"routePolicys" : [
{
"peer_router_id" : "b1bcd3d8-2f02-4d05-8283-ff87ae962224",
"peer_filter_cidrs" : "["192.168.199.0/24"]"
}
]
}
Response Parameters
Response status code 201: Response status code 201: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 201: Response status code 201: OK.
HTTP/1.1 201 Created
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"routePolicys" : [
{
"peer_router_id" : "b1bcd3d8-2f02-4d05-8283-ff87ae962224",
"peer_filter_cidrs" : "["192.168.199.0/24"]"
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Query a VPC Connection by ID.
Functions
Delete a routing policy by router ID.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 500 times/minute.
Single-interface performance: ≤ 105s.
HTTP Method
DELETE
URI
/controller/dc/v2/neutronapi/routePolicy/{router_id}/delete_route_policy
Request Parameters
Sample Request
HTTP
DELETE /controller/dc/v2/neutronapi/routePolicy/ff000000-ff00-0000-abce-000000000001/
delete_route_policy HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"routePolicys" : [
{
"peer_router_id" : "b1bcd3d8-2f02-4d05-8283-ff87ae962224",
"peer_filter_cidrs" : "["192.168.199.0/24"]"
}
]
}
Response Parameters
Response status code 204: Response status code 201: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 204: Response status code 201: OK.
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A routing policy needs to be queried by router ID.
Functions
Query a routing policy by router ID.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 500 times/minute.
Single-interface performance: ≤ 105s.
HTTP Method
GET
URI
/controller/dc/v2/neutronapi/routePolicy/{router_id}/query_route_policy
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v2/neutronapi/routePolicy/ff000000-ff00-0000-abce-000000000001/query_route_policy
HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: Response status code 201: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 200: Response status code 201: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"routePolicys" : [
{
"peer_router_id" : "b1bcd3d8-2f02-4d05-8283-ff87ae962224",
"peer_filter_cidrs" : "["192.168.199.0/24"]"
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A routing policy needs to be updated by router ID.
Functions
Update a routing policy by router ID.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 500 times/minute.
Single-interface performance: ≤ 105s.
HTTP Method
PUT
URI
/controller/dc/v2/neutronapi/routePolicy/{router_id}/update_route_policy
Request Parameters
Sample Request
HTTP
PUT /controller/dc/v2/neutronapi/routePolicy/ff000000-ff00-0000-abce-000000000001/update_route_policy
HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"routePolicys" : [
{
"peer_router_id" : "b1bcd3d8-2f02-4d05-8283-ff87ae962224",
"peer_filter_cidrs" : "["192.168.199.0/24"]"
}
]
}
Response Parameters
Response status code 200: Response status code 201: OK.
RoutePolicyDtoWrapper parameters, For details, see Table 1-376.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 200: Response status code 201: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"routePolicys" : [
{
"peer_router_id" : "b1bcd3d8-2f02-4d05-8283-ff87ae962224",
"peer_filter_cidrs" : "["192.168.199.0/24"]"
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Routing policies need to be queried.
Functions
Query a routing policy.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/controller/dc/v3/physicalnetwork/fabricresource/nfvi/routepolicy
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v3/physicalnetwork/fabricresource/nfvi/routepolicy HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"loadBalanceNum" : 32,
"loadBalanceTag" : 82345,
"bfdInterval" : 300,
"bfdMultiplier" : 6,
"nqaInterval" : 200,
"directRouteTag" : 82348,
"evpnSuppressionTag" : 82346,
"ebgpRouteTag" : 82456,
"bestEffortPathRtp" : "besteffortpathrtp",
"dciExportRtp" : "dciexportrtp",
"dciImportRtp" : "dciimportrtp",
"dciDyeingRtp" : "dcidyeingrtp"
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A routing policy needs to be updated.
Functions
Update a routing policy.
Constraints
User role: northbound operator.
HTTP Method
PUT
URI
/controller/dc/v3/physicalnetwork/fabricresource/nfvi/routepolicy
Request Parameters
Sample Request
HTTP
PUT /controller/dc/v3/physicalnetwork/fabricresource/nfvi/routepolicy HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"loadBalanceNum" : 32,
"loadBalanceTag" : 82345,
"bfdInterval" : 300,
"bfdMultiplier" : 6,
"nqaInterval" : 200,
"directRouteTag" : 82348,
"evpnSuppressionTag" : 82346,
"ebgpRouteTag" : 82456,
"bestEffortPathRtp" : "besteffortpathrtp",
"dciExportRtp" : "dciexportrtp",
"dciImportRtp" : "dciimportrtp",
"dciDyeingRtp" : "dcidyeingrtp"
}
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"loadBalanceNum" : 32,
"loadBalanceTag" : 82345,
"bfdInterval" : 300,
"bfdMultiplier" : 6,
"nqaInterval" : 200,
"directRouteTag" : 82348,
"evpnSuppressionTag" : 82346,
"ebgpRouteTag" : 82456,
"bestEffortPathRtp" : "besteffortpathrtp",
"dciExportRtp" : "dciexportrtp",
"dciImportRtp" : "dciimportrtp",
"dciDyeingRtp" : "dcidyeingrtp"
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
2. Add and delete the device group applied in the BFD system.
Typical Scenarios
BFD system configuration needs to be created.
Functions
Create BFD system configuration to enable the BFD feature for specified devices in
the fabric.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 200 times/minute.
HTTP Method
POST
URI
/controller/dc/v3/physicalnetwork/fabricresource/bfds
Request Parameters
Sample Request
HTTP
POST /controller/dc/v3/physicalnetwork/fabricresource/bfds HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"bfd" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "bfd1",
"description" : "This is for tenant1.",
"deviceGroup" : {
"fabricId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"fabricName" : "fabric1",
"deviceGroup" : [
{
"deviceGroupId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceGroupName" : "CE6881"
}
]
},
"delayUpTimer" : 200,
"initWaitTime" : 2000,
"maxWaitTime" : 12000,
"secondWaitTime" : 5000,
"linkBundleInitTime" : 16000,
"linkBundleMaxTime" : 600000,
"linkBundleSecondTime" : 20000,
"linkBundleL3Mode" : false,
"deliverState" : 2
}
]
}
Response Parameters
Response status code 204: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 204: successfully
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
The BFD system configuration list needs to be queried.
Functions
Query the BFD system configuration list by condition.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 200 times/minute.
HTTP Method
GET
URI
/controller/dc/v3/physicalnetwork/fabricresource/bfds
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v3/physicalnetwork/fabricresource/bfds?pageIndex=1&pageSize=1 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"bfd" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "bfd1",
"description" : "This is for tenant1.",
"deviceGroup" : {
"fabricId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"fabricName" : "fabric1",
"deviceGroup" : [
{
"deviceGroupId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceGroupName" : "CE6881"
}
]
},
"delayUpTimer" : 200,
"initWaitTime" : 2000,
"maxWaitTime" : 12000,
"secondWaitTime" : 5000,
"linkBundleInitTime" : 16000,
"linkBundleMaxTime" : 600000,
"linkBundleSecondTime" : 20000,
"linkBundleL3Mode" : false,
"deliverState" : 2
}
],
"totalNum" : 10,
"pageIndex" : 10,
"pageSize" : 10
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Specific BFD system configuration needs to be queried.
Functions
Query specific BFD system configuration.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 200 times/minute.
HTTP Method
GET
URI
/controller/dc/v3/physicalnetwork/fabricresource/bfds/bfd/{id}
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v3/physicalnetwork/fabricresource/bfds/bfd/DBB702C3-7719-4FE6-A5AD-3A9C9E265309
HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"bfd" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "bfd1",
"description" : "This is for tenant1.",
"deviceGroup" : {
"fabricId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"fabricName" : "fabric1",
"deviceGroup" : [
{
"deviceGroupId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceGroupName" : "CE6881"
}
]
},
"delayUpTimer" : 200,
"initWaitTime" : 2000,
"maxWaitTime" : 12000,
"secondWaitTime" : 5000,
"linkBundleInitTime" : 16000,
"linkBundleMaxTime" : 600000,
"linkBundleSecondTime" : 20000,
"linkBundleL3Mode" : false,
"deliverState" : 2
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Specific BFD system configuration needs to be updated.
Functions
Update specific BFD system configuration, including BFD parameters or device list.
If the device list needs to be updated, the PUT operation supports only full update
and replacement.
Constraints
User role: northbound operator.
HTTP Method
PUT
URI
/controller/dc/v3/physicalnetwork/fabricresource/bfds/bfd/{id}
Request Parameters
Sample Request
HTTP
PUT /controller/dc/v3/physicalnetwork/fabricresource/bfds/bfd/DBB702C3-7719-4FE6-A5AD-3A9C9E265309
HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"bfd" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "bfd1",
"description" : "This is for tenant1.",
"deviceGroup" : {
"fabricId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"fabricName" : "fabric1",
"deviceGroup" : [
{
"deviceGroupId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceGroupName" : "CE6881"
}
]
},
"delayUpTimer" : 200,
"initWaitTime" : 2000,
"maxWaitTime" : 12000,
"secondWaitTime" : 5000,
"linkBundleInitTime" : 16000,
"linkBundleMaxTime" : 600000,
"linkBundleSecondTime" : 20000,
"linkBundleL3Mode" : false,
"deliverState" : 2
}
]
}
Response Parameters
Response status code 200: successfully
BfdSystemDtoWrapper parameters, For details, see Table 1-398.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"bfd" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "bfd1",
"description" : "This is for tenant1.",
"deviceGroup" : {
"fabricId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"fabricName" : "fabric1",
"deviceGroup" : [
{
"deviceGroupId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceGroupName" : "CE6881"
}
]
},
"delayUpTimer" : 200,
"initWaitTime" : 2000,
"maxWaitTime" : 12000,
"secondWaitTime" : 5000,
"linkBundleInitTime" : 16000,
"linkBundleMaxTime" : 600000,
"linkBundleSecondTime" : 20000,
"linkBundleL3Mode" : false,
"deliverState" : 2
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Specific BFD system configuration needs to be deleted.
Functions
Delete specific BFD system configuration and disable the BFD feature for the
Fabric. This is a high-risk operation and can be performed only when all BFD
sessions are deleted.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 200 times/minute.
HTTP Method
DELETE
URI
/controller/dc/v3/physicalnetwork/fabricresource/bfds/bfd/{id}
Request Parameters
N/A
Sample Request
HTTP
DELETE /controller/dc/v3/physicalnetwork/fabricresource/bfds/bfd/DBB702C3-7719-4FE6-
A5AD-3A9C9E265309 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 204: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Sample Response
Response status code 204: successfully
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A device needs to be added to specific BFD system configuration.
Functions
Add a device to specific BFD system configuration.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 200 times/minute.
HTTP Method
POST
URI
/controller/dc/v3/physicalnetwork/fabricresource/bfds/bfd/{id}/add-device
Request Parameters
Sample Request
HTTP
POST /controller/dc/v3/physicalnetwork/fabricresource/bfds/bfd/DBB702C3-7719-4FE6-
A5AD-3A9C9E265309/add-device HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"fabricId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"fabricName" : "fabric1",
"deviceGroup" : [
{
"deviceGroupId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceGroupName" : "CE6881"
}
]
}
Response Parameters
Response status code 204: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Sample Response
Response status code 204: successfully
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
BFD system configurations need to be created. This operation is risky and affects
all BFD sessions on the device.
This API cannot be used to disable BFD globally on the device to prevent the
manually configured BFD sessions from being deleted by mistake.
Functions
Create BFD system configuration to enable the BFD feature for specified devices in
the fabric.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 200 times/minute.
HTTP Method
POST
URI
/controller/dc/v3/physicalnetwork/fabricresource/bfds/bfd/{id}/remove-device
Request Parameters
Sample Request
HTTP
POST /controller/dc/v3/physicalnetwork/fabricresource/bfds/bfd/DBB702C3-7719-4FE6-
A5AD-3A9C9E265309/remove-device HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"fabricId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"fabricName" : "fabric1",
"deviceGroup" : [
{
"deviceGroupId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceGroupName" : "CE6881"
}
]
}
Response Parameters
Response status code 201: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Sample Response
Response status code 201: successfully
HTTP/1.1 201 Created
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A resource pool needs to be created.
Functions
Create a resource pool.
Constraints
User role: northbound operator.
HTTP Method
POST
URI
/acdcn/v3/topoapi/day0topo/openapi/resourcepool/{type}
Request Parameters
gid No string - - - -
vniTyp No int32 - - - -
e
Sample Request
HTTP
POST /acdcn/v3/topoapi/day0topo/openapi/resourcepool/vni HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: success
Sample Response
Response status code 200: success
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A resource pool needs to be deleted.
Functions
Destroy a resource pool.
Constraints
User role: northbound operator.
HTTP Method
PUT
URI
/acdcn/v3/topoapi/day0topo/openapi/resourcepool/{type}
Request Parameters
gid No string - - - -
vniTyp No int32 - - - -
e
priority No int32 - - - -
Type
Sample Request
HTTP
PUT /acdcn/v3/topoapi/day0topo/openapi/resourcepool/vni HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: success
Sample Response
Response status code 200: success
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Resource pools need to be created or deleted in batches.
Functions
Create or destroy resource pools in batches.
Constraints
User role: northbound operator.
HTTP Method
PUT
URI
/acdcn/v3/topoapi/day0topo/openapi/resourcepools/{type}
Request Parameters
Sample Request
HTTP
PUT /acdcn/v3/topoapi/day0topo/openapi/resourcepools/vni HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"gid" : "DBB702C3-7719-4FE6-A5AD-3A9C9E260001",
"operateType" : "create",
"resourceList" : [
{
"begin" : 1,
"end" : 2,
"priorityType" : 100
}
]
}
Response Parameters
Response status code 200: success
Day0ResourceResponse parameters, For details, see Table 1-409.
Response status code 500: nternal server error.
For details, see the response message body.
Sample Response
Response status code 200: success
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
An easy VPC needs to be created.
Functions
Create an easy VPC.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 100 times/minute.
HTTP Method
POST
URI
/controller/dc/v3/logicnetwork/easyvpc
Request Parameters
Sample Request
HTTP
POST /controller/dc/v3/logicnetwork/easyvpc HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"easyVpc" : {
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265301",
"name" : "theEasyVpcName",
"fabricId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265302",
"fabricName" : "theFabric",
"tenantId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265303",
"tenantName" : "theTenant",
"externalGatewayId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265304",
"externalGatewayName" : "theExternalGateway",
"vlanList" : [
{
"vlan" : 10,
"cidr" : "192.168.10.1/24"
}
],
"portGroupList" : [
{
"portGroupId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265305",
"portGroupName" : "thePortGroup"
}
]
}
}
Response Parameters
Response status code 201: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 201: successfully
HTTP/1.1 201 Created
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265306",
"name" : "theEasyVpcName",
"tenantId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265307",
"tenantName" : "theTenant",
"fabricId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265308",
"fabricName" : "theFabric",
"externalNetworkId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"externalNetworkName" : "theExternalNetwork",
"logicRouterId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E26530a",
"logicRouterName" : "theLogicRouter",
"externalConnectId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E26530b",
"externalConnectName" : "theExternalConnect",
"requestId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E26530e",
"taskIds" : [
"DBB702C3-7719-4FE6-A5AD-3A9C9E26530f"
],
"logicSwitch" : [
{
"logicSwitchId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E26530c",
"logicSwitchName" : "theLogicSwitch",
"cidr" : [
"192.168.10.1/24"
],
"portGroupList" : [
{
"portGroupId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E26530d",
"portGroupName" : "thePortGroup",
"vlan" : 10
}
]
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A DiffServ domain needs to be created.
Functions
Create a DiffServ domain.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 100 times/minute.
HTTP Method
POST
URI
/controller/dc/v3/publicservice/diffservs
Request Parameters
Sample Request
HTTP
POST /controller/dc/v3/publicservice/diffservs HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"diffServ" : [
{
"id" : "00278832-cec9-490e-b222-8bef7f239523",
"name" : "diffserv001",
"description" : "diffserv001des",
"fabricId" : "00278832-cec9-490e-b222-8bef7f239508",
"upStreamPorts" : [
{
"deviceGroupId" : "00278832-cec9-490e-b222-8bef7f239523",
"deviceGroupName" : "BorderLeaf",
"deviceId" : "00278832-cec9-490e-b222-8bef7f239523",
"deviceName" : "CE6850",
"portId" : "00278832-cec9-490e-b222-8bef7f239523",
"portName" : "10GE1/0/32"
}
],
"priorityMappings" : [
{
"serviceName" : "be",
"dscp" : 1
}
],
"additional" : {
"producer" : "default",
"createAt" : "2017-08-10 16:30:40",
"updateAt" : "2017-08-10 16:30:40"
}
}
]
}
Response Parameters
Response status code 204: Response status code 204: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 204: Response status code 204: OK.
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Typical Scenarios
The DiffServ domain list needs to be queried.
Functions
Query the DiffServ domain list.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/controller/dc/v3/publicservice/diffservs
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v3/publicservice/diffservs?producer=default&name=diffserv1&pageIndex=1&pageSize=1
HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: Response status code 200: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: Response status code 200: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"diffServ" : [
{
"id" : "00278832-cec9-490e-b222-8bef7f239523",
"name" : "diffserv001",
"description" : "diffserv001des",
"fabricId" : "00278832-cec9-490e-b222-8bef7f239508",
"upStreamPorts" : [
{
"deviceGroupId" : "00278832-cec9-490e-b222-8bef7f239523",
"deviceGroupName" : "BorderLeaf",
"deviceId" : "00278832-cec9-490e-b222-8bef7f239523",
"deviceName" : "CE6850",
"portId" : "00278832-cec9-490e-b222-8bef7f239523",
"portName" : "10GE1/0/32"
}
],
"priorityMappings" : [
{
"serviceName" : "be",
"dscp" : 1
}
],
"additional" : {
"producer" : "default",
"createAt" : "2017-08-10 16:30:40",
"updateAt" : "2017-08-10 16:30:40"
}
}
],
"totalNum" : 200,
"pageIndex" : 1,
"pageSize" : 1
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
The DiffServ domain needs to be queried.
Functions
Query the DiffServ domain.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 100 times/minute.
HTTP Method
GET
URI
/controller/dc/v3/publicservice/diffservs/diffserv/{id}
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v3/publicservice/diffservs/diffserv/DBB702C3-7719-4FE6-A5AD-3A9C9E265309 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: Response status code 200: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: Response status code 200: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"diffServ" : [
{
"id" : "00278832-cec9-490e-b222-8bef7f239523",
"name" : "diffserv001",
"description" : "diffserv001des",
"fabricId" : "00278832-cec9-490e-b222-8bef7f239508",
"upStreamPorts" : [
{
"deviceGroupId" : "00278832-cec9-490e-b222-8bef7f239523",
"deviceGroupName" : "BorderLeaf",
"deviceId" : "00278832-cec9-490e-b222-8bef7f239523",
"deviceName" : "CE6850",
"portId" : "00278832-cec9-490e-b222-8bef7f239523",
"portName" : "10GE1/0/32"
}
],
"priorityMappings" : [
{
"serviceName" : "be",
"dscp" : 1
}
],
"additional" : {
"producer" : "default",
"createAt" : "2017-08-10 16:30:40",
"updateAt" : "2017-08-10 16:30:40"
}
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Typical Scenarios
A DiffServ domain needs to be updated.
Functions
Update a DiffServ domain.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 100 times/minute.
HTTP Method
PUT
URI
/controller/dc/v3/publicservice/diffservs/diffserv/{id}
Request Parameters
Sample Request
HTTP
PUT /controller/dc/v3/publicservice/diffservs/diffserv/DBB702C3-7719-4FE6-A5AD-3A9C9E265309 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"diffServ" : [
{
"id" : "00278832-cec9-490e-b222-8bef7f239523",
"name" : "diffserv001",
"description" : "diffserv001des",
"fabricId" : "00278832-cec9-490e-b222-8bef7f239508",
"upStreamPorts" : [
{
"deviceGroupId" : "00278832-cec9-490e-b222-8bef7f239523",
"deviceGroupName" : "BorderLeaf",
"deviceId" : "00278832-cec9-490e-b222-8bef7f239523",
"deviceName" : "CE6850",
"portId" : "00278832-cec9-490e-b222-8bef7f239523",
"portName" : "10GE1/0/32"
}
],
"priorityMappings" : [
{
"serviceName" : "be",
"dscp" : 1
}
],
"additional" : {
"producer" : "default",
"createAt" : "2017-08-10 16:30:40",
"updateAt" : "2017-08-10 16:30:40"
}
}
]
}
Response Parameters
Response status code 200: successfully
DiffServDtoWrapper parameters, For details, see Table 1-438.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"diffServ" : [
{
"id" : "00278832-cec9-490e-b222-8bef7f239523",
"name" : "diffserv001",
"description" : "diffserv001des",
"fabricId" : "00278832-cec9-490e-b222-8bef7f239508",
"upStreamPorts" : [
{
"deviceGroupId" : "00278832-cec9-490e-b222-8bef7f239523",
"deviceGroupName" : "BorderLeaf",
"deviceId" : "00278832-cec9-490e-b222-8bef7f239523",
"deviceName" : "CE6850",
"portId" : "00278832-cec9-490e-b222-8bef7f239523",
"portName" : "10GE1/0/32"
}
],
"priorityMappings" : [
{
"serviceName" : "be",
"dscp" : 1
}
],
"additional" : {
"producer" : "default",
"createAt" : "2017-08-10 16:30:40",
"updateAt" : "2017-08-10 16:30:40"
}
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A DiffServ domain needs to be deleted.
Functions
Delete a DiffServ domain.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 100 times/minute.
HTTP Method
DELETE
URI
/controller/dc/v3/publicservice/diffservs/diffserv/{id}
Request Parameters
N/A
Sample Request
HTTP
DELETE /controller/dc/v3/publicservice/diffservs/diffserv/DBB702C3-7719-4FE6-A5AD-3A9C9E265309 HTTP/
1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 204: Response status code 204: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 204: Response status code 204: OK.
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A tenant needs to be created.
Functions
Create a tenant based on the request information.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 200 times/minute.
HTTP Method
POST
URI
/controller/dc/v3/tenants
Request Parameters
Sample Request
HTTP
POST /controller/dc/v3/tenants HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"tenant" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "name",
"description" : "description",
"producer" : "default",
"createAt" : "2017-08-10 16:30:40",
"updateAt" : "2017-08-10 16:30:40",
"multicastCapability" : true,
"quota" : {
"logicVasNum" : 10,
"logicRouterNum" : 10,
"logicSwitchNum" : 10
},
"multicastQuota" : {
"aclNum" : 10,
"aclRuleNum" : 10
},
"resPool" : {
"externalGatewayIds" : [
"00000000-0000-0000-0000-000000000001"
],
"fabricIds" : [
"00000000-0000-0000-0000-000000000002"
],
"vmmIds" : [
"00000000-0000-0000-0000-000000000003"
],
"dhcpGroupIds" : [
"00000000-0000-0000-0000-000000000004"
]
}
}
]
}
Response Parameters
Response status code 204: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 204: successfully
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Query All Tenants.
Functions
Query all tenants based on a specified condition, for example, based on the
producer. The default tenant cannot be queried. To query the public VPC and its
services, set the tenant ID to 00000000-0000-0000-0000-000000000000.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/controller/dc/v3/tenants
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v3/tenants?producer=default&pageIndex=1&pageSize=1 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"tenant" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "name",
"description" : "description",
"producer" : "default",
"createAt" : "2017-08-10 16:30:40",
"updateAt" : "2017-08-10 16:30:40",
"multicastCapability" : true,
"quota" : {
"logicVasNum" : 10,
"logicRouterNum" : 10,
"logicSwitchNum" : 10
},
"multicastQuota" : {
"aclNum" : 10,
"aclRuleNum" : 10
},
"resPool" : {
"externalGatewayIds" : [
"00000000-0000-0000-0000-000000000001"
],
"fabricIds" : [
"00000000-0000-0000-0000-000000000002"
],
"vmmIds" : [
"00000000-0000-0000-0000-000000000003"
],
"dhcpGroupIds" : [
"00000000-0000-0000-0000-000000000004"
]
}
}
],
"totalNum" : 200,
"pageIndex" : 1,
"pageSize" : 1
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A tenant needs to be queried by ID.
Functions
Query a tenant by ID.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/controller/dc/v3/tenants/tenant/{id}
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v3/tenants/tenant/DBB702C3-7719-4FE6-A5AD-3A9C9E265309 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"tenant" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "name",
"description" : "description",
"producer" : "default",
"createAt" : "2017-08-10 16:30:40",
"updateAt" : "2017-08-10 16:30:40",
"multicastCapability" : true,
"quota" : {
"logicVasNum" : 10,
"logicRouterNum" : 10,
"logicSwitchNum" : 10
},
"multicastQuota" : {
"aclNum" : 10,
"aclRuleNum" : 10
},
"resPool" : {
"externalGatewayIds" : [
"00000000-0000-0000-0000-000000000001"
],
"fabricIds" : [
"00000000-0000-0000-0000-000000000002"
],
"vmmIds" : [
"00000000-0000-0000-0000-000000000003"
],
"dhcpGroupIds" : [
"00000000-0000-0000-0000-000000000004"
]
}
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Tenant information needs to be updated by ID.
Functions
Modify a tenant by ID.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 200 times/minute.
HTTP Method
PUT
URI
/controller/dc/v3/tenants/tenant/{id}
Request Parameters
Sample Request
HTTP
PUT /controller/dc/v3/tenants/tenant/DBB702C3-7719-4FE6-A5AD-3A9C9E265309 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"tenant" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "name",
"description" : "description",
"producer" : "default",
"createAt" : "2017-08-10 16:30:40",
"updateAt" : "2017-08-10 16:30:40",
"multicastCapability" : true,
"quota" : {
"logicVasNum" : 10,
"logicRouterNum" : 10,
"logicSwitchNum" : 10
},
"multicastQuota" : {
"aclNum" : 10,
"aclRuleNum" : 10
},
"resPool" : {
"externalGatewayIds" : [
"00000000-0000-0000-0000-000000000001"
],
"fabricIds" : [
"00000000-0000-0000-0000-000000000002"
],
"vmmIds" : [
"00000000-0000-0000-0000-000000000003"
],
"dhcpGroupIds" : [
"00000000-0000-0000-0000-000000000004"
]
}
}
]
}
Response Parameters
Response status code 200: successfully
TenantRestfulDtoWrapper parameters, For details, see Table 1-455.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"tenant" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "name",
"description" : "description",
"producer" : "default",
"createAt" : "2017-08-10 16:30:40",
"updateAt" : "2017-08-10 16:30:40",
"multicastCapability" : true,
"quota" : {
"logicVasNum" : 10,
"logicRouterNum" : 10,
"logicSwitchNum" : 10
},
"multicastQuota" : {
"aclNum" : 10,
"aclRuleNum" : 10
},
"resPool" : {
"externalGatewayIds" : [
"00000000-0000-0000-0000-000000000001"
],
"fabricIds" : [
"00000000-0000-0000-0000-000000000002"
],
"vmmIds" : [
"00000000-0000-0000-0000-000000000003"
],
"dhcpGroupIds" : [
"00000000-0000-0000-0000-000000000004"
]
}
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A tenant needs to be delete by ID.
Functions
Delete a tenant by ID.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 200 times/minute.
HTTP Method
DELETE
URI
/controller/dc/v3/tenants/tenant/{id}
Request Parameters
N/A
Sample Request
HTTP
DELETE /controller/dc/v3/tenants/tenant/DBB702C3-7719-4FE6-A5AD-3A9C9E265309 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 204: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Sample Response
Response status code 204: successfully
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
1.9.4.8.6 Query the Number of Logical NEs and Fabric Resources Used by a Tenant
Typical Scenarios
Resource statistics of a tenant need to be queried based on the tenant ID,
including the numbers of logical NEs and fabric resources used by the tenant.
Functions
Query the resource statistics of a tenant.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/controller/dc/v3/tenants/tenant/{id}/statistics
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v3/tenants/tenant/DBB702C3-7719-4FE6-A5AD-3A9C9E265309/statistics HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"statistics" : {
"usedFabric" : [
{
"fabricId" : "10",
"fabricName" : "10"
}
],
"logicElementStatisticsDto" : {
"logicNetworkNum" : 10,
"logicRouterNum" : 10,
"logicSwitchNum" : 10,
"logicVasNum" : 10
}
}
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
1.9.5 Neutron
1.9.5.1 Network
# Network operation APIs
Typical Scenarios
A network needs to be created.
Functions
Create a network.
Constraints
User role: northbound operator.
HTTP Method
POST
URI
/controller/dc/v2/neutronapi/networks
Request Parameters
Sample Request
HTTP
POST /controller/dc/v2/neutronapi/networks HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"service_name" : "physnet1",
"network" : {
"name" : "testNetwork",
"router:external" : "false",
"admin_state_up" : "true",
"tenant_id" : "00000000-0000-0000-0000-000000000005",
"shared" : "false",
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"provider:physical_network" : "physnet1",
"provider:network_type" : "vlan",
"provider:segmentation_id" : 10,
"segments" : [
{
"provider:physical_network" : "physnet1",
"provider:network_type" : "vlan",
"provider:segmentation_id" : "123"
}
],
"binding:profile" : {
"arp_miss" : "true",
"arp_proxy" : 0,
"bum" : {
"broadcast_enable" : false,
"broadcast_cir_value" : 10,
"broadcast_cir_unit" : "gbps",
"broadcast_cbs_value" : 10,
"broadcast_cbs_unit" : "mbyte(s)",
"multicast_enable" : false,
"multicast_cir_value" : 10,
"multicast_cir_unit" : "gbps",
"multicast_cbs_value" : 10,
"multicast_cbs_unit" : "mbyte(s)",
"unknown_unicast_enable" : false,
"unknown_unicast_cir_value" : 10,
"unknown_unicast_cir_unit" : "gbps",
"unknown_unicast_cbs_value" : 10,
"unknown_unicast_cbs_unit" : "mbyte(s)"
}
},
"qos_policy_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309"
}
}
Response Parameters
Response status code 201: Response status code 200: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Response status code 500: Response status code 500: Internal server error.
Sample Response
Response status code 201: Response status code 200: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
All networks need to be queried.
Functions
Query all networks.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/controller/dc/v2/neutronapi/networks
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v2/neutronapi/networks?pageIndex=1&pageSize=10 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: Response status code 200: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 200: Response status code 200: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"networks" : [
{
"name" : "testNetwork",
"router:external" : "false",
"admin_state_up" : "true",
"tenant_id" : "00000000-0000-0000-0000-000000000005",
"shared" : "false",
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"provider:physical_network" : "physnet1",
"provider:network_type" : "vlan",
"provider:segmentation_id" : 10,
"segments" : [
{
"provider:physical_network" : "physnet1",
"provider:network_type" : "vlan",
"provider:segmentation_id" : "123"
}
],
"binding:profile" : {
"arp_miss" : "true",
"arp_proxy" : 0,
"bum" : {
"broadcast_enable" : false,
"broadcast_cir_value" : 10,
"broadcast_cir_unit" : "gbps",
"broadcast_cbs_value" : 10,
"broadcast_cbs_unit" : "mbyte(s)",
"multicast_enable" : false,
"multicast_cir_value" : 10,
"multicast_cir_unit" : "gbps",
"multicast_cbs_value" : 10,
"multicast_cbs_unit" : "mbyte(s)",
"unknown_unicast_enable" : false,
"unknown_unicast_cir_value" : 10,
"unknown_unicast_cir_unit" : "gbps",
"unknown_unicast_cbs_value" : 10,
"unknown_unicast_cbs_unit" : "mbyte(s)"
}
},
"qos_policy_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309"
}
],
"number" : 1,
"service_name" : "physnet1"
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A network needs to be queried by ID.
Functions
Query a network by ID.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/controller/dc/v2/neutronapi/networks/{id}
Request Parameters
N/A
Sample Request
HTTP
Response Parameters
Response status code 200: Response status code 200: OK.
NetworkDtoWrapper parameters, For details, see Table 1-470.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 200: Response status code 200: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"service_name" : "physnet1",
"network" : {
"name" : "testNetwork",
"router:external" : "false",
"admin_state_up" : "true",
"tenant_id" : "00000000-0000-0000-0000-000000000005",
"shared" : "false",
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"provider:physical_network" : "physnet1",
"provider:network_type" : "vlan",
"provider:segmentation_id" : 10,
"segments" : [
{
"provider:physical_network" : "physnet1",
"provider:network_type" : "vlan",
"provider:segmentation_id" : "123"
}
],
"binding:profile" : {
"arp_miss" : "true",
"arp_proxy" : 0,
"bum" : {
"broadcast_enable" : false,
"broadcast_cir_value" : 10,
"broadcast_cir_unit" : "gbps",
"broadcast_cbs_value" : 10,
"broadcast_cbs_unit" : "mbyte(s)",
"multicast_enable" : false,
"multicast_cir_value" : 10,
"multicast_cir_unit" : "gbps",
"multicast_cbs_value" : 10,
"multicast_cbs_unit" : "mbyte(s)",
"unknown_unicast_enable" : false,
"unknown_unicast_cir_value" : 10,
"unknown_unicast_cir_unit" : "gbps",
"unknown_unicast_cbs_value" : 10,
"unknown_unicast_cbs_unit" : "mbyte(s)"
}
},
"qos_policy_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309"
}
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A network needs to be updated by name.
Functions
Update a network by name.
Constraints
User role: northbound operator.
HTTP Method
PUT
URI
/controller/dc/v2/neutronapi/networks/{id}
Request Parameters
Sample Request
HTTP
PUT /controller/dc/v2/neutronapi/networks/DBB702C3-7719-4FE6-A5AD-3A9C9E260001 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"service_name" : "physnet1",
"network" : {
"name" : "testNetwork",
"router:external" : "false",
"admin_state_up" : "true",
"tenant_id" : "00000000-0000-0000-0000-000000000005",
"shared" : "false",
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"provider:physical_network" : "physnet1",
"provider:network_type" : "vlan",
"provider:segmentation_id" : 10,
"segments" : [
{
"provider:physical_network" : "physnet1",
"provider:network_type" : "vlan",
"provider:segmentation_id" : "123"
}
],
"binding:profile" : {
"arp_miss" : "true",
"arp_proxy" : 0,
"bum" : {
"broadcast_enable" : false,
"broadcast_cir_value" : 10,
"broadcast_cir_unit" : "gbps",
"broadcast_cbs_value" : 10,
"broadcast_cbs_unit" : "mbyte(s)",
"multicast_enable" : false,
"multicast_cir_value" : 10,
"multicast_cir_unit" : "gbps",
"multicast_cbs_value" : 10,
"multicast_cbs_unit" : "mbyte(s)",
"unknown_unicast_enable" : false,
"unknown_unicast_cir_value" : 10,
"unknown_unicast_cir_unit" : "gbps",
"unknown_unicast_cbs_value" : 10,
"unknown_unicast_cbs_unit" : "mbyte(s)"
}
},
"qos_policy_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309"
}
}
Response Parameters
Response status code 200: Response status code 200: OK.
NetworkDtoWrapper parameters, For details, see Table 1-470.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
Sample Response
Response status code 200: Response status code 200: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"service_name" : "physnet1",
"network" : {
"name" : "testNetwork",
"router:external" : "false",
"admin_state_up" : "true",
"tenant_id" : "00000000-0000-0000-0000-000000000005",
"shared" : "false",
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"provider:physical_network" : "physnet1",
"provider:network_type" : "vlan",
"provider:segmentation_id" : 10,
"segments" : [
{
"provider:physical_network" : "physnet1",
"provider:network_type" : "vlan",
"provider:segmentation_id" : "123"
}
],
"binding:profile" : {
"arp_miss" : "true",
"arp_proxy" : 0,
"bum" : {
"broadcast_enable" : false,
"broadcast_cir_value" : 10,
"broadcast_cir_unit" : "gbps",
"broadcast_cbs_value" : 10,
"broadcast_cbs_unit" : "mbyte(s)",
"multicast_enable" : false,
"multicast_cir_value" : 10,
"multicast_cir_unit" : "gbps",
"multicast_cbs_value" : 10,
"multicast_cbs_unit" : "mbyte(s)",
"unknown_unicast_enable" : false,
"unknown_unicast_cir_value" : 10,
"unknown_unicast_cir_unit" : "gbps",
"unknown_unicast_cbs_value" : 10,
"unknown_unicast_cbs_unit" : "mbyte(s)"
}
},
"qos_policy_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309"
}
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
Typical Scenarios
A network needs to be deleted by ID. After a network is deleted, all the
corresponding subnets are deleted.
Functions
Delete a network by ID.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 500 times/minute.
Single-interface performance: ≤ 105s.
HTTP Method
DELETE
URI
/controller/dc/v2/neutronapi/networks/{id}
Request Parameters
N/A
Sample Request
HTTP
DELETE /controller/dc/v2/neutronapi/networks/DBB702C3-7719-4FE6-A5AD-3A9C9E260001 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 204: Response status code 200: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 204: Response status code 200: OK.
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
1.9.5.2 Subnet
# Subnet operation APIs
Typical Scenarios
A subnet needs to be created.
Functions
Create a subnet.
Constraints
User role: northbound operator.
HTTP Method
POST
URI
/controller/dc/v2/neutronapi/subnets
Request Parameters
Sample Request
HTTP
POST /controller/dc/v2/neutronapi/subnets HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"service_name" : "physnet1",
"subnet" : {
"id" : "20000000-0000-0000-0000-000000000001",
"name" : "subnet1",
"ip_version" : 4,
"ipv6_address_mode" : "dhcpv6-stateful",
"ipv6_ra_mode" : "dhcpv6-stateful",
"network_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"cidr" : "192.168.10.0/24",
"gateway_ip" : "192.168.10.1",
"allocation_pools" : [
{
"start" : "192.168.10.2",
"end" : "192.168.10.254"
}
],
"dns_nameservers" : ["192.168.10.1"],
"host_routes" : [
{
"destination" : "192.168.9.0/24",
"nexthop" : "192.168.53.1"
}
],
"tenant_id" : "00000000-0000-0000-0000-000000000004",
"enable_dhcp" : "false"
}
}
Response Parameters
Response status code 201: Response status code 200: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Response status code 500: Response status code 500: Internal server error.
Sample Response
Response status code 201: Response status code 200: OK.
HTTP/1.1 201 Created
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"service_name" : "physnet1",
"subnet" : {
"id" : "20000000-0000-0000-0000-000000000001",
"name" : "subnet1",
"ip_version" : 4,
"ipv6_address_mode" : "dhcpv6-stateful",
"ipv6_ra_mode" : "dhcpv6-stateful",
"network_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"cidr" : "192.168.10.0/24",
"gateway_ip" : "192.168.10.1",
"allocation_pools" : [
{
"start" : "192.168.10.2",
"end" : "192.168.10.254"
}
],
"dns_nameservers" : ["192.168.10.1"],
"host_routes" : [
{
"destination" : "192.168.9.0/24",
"nexthop" : "192.168.53.1"
}
],
"tenant_id" : "00000000-0000-0000-0000-000000000004",
"enable_dhcp" : "false"
}
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
All subnets need to be queried.
Functions
Query all subnets.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 500 times/minute.
Single-interface performance: ≤ 105s.
HTTP Method
GET
URI
/controller/dc/v2/neutronapi/subnets
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v2/neutronapi/subnets?network_id=DBB702C3-7719-4FE6-
A5AD-3A9C9E265309&pageIndex=1&pageSize=10 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: Response status code 201: Created.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 200: Response status code 201: Created.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"subnets" : [
{
"id" : "20000000-0000-0000-0000-000000000001",
"name" : "subnet1",
"ip_version" : 4,
"ipv6_address_mode" : "dhcpv6-stateful",
"ipv6_ra_mode" : "dhcpv6-stateful",
"network_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"cidr" : "192.168.10.0/24",
"gateway_ip" : "192.168.10.1",
"allocation_pools" : [
{
"start" : "192.168.10.2",
"end" : "192.168.10.254"
}
],
"dns_nameservers" : ["192.168.10.1"],
"host_routes" : [
{
"destination" : "192.168.9.0/24",
"nexthop" : "192.168.53.1"
}
],
"tenant_id" : "00000000-0000-0000-0000-000000000004",
"enable_dhcp" : "false"
}
],
"number" : 1,
"service_name" : "physnet1"
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A subnet needs to be queried by ID.
Functions
Query a subnet by ID.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/controller/dc/v2/neutronapi/subnets/{id}
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v2/neutronapi/subnets/DBB702C3-7719-4FE6-A5AD-3A9C9E260001 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: Response status code 200: OK.
Sample Response
Response status code 200: Response status code 200: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"service_name" : "physnet1",
"subnet" : {
"id" : "20000000-0000-0000-0000-000000000001",
"name" : "subnet1",
"ip_version" : 4,
"ipv6_address_mode" : "dhcpv6-stateful",
"ipv6_ra_mode" : "dhcpv6-stateful",
"network_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"cidr" : "192.168.10.0/24",
"gateway_ip" : "192.168.10.1",
"allocation_pools" : [
{
"start" : "192.168.10.2",
"end" : "192.168.10.254"
}
],
"dns_nameservers" : ["192.168.10.1"],
"host_routes" : [
{
"destination" : "192.168.9.0/24",
"nexthop" : "192.168.53.1"
}
],
"tenant_id" : "00000000-0000-0000-0000-000000000004",
"enable_dhcp" : "false"
}
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A subnet needs to be updated by ID.
Functions
Update a subnet by ID.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 500 times/minute.
Single-interface performance: ≤ 105s.
HTTP Method
PUT
URI
/controller/dc/v2/neutronapi/subnets/{id}
Request Parameters
Sample Request
HTTP
PUT /controller/dc/v2/neutronapi/subnets/DBB702C3-7719-4FE6-A5AD-3A9C9E260001 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"service_name" : "physnet1",
"subnet" : {
"id" : "20000000-0000-0000-0000-000000000001",
"name" : "subnet1",
"ip_version" : 4,
"ipv6_address_mode" : "dhcpv6-stateful",
"ipv6_ra_mode" : "dhcpv6-stateful",
"network_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"cidr" : "192.168.10.0/24",
"gateway_ip" : "192.168.10.1",
"allocation_pools" : [
{
"start" : "192.168.10.2",
"end" : "192.168.10.254"
}
],
"dns_nameservers" : ["192.168.10.1"],
"host_routes" : [
{
"destination" : "192.168.9.0/24",
"nexthop" : "192.168.53.1"
}
],
"tenant_id" : "00000000-0000-0000-0000-000000000004",
"enable_dhcp" : "false"
}
}
Response Parameters
Response status code 200: Response status code 204: OK.
NeutronSubnetDtoWrapper parameters, For details, see Table 1-486.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 200: Response status code 204: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"service_name" : "physnet1",
"subnet" : {
"id" : "20000000-0000-0000-0000-000000000001",
"name" : "subnet1",
"ip_version" : 4,
"ipv6_address_mode" : "dhcpv6-stateful",
"ipv6_ra_mode" : "dhcpv6-stateful",
"network_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"cidr" : "192.168.10.0/24",
"gateway_ip" : "192.168.10.1",
"allocation_pools" : [
{
"start" : "192.168.10.2",
"end" : "192.168.10.254"
}
],
"dns_nameservers" : ["192.168.10.1"],
"host_routes" : [
{
"destination" : "192.168.9.0/24",
"nexthop" : "192.168.53.1"
}
],
"tenant_id" : "00000000-0000-0000-0000-000000000004",
"enable_dhcp" : "false"
}
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A subnet needs to be deleted by ID.
Functions
Delete a subnet by ID.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 2000 times/minute.
Single-interface performance: ≤ 105s.
HTTP Method
DELETE
URI
/controller/dc/v2/neutronapi/subnets/{id}
Request Parameters
N/A
Sample Request
HTTP
DELETE /controller/dc/v2/neutronapi/subnets/DBB702C3-7719-4FE6-A5AD-3A9C9E260001 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 204: Response status code 204: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 204: Response status code 204: OK.
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
1.9.5.3 Port
# Port operation APIs
Typical Scenarios
A port needs to be created.
Functions
Create a port.
Constraints
User role: northbound operator.
HTTP Method
POST
URI
/controller/dc/v2/neutronapi/ports
Request Parameters
Sample Request
HTTP
POST /controller/dc/v2/neutronapi/ports HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"port" : {
"name" : "test_name",
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"network_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"mac_address" : "fa:16:3e:9e:ff:55",
"fixed_ips" : [
{
"subnet_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"ip_address" : "192.168.73.16"
}
],
"device_id" : "40000000-1111-0000-0000-000000099001",
"device_owner" : "compute:nova",
"tenant_id" : "14c6bc47-5a5c-47da-bff3-7ed2b0ca8c8f",
"status" : "ACTIVE",
"binding:vif_type" : "normal",
"binding:vif_details" : "details",
"binding:host_id" : "compute-192.168.8.161",
"binding:profile" : {
"migrating_host" : "testHost",
"migrating_status" : "ACTIVE",
"external_vlan" : "vlan1",
"local_link_information" : [
{
"switch_id" : "00000000-0000-0000-0000-000000000002",
"mgmtIP" : "192.168.5.3",
"port_id" : "00000000-0000-0000-0000-000000000003",
"switch_info" : "123"
}
]
},
"port_security_enabled" : "true",
"security_groups" : ["00000000-0000-0000-2222-000000000001"],
"allowed_address_pairs" : [
{
"mac_address" : "fa:16:3e:9e:ff:55",
"ip_address" : "192.168.1.1"
}
],
"extra_dhcp_opts" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E260001",
"opt_name" : "test",
"opt_value" : "testValue"
}
],
"binding:vnic_type" : "normal",
"qos_policy_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"device_group_id" : "123",
"interface_id" : "123",
"trunkport:type" : "trunk",
"trunkport:parent_id" : "123",
"trunkport:vid" : 10,
"admin_state_up" : "true",
"mtu" : "1500",
"trunkDetails" : {
"trunk_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E260001",
"sub_ports" : [
{
"segmentation_id" : 10,
"port_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E260001",
"segmentation_type" : "vlan",
"mac_address" : "00-FF-9E-8B-FF-26"
}
]
}
},
"service_name" : "physnet1"
}
Response Parameters
Response status code 201: Response status code 201: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 201: Response status code 201: OK.
HTTP/1.1 201 Created
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"port" : {
"name" : "test_name",
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"network_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"mac_address" : "fa:16:3e:9e:ff:55",
"fixed_ips" : [
{
"subnet_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"ip_address" : "192.168.73.16"
}
],
"device_id" : "40000000-1111-0000-0000-000000099001",
"device_owner" : "compute:nova",
"tenant_id" : "14c6bc47-5a5c-47da-bff3-7ed2b0ca8c8f",
"status" : "ACTIVE",
"binding:vif_type" : "normal",
"binding:vif_details" : "details",
"binding:host_id" : "compute-192.168.8.161",
"binding:profile" : {
"migrating_host" : "testHost",
"migrating_status" : "ACTIVE",
"external_vlan" : "vlan1",
"local_link_information" : [
{
"switch_id" : "00000000-0000-0000-0000-000000000002",
"mgmtIP" : "192.168.5.3",
"port_id" : "00000000-0000-0000-0000-000000000003",
"switch_info" : "123"
}
]
},
"port_security_enabled" : "true",
"security_groups" : ["00000000-0000-0000-2222-000000000001"],
"allowed_address_pairs" : [
{
"mac_address" : "fa:16:3e:9e:ff:55",
"ip_address" : "192.168.1.1"
}
],
"extra_dhcp_opts" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E260001",
"opt_name" : "test",
"opt_value" : "testValue"
}
],
"binding:vnic_type" : "normal",
"qos_policy_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"device_group_id" : "123",
"interface_id" : "123",
"trunkport:type" : "trunk",
"trunkport:parent_id" : "123",
"trunkport:vid" : 10,
"admin_state_up" : "true",
"mtu" : "1500",
"trunkDetails" : {
"trunk_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E260001",
"sub_ports" : [
{
"segmentation_id" : 10,
"port_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E260001",
"segmentation_type" : "vlan",
"mac_address" : "00-FF-9E-8B-FF-26"
}
]
}
},
"service_name" : "physnet1"
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
Typical Scenarios
A port needs to be created.
Functions
Query all ports.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 600 times/minute.
Single-interface performance: ≤ 105s.
HTTP Method
GET
URI
/controller/dc/v2/neutronapi/ports
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v2/neutronapi/ports?network_id=DBB702C3-7719-4FE6-
A5AD-3A9C9E265309&pageIndex=1&pageSize=10 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: Response status code 201: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 200: Response status code 201: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"ports" : [
{
"name" : "test_name",
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"network_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"mac_address" : "fa:16:3e:9e:ff:55",
"fixed_ips" : [
{
"subnet_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"ip_address" : "192.168.73.16"
}
],
"device_id" : "40000000-1111-0000-0000-000000099001",
"device_owner" : "compute:nova",
"tenant_id" : "14c6bc47-5a5c-47da-bff3-7ed2b0ca8c8f",
"status" : "ACTIVE",
"binding:vif_type" : "normal",
"binding:vif_details" : "details",
"binding:host_id" : "compute-192.168.8.161",
"binding:profile" : {
"migrating_host" : "testHost",
"migrating_status" : "ACTIVE",
"external_vlan" : "vlan1",
"local_link_information" : [
{
"switch_id" : "00000000-0000-0000-0000-000000000002",
"mgmtIP" : "192.168.5.3",
"port_id" : "00000000-0000-0000-0000-000000000003",
"switch_info" : "123"
}
]
},
"port_security_enabled" : "true",
"security_groups" : ["00000000-0000-0000-2222-000000000001"],
"allowed_address_pairs" : [
{
"mac_address" : "fa:16:3e:9e:ff:55",
"ip_address" : "192.168.1.1"
}
],
"extra_dhcp_opts" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E260001",
"opt_name" : "test",
"opt_value" : "testValue"
}
],
"binding:vnic_type" : "normal",
"qos_policy_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"device_group_id" : "123",
"interface_id" : "123",
"trunkport:type" : "trunk",
"trunkport:parent_id" : "123",
"trunkport:vid" : 10,
"admin_state_up" : "true",
"mtu" : "1500",
"trunkDetails" : {
"trunk_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E260001",
"sub_ports" : [
{
"segmentation_id" : 10,
"port_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E260001",
"segmentation_type" : "vlan",
"mac_address" : "00-FF-9E-8B-FF-26"
}
]
}
}
],
"number" : 1
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Query a Port by ID.
Functions
Query a port by ID.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 600 times/minute.
Single-interface performance: ≤ 105s.
HTTP Method
GET
URI
/controller/dc/v2/neutronapi/ports/{id}
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v2/neutronapi/ports/DBB702C3-7719-4FE6-A5AD-3A9C9E260001 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: Response status code 201: OK.
NeutronPortDtoWrapper parameters, For details, see Table 1-506.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect. example, the parameter type or
value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 200: Response status code 201: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"port" : {
"name" : "test_name",
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"network_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"mac_address" : "fa:16:3e:9e:ff:55",
"fixed_ips" : [
{
"subnet_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"ip_address" : "192.168.73.16"
}
],
"device_id" : "40000000-1111-0000-0000-000000099001",
"device_owner" : "compute:nova",
"tenant_id" : "14c6bc47-5a5c-47da-bff3-7ed2b0ca8c8f",
"status" : "ACTIVE",
"binding:vif_type" : "normal",
"binding:vif_details" : "details",
"binding:host_id" : "compute-192.168.8.161",
"binding:profile" : {
"migrating_host" : "testHost",
"migrating_status" : "ACTIVE",
"external_vlan" : "vlan1",
"local_link_information" : [
{
"switch_id" : "00000000-0000-0000-0000-000000000002",
"mgmtIP" : "192.168.5.3",
"port_id" : "00000000-0000-0000-0000-000000000003",
"switch_info" : "123"
}
]
},
"port_security_enabled" : "true",
"security_groups" : ["00000000-0000-0000-2222-000000000001"],
"allowed_address_pairs" : [
{
"mac_address" : "fa:16:3e:9e:ff:55",
"ip_address" : "192.168.1.1"
}
],
"extra_dhcp_opts" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E260001",
"opt_name" : "test",
"opt_value" : "testValue"
}
],
"binding:vnic_type" : "normal",
"qos_policy_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"device_group_id" : "123",
"interface_id" : "123",
"trunkport:type" : "trunk",
"trunkport:parent_id" : "123",
"trunkport:vid" : 10,
"admin_state_up" : "true",
"mtu" : "1500",
"trunkDetails" : {
"trunk_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E260001",
"sub_ports" : [
{
"segmentation_id" : 10,
"port_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E260001",
"segmentation_type" : "vlan",
"mac_address" : "00-FF-9E-8B-FF-26"
}
]
}
},
"service_name" : "physnet1"
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect. example, the parameter type or
value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A port needs to be deleted by ID.
Functions
Update a port by ID.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 600 times/minute.
HTTP Method
PUT
URI
/controller/dc/v2/neutronapi/ports/{id}
Request Parameters
Sample Request
HTTP
PUT /controller/dc/v2/neutronapi/ports/DBB702C3-7719-4FE6-A5AD-3A9C9E260001 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"port" : {
"name" : "test_name",
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"network_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"mac_address" : "fa:16:3e:9e:ff:55",
"fixed_ips" : [
{
"subnet_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"ip_address" : "192.168.73.16"
}
],
"device_id" : "40000000-1111-0000-0000-000000099001",
"device_owner" : "compute:nova",
"tenant_id" : "14c6bc47-5a5c-47da-bff3-7ed2b0ca8c8f",
"status" : "ACTIVE",
"binding:vif_type" : "normal",
"binding:vif_details" : "details",
"binding:host_id" : "compute-192.168.8.161",
"binding:profile" : {
"migrating_host" : "testHost",
"migrating_status" : "ACTIVE",
"external_vlan" : "vlan1",
"local_link_information" : [
{
"switch_id" : "00000000-0000-0000-0000-000000000002",
"mgmtIP" : "192.168.5.3",
"port_id" : "00000000-0000-0000-0000-000000000003",
"switch_info" : "123"
}
]
},
"port_security_enabled" : "true",
"security_groups" : ["00000000-0000-0000-2222-000000000001"],
"allowed_address_pairs" : [
{
"mac_address" : "fa:16:3e:9e:ff:55",
"ip_address" : "192.168.1.1"
}
],
"extra_dhcp_opts" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E260001",
"opt_name" : "test",
"opt_value" : "testValue"
}
],
"binding:vnic_type" : "normal",
"qos_policy_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"device_group_id" : "123",
"interface_id" : "123",
"trunkport:type" : "trunk",
"trunkport:parent_id" : "123",
"trunkport:vid" : 10,
"admin_state_up" : "true",
"mtu" : "1500",
"trunkDetails" : {
"trunk_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E260001",
"sub_ports" : [
{
"segmentation_id" : 10,
"port_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E260001",
"segmentation_type" : "vlan",
"mac_address" : "00-FF-9E-8B-FF-26"
}
]
}
},
"service_name" : "physnet1"
}
Response Parameters
Response status code 200: Response status code 201: OK.
NeutronPortDtoWrapper parameters, For details, see Table 1-506.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect. example, the parameter type or
value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 200: Response status code 201: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"port" : {
"name" : "test_name",
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"network_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"mac_address" : "fa:16:3e:9e:ff:55",
"fixed_ips" : [
{
"subnet_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"ip_address" : "192.168.73.16"
}
],
"device_id" : "40000000-1111-0000-0000-000000099001",
"device_owner" : "compute:nova",
"tenant_id" : "14c6bc47-5a5c-47da-bff3-7ed2b0ca8c8f",
"status" : "ACTIVE",
"binding:vif_type" : "normal",
"binding:vif_details" : "details",
"binding:host_id" : "compute-192.168.8.161",
"binding:profile" : {
"migrating_host" : "testHost",
"migrating_status" : "ACTIVE",
"external_vlan" : "vlan1",
"local_link_information" : [
{
"switch_id" : "00000000-0000-0000-0000-000000000002",
"mgmtIP" : "192.168.5.3",
"port_id" : "00000000-0000-0000-0000-000000000003",
"switch_info" : "123"
}
]
},
"port_security_enabled" : "true",
"security_groups" : ["00000000-0000-0000-2222-000000000001"],
"allowed_address_pairs" : [
{
"mac_address" : "fa:16:3e:9e:ff:55",
"ip_address" : "192.168.1.1"
}
],
"extra_dhcp_opts" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E260001",
"opt_name" : "test",
"opt_value" : "testValue"
}
],
"binding:vnic_type" : "normal",
"qos_policy_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"device_group_id" : "123",
"interface_id" : "123",
"trunkport:type" : "trunk",
"trunkport:parent_id" : "123",
"trunkport:vid" : 10,
"admin_state_up" : "true",
"mtu" : "1500",
"trunkDetails" : {
"trunk_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E260001",
"sub_ports" : [
{
"segmentation_id" : 10,
"port_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E260001",
"segmentation_type" : "vlan",
"mac_address" : "00-FF-9E-8B-FF-26"
}
]
}
},
"service_name" : "physnet1"
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect. example, the parameter type or
value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A port needs to be deleted by ID.
Functions
Update a port by ID.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 600 times/minute.
Single-interface performance: ≤ 105s.
HTTP Method
DELETE
URI
/controller/dc/v2/neutronapi/ports/{id}
Request Parameters
N/A
Sample Request
HTTP
DELETE /controller/dc/v2/neutronapi/ports/DBB702C3-7719-4FE6-A5AD-3A9C9E260001 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 204: Response status code 201: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect. example, the parameter type or
value range is incorrect.
Response status code 500: Response status code 500: Internal server error.
Sample Response
Response status code 204: Response status code 201: OK.
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect. example, the parameter type or
value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
1.9.5.4 Router
# Router operation APIs
Typical Scenarios
A router needs to be created.
Functions
Create a router.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 500 times/minute.
Single-interface performance: ≤ 105s.
HTTP Method
POST
URI
/controller/dc/v2/neutronapi/routers
Request Parameters
Sample Request
HTTP
POST /controller/dc/v2/neutronapi/routers HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"service_name" : "physnet1",
"router" : {
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "router1",
"admin_state_up" : "true",
"status" : "ACTIVE",
"tenant_id" : "00000000-0000-0000-abce-000000000001",
"external_gateway_info" : {
"port_id" : "00000000-0000-0000-3222-000000000003",
"enabled_snat" : "false"
},
"routes" : [
{
"destination" : "192.168.2.0/24",
"nexthop" : "192.168.2.2",
"track_type" : "share-bfd",
"port_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309"
}
],
"vpn-instance" : "vpn1",
"provider:segmentation_id" : 10,
"provider:vrf_rt_export" : "3:1000",
"provider:vrf_rt_import" : ["3:1000"]
}
}
Response Parameters
Response status code 201: Response status code 201: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Response status code 500: Response status code 500: Internal server error.
Sample Response
Response status code 201: Response status code 201: OK.
HTTP/1.1 201 Created
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"service_name" : "physnet1",
"router" : {
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "router1",
"admin_state_up" : "true",
"status" : "ACTIVE",
"tenant_id" : "00000000-0000-0000-abce-000000000001",
"external_gateway_info" : {
"port_id" : "00000000-0000-0000-3222-000000000003",
"enabled_snat" : "false"
},
"routes" : [
{
"destination" : "192.168.2.0/24",
"nexthop" : "192.168.2.2",
"track_type" : "share-bfd",
"port_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309"
}
],
"vpn-instance" : "vpn1",
"provider:segmentation_id" : 10,
"provider:vrf_rt_export" : "3:1000",
"provider:vrf_rt_import" : ["3:1000"]
}
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
All routers need to be queried.
Functions
Query all routers.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/controller/dc/v2/neutronapi/routers
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v2/neutronapi/routers?pageIndex=1&pageSize=10 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: Response status code 201: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 200: Response status code 201: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"routers" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "router1",
"admin_state_up" : "true",
"status" : "ACTIVE",
"tenant_id" : "00000000-0000-0000-abce-000000000001",
"external_gateway_info" : {
"port_id" : "00000000-0000-0000-3222-000000000003",
"enabled_snat" : "false"
},
"routes" : [
{
"destination" : "192.168.2.0/24",
"nexthop" : "192.168.2.2",
"track_type" : "share-bfd",
"port_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309"
}
],
"vpn-instance" : "vpn1",
"provider:segmentation_id" : 10,
"provider:vrf_rt_export" : "3:1000",
"provider:vrf_rt_import" : ["3:1000"]
}
],
"number" : 1,
"serviceName" : "physnet1"
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A router needs to be queried by ID.
Functions
Query a router by ID.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 500 times/minute.
Single-interface performance: ≤ 105s.
HTTP Method
GET
URI
/controller/dc/v2/neutronapi/routers/{id}
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v2/neutronapi/routers/00000000-0000-0000-1234-000000000001 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: Response status code 201: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Response status code 500: Response status code 500: Internal server error.
Sample Response
Response status code 200: Response status code 201: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"service_name" : "physnet1",
"router" : {
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "router1",
"admin_state_up" : "true",
"status" : "ACTIVE",
"tenant_id" : "00000000-0000-0000-abce-000000000001",
"external_gateway_info" : {
"port_id" : "00000000-0000-0000-3222-000000000003",
"enabled_snat" : "false"
},
"routes" : [
{
"destination" : "192.168.2.0/24",
"nexthop" : "192.168.2.2",
"track_type" : "share-bfd",
"port_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309"
}
],
"vpn-instance" : "vpn1",
"provider:segmentation_id" : 10,
"provider:vrf_rt_export" : "3:1000",
"provider:vrf_rt_import" : ["3:1000"]
}
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A router needs to be updated by ID.
Functions
Update a router by ID.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 500 times/minute.
Single-interface performance: ≤ 105s.
HTTP Method
PUT
URI
/controller/dc/v2/neutronapi/routers/{id}
Request Parameters
Sample Request
HTTP
PUT /controller/dc/v2/neutronapi/routers/00000000-0000-0000-1234-000000000001 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"service_name" : "physnet1",
"router" : {
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "router1",
"admin_state_up" : "true",
"status" : "ACTIVE",
"tenant_id" : "00000000-0000-0000-abce-000000000001",
"external_gateway_info" : {
"port_id" : "00000000-0000-0000-3222-000000000003",
"enabled_snat" : "false"
},
"routes" : [
{
"destination" : "192.168.2.0/24",
"nexthop" : "192.168.2.2",
"track_type" : "share-bfd",
"port_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309"
}
],
"vpn-instance" : "vpn1",
"provider:segmentation_id" : 10,
"provider:vrf_rt_export" : "3:1000",
"provider:vrf_rt_import" : ["3:1000"]
}
}
Response Parameters
Response status code 200: Response status code 201: OK.
RouterDtoWrapper parameters, For details, see Table 1-526.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 200: Response status code 201: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"service_name" : "physnet1",
"router" : {
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "router1",
"admin_state_up" : "true",
"status" : "ACTIVE",
"tenant_id" : "00000000-0000-0000-abce-000000000001",
"external_gateway_info" : {
"port_id" : "00000000-0000-0000-3222-000000000003",
"enabled_snat" : "false"
},
"routes" : [
{
"destination" : "192.168.2.0/24",
"nexthop" : "192.168.2.2",
"track_type" : "share-bfd",
"port_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309"
}
],
"vpn-instance" : "vpn1",
"provider:segmentation_id" : 10,
"provider:vrf_rt_export" : "3:1000",
"provider:vrf_rt_import" : ["3:1000"]
}
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A router needs to be deleted by ID.
Functions
Delete a router by ID.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 500 times/minute.
Single-interface performance: ≤ 105s.
HTTP Method
DELETE
URI
/controller/dc/v2/neutronapi/routers/{id}
Request Parameters
N/A
Sample Request
HTTP
DELETE /controller/dc/v2/neutronapi/routers/00000000-0000-0000-1234-000000000001 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 204: Response status code 201: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Response status code 500: Response status code 500: Internal server error.
Sample Response
Response status code 204: Response status code 201: OK.
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A router link needs to be created.
Functions
Create a router link.
Constraints
User role: northbound operator.
HTTP Method
PUT
URI
/controller/dc/v2/neutronapi/routers/{id}/add_links
Request Parameters
Sample Request
HTTP
PUT /controller/dc/v2/neutronapi/routers/00000000-0000-0000-1234-000000000001/add_links HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"links" : [
{
"name" : "link",
"peer_router_id" : "00000000-0000-0000-1234-000000000002",
"peer_vrf_rt" : "1:1"
}
]
}
Response Parameters
Response status code 201: Response status code 201: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Response status code 500: Response status code 500: Internal server error.
Sample Response
Response status code 201: Response status code 201: OK.
HTTP/1.1 201 Created
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"links" : [
{
"name" : "link",
"peer_router_id" : "00000000-0000-0000-1234-000000000002",
"peer_vrf_rt" : "1:1"
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A route needs to be added by router ID.
Functions
Add a route by router ID.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 500 times/minute.
Single-interface performance: ≤ 105s.
HTTP Method
PUT
URI
/controller/dc/v2/neutronapi/routers/{id}/add_routes
Request Parameters
Sample Request
HTTP
PUT /controller/dc/v2/neutronapi/routers/00000000-0000-0000-1234-000000000001/add_routes HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"routes" : [
{
"destination" : "192.168.2.0/24",
"nexthop" : "192.168.2.2",
"track_type" : "share-bfd",
"port_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309"
}
]
}
Response Parameters
Response status code 200: Response status code 201: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 200: Response status code 201: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"routes" : [
{
"destination" : "192.168.2.0/24",
"nexthop" : "192.168.2.2",
"track_type" : "share-bfd",
"port_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309"
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A router link needs to be queried by router ID.
Functions
Query a router link by router ID.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 500 times/minute.
Single-interface performance: ≤ 105s.
HTTP Method
GET
URI
/controller/dc/v2/neutronapi/routers/{id}/query_links
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v2/neutronapi/routers/00000000-0000-0000-1234-000000000001/query_links HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: Response status code 201: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 200: Response status code 201: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"links" : [
{
"name" : "link",
"peer_router_id" : "00000000-0000-0000-1234-000000000002",
"peer_vrf_rt" : "1:1"
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A router link needs to be deleted by router ID.
Functions
Delete a router link by router ID.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 500 times/minute.
Single-interface performance: ≤ 105s.
HTTP Method
PUT
URI
/controller/dc/v2/neutronapi/routers/{id}/remove_links
Request Parameters
Sample Request
HTTP
PUT /controller/dc/v2/neutronapi/routers/00000000-0000-0000-1234-000000000001/remove_links HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"links" : [
{
"name" : "link",
"peer_router_id" : "00000000-0000-0000-1234-000000000002",
"peer_vrf_rt" : "1:1"
}
]
}
Response Parameters
Response status code 200: Response status code 204: OK.
RouterLinkDtoWrapper parameters, For details, see Table 1-540.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 200: Response status code 204: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"links" : [
{
"name" : "link",
"peer_router_id" : "00000000-0000-0000-1234-000000000002",
"peer_vrf_rt" : "1:1"
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A route needs to be deleted by router ID.
Functions
Delete a route by router ID.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 500 times/minute.
Single-interface performance: ≤ 105s.
HTTP Method
PUT
URI
/controller/dc/v2/neutronapi/routers/{id}/remove_routes
Request Parameters
Sample Request
HTTP
PUT /controller/dc/v2/neutronapi/routers/00000000-0000-0000-1234-000000000001/remove_routes HTTP/
1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"routes" : [
{
"destination" : "192.168.2.0/24",
"nexthop" : "192.168.2.2",
"track_type" : "share-bfd",
"port_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309"
}
]
}
Response Parameters
Response status code 200: Response status code 201: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Response status code 500: Response status code 500: Internal server error.
Sample Response
Response status code 200: Response status code 201: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"routes" : [
{
"destination" : "192.168.2.0/24",
"nexthop" : "192.168.2.2",
"track_type" : "share-bfd",
"port_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309"
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
Typical Scenarios
Static route information needs to be queried based on the router ID.
Functions
Query a static route by router ID.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 500 times/minute.
Single-interface performance: ≤ 105s.
HTTP Method
GET
URI
/controller/dc/v2/neutronapi/routers/{id}/query_staticrouters
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v2/neutronapi/routers/00000000-0000-0000-1234-000000000001/query_staticrouters
HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: Response status code 201: OK.
Sample Response
Response status code 200: Response status code 201: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"routes" : [
{
"destination" : "192.168.2.0/24",
"nexthop" : "192.168.2.2",
"track_type" : "share-bfd",
"port_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309"
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
An internal router interface needs to be created by ID.
This API is retained to maintain compatibility and does not implement any
function. Instead, the function is implemented by the API for deleting ports.
Functions
Create an internal router interface by ID.
Constraints
User role: northbound operator.
HTTP Method
PUT
URI
/controller/dc/v2/neutronapi/routerinterface/{router_id}/add_router_interface
Request Parameters
Sample Request
HTTP
PUT /controller/dc/v2/neutronapi/routerinterface/00000000-0000-0000-1234-000000000001/
add_router_interface HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"port_id" : "00000000-0000-0000-0000-000000000009",
"subnet_id" : "00000000-0000-0000-0000-000000000003",
"tenant_id" : "00000000-0000-0000-0000-000000000001",
"id" : "00000000-0000-0000-0000-000000000002",
"service_name" : "physnet1"
}
Response Parameters
Response status code 201: Response status code 201: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 201: Response status code 201: OK.
HTTP/1.1 201 Created
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"port_id" : "00000000-0000-0000-0000-000000000009",
"subnet_id" : "00000000-0000-0000-0000-000000000003",
"tenant_id" : "00000000-0000-0000-0000-000000000001",
"id" : "00000000-0000-0000-0000-000000000002",
"service_name" : "physnet1"
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A subnet ID needs to be queried by ID.
Functions
Query the subnet ID of internal interfaces by ID.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 500 times/minute.
Single-interface performance: ≤ 105s.
HTTP Method
GET
URI
/controller/dc/v2/neutronapi/routerinterface/{router_id}/query_subnet_ids
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v2/neutronapi/routerinterface/00000000-0000-0000-1234-000000000001/
query_subnet_ids HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: Response status code 201: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: Response status code 201: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"subNetDtoIds" : [
{
"subnet_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309"
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A router interface needs to be deleted by ID.
This API is retained to maintain compatibility and does not implement any
function. Instead, the function is implemented by the API for deleting ports.
Functions
Delete an internal router interface by ID.
Constraints
User role: northbound operator.
HTTP Method
PUT
URI
/controller/dc/v2/neutronapi/routerinterface/{router_id}/remove_router_interface
Request Parameters
Sample Request
HTTP
PUT /controller/dc/v2/neutronapi/routerinterface/00000000-0000-0000-1234-000000000001/
remove_router_interface HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"port_id" : "00000000-0000-0000-0000-000000000009",
"subnet_id" : "00000000-0000-0000-0000-000000000003",
"tenant_id" : "00000000-0000-0000-0000-000000000001",
"id" : "00000000-0000-0000-0000-000000000002",
"service_name" : "physnet1"
}
Response Parameters
Response status code 200: Response status code 200: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Response status code 500: Response status code 500: Internal server error.
Sample Response
Response status code 200: Response status code 200: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"port_id" : "00000000-0000-0000-0000-000000000009",
"subnet_id" : "00000000-0000-0000-0000-000000000003",
"tenant_id" : "00000000-0000-0000-0000-000000000001",
"id" : "00000000-0000-0000-0000-000000000002",
"service_name" : "physnet1"
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
1.9.5.6 Snat
Typical Scenarios
The SNAT needs to be created.
Functions
Create SNAT.
Constraints
User role: northbound operator.
HTTP Method
POST
URI
/restconf/data/huawei-ac-neutron:neutron-cfg/snats
Request Parameters
Sample Request
HTTP
POST /restconf/data/huawei-ac-neutron:neutron-cfg/snats HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"snat" : [
{
"uuid" : "00000000-0000-1111-2222-000000000008",
"name" : "snat",
"updated-at" : "2017-06-24T12:30:30",
"created-at" : "2017-06-24T12:30:30",
"cloud-name" : "openstack",
"tenant-id" : "00000000-0000-1111-2222-000000000008",
"snat-ip-address" : "192.168.0.1",
"snat-network-id" : "00000000-0000-1111-2222-000000000008",
"router-id" : "00000000-0000-1111-2222-000000000008",
"orignal-cidrs" : ["10.10.0.0/8"],
"type" : 0,
"snat-ip-pool" : [
{
"begin-ip" : "192.168.0.1",
"end-ip" : "192.168.0.255"
}
]
}
]
}
Response Parameters
Response status code 201: Response status code 201: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Response status code 500: Response status code 500: Internal server error.
Sample Response
Response status code 201: Response status code 201: OK.
HTTP/1.1 201 Created
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
SNAT needs to be queried.
Functions
Query all SNATs.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/restconf/data/huawei-ac-neutron:neutron-cfg/snats
Request Parameters
N/A
Sample Request
HTTP
GET /restconf/data/huawei-ac-neutron:neutron-cfg/snats HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: Response status code 200: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Response status code 500: Response status code 500: Internal server error.
Sample Response
Response status code 200: Response status code 200: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"snat" : [
{
"uuid" : "00000000-0000-1111-2222-000000000008",
"name" : "snat",
"updated-at" : "2017-06-24T12:30:30",
"created-at" : "2017-06-24T12:30:30",
"cloud-name" : "openstack",
"tenant-id" : "00000000-0000-1111-2222-000000000008",
"snat-ip-address" : "192.168.0.1",
"snat-network-id" : "00000000-0000-1111-2222-000000000008",
"router-id" : "00000000-0000-1111-2222-000000000008",
"orignal-cidrs" : ["10.10.0.0/8"],
"type" : 0,
"snat-ip-pool" : [
{
"begin-ip" : "192.168.0.1",
"end-ip" : "192.168.0.255"
}
]
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
The SNAT needs to be queried by name.
Functions
Query SNAT by name.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 500 times/minute.
Single-interface performance: ≤ 105s.
HTTP Method
GET
URI
/restconf/data/huawei-ac-neutron:neutron-cfg/snats/snat/{id}
Request Parameters
N/A
Sample Request
HTTP
GET /restconf/data/huawei-ac-neutron:neutron-cfg/snats/snat/00000000-0000-1111-2222-000000000008
HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: Response status code 200: OK.
snats parameters, For details, see Table 1-566.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 200: Response status code 200: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"snat" : [
{
"uuid" : "00000000-0000-1111-2222-000000000008",
"name" : "snat",
"updated-at" : "2017-06-24T12:30:30",
"created-at" : "2017-06-24T12:30:30",
"cloud-name" : "openstack",
"tenant-id" : "00000000-0000-1111-2222-000000000008",
"snat-ip-address" : "192.168.0.1",
"snat-network-id" : "00000000-0000-1111-2222-000000000008",
"router-id" : "00000000-0000-1111-2222-000000000008",
"orignal-cidrs" : ["10.10.0.0/8"],
"type" : 0,
"snat-ip-pool" : [
{
"begin-ip" : "192.168.0.1",
"end-ip" : "192.168.0.255"
}
]
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
The SNAT needs to be updated.
Functions
Update SNAT.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 500 times/minute.
Single-interface performance: ≤ 105s.
HTTP Method
PUT
URI
/restconf/data/huawei-ac-neutron:neutron-cfg/snats/snat/{id}
Request Parameters
Sample Request
HTTP
PUT /restconf/data/huawei-ac-neutron:neutron-cfg/snats/snat/00000000-0000-1111-2222-000000000008
HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"snat" : [
{
"uuid" : "00000000-0000-1111-2222-000000000008",
"name" : "snat",
"updated-at" : "2017-06-24T12:30:30",
"created-at" : "2017-06-24T12:30:30",
"cloud-name" : "openstack",
"tenant-id" : "00000000-0000-1111-2222-000000000008",
"snat-ip-address" : "192.168.0.1",
"snat-network-id" : "00000000-0000-1111-2222-000000000008",
"router-id" : "00000000-0000-1111-2222-000000000008",
"orignal-cidrs" : ["10.10.0.0/8"],
"type" : 0,
"snat-ip-pool" : [
{
"begin-ip" : "192.168.0.1",
"end-ip" : "192.168.0.255"
}
]
}
]
}
Response Parameters
Response status code 204: Response status code 204: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 204: Response status code 204: OK.
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
The SNAT needs to be deleted.
Functions
Delete an SNAT by name.
Constraints
User role: northbound operator.
HTTP Method
DELETE
URI
/restconf/data/huawei-ac-neutron:neutron-cfg/snats/snat/{id}
Request Parameters
N/A
Sample Request
HTTP
DELETE /restconf/data/huawei-ac-neutron:neutron-cfg/snats/snat/
00000000-0000-1111-2222-000000000008 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 204: Response status code 204: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 204: Response status code 204: OK.
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A floating IP address needs to be created.
Functions
Create a floating IP address.
Constraints
User role: northbound operator.
HTTP Method
POST
URI
/restconf/data/huawei-ac-neutron:neutron-cfg/floatingips
Request Parameters
Sample Request
HTTP
POST /restconf/data/huawei-ac-neutron:neutron-cfg/floatingips HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"floatingip" : [
{
"uuid" : "00000004-0000-3333-0000-000000000001",
"name" : "FloatingIpName",
"updated-at" : "2018-02-20T08:15:49",
"created-at" : "2018-02-20T08:15:49",
"cloud-name" : "openstack",
"tenant-id" : "00000004-0000-3333-0000-000000000001",
"floating-network-id" : "00000004-0000-3333-0000-000000000001",
"port-id" : "00000004-0000-3333-0000-000000000001",
"fixed-ip-address" : "192.168.2.2",
"floating-ip-address" : "192.168.3.3",
"router-id" : "00000004-0000-3333-0000-000000000001"
}
]
}
Response Parameters
Response status code 201: Response status code 201: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 201: Response status code 201: OK.
HTTP/1.1 201 Created
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A floating IP address needs to be queried.
Functions
Query all floating IP addresses.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/restconf/data/huawei-ac-neutron:neutron-cfg/floatingips
Request Parameters
N/A
Sample Request
HTTP
GET /restconf/data/huawei-ac-neutron:neutron-cfg/floatingips HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: Response status code 200: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 200: Response status code 200: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"floatingip" : [
{
"uuid" : "00000004-0000-3333-0000-000000000001",
"name" : "FloatingIpName",
"updated-at" : "2018-02-20T08:15:49",
"created-at" : "2018-02-20T08:15:49",
"cloud-name" : "openstack",
"tenant-id" : "00000004-0000-3333-0000-000000000001",
"floating-network-id" : "00000004-0000-3333-0000-000000000001",
"port-id" : "00000004-0000-3333-0000-000000000001",
"fixed-ip-address" : "192.168.2.2",
"floating-ip-address" : "192.168.3.3",
"router-id" : "00000004-0000-3333-0000-000000000001"
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A floating IP address needs to be queried by name.
Functions
Query floating IP addresses by name.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/restconf/data/huawei-ac-neutron:neutron-cfg/floatingips/floatingip/{urlId}
Request Parameters
N/A
Sample Request
HTTP
GET /restconf/data/huawei-ac-neutron:neutron-cfg/floatingips/floatingip/{urlId} HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: Response status code 200: OK.
floatingips parameters, For details, see Table 1-576.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 200: Response status code 200: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"floatingip" : [
{
"uuid" : "00000004-0000-3333-0000-000000000001",
"name" : "FloatingIpName",
"updated-at" : "2018-02-20T08:15:49",
"created-at" : "2018-02-20T08:15:49",
"cloud-name" : "openstack",
"tenant-id" : "00000004-0000-3333-0000-000000000001",
"floating-network-id" : "00000004-0000-3333-0000-000000000001",
"port-id" : "00000004-0000-3333-0000-000000000001",
"fixed-ip-address" : "192.168.2.2",
"floating-ip-address" : "192.168.3.3",
"router-id" : "00000004-0000-3333-0000-000000000001"
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A floating IP address needs to be updated.
Functions
Update the floating IP address.
Constraints
User role: northbound operator.
HTTP Method
PUT
URI
/restconf/data/huawei-ac-neutron:neutron-cfg/floatingips/floatingip/{urlId}
Request Parameters
Sample Request
HTTP
PUT /restconf/data/huawei-ac-neutron:neutron-cfg/floatingips/floatingip/
00000004-0000-3333-0000-000000000001 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"floatingip" : [
{
"uuid" : "00000004-0000-3333-0000-000000000001",
"name" : "FloatingIpName",
"updated-at" : "2018-02-20T08:15:49",
"created-at" : "2018-02-20T08:15:49",
"cloud-name" : "openstack",
"tenant-id" : "00000004-0000-3333-0000-000000000001",
"floating-network-id" : "00000004-0000-3333-0000-000000000001",
"port-id" : "00000004-0000-3333-0000-000000000001",
"fixed-ip-address" : "192.168.2.2",
"floating-ip-address" : "192.168.3.3",
"router-id" : "00000004-0000-3333-0000-000000000001"
}
]
}
Response Parameters
Response status code 204: Response status code 204: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Response status code 500: Response status code 500: Internal server error.
Sample Response
Response status code 204: Response status code 204: OK.
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A floating IP address needs to be deleted.
Functions
Delete a floating IP address by name.
Constraints
User role: northbound operator.
HTTP Method
DELETE
URI
/restconf/data/huawei-ac-neutron:neutron-cfg/floatingips/floatingip/{urlId}
Request Parameters
N/A
Sample Request
HTTP
DELETE /restconf/data/huawei-ac-neutron:neutron-cfg/floatingips/floatingip/
00000004-0000-3333-0000-000000000001 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 204: Response status code 204: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 204: Response status code 204: OK.
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
1.9.5.8 Qos
Typical Scenarios
A QoS policy needs to be created.
Functions
Create a QoS policy.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 500 times/minute.
Single-interface performance: ≤ 105s.
HTTP Method
POST
URI
/restconf/data/huawei-ac-neutron:neutron-cfg/qos-policies
Request Parameters
Sample Request
HTTP
POST /restconf/data/huawei-ac-neutron:neutron-cfg/qos-policies HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"qos-policy" : [
{
"uuid" : "8938f538-2006-4dde-8902-6d3f676d3790",
"name" : "qosName",
"updated-at" : "2017-01-13T05:30:31",
"created-at" : "2017-01-13T05:30:31",
"cloud-name" : "openstack",
"tenant-id" : "8938f538-2006-4dde-8902-6d3f676d3790",
"qos-bandwidth-limit-rules" : {
"qos-bandwidth-limit-rule" : [
{
"direction" : "inbound",
"max-kbps" : 10000,
"uuid" : "8938f538-2006-4dde-8902-6d3f676d3790",
"max-burst-kbps" : 20000,
"qos-policy-id" : "8938f538-2006-4dde-8902-6d3f676d3790"
}
]
},
"qos-dscp-limit-rules" : {
"qos-dscp-limit-rule" : [
{
"uuid" : "8938f538-2006-4dde-8902-6d3f676d3790",
"dscp-mark" : 8
}
]
},
"qos-cos-marking-rules" : {
"qos-cos-marking-rule" : [
{
"uuid" : "8938f538-2006-4dde-8902-6d3f676d3790",
"cos-mark" : 0
}
]
}
}
]
}
Response Parameters
Response status code 201: QoS entity to be created.
Response status code 500: Response status code 500: Internal server error.
Sample Response
Response status code 201: QoS entity to be created.
HTTP/1.1 201 Created
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
Typical Scenarios
QoS information needs to be queried.
Functions
Query all QoSs.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/restconf/data/huawei-ac-neutron:neutron-cfg/qos-policies
Request Parameters
N/A
Sample Request
HTTP
GET /restconf/data/huawei-ac-neutron:neutron-cfg/qos-policies HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: Response status code 200: OK.
cos- int64 - - 0 or 7. 0
mark
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Response status code 500: Response status code 500: Internal server error.
Sample Response
Response status code 200: Response status code 200: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"qos-policy" : [
{
"uuid" : "8938f538-2006-4dde-8902-6d3f676d3790",
"name" : "qosName",
"updated-at" : "2017-01-13T05:30:31",
"created-at" : "2017-01-13T05:30:31",
"cloud-name" : "openstack",
"tenant-id" : "8938f538-2006-4dde-8902-6d3f676d3790",
"qos-bandwidth-limit-rules" : {
"qos-bandwidth-limit-rule" : [
{
"direction" : "inbound",
"max-kbps" : 10000,
"uuid" : "8938f538-2006-4dde-8902-6d3f676d3790",
"max-burst-kbps" : 20000,
"qos-policy-id" : "8938f538-2006-4dde-8902-6d3f676d3790"
}
]
},
"qos-dscp-limit-rules" : {
"qos-dscp-limit-rule" : [
{
"uuid" : "8938f538-2006-4dde-8902-6d3f676d3790",
"dscp-mark" : 8
}
]
},
"qos-cos-marking-rules" : {
"qos-cos-marking-rule" : [
{
"uuid" : "8938f538-2006-4dde-8902-6d3f676d3790",
"cos-mark" : 0
}
]
}
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
The QoS needs to be queried by name.
Functions
Query QoS by name.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 500 times/minute.
Single-interface performance: ≤ 105s.
HTTP Method
GET
URI
/restconf/data/huawei-ac-neutron:neutron-cfg/qos-policies/qos-policy/{id}
Request Parameters
N/A
Sample Request
HTTP
GET /restconf/data/huawei-ac-neutron:neutron-cfg/qos-policies/qos-policy/
8938f538-2006-4dde-8902-6d3f676d3790 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: Succeeded.
qos-policies parameters, For details, see Table 1-591.
Response status code 400: The parameter format is incorrect. For example, the
parameter type is incorrect or the value range is incorrect.
For details, see the response message body.
Response status code 500: The internal processing mechanism is defective.
For details, see the response message body.
Sample Response
Response status code 200: Succeeded.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"qos-policy" : [
{
"uuid" : "8938f538-2006-4dde-8902-6d3f676d3790",
"name" : "qosName",
"updated-at" : "2017-01-13T05:30:31",
"created-at" : "2017-01-13T05:30:31",
"cloud-name" : "openstack",
"tenant-id" : "8938f538-2006-4dde-8902-6d3f676d3790",
"qos-bandwidth-limit-rules" : {
"qos-bandwidth-limit-rule" : [
{
"direction" : "inbound",
"max-kbps" : 10000,
"uuid" : "8938f538-2006-4dde-8902-6d3f676d3790",
"max-burst-kbps" : 20000,
"qos-policy-id" : "8938f538-2006-4dde-8902-6d3f676d3790"
}
]
},
"qos-dscp-limit-rules" : {
"qos-dscp-limit-rule" : [
{
"uuid" : "8938f538-2006-4dde-8902-6d3f676d3790",
"dscp-mark" : 8
}
]
},
"qos-cos-marking-rules" : {
"qos-cos-marking-rule" : [
{
"uuid" : "8938f538-2006-4dde-8902-6d3f676d3790",
"cos-mark" : 0
}
]
}
}
]
}
Response status code 400: The parameter format is incorrect. For example, the
parameter type is incorrect or the value range is incorrect.
Typical Scenarios
The QoS needs to be updated.
Functions
Update the QoS.
Constraints
User role: northbound operator.
HTTP Method
PUT
URI
/restconf/data/huawei-ac-neutron:neutron-cfg/qos-policies/qos-policy/{id}
Request Parameters
Sample Request
HTTP
PUT /restconf/data/huawei-ac-neutron:neutron-cfg/qos-policies/qos-policy/
8938f538-2006-4dde-8902-6d3f676d3790 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"qos-policy" : [
{
"uuid" : "8938f538-2006-4dde-8902-6d3f676d3790",
"name" : "qosName",
"updated-at" : "2017-01-13T05:30:31",
"created-at" : "2017-01-13T05:30:31",
"cloud-name" : "openstack",
"tenant-id" : "8938f538-2006-4dde-8902-6d3f676d3790",
"qos-bandwidth-limit-rules" : {
"qos-bandwidth-limit-rule" : [
{
"direction" : "inbound",
"max-kbps" : 10000,
"uuid" : "8938f538-2006-4dde-8902-6d3f676d3790",
"max-burst-kbps" : 20000,
"qos-policy-id" : "8938f538-2006-4dde-8902-6d3f676d3790"
}
]
},
"qos-dscp-limit-rules" : {
"qos-dscp-limit-rule" : [
{
"uuid" : "8938f538-2006-4dde-8902-6d3f676d3790",
"dscp-mark" : 8
}
]
},
"qos-cos-marking-rules" : {
"qos-cos-marking-rule" : [
{
"uuid" : "8938f538-2006-4dde-8902-6d3f676d3790",
"cos-mark" : 0
}
]
}
}
]
}
Response Parameters
Response status code 204: Update QoS by Name
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Response status code 500: Response status code 500: Internal server error.
Sample Response
Response status code 204: Update QoS by Name
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A QoS needs to be deleted.
Functions
Delete a QoS policy by name.
Constraints
User role: northbound operator.
HTTP Method
DELETE
URI
/restconf/data/huawei-ac-neutron:neutron-cfg/qos-policies/qos-policy/{id}
Request Parameters
N/A
Sample Request
HTTP
DELETE /restconf/data/huawei-ac-neutron:neutron-cfg/qos-policies/qos-policy/
8938f538-2006-4dde-8902-6d3f676d3790 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 204: Response status code 204: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 204: Response status code 204: OK.
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A security rule needs to be created.
Functions
Create a security group.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 500 times/minute.
Single-interface performance: ≤ 105s.
HTTP Method
POST
URI
/restconf/data/huawei-ac-neutron:neutron-cfg/security-groups
Request Parameters
Sample Request
HTTP
POST /restconf/data/huawei-ac-neutron:neutron-cfg/security-groups HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"security-group" : [
{
"uuid" : "00000000-0000-1111-2222-000000000008",
"name" : "name",
"updated-at" : "2017-06-24T12:30:30",
"created-at" : "2017-06-24T12:30:30",
"cloud-name" : "openstack",
"tenant-id" : "00000000-0000-1111-2222-000000000008",
"description" : "this is a discr",
"security-rules" : ["00000000-0000-1111-2220-000000000008"]
}
]
}
Response Parameters
Response status code 201: Response status code 201: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Response status code 500: Response status code 500: Internal server error.
Sample Response
Response status code 201: Response status code 201: OK.
HTTP/1.1 201 Created
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A security group needs to be queried.
Functions
Query all security groups.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/restconf/data/huawei-ac-neutron:neutron-cfg/security-groups
Request Parameters
N/A
Sample Request
HTTP
GET /restconf/data/huawei-ac-neutron:neutron-cfg/security-groups HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: Response status code 200: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 200: Response status code 200: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"security-group" : [
{
"uuid" : "00000000-0000-1111-2222-000000000008",
"name" : "name",
"updated-at" : "2017-06-24T12:30:30",
"created-at" : "2017-06-24T12:30:30",
"cloud-name" : "openstack",
"tenant-id" : "00000000-0000-1111-2222-000000000008",
"description" : "this is a discr",
"security-rules" : ["00000000-0000-1111-2220-000000000008"]
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A security group needs to be queried by name.
Functions
Query a security group by name.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 500 times/minute.
Single-interface performance: ≤ 105s.
HTTP Method
GET
URI
/restconf/data/huawei-ac-neutron:neutron-cfg/security-groups/security-group/{id}
Request Parameters
N/A
Sample Request
HTTP
GET /restconf/data/huawei-ac-neutron:neutron-cfg/security-groups/security-group/
00000000-0000-1111-2222-000000000008 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: Response status code 200: OK.
security-groups parameters, For details, see Table 1-606.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 200: Response status code 200: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"security-group" : [
{
"uuid" : "00000000-0000-1111-2222-000000000008",
"name" : "name",
"updated-at" : "2017-06-24T12:30:30",
"created-at" : "2017-06-24T12:30:30",
"cloud-name" : "openstack",
"tenant-id" : "00000000-0000-1111-2222-000000000008",
"description" : "this is a discr",
"security-rules" : ["00000000-0000-1111-2220-000000000008"]
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A security group needs to be updated.
Functions
Update a security group.
Constraints
User role: northbound operator.
HTTP Method
PUT
URI
/restconf/data/huawei-ac-neutron:neutron-cfg/security-groups/security-group/{id}
Request Parameters
Sample Request
HTTP
PUT /restconf/data/huawei-ac-neutron:neutron-cfg/security-groups/security-group/
00000000-0000-1111-2222-000000000008 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"security-group" : [
{
"uuid" : "00000000-0000-1111-2222-000000000008",
"name" : "name",
"updated-at" : "2017-06-24T12:30:30",
"created-at" : "2017-06-24T12:30:30",
"cloud-name" : "openstack",
"tenant-id" : "00000000-0000-1111-2222-000000000008",
"description" : "this is a discr",
"security-rules" : ["00000000-0000-1111-2220-000000000008"]
}
]
}
Response Parameters
Response status code 204: Response status code 204: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 204: Response status code 204: OK.
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A security group needs to be deleted.
Functions
Delete a security group by name.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 500 times/minute.
Single-interface performance: ≤ 105s.
HTTP Method
DELETE
URI
/restconf/data/huawei-ac-neutron:neutron-cfg/security-groups/security-group/{id}
Request Parameters
N/A
Sample Request
HTTP
DELETE /restconf/data/huawei-ac-neutron:neutron-cfg/security-groups/security-group/
00000000-0000-1111-2222-000000000008 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 204: Response status code 204: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Response status code 500: Response status code 500: Internal server error.
Sample Response
Response status code 204: Response status code 204: OK.
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A security rule needs to be created.
Functions
Create a security rule.
Constraints
User role: northbound operator.
HTTP Method
POST
URI
/restconf/data/huawei-ac-neutron:neutron-cfg/security-rules
Request Parameters
Sample Request
HTTP
POST /restconf/data/huawei-ac-neutron:neutron-cfg/security-rules HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"security-rule" : [
{
"remote-ip-prefix" : "10.10.10.0/8",
"direction" : "this is a discr",
"protocol" : "5",
"ethertype" : "huawei-ac-neutron-constants:ethertype-v4",
"updated-at" : "2017-01-13T05:30:31",
"created-at" : "2017-01-13T05:30:31",
"port-range-max" : 100,
"security-group-id" : "11000000-2000-0000-0000-000000000020",
"port-range-min" : 10,
"remote-group-id" : "11000000-2000-0000-0000-000000000020",
"id" : "11000000-2000-0000-0000-000000000020",
"tenant-id" : "11000000-2000-0000-0000-000000000020"
}
]
}
Response Parameters
Response status code 201: Response status code 201: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Response status code 500: Response status code 500: Internal server error.
Sample Response
Response status code 201: Response status code 201: OK.
HTTP/1.1 201 Created
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Security rules need to be queried.
Functions
Query all security rules.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/restconf/data/huawei-ac-neutron:neutron-cfg/security-rules
Request Parameters
N/A
Sample Request
HTTP
GET /restconf/data/huawei-ac-neutron:neutron-cfg/security-rules HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: Response status code 200: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 200: Response status code 200: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"security-rule" : [
{
"remote-ip-prefix" : "10.10.10.0/8",
"direction" : "this is a discr",
"protocol" : "5",
"ethertype" : "huawei-ac-neutron-constants:ethertype-v4",
"updated-at" : "2017-01-13T05:30:31",
"created-at" : "2017-01-13T05:30:31",
"port-range-max" : 100,
"security-group-id" : "11000000-2000-0000-0000-000000000020",
"port-range-min" : 10,
"remote-group-id" : "11000000-2000-0000-0000-000000000020",
"id" : "11000000-2000-0000-0000-000000000020",
"tenant-id" : "11000000-2000-0000-0000-000000000020"
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A security rule needs to be queried by name.
Functions
Query a security rule by name.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/restconf/data/huawei-ac-neutron:neutron-cfg/security-rules/security-rule/{id}
Request Parameters
N/A
Sample Request
HTTP
GET /restconf/data/huawei-ac-neutron:neutron-cfg/security-rules/security-rule/{id} HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: Response status code 200: OK.
security-rules parameters, For details, see Table 1-615.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 200: Response status code 200: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"security-rule" : [
{
"remote-ip-prefix" : "10.10.10.0/8",
"direction" : "this is a discr",
"protocol" : "5",
"ethertype" : "huawei-ac-neutron-constants:ethertype-v4",
"updated-at" : "2017-01-13T05:30:31",
"created-at" : "2017-01-13T05:30:31",
"port-range-max" : 100,
"security-group-id" : "11000000-2000-0000-0000-000000000020",
"port-range-min" : 10,
"remote-group-id" : "11000000-2000-0000-0000-000000000020",
"id" : "11000000-2000-0000-0000-000000000020",
"tenant-id" : "11000000-2000-0000-0000-000000000020"
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A security rule needs to be created.
Functions
Delete a security rule by name.
Constraints
User role: northbound operator.
HTTP Method
DELETE
URI
/restconf/data/huawei-ac-neutron:neutron-cfg/security-rules/security-rule/{id}
Request Parameters
N/A
Sample Request
HTTP
DELETE /restconf/data/huawei-ac-neutron:neutron-cfg/security-rules/security-rule/{id} HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 204: Response status code 204: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 204: Response status code 204: OK.
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
1.9.5.11 Firewall
# Firewall operation APIs
Typical Scenarios
A firewall needs to be created.
Functions
Create a firewall.
Constraints
User role: northbound operator.
HTTP Method
POST
URI
/controller/dc/v2/neutronapi/fw/firewalls
Request Parameters
Sample Request
HTTP
POST /controller/dc/v2/neutronapi/fw/firewalls HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"service_name" : "physnet1",
"firewall" : {
"tenant_id" : "00000000-0000-0000-abce-000000000001",
"id" : "ff000000-ff00-0000-abce-000000000001",
"description" : "firewall description",
"name" : "test_fw1",
"status" : "ACTIVE",
"admin_state_up" : "true",
"shared" : "false",
"firewall_policy_id" : "9951b5fd-d187-4ab6-b71f-397dd1932027",
"router_ids" : ["00000000-0000-0000-1234-000000000003"]
}
}
Response Parameters
Response status code 201: Response status code 200: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 201: Response status code 200: OK.
HTTP/1.1 201 Created
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"service_name" : "physnet1",
"firewall" : {
"tenant_id" : "00000000-0000-0000-abce-000000000001",
"id" : "ff000000-ff00-0000-abce-000000000001",
"description" : "firewall description",
"name" : "test_fw1",
"status" : "ACTIVE",
"admin_state_up" : "true",
"shared" : "false",
"firewall_policy_id" : "9951b5fd-d187-4ab6-b71f-397dd1932027",
"router_ids" : ["00000000-0000-0000-1234-000000000003"]
}
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
All firewalls need to be queried.
Functions
Query all firewalls.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 500 times/minute.
Single-interface performance: ≤ 105s.
HTTP Method
GET
URI
/controller/dc/v2/neutronapi/fw/firewalls
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v2/neutronapi/fw/firewalls?pageIndex=1&pageSize=10 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: Response status code 200: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Response status code 500: Response status code 500: Internal server error.
Sample Response
Response status code 200: Response status code 200: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"firewalls" : [
{
"tenant_id" : "00000000-0000-0000-abce-000000000001",
"id" : "ff000000-ff00-0000-abce-000000000001",
"description" : "firewall description",
"name" : "test_fw1",
"status" : "ACTIVE",
"admin_state_up" : "true",
"shared" : "false",
"firewall_policy_id" : "9951b5fd-d187-4ab6-b71f-397dd1932027",
"router_ids" : ["00000000-0000-0000-1234-000000000003"]
}
],
"service_name" : "physnet1"
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A firewall needs to be queried by ID.
Functions
Query a firewall by ID.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/controller/dc/v2/neutronapi/fw/firewalls/{id}
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v2/neutronapi/fw/firewalls/ff000000-ff00-0000-abce-000000000001 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: Response status code 200: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Response status code 500: Response status code 500: Internal server error.
Sample Response
Response status code 200: Response status code 200: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"service_name" : "physnet1",
"firewall" : {
"tenant_id" : "00000000-0000-0000-abce-000000000001",
"id" : "ff000000-ff00-0000-abce-000000000001",
"description" : "firewall description",
"name" : "test_fw1",
"status" : "ACTIVE",
"admin_state_up" : "true",
"shared" : "false",
"firewall_policy_id" : "9951b5fd-d187-4ab6-b71f-397dd1932027",
"router_ids" : ["00000000-0000-0000-1234-000000000003"]
}
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A firewall needs to be updated by ID.
Functions
Update a firewall by ID.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 500 times/minute.
Single-interface performance: ≤ 105s.
HTTP Method
PUT
URI
/controller/dc/v2/neutronapi/fw/firewalls/{id}
Request Parameters
Sample Request
HTTP
PUT /controller/dc/v2/neutronapi/fw/firewalls/ff000000-ff00-0000-abce-000000000001 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"service_name" : "physnet1",
"firewall" : {
"tenant_id" : "00000000-0000-0000-abce-000000000001",
"id" : "ff000000-ff00-0000-abce-000000000001",
"description" : "firewall description",
"name" : "test_fw1",
"status" : "ACTIVE",
"admin_state_up" : "true",
"shared" : "false",
"firewall_policy_id" : "9951b5fd-d187-4ab6-b71f-397dd1932027",
"router_ids" : ["00000000-0000-0000-1234-000000000003"]
}
}
Response Parameters
Response status code 200: Response status code 200: OK.
FirewallDtoWrapper parameters, For details, see Table 1-622.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 200: Response status code 200: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"service_name" : "physnet1",
"firewall" : {
"tenant_id" : "00000000-0000-0000-abce-000000000001",
"id" : "ff000000-ff00-0000-abce-000000000001",
"description" : "firewall description",
"name" : "test_fw1",
"status" : "ACTIVE",
"admin_state_up" : "true",
"shared" : "false",
"firewall_policy_id" : "9951b5fd-d187-4ab6-b71f-397dd1932027",
"router_ids" : ["00000000-0000-0000-1234-000000000003"]
}
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A firewall needs to be deleted by ID.
Functions
Delete a firewall by ID.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 500 times/minute.
Single-interface performance: ≤ 105s.
HTTP Method
DELETE
URI
/controller/dc/v2/neutronapi/fw/firewalls/{id}
Request Parameters
N/A
Sample Request
HTTP
DELETE /controller/dc/v2/neutronapi/fw/firewalls/ff000000-ff00-0000-abce-000000000001 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 204: Response status code 200: OK.
Sample Response
Response status code 204: Response status code 200: OK.
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"service_name" : "physnet1",
"firewall" : {
"tenant_id" : "00000000-0000-0000-abce-000000000001",
"id" : "ff000000-ff00-0000-abce-000000000001",
"description" : "firewall description",
"name" : "test_fw1",
"status" : "ACTIVE",
"admin_state_up" : "true",
"shared" : "false",
"firewall_policy_id" : "9951b5fd-d187-4ab6-b71f-397dd1932027",
"router_ids" : ["00000000-0000-0000-1234-000000000003"]
}
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A firewall policy needs to be created. This operation can be performed only after
firewall rules are created.
Functions
Create a firewall policy.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 500 times/minute.
Single-interface performance: ≤ 105s.
HTTP Method
POST
URI
/controller/dc/v2/neutronapi/fw/firewall_policies
Request Parameters
Sample Request
HTTP
POST /controller/dc/v2/neutronapi/fw/firewall_policies HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"service_name" : "physnet1",
"firewallPolicy" : {
"tenant_id" : "00000000-0000-0000-abce-000000000001",
"id" : "ff000000-0000-0002-abce-000000000001",
"description" : "a firewall rule description",
"name" : "a firewall rule",
"firewall_rules" : ["00000000-0000-0000-abce-000000000002","00000000-0000-0000-
abce-000000000003"],
"shared" : "false",
"audited" : "false"
}
}
Response Parameters
Response status code 201: Response status code 201: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 201: Response status code 201: OK.
HTTP/1.1 201 Created
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"service_name" : "physnet1",
"firewallPolicy" : {
"tenant_id" : "00000000-0000-0000-abce-000000000001",
"id" : "ff000000-0000-0002-abce-000000000001",
"description" : "a firewall rule description",
"name" : "a firewall rule",
"firewall_rules" : ["00000000-0000-0000-abce-000000000002","00000000-0000-0000-
abce-000000000003"],
"shared" : "false",
"audited" : "false"
}
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
All firewall policies need to be queried.
Functions
Query all firewall policies.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/controller/dc/v2/neutronapi/fw/firewall_policies
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v2/neutronapi/fw/firewall_policies?pageIndex=1&pageSize=10 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: Response status code 201: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 200: Response status code 201: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"firewallPolicys" : [
{
"tenant_id" : "00000000-0000-0000-abce-000000000001",
"id" : "ff000000-0000-0002-abce-000000000001",
"description" : "a firewall rule description",
"name" : "a firewall rule",
"firewall_rules" : ["00000000-0000-0000-abce-000000000002","00000000-0000-0000-
abce-000000000003"],
"shared" : "false",
"audited" : "false"
}
],
"service_name" : "physnet"
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A firewall policy needs to be queried by ID.
Functions
Query a firewall policy by ID.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 500 times/minute.
Single-interface performance: ≤ 105s.
HTTP Method
GET
URI
/controller/dc/v2/neutronapi/fw/firewall_policies/{id}
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v2/neutronapi/fw/firewall_policies/ff000000-0000-0002-abce-000000000001 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: Response status code 201: OK.
FirewallPolicyDtoWrapper parameters, For details, see Table 1-633.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 200: Response status code 201: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"service_name" : "physnet1",
"firewallPolicy" : {
"tenant_id" : "00000000-0000-0000-abce-000000000001",
"id" : "ff000000-0000-0002-abce-000000000001",
"description" : "a firewall rule description",
"name" : "a firewall rule",
"firewall_rules" : ["00000000-0000-0000-abce-000000000002","00000000-0000-0000-
abce-000000000003"],
"shared" : "false",
"audited" : "false"
}
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A firewall policy needs to be updated by ID.
Functions
Update a firewall policy by ID.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 500 times/minute.
Single-interface performance: ≤ 105s.
HTTP Method
PUT
URI
/controller/dc/v2/neutronapi/fw/firewall_policies/{id}
Request Parameters
Sample Request
HTTP
PUT /controller/dc/v2/neutronapi/fw/firewall_policies/ff000000-0000-0002-abce-000000000001 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"service_name" : "physnet1",
"firewallPolicy" : {
"tenant_id" : "00000000-0000-0000-abce-000000000001",
"id" : "ff000000-0000-0002-abce-000000000001",
"description" : "a firewall rule description",
"name" : "a firewall rule",
"firewall_rules" : ["00000000-0000-0000-abce-000000000002","00000000-0000-0000-
abce-000000000003"],
"shared" : "false",
"audited" : "false"
}
}
Response Parameters
Response status code 200: Response status code 201: OK.
FirewallPolicyDtoWrapper parameters, For details, see Table 1-633.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 200: Response status code 201: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"service_name" : "physnet1",
"firewallPolicy" : {
"tenant_id" : "00000000-0000-0000-abce-000000000001",
"id" : "ff000000-0000-0002-abce-000000000001",
"description" : "a firewall rule description",
"name" : "a firewall rule",
"firewall_rules" : ["00000000-0000-0000-abce-000000000002","00000000-0000-0000-
abce-000000000003"],
"shared" : "false",
"audited" : "false"
}
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A firewall policy needs to be deleted by ID.
Functions
Delete a firewall policy by ID.
Constraints
User role: northbound operator.
HTTP Method
DELETE
URI
/controller/dc/v2/neutronapi/fw/firewall_policies/{id}
Request Parameters
N/A
Sample Request
HTTP
DELETE /controller/dc/v2/neutronapi/fw/firewall_policies/ff000000-0000-0002-abce-000000000001 HTTP/
1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 204: Response status code 201: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 204: Response status code 201: OK.
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A firewall rule needs to be bound to a firewall policy.
Functions
Bind a Firewall Rule to a Firewall Policy.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 500 times/minute.
Single-interface performance: ≤ 105s.
HTTP Method
PUT
URI
/controller/dc/v2/neutronapi/fw/firewall_policies/{id}/insert_rule
Request Parameters
Sample Request
HTTP
PUT /controller/dc/v2/neutronapi/fw/firewall_policies/ff000000-0000-0002-abce-000000000001/insert_rule
HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"id" : "00000000-0000-1111-2222-000000000001",
"firewall_rule_id" : "00000000-0000-1111-2222-000000000002",
"insert_after" : "00000000-0000-1111-2222-000000000003",
"insert_before" : "00000000-0000-1111-2222-000000000002"
}
Response Parameters
Response status code 200: Response status code 201: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: Response status code 201: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"id" : "00000000-0000-1111-2222-000000000001",
"firewall_rule_id" : "00000000-0000-1111-2222-000000000002",
"insert_after" : "00000000-0000-1111-2222-000000000003",
"insert_before" : "00000000-0000-1111-2222-000000000002"
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A firewall rule needs to be unbound from a firewall policy.
Functions
Unbind a firewall rule from a firewall policy.
Constraints
User role: northbound operator.
HTTP Method
PUT
URI
/controller/dc/v2/neutronapi/fw/firewall_policies/{id}/remove_rule
Request Parameters
Sample Request
HTTP
PUT /controller/dc/v2/neutronapi/fw/firewall_policies/ff000000-0000-0002-abce-000000000001/
remove_rule HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"id" : "00000000-0000-1111-2222-000000000001",
"firewall_rule_id" : "00000000-0000-1111-2222-000000000002",
"insert_after" : "00000000-0000-1111-2222-000000000003",
"insert_before" : "00000000-0000-1111-2222-000000000002"
}
Response Parameters
Response status code 200: Response status code 201: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Sample Response
Response status code 200: Response status code 201: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"id" : "00000000-0000-1111-2222-000000000001",
"firewall_rule_id" : "00000000-0000-1111-2222-000000000002",
"insert_after" : "00000000-0000-1111-2222-000000000003",
"insert_before" : "00000000-0000-1111-2222-000000000002"
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
1.9.5.13 FirewallRule
# Firewall rule operation APIs
Typical Scenarios
A firewall rule needs to be created.
Functions
Create a firewall rule.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 500 times/minute.
Single-interface performance: ≤ 105s.
HTTP Method
POST
URI
/controller/dc/v2/neutronapi/fw/firewall_rules
Request Parameters
Sample Request
HTTP
POST /controller/dc/v2/neutronapi/fw/firewall_rules HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"service_name" : "physnet1",
"firewallRule" : {
"id" : "ffee0000-0000-0000-abce-000000000001",
"name" : "a firewall rule",
"description" : "this is firewall rule description",
"firewall_policy_id" : "9951b5fd-d187-4ab6-b71f-397dd1932027",
"tenant_id" : "00000000-0000-0000-abce-000000000001",
"shared" : "false",
"protocol" : "tcp",
"ip_version" : 4,
"source_ip_address" : "192.168.9.0/24",
"destination_ip_address" : "192.168.10.0/24",
"source_ip_addresses" : "192.168.9.0/24,192.168.20.0/24",
"destination_ip_addresses" : "192.168.10.0/24,192.168.20.0/24",
"source_port" : "43",
"destination_port" : "34",
"source_ports" : "43",
"destination_ports" : "34",
"position" : 56,
"action" : "deny",
"enabled" : "true"
}
}
Response Parameters
Response status code 201: Response status code 200: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
Sample Response
Response status code 201: Response status code 200: OK.
HTTP/1.1 201 Created
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"service_name" : "physnet1",
"firewallRule" : {
"id" : "ffee0000-0000-0000-abce-000000000001",
"name" : "a firewall rule",
"description" : "this is firewall rule description",
"firewall_policy_id" : "9951b5fd-d187-4ab6-b71f-397dd1932027",
"tenant_id" : "00000000-0000-0000-abce-000000000001",
"shared" : "false",
"protocol" : "tcp",
"ip_version" : 4,
"source_ip_address" : "192.168.9.0/24",
"destination_ip_address" : "192.168.10.0/24",
"source_ip_addresses" : "192.168.9.0/24,192.168.20.0/24",
"destination_ip_addresses" : "192.168.10.0/24,192.168.20.0/24",
"source_port" : "43",
"destination_port" : "34",
"source_ports" : "43",
"destination_ports" : "34",
"position" : 56,
"action" : "deny",
"enabled" : "true"
}
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
All firewall rules need to be queried.
Functions
Query all firewall rules.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 500 times/minute.
Single-interface performance: ≤ 105s.
HTTP Method
GET
URI
/controller/dc/v2/neutronapi/fw/firewall_rules
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v2/neutronapi/fw/firewall_rules?pageIndex=1&pageSize=10 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: Response status code 200: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 200: Response status code 200: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"firewallRule" : [
{
"id" : "ffee0000-0000-0000-abce-000000000001",
"name" : "a firewall rule",
"description" : "this is firewall rule description",
"firewall_policy_id" : "9951b5fd-d187-4ab6-b71f-397dd1932027",
"tenant_id" : "00000000-0000-0000-abce-000000000001",
"shared" : "false",
"protocol" : "tcp",
"ip_version" : 4,
"source_ip_address" : "192.168.9.0/24",
"destination_ip_address" : "192.168.10.0/24",
"source_ip_addresses" : "192.168.9.0/24,192.168.20.0/24",
"destination_ip_addresses" : "192.168.10.0/24,192.168.20.0/24",
"source_port" : "43",
"destination_port" : "34",
"source_ports" : "43",
"destination_ports" : "34",
"position" : 56,
"action" : "deny",
"enabled" : "true"
}
],
"service_name" : "physnet1"
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A firewall rule needs to be queried by ID.
Functions
Query a firewall rule by ID.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/controller/dc/v2/neutronapi/fw/firewall_rules/{id}
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v2/neutronapi/fw/firewall_rules/ffee0000-0000-0000-abce-000000000001 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: Response status code 200: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Response status code 500: Response status code 500: Internal server error.
Sample Response
Response status code 200: Response status code 200: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"service_name" : "physnet1",
"firewallRule" : {
"id" : "ffee0000-0000-0000-abce-000000000001",
"name" : "a firewall rule",
"description" : "this is firewall rule description",
"firewall_policy_id" : "9951b5fd-d187-4ab6-b71f-397dd1932027",
"tenant_id" : "00000000-0000-0000-abce-000000000001",
"shared" : "false",
"protocol" : "tcp",
"ip_version" : 4,
"source_ip_address" : "192.168.9.0/24",
"destination_ip_address" : "192.168.10.0/24",
"source_ip_addresses" : "192.168.9.0/24,192.168.20.0/24",
"destination_ip_addresses" : "192.168.10.0/24,192.168.20.0/24",
"source_port" : "43",
"destination_port" : "34",
"source_ports" : "43",
"destination_ports" : "34",
"position" : 56,
"action" : "deny",
"enabled" : "true"
}
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A firewall rule needs to be updated by ID.
Functions
Update a firewall rule by ID.
Constraints
User role: northbound operator.
HTTP Method
PUT
URI
/controller/dc/v2/neutronapi/fw/firewall_rules/{id}
Request Parameters
Sample Request
HTTP
PUT /controller/dc/v2/neutronapi/fw/firewall_rules/ffee0000-0000-0000-abce-000000000001 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"service_name" : "physnet1",
"firewallRule" : {
"id" : "ffee0000-0000-0000-abce-000000000001",
"name" : "a firewall rule",
"description" : "this is firewall rule description",
"firewall_policy_id" : "9951b5fd-d187-4ab6-b71f-397dd1932027",
"tenant_id" : "00000000-0000-0000-abce-000000000001",
"shared" : "false",
"protocol" : "tcp",
"ip_version" : 4,
"source_ip_address" : "192.168.9.0/24",
"destination_ip_address" : "192.168.10.0/24",
"source_ip_addresses" : "192.168.9.0/24,192.168.20.0/24",
"destination_ip_addresses" : "192.168.10.0/24,192.168.20.0/24",
"source_port" : "43",
"destination_port" : "34",
"source_ports" : "43",
"destination_ports" : "34",
"position" : 56,
"action" : "deny",
"enabled" : "true"
}
}
Response Parameters
Response status code 200: Response status code 201: Created.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Response status code 500: Response status code 500: Internal server error.
Sample Response
Response status code 200: Response status code 201: Created.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"service_name" : "physnet1",
"firewallRule" : {
"id" : "ffee0000-0000-0000-abce-000000000001",
"name" : "a firewall rule",
"description" : "this is firewall rule description",
"firewall_policy_id" : "9951b5fd-d187-4ab6-b71f-397dd1932027",
"tenant_id" : "00000000-0000-0000-abce-000000000001",
"shared" : "false",
"protocol" : "tcp",
"ip_version" : 4,
"source_ip_address" : "192.168.9.0/24",
"destination_ip_address" : "192.168.10.0/24",
"source_ip_addresses" : "192.168.9.0/24,192.168.20.0/24",
"destination_ip_addresses" : "192.168.10.0/24,192.168.20.0/24",
"source_port" : "43",
"destination_port" : "34",
"source_ports" : "43",
"destination_ports" : "34",
"position" : 56,
"action" : "deny",
"enabled" : "true"
}
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A firewall rule needs to be deleted by ID.
Functions
Delete a firewall rule by ID.
Constraints
User role: northbound operator.
HTTP Method
DELETE
URI
/controller/dc/v2/neutronapi/fw/firewall_rules/{id}
Request Parameters
N/A
Sample Request
HTTP
DELETE /controller/dc/v2/neutronapi/fw/firewall_rules/ffee0000-0000-0000-abce-000000000001 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 204: Response status code 200: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Response status code 500: Response status code 500: Internal server error.
Sample Response
Response status code 204: Response status code 200: OK.
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A VPN service needs to be created.
Functions
Create a VPN service.
Constraints
User role: northbound operator.
HTTP Method
POST
URI
/controller/dc/v2/neutronapi/vpn/vpnservices
Request Parameters
Sample Request
HTTP
POST /controller/dc/v2/neutronapi/vpn/vpnservices HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"service_name" : "physnet1",
"vpnservice" : {
"id" : "90000000-0000-0000-0000-000000000001",
"tenant_id" : "00000000-0000-0000-abce-000000000001",
"name" : "vpn_001",
"description" : "vpn description",
"local_address" : "192.168.200.2",
"subnet_ids" : ["20000000-0000-0000-0000-000000000021"],
"router_id" : "30000000-0000-0000-0000-000000000001",
"status" : "true",
"admin_state_up" : "true"
}
}
Response Parameters
Response status code 201: Response status code 200: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 201: Response status code 200: OK.
HTTP/1.1 201 Created
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"service_name" : "physnet1",
"vpnservice" : {
"id" : "90000000-0000-0000-0000-000000000001",
"tenant_id" : "00000000-0000-0000-abce-000000000001",
"name" : "vpn_001",
"description" : "vpn description",
"local_address" : "192.168.200.2",
"subnet_ids" : ["20000000-0000-0000-0000-000000000021"],
"router_id" : "30000000-0000-0000-0000-000000000001",
"status" : "true",
"admin_state_up" : "true"
}
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
All VPN services need to be queried.
Functions
Query all VPN services.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/controller/dc/v2/neutronapi/vpn/vpnservices
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v2/neutronapi/vpn/vpnservices?pageIndex=1&pageSize=10 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: Response status code 200: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 200: Response status code 200: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"vpnservice" : [
{
"id" : "90000000-0000-0000-0000-000000000001",
"tenant_id" : "00000000-0000-0000-abce-000000000001",
"name" : "vpn_001",
"description" : "vpn description",
"local_address" : "192.168.200.2",
"subnet_ids" : ["20000000-0000-0000-0000-000000000021"],
"router_id" : "30000000-0000-0000-0000-000000000001",
"status" : "true",
"admin_state_up" : "true"
}
],
"service_name" : "physnet1",
"number" : 1
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A VPN service needs to be queried by ID.
Functions
Query a VPN service by ID.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 500 times/minute.
Single-interface performance: ≤ 105s.
HTTP Method
GET
URI
/controller/dc/v2/neutronapi/vpn/vpnservices/{id}
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v2/neutronapi/vpn/vpnservices/90000000-0000-0000-0000-000000000001 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: Response status code 200: OK.
VPNServiceDtoWrapper parameters, For details, see Table 1-661.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 200: Response status code 200: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"service_name" : "physnet1",
"vpnservice" : {
"id" : "90000000-0000-0000-0000-000000000001",
"tenant_id" : "00000000-0000-0000-abce-000000000001",
"name" : "vpn_001",
"description" : "vpn description",
"local_address" : "192.168.200.2",
"subnet_ids" : ["20000000-0000-0000-0000-000000000021"],
"router_id" : "30000000-0000-0000-0000-000000000001",
"status" : "true",
"admin_state_up" : "true"
}
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A VPN service needs to be updated by ID.
Functions
Update a VPN service by ID.
Constraints
User role: northbound operator.
HTTP Method
PUT
URI
/controller/dc/v2/neutronapi/vpn/vpnservices/{id}
Request Parameters
Sample Request
HTTP
PUT /controller/dc/v2/neutronapi/vpn/vpnservices/90000000-0000-0000-0000-000000000001 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"service_name" : "physnet1",
"vpnservice" : {
"id" : "90000000-0000-0000-0000-000000000001",
"tenant_id" : "00000000-0000-0000-abce-000000000001",
"name" : "vpn_001",
"description" : "vpn description",
"local_address" : "192.168.200.2",
"subnet_ids" : ["20000000-0000-0000-0000-000000000021"],
"router_id" : "30000000-0000-0000-0000-000000000001",
"status" : "true",
"admin_state_up" : "true"
}
}
Response Parameters
Response status code 200: Response status code 200: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Sample Response
Response status code 200: Response status code 200: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"service_name" : "physnet1",
"vpnservice" : {
"id" : "90000000-0000-0000-0000-000000000001",
"tenant_id" : "00000000-0000-0000-abce-000000000001",
"name" : "vpn_001",
"description" : "vpn description",
"local_address" : "192.168.200.2",
"subnet_ids" : ["20000000-0000-0000-0000-000000000021"],
"router_id" : "30000000-0000-0000-0000-000000000001",
"status" : "true",
"admin_state_up" : "true"
}
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A VPN service needs to be deleted by ID.
Functions
Delete a VPN service by ID.
Constraints
User role: northbound operator.
HTTP Method
DELETE
URI
/controller/dc/v2/neutronapi/vpn/vpnservices/{id}
Request Parameters
N/A
Sample Request
HTTP
DELETE /controller/dc/v2/neutronapi/vpn/vpnservices/90000000-0000-0000-0000-000000000001 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 204: Response status code 200: OK.
VPNServiceDtoWrapper parameters, For details, see Table 1-661.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 204: Response status code 200: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
1.9.5.15 IkePolicy
# IKE policy operation APIs
Typical Scenarios
An IKE policy needs to be created.
Functions
Create an IKE policy.
Constraints
User role: northbound operator.
HTTP Method
POST
URI
/controller/dc/v2/neutronapi/vpn/ikepolicies
Request Parameters
Sample Request
HTTP
POST /controller/dc/v2/neutronapi/vpn/ikepolicies HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"service_name" : "physnet1",
"ikepolicy" : {
"id" : "00000000-0000-0000-1234-000000000001",
"tenant_id" : "00000000-0000-0000-abce-000000000001",
"name" : "IkePolicy",
"description" : "description info",
"shared" : "true",
"auth_algorithm" : "sha2",
"encryption_algorithm" : "aes-128",
"phase_negotiation_mode" : "main",
"pfs" : "group1",
"ike_version" : "v1",
"lifetime" : {
"units" : "second",
"value" : 60
}
}
}
Response Parameters
Response status code 201: Response status code 200: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 201: Response status code 200: OK.
HTTP/1.1 201 Created
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"service_name" : "physnet1",
"ikepolicy" : {
"id" : "00000000-0000-0000-1234-000000000001",
"tenant_id" : "00000000-0000-0000-abce-000000000001",
"name" : "IkePolicy",
"description" : "description info",
"shared" : "true",
"auth_algorithm" : "sha2",
"encryption_algorithm" : "aes-128",
"phase_negotiation_mode" : "main",
"pfs" : "group1",
"ike_version" : "v1",
"lifetime" : {
"units" : "second",
"value" : 60
}
}
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
All IKE polices need to be queried.
Functions
Query all IKE policies.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/controller/dc/v2/neutronapi/vpn/ikepolicies
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v2/neutronapi/vpn/ikepolicies?pageIndex=1&pageSize=10 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: Response status code 200: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
Sample Response
Response status code 200: Response status code 200: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"ikepolicy" : [
{
"id" : "00000000-0000-0000-1234-000000000001",
"tenant_id" : "00000000-0000-0000-abce-000000000001",
"name" : "IkePolicy",
"description" : "description info",
"shared" : "true",
"auth_algorithm" : "sha2",
"encryption_algorithm" : "aes-128",
"phase_negotiation_mode" : "main",
"pfs" : "group1",
"ike_version" : "v1",
"lifetime" : {
"units" : "second",
"value" : 60
}
}
],
"service_name" : "physnet1"
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
An IKE policy needs to be queried by ID.
Functions
Query an IKE policy by ID.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/controller/dc/v2/neutronapi/vpn/ikepolicies/{id}
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v2/neutronapi/vpn/ikepolicies/00000000-0000-0000-1234-000000000111 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: Response status code 200: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Response status code 500: Response status code 500: Internal server error.
Sample Response
Response status code 200: Response status code 200: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"service_name" : "physnet1",
"ikepolicy" : {
"id" : "00000000-0000-0000-1234-000000000001",
"tenant_id" : "00000000-0000-0000-abce-000000000001",
"name" : "IkePolicy",
"description" : "description info",
"shared" : "true",
"auth_algorithm" : "sha2",
"encryption_algorithm" : "aes-128",
"phase_negotiation_mode" : "main",
"pfs" : "group1",
"ike_version" : "v1",
"lifetime" : {
"units" : "second",
"value" : 60
}
}
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
An IKE policy needs to be updated by ID.
Functions
Update an IKE policy.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 500 times/minute.
HTTP Method
PUT
URI
/controller/dc/v2/neutronapi/vpn/ikepolicies/{id}
Request Parameters
Sample Request
HTTP
PUT /controller/dc/v2/neutronapi/vpn/ikepolicies/00000000-0000-0000-1234-000000000111 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"service_name" : "physnet1",
"ikepolicy" : {
"id" : "00000000-0000-0000-1234-000000000001",
"tenant_id" : "00000000-0000-0000-abce-000000000001",
"name" : "IkePolicy",
"description" : "description info",
"shared" : "true",
"auth_algorithm" : "sha2",
"encryption_algorithm" : "aes-128",
"phase_negotiation_mode" : "main",
"pfs" : "group1",
"ike_version" : "v1",
"lifetime" : {
"units" : "second",
"value" : 60
}
}
}
Response Parameters
Response status code 200: Response status code 200: OK.
IkePolicyDtoWrapper parameters, For details, see Table 1-673.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 200: Response status code 200: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"service_name" : "physnet1",
"ikepolicy" : {
"id" : "00000000-0000-0000-1234-000000000001",
"tenant_id" : "00000000-0000-0000-abce-000000000001",
"name" : "IkePolicy",
"description" : "description info",
"shared" : "true",
"auth_algorithm" : "sha2",
"encryption_algorithm" : "aes-128",
"phase_negotiation_mode" : "main",
"pfs" : "group1",
"ike_version" : "v1",
"lifetime" : {
"units" : "second",
"value" : 60
}
}
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
An IKE policy needs to be deleted by ID.
Functions
Delete an IKE policy by ID.
Constraints
User role: northbound operator.
HTTP Method
DELETE
URI
/controller/dc/v2/neutronapi/vpn/ikepolicies/{id}
Request Parameters
N/A
Sample Request
HTTP
DELETE /controller/dc/v2/neutronapi/vpn/ikepolicies/00000000-0000-0000-1234-000000000111 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 204: Response status code 200: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Response status code 500: Response status code 500: Internal server error.
Sample Response
Response status code 204: Response status code 200: OK.
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"service_name" : "physnet1",
"ikepolicy" : {
"id" : "00000000-0000-0000-1234-000000000001",
"tenant_id" : "00000000-0000-0000-abce-000000000001",
"name" : "IkePolicy",
"description" : "description info",
"shared" : "true",
"auth_algorithm" : "sha2",
"encryption_algorithm" : "aes-128",
"phase_negotiation_mode" : "main",
"pfs" : "group1",
"ike_version" : "v1",
"lifetime" : {
"units" : "second",
"value" : 60
}
}
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
1.9.5.16 IPsecPolicy
# IPsec policy operation APIs
Typical Scenarios
An IPsec policy needs to be created by ID.
Functions
Create an IPSec policy by ID.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 500 times/minute.
Single-interface performance: ≤ 105s.
HTTP Method
POST
URI
/controller/dc/v2/neutronapi/vpn/ipsecpolicies
Request Parameters
Sample Request
HTTP
POST /controller/dc/v2/neutronapi/vpn/ipsecpolicies HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"service_name" : "physnet1",
"ipsecpolicy" : {
"id" : "00000000-0000-0000-1234-000000000001",
"tenant_id" : "00000000-0000-0000-abce-000000000001",
"name" : "IPSec Policy1",
"description" : "description",
"shared" : "true",
"transform_protocol" : "esp",
"encapsulation_mode" : "transport",
"auth_algorithm" : "sha2-256",
"encryption_algorithm" : "aes-128",
"pfs" : "group1",
"lifetime" : {
"units" : "seconds",
"value" : 60
}
}
}
Response Parameters
Response status code 201: Response status code 200: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Response status code 500: Response status code 500: Internal server error.
Sample Response
Response status code 201: Response status code 200: OK.
HTTP/1.1 201 Created
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"service_name" : "physnet1",
"ipsecpolicy" : {
"id" : "00000000-0000-0000-1234-000000000001",
"tenant_id" : "00000000-0000-0000-abce-000000000001",
"name" : "IPSec Policy1",
"description" : "description",
"shared" : "true",
"transform_protocol" : "esp",
"encapsulation_mode" : "transport",
"auth_algorithm" : "sha2-256",
"encryption_algorithm" : "aes-128",
"pfs" : "group1",
"lifetime" : {
"units" : "seconds",
"value" : 60
}
}
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
All IPsec policies need to be queried.
Functions
Query all IPSec policies.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/controller/dc/v2/neutronapi/vpn/ipsecpolicies
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v2/neutronapi/vpn/ipsecpolicies?pageIndex=1&pageSize=10 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: Response status code 201: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 200: Response status code 201: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"ipsecpolicy" : [
{
"id" : "00000000-0000-0000-1234-000000000001",
"tenant_id" : "00000000-0000-0000-abce-000000000001",
"name" : "IPSec Policy1",
"description" : "description",
"shared" : "true",
"transform_protocol" : "esp",
"encapsulation_mode" : "transport",
"auth_algorithm" : "sha2-256",
"encryption_algorithm" : "aes-128",
"pfs" : "group1",
"lifetime" : {
"units" : "seconds",
"value" : 60
}
}
],
"service_name" : "physnet1"
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
An IPsec policy needs to be queried by ID.
Functions
Query an IPSec policy by ID.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 500 times/minute.
Single-interface performance: ≤ 105s.
HTTP Method
GET
URI
/controller/dc/v2/neutronapi/vpn/ipsecpolicies/{id}
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v2/neutronapi/vpn/ipsecpolicies/00000000-0000-0000-1234-000000000001 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: Response status code 204: OK.
IpsecPolicyDtoWrapper parameters, For details, see Table 1-686.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 200: Response status code 204: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"service_name" : "physnet1",
"ipsecpolicy" : {
"id" : "00000000-0000-0000-1234-000000000001",
"tenant_id" : "00000000-0000-0000-abce-000000000001",
"name" : "IPSec Policy1",
"description" : "description",
"shared" : "true",
"transform_protocol" : "esp",
"encapsulation_mode" : "transport",
"auth_algorithm" : "sha2-256",
"encryption_algorithm" : "aes-128",
"pfs" : "group1",
"lifetime" : {
"units" : "seconds",
"value" : 60
}
}
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
An IPsec policy needs to be updated by name.
Functions
Update an IPsec policy by name.
Constraints
User role: northbound operator.
HTTP Method
PUT
URI
/controller/dc/v2/neutronapi/vpn/ipsecpolicies/{id}
Request Parameters
Sample Request
HTTP
PUT /controller/dc/v2/neutronapi/vpn/ipsecpolicies/00000000-0000-0000-1234-000000000001 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"service_name" : "physnet1",
"ipsecpolicy" : {
"id" : "00000000-0000-0000-1234-000000000001",
"tenant_id" : "00000000-0000-0000-abce-000000000001",
"name" : "IPSec Policy1",
"description" : "description",
"shared" : "true",
"transform_protocol" : "esp",
"encapsulation_mode" : "transport",
"auth_algorithm" : "sha2-256",
"encryption_algorithm" : "aes-128",
"pfs" : "group1",
"lifetime" : {
"units" : "seconds",
"value" : 60
}
}
}
Response Parameters
Response status code 200: Response status code 200: OK.
IpsecPolicyDtoWrapper parameters, For details, see Table 1-686.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 200: Response status code 200: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"service_name" : "physnet1",
"ipsecpolicy" : {
"id" : "00000000-0000-0000-1234-000000000001",
"tenant_id" : "00000000-0000-0000-abce-000000000001",
"name" : "IPSec Policy1",
"description" : "description",
"shared" : "true",
"transform_protocol" : "esp",
"encapsulation_mode" : "transport",
"auth_algorithm" : "sha2-256",
"encryption_algorithm" : "aes-128",
"pfs" : "group1",
"lifetime" : {
"units" : "seconds",
"value" : 60
}
}
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
An IPsec policy needs to be deleted by ID.
Functions
Delete an IPSec policy by ID.
Constraints
User role: northbound operator.
HTTP Method
DELETE
URI
/controller/dc/v2/neutronapi/vpn/ipsecpolicies/{id}
Request Parameters
N/A
Sample Request
HTTP
DELETE /controller/dc/v2/neutronapi/vpn/ipsecpolicies/00000000-0000-0000-1234-000000000001 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 204: Response status code 201: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 204: Response status code 201: OK.
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
An IPsec site connection needs to be created by ID after the IKE policies, IPsec
policies, and VPN services are created.
Functions
Create an IPSec site connection.
Constraints
User role: northbound operator.
HTTP Method
POST
URI
/controller/dc/v2/neutronapi/vpn/ipsec-site-connections
Request Parameters
Sample Request
HTTP
Response Parameters
Response status code 201: Response status code 200: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 201: Response status code 200: OK.
HTTP/1.1 201 Created
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"service_name" : "physnet1",
"ipsec_site_connection" : {
"id" : "00000000-0000-0000-1234-000000000001",
"tenant_id" : "00000000-0000-0000-abce-000000000001",
"name" : "IpSecConnection1",
"description" : "This is an IpsecConnection.",
"peer_address" : "192.168.1.1",
"peer_id" : "00000000-0000-0000-1111-000000000001",
"peer_cidrs" : ["192.168.2.0/24"],
"route_mode" : "static",
"mtu" : 100,
"auth_mode" : "psk",
"psk" : "psk123",
"initiator" : "bi-directional",
"admin_state_up" : "true",
"status" : "ACTIVE",
"ikepolicy_id" : "00000000-0000-0000-1234-000000000010",
"ipsecpolicy_id" : "00000000-0000-0000-1234-000000000011",
"vpnservice_id" : "00000000-0000-0000-1234-000000000012",
"dpd" : {
"action" : "hold",
"interval" : 60,
"timeout" : 70
}
}
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
All IPsec connections need to be queried.
Functions
Query all IPSec site connections.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/controller/dc/v2/neutronapi/vpn/ipsec-site-connections
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v2/neutronapi/vpn/ipsec-site-connections?pageIndex=1&pageSize=10 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"ipsec_site_connection" : [
{
"id" : "00000000-0000-0000-1234-000000000001",
"tenant_id" : "00000000-0000-0000-abce-000000000001",
"name" : "IpSecConnection1",
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
An IPsec site connection needs to be queried by ID.
Functions
Query an IPSec site connection.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 500 times/minute.
Single-interface performance: ≤ 105s.
HTTP Method
GET
URI
/controller/dc/v2/neutronapi/vpn/ipsec-site-connections/{id}
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v2/neutronapi/vpn/ipsec-site-connections/00000000-0000-0000-1234-000000000001
HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: Response status code 200: OK.
IpsecConnectionDtoWrapper parameters, For details, see Table 1-699.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 200: Response status code 200: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"service_name" : "physnet1",
"ipsec_site_connection" : {
"id" : "00000000-0000-0000-1234-000000000001",
"tenant_id" : "00000000-0000-0000-abce-000000000001",
"name" : "IpSecConnection1",
"description" : "This is an IpsecConnection.",
"peer_address" : "192.168.1.1",
"peer_id" : "00000000-0000-0000-1111-000000000001",
"peer_cidrs" : ["192.168.2.0/24"],
"route_mode" : "static",
"mtu" : 100,
"auth_mode" : "psk",
"psk" : "psk123",
"initiator" : "bi-directional",
"admin_state_up" : "true",
"status" : "ACTIVE",
"ikepolicy_id" : "00000000-0000-0000-1234-000000000010",
"ipsecpolicy_id" : "00000000-0000-0000-1234-000000000011",
"vpnservice_id" : "00000000-0000-0000-1234-000000000012",
"dpd" : {
"action" : "hold",
"interval" : 60,
"timeout" : 70
}
}
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
An IPsec site connection needs to be updated by ID.
Functions
Update an IPSec site connection by ID.
Constraints
User role: northbound operator.
HTTP Method
PUT
URI
/controller/dc/v2/neutronapi/vpn/ipsec-site-connections/{id}
Request Parameters
Sample Request
HTTP
PUT /controller/dc/v2/neutronapi/vpn/ipsec-site-connections/00000000-0000-0000-1234-000000000001
HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"service_name" : "physnet1",
"ipsec_site_connection" : {
"id" : "00000000-0000-0000-1234-000000000001",
"tenant_id" : "00000000-0000-0000-abce-000000000001",
"name" : "IpSecConnection1",
"description" : "This is an IpsecConnection.",
"peer_address" : "192.168.1.1",
"peer_id" : "00000000-0000-0000-1111-000000000001",
"peer_cidrs" : ["192.168.2.0/24"],
"route_mode" : "static",
"mtu" : 100,
"auth_mode" : "psk",
"psk" : "psk123",
"initiator" : "bi-directional",
"admin_state_up" : "true",
"status" : "ACTIVE",
"ikepolicy_id" : "00000000-0000-0000-1234-000000000010",
"ipsecpolicy_id" : "00000000-0000-0000-1234-000000000011",
"vpnservice_id" : "00000000-0000-0000-1234-000000000012",
"dpd" : {
"action" : "hold",
"interval" : 60,
"timeout" : 70
}
}
}
Response Parameters
Response status code 200: Response status code 200: OK.
IpsecConnectionDtoWrapper parameters, For details, see Table 1-699.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 200: Response status code 200: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"service_name" : "physnet1",
"ipsec_site_connection" : {
"id" : "00000000-0000-0000-1234-000000000001",
"tenant_id" : "00000000-0000-0000-abce-000000000001",
"name" : "IpSecConnection1",
"description" : "This is an IpsecConnection.",
"peer_address" : "192.168.1.1",
"peer_id" : "00000000-0000-0000-1111-000000000001",
"peer_cidrs" : ["192.168.2.0/24"],
"route_mode" : "static",
"mtu" : 100,
"auth_mode" : "psk",
"psk" : "psk123",
"initiator" : "bi-directional",
"admin_state_up" : "true",
"status" : "ACTIVE",
"ikepolicy_id" : "00000000-0000-0000-1234-000000000010",
"ipsecpolicy_id" : "00000000-0000-0000-1234-000000000011",
"vpnservice_id" : "00000000-0000-0000-1234-000000000012",
"dpd" : {
"action" : "hold",
"interval" : 60,
"timeout" : 70
}
}
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
An IPsec site connection needs to be deleted by ID.
Functions
Delete an IPSec site connection by ID.
Constraints
User role: northbound operator.
HTTP Method
DELETE
URI
/controller/dc/v2/neutronapi/vpn/ipsec-site-connections/{id}
Request Parameters
N/A
Sample Request
HTTP
DELETE /controller/dc/v2/neutronapi/vpn/ipsec-site-connections/00000000-0000-0000-1234-000000000001
HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 204: Response status code 201: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 204: Response status code 201: OK.
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
1.9.5.18 L2BR
# L2BR operation APIs
Typical Scenarios
L2BRs need to be created in batches.
Functions
Create L2BRs in batches.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 500 times/minute.
Single-interface performance: ≤ 105s.
HTTP Method
POST
URI
/controller/dc/v2/neutronapi/l2brs/action/batch-create
Request Parameters
Sample Request
HTTP
POST /controller/dc/v2/neutronapi/l2brs/action/batch-create HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"service_name" : "physnet1",
"l2br" : [
{
"id" : "00000000-0000-0000-1234-000000000001",
"name" : "l2br1",
"tenant_id" : "00000000-0000-0000-abce-000000000001",
"device_info" : {
"interface_name" : "10GE1/0/21",
"device_name" : "CE6850_37.12",
"device_ip" : "10.6.54.60",
"device_mac" : "00:50:56:84:7D:91",
"host" : "192.168.62.1"
},
"service_info" : {
"network_id" : "00000000-0000-0000-1234-000000000010",
"vni" : 15000,
"vlan_id" : 16
}
}
]
}
Response Parameters
Response status code 201: Response status code 200: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
L2brBatchResponse parameters, For details, see Table 1-713.
Response status code 500: Response status code 500: Internal server error.
L2brBatchResponse parameters, For details, see Table 1-713.
Sample Response
Response status code 201: Response status code 200: OK.
HTTP/1.1 201 Created
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"service_name" : "physnet1",
"success" : [
{
"id" : "00000000-0000-0000-1234-000000000001",
"name" : "l2br1",
"tenant_id" : "00000000-0000-0000-abce-000000000001",
"device_info" : {
"interface_name" : "10GE1/0/21",
"device_name" : "CE6850_37.12",
"device_ip" : "10.6.54.60",
"device_mac" : "00:50:56:84:7D:91",
"host" : "192.168.62.1"
},
"service_info" : {
"network_id" : "00000000-0000-0000-1234-000000000010",
"vni" : 15000,
"vlan_id" : 16
}
}
],
"fail" : [
{
"id" : "00000000-0000-0000-1234-000000000004",
"error-info" : {
"error-code" : "0x00320026",
"error-msg" : "Invalid or unavaliable format"
}
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"service_name" : "physnet1",
"success" : [
{
"id" : "00000000-0000-0000-1234-000000000001",
"name" : "l2br1",
"tenant_id" : "00000000-0000-0000-abce-000000000001",
"device_info" : {
"interface_name" : "10GE1/0/21",
"device_name" : "CE6850_37.12",
"device_ip" : "10.6.54.60",
"device_mac" : "00:50:56:84:7D:91",
"host" : "192.168.62.1"
},
"service_info" : {
"network_id" : "00000000-0000-0000-1234-000000000010",
"vni" : 15000,
"vlan_id" : 16
}
}
],
"fail" : [
{
"id" : "00000000-0000-0000-1234-000000000004",
"error-info" : {
"error-code" : "0x00320026",
"error-msg" : "Invalid or unavaliable format"
}
}
]
}
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"service_name" : "physnet1",
"success" : [
{
"id" : "00000000-0000-0000-1234-000000000001",
"name" : "l2br1",
"tenant_id" : "00000000-0000-0000-abce-000000000001",
"device_info" : {
"interface_name" : "10GE1/0/21",
"device_name" : "CE6850_37.12",
"device_ip" : "10.6.54.60",
"device_mac" : "00:50:56:84:7D:91",
"host" : "192.168.62.1"
},
"service_info" : {
"network_id" : "00000000-0000-0000-1234-000000000010",
"vni" : 15000,
"vlan_id" : 16
}
}
],
"fail" : [
{
"id" : "00000000-0000-0000-1234-000000000004",
"error-info" : {
"error-code" : "0x00320026",
"error-msg" : "Invalid or unavaliable format"
}
}
]
}
Typical Scenarios
L2BRs need to be updated in batches.
Functions
Update L2BRs in batches.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 500 times/minute.
Single-interface performance: ≤ 105s.
HTTP Method
POST
URI
/controller/dc/v2/neutronapi/l2brs/action/batch-update
Request Parameters
Sample Request
HTTP
POST /controller/dc/v2/neutronapi/l2brs/action/batch-update HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"service_name" : "physnet1",
"l2br" : [
{
"id" : "00000000-0000-0000-1234-000000000001",
"name" : "l2br1",
"tenant_id" : "00000000-0000-0000-abce-000000000001",
"device_info" : {
"interface_name" : "10GE1/0/21",
"device_name" : "CE6850_37.12",
"device_ip" : "10.6.54.60",
"device_mac" : "00:50:56:84:7D:91",
"host" : "192.168.62.1"
},
"service_info" : {
"network_id" : "00000000-0000-0000-1234-000000000010",
"vni" : 15000,
"vlan_id" : 16
}
}
]
}
Response Parameters
Response status code 200: Response status code 200: OK.
L2brBatchResponse parameters, For details, see Table 1-713.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
L2brBatchResponse parameters, For details, see Table 1-713.
Response status code 500: Response status code 500: Internal server error.
L2brBatchResponse parameters, For details, see Table 1-713.
Sample Response
Response status code 200: Response status code 200: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"service_name" : "physnet1",
"success" : [
{
"id" : "00000000-0000-0000-1234-000000000001",
"name" : "l2br1",
"tenant_id" : "00000000-0000-0000-abce-000000000001",
"device_info" : {
"interface_name" : "10GE1/0/21",
"device_name" : "CE6850_37.12",
"device_ip" : "10.6.54.60",
"device_mac" : "00:50:56:84:7D:91",
"host" : "192.168.62.1"
},
"service_info" : {
"network_id" : "00000000-0000-0000-1234-000000000010",
"vni" : 15000,
"vlan_id" : 16
}
}
],
"fail" : [
{
"id" : "00000000-0000-0000-1234-000000000004",
"error-info" : {
"error-code" : "0x00320026",
"error-msg" : "Invalid or unavaliable format"
}
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"service_name" : "physnet1",
"success" : [
{
"id" : "00000000-0000-0000-1234-000000000001",
"name" : "l2br1",
"tenant_id" : "00000000-0000-0000-abce-000000000001",
"device_info" : {
"interface_name" : "10GE1/0/21",
"device_name" : "CE6850_37.12",
"device_ip" : "10.6.54.60",
"device_mac" : "00:50:56:84:7D:91",
"host" : "192.168.62.1"
},
"service_info" : {
"network_id" : "00000000-0000-0000-1234-000000000010",
"vni" : 15000,
"vlan_id" : 16
}
}
],
"fail" : [
{
"id" : "00000000-0000-0000-1234-000000000004",
"error-info" : {
"error-code" : "0x00320026",
"error-msg" : "Invalid or unavaliable format"
}
}
]
}
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"service_name" : "physnet1",
"success" : [
{
"id" : "00000000-0000-0000-1234-000000000001",
"name" : "l2br1",
"tenant_id" : "00000000-0000-0000-abce-000000000001",
"device_info" : {
"interface_name" : "10GE1/0/21",
"device_name" : "CE6850_37.12",
"device_ip" : "10.6.54.60",
"device_mac" : "00:50:56:84:7D:91",
"host" : "192.168.62.1"
},
"service_info" : {
"network_id" : "00000000-0000-0000-1234-000000000010",
"vni" : 15000,
"vlan_id" : 16
}
}
],
"fail" : [
{
"id" : "00000000-0000-0000-1234-000000000004",
"error-info" : {
"error-code" : "0x00320026",
"error-msg" : "Invalid or unavaliable format"
}
}
]
}
Typical Scenarios
Delete L2BRs in Batches.
Functions
Delete L2BRs in batches.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 500 times/minute.
Single-interface performance: ≤ 105s.
HTTP Method
POST
URI
/controller/dc/v2/neutronapi/l2brs/action/batch-delete
Request Parameters
Sample Request
HTTP
POST /controller/dc/v2/neutronapi/l2brs/action/batch-delete HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"l2br" : [
{
"id" : "00000000-0000-0000-1234-000000000002"
}
]
}
Response Parameters
Response status code 204: Response status code 200: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Response status code 500: Response status code 500: Internal server error.
L2brBatchFailResponse parameters, For details, see Table 1-723.
Sample Response
Response status code 204: Response status code 200: OK.
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"fail" : [
{
"id" : "00000000-0000-0000-1234-000000000004",
"error-info" : {
"error-code" : "0x00320026",
"error-msg" : "Invalid or unavaliable format"
}
}
]
}
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"fail" : [
{
"id" : "00000000-0000-0000-1234-000000000004",
"error-info" : {
"error-code" : "0x00320026",
"error-msg" : "Invalid or unavaliable format"
}
}
]
}
Typical Scenarios
An L2BR needs to be created.
Functions
Create an L2BR.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 500 times/minute.
Single-interface performance: ≤ 105s.
HTTP Method
POST
URI
/controller/dc/v2/neutronapi/l2brs
Request Parameters
Sample Request
HTTP
POST /controller/dc/v2/neutronapi/l2brs HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"service_name" : "physnet1",
"l2br" : {
"id" : "00000000-0000-0000-1234-000000000001",
"name" : "l2br1",
"tenant_id" : "00000000-0000-0000-abce-000000000001",
"device_info" : {
"interface_name" : "10GE1/0/21",
"device_name" : "CE6850_37.12",
"device_ip" : "10.6.54.60",
"device_mac" : "00:50:56:84:7D:91",
"host" : "192.168.62.1"
},
"service_info" : {
"network_id" : "00000000-0000-0000-1234-000000000010",
"vni" : 15000,
"vlan_id" : 16
}
}
}
Response Parameters
Response status code 201: Response status code 200: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Response status code 500: Response status code 500: Internal server error.
Sample Response
Response status code 201: Response status code 200: OK.
HTTP/1.1 201 Created
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"service_name" : "physnet1",
"l2br" : {
"id" : "00000000-0000-0000-1234-000000000001",
"name" : "l2br1",
"tenant_id" : "00000000-0000-0000-abce-000000000001",
"device_info" : {
"interface_name" : "10GE1/0/21",
"device_name" : "CE6850_37.12",
"device_ip" : "10.6.54.60",
"device_mac" : "00:50:56:84:7D:91",
"host" : "192.168.62.1"
},
"service_info" : {
"network_id" : "00000000-0000-0000-1234-000000000010",
"vni" : 15000,
"vlan_id" : 16
}
}
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
All L2BRs need to be queried.
Functions
Query all L2BRs.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/controller/dc/v2/neutronapi/l2brs
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v2/neutronapi/l2brs?pageIndex=1&pageSize=10 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: Response status code 200: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
L2brBatchFailResponse parameters, For details, see Table 1-723.
Sample Response
Response status code 200: Response status code 200: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"l2brs" : [
{
"id" : "00000000-0000-0000-1234-000000000001",
"name" : "l2br1",
"tenant_id" : "00000000-0000-0000-abce-000000000001",
"device_info" : {
"interface_name" : "10GE1/0/21",
"device_name" : "CE6850_37.12",
"device_ip" : "10.6.54.60",
"device_mac" : "00:50:56:84:7D:91",
"host" : "192.168.62.1"
},
"service_info" : {
"network_id" : "00000000-0000-0000-1234-000000000010",
"vni" : 15000,
"vlan_id" : 16
}
}
],
"number" : 1,
"service_name" : "physnet1"
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"fail" : [
{
"id" : "00000000-0000-0000-1234-000000000004",
"error-info" : {
"error-code" : "0x00320026",
"error-msg" : "Invalid or unavaliable format"
}
}
]
}
Typical Scenarios
An L2BR needs to be queried by ID.
Functions
Query an L2BR by ID.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/controller/dc/v2/neutronapi/l2brs/{id}
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v2/neutronapi/l2brs/00000000-0000-0000-1234-000000000001 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: Response status code 200: OK.
L2brDtoWrapper parameters, For details, see Table 1-726.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 200: Response status code 200: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"service_name" : "physnet1",
"l2br" : {
"id" : "00000000-0000-0000-1234-000000000001",
"name" : "l2br1",
"tenant_id" : "00000000-0000-0000-abce-000000000001",
"device_info" : {
"interface_name" : "10GE1/0/21",
"device_name" : "CE6850_37.12",
"device_ip" : "10.6.54.60",
"device_mac" : "00:50:56:84:7D:91",
"host" : "192.168.62.1"
},
"service_info" : {
"network_id" : "00000000-0000-0000-1234-000000000010",
"vni" : 15000,
"vlan_id" : 16
}
}
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
An L2BR policy needs to be updated by name.
Functions
Update an L2BR by name.
Constraints
User role: northbound operator.
HTTP Method
PUT
URI
/controller/dc/v2/neutronapi/l2brs/{id}
Request Parameters
Sample Request
HTTP
PUT /controller/dc/v2/neutronapi/l2brs/00000000-0000-0000-1234-000000000001 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"service_name" : "physnet1",
"l2br" : {
"id" : "00000000-0000-0000-1234-000000000001",
"name" : "l2br1",
"tenant_id" : "00000000-0000-0000-abce-000000000001",
"device_info" : {
"interface_name" : "10GE1/0/21",
"device_name" : "CE6850_37.12",
"device_ip" : "10.6.54.60",
"device_mac" : "00:50:56:84:7D:91",
"host" : "192.168.62.1"
},
"service_info" : {
"network_id" : "00000000-0000-0000-1234-000000000010",
"vni" : 15000,
"vlan_id" : 16
}
}
}
Response Parameters
Response status code 200: Response status code 200: OK.
L2brDtoWrapper parameters, For details, see Table 1-726.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Response status code 500: Response status code 500: Internal server error.
Sample Response
Response status code 200: Response status code 200: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"service_name" : "physnet1",
"l2br" : {
"id" : "00000000-0000-0000-1234-000000000001",
"name" : "l2br1",
"tenant_id" : "00000000-0000-0000-abce-000000000001",
"device_info" : {
"interface_name" : "10GE1/0/21",
"device_name" : "CE6850_37.12",
"device_ip" : "10.6.54.60",
"device_mac" : "00:50:56:84:7D:91",
"host" : "192.168.62.1"
},
"service_info" : {
"network_id" : "00000000-0000-0000-1234-000000000010",
"vni" : 15000,
"vlan_id" : 16
}
}
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
An L2BR needs to be deleted by ID.
Functions
Delete an L2BR by ID.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 500 times/minute.
Single-interface performance: ≤ 105s.
HTTP Method
DELETE
URI
/controller/dc/v2/neutronapi/l2brs/{id}
Request Parameters
N/A
Sample Request
HTTP
DELETE /controller/dc/v2/neutronapi/l2brs/00000000-0000-0000-1234-000000000001 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 204: Response status code 200: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
Sample Response
Response status code 204: Response status code 200: OK.
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
1.9.5.19 VpcConnection
# VPC connection operation APIs
Typical Scenarios
A VPC connection needs to be created.
Functions
Create a VPC connection.
Constraints
User role: northbound operator.
HTTP Method
POST
URI
/controller/dc/v3/servicenetwork/vpc-connects
Request Parameters
Sample Request
HTTP
POST /controller/dc/v3/servicenetwork/vpc-connects HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"vpc-connect" : [
{
"id" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"name" : "vpc001",
"description" : "This is vpc",
"localLogicRouterId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"localLogicRouterName" : "vpc002",
"localLogicVasId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"localLogicVasName" : "vas002",
"localCrossLink" : [
{
"routerIp" : "10.1.1.1",
"vasIp" : "10.1.1.1",
"vlan" : "100",
"routerIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032",
"vasIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032",
"fabricId" : "DBB702C3-7719-4FE6-4488-3A9C9E265322"
}
],
"localInternalLink" : [
{
"routerIp" : "10.1.1.1",
"vasIp" : "10.1.1.1",
"vlan" : "100",
"routerIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032",
"vasIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032"
}
],
"localCidrs" : [
"10.1.1.1/24"
],
"peerLogicRouterId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"peerLogicRouterName" : "router002",
"peerLogicVasId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"peerLogicVasName" : "vas003",
"peerCrossLink" : [
{
"routerIp" : "10.1.1.1",
"vasIp" : "10.1.1.1",
"vlan" : "100",
"routerIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032",
"vasIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032",
"fabricId" : "DBB702C3-7719-4FE6-4488-3A9C9E265322"
}
],
"peerInternalLink" : [
{
"routerIp" : "10.1.1.1",
"vasIp" : "10.1.1.1",
"vlan" : "100",
"routerIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032",
"vasIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032"
}
],
"peerCidrs" : [
"10.1.1.1/24"
],
"tenantId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E26530",
"tenantName" : "tenant1",
"peerTenantId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"peerTenantName" : "tenant1",
"additional" : {
"producer" : "CloudPlatform1",
"createAt" : "2016-10-05T20:11:16.000+00:00",
"updateAt" : "2016-10-05T20:11:16.000+00:00"
},
"localFirewallEnable" : false,
"peerFirewallEnable" : true,
"isLocalAll" : false,
"isPeerAll" : true,
"priority" : 60,
"localPreference" : 50,
"dciGatewayIds" : [
"a915f8c1-d06f-46cd-a968-38328e0ab2d3"
],
"connectRt" : "1:3,65537:3,0.0:3,192.168.122.15:1.",
"srcGwDeviceIds" : [
"a915f8c1-d06f-46cd-a968-38328e0ab2d3"
],
"dstGwDeviceIds" : [
"a915f8c1-d06f-46cd-a968-38328e0ab2d3"
],
"localRouterType" : "LogicRouter/ExternalTransitRouter/ExternalGateway",
"peerRouterType" : "LogicRouter/ExternalTransitRouter/ExternalGateway",
"isAssociatedVpcConnPolicy" : true
}
],
"totalNum" : 100
}
Response Parameters
Response status code 204: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Sample Response
Response status code 204: successfully
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Use this API to query the VPC communication instance list.
Functions
This API is used to query the VPC communication instance list based on the
producer or the tenant ID.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/controller/dc/v3/servicenetwork/vpc-connects
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v3/servicenetwork/vpc-connects?producer=CloudPlatform1&tenantId=a915f8c1-
d06f-46cd-a968-38328e0ab2d3&pageIndex=1&pageSize=10 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"vpc-connect" : [
{
"id" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"name" : "vpc001",
"description" : "This is vpc",
"localLogicRouterId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"localLogicRouterName" : "vpc002",
"localLogicVasId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"localLogicVasName" : "vas002",
"localCrossLink" : [
{
"routerIp" : "10.1.1.1",
"vasIp" : "10.1.1.1",
"vlan" : "100",
"routerIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032",
"vasIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032",
"fabricId" : "DBB702C3-7719-4FE6-4488-3A9C9E265322"
}
],
"localInternalLink" : [
{
"routerIp" : "10.1.1.1",
"vasIp" : "10.1.1.1",
"vlan" : "100",
"routerIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032",
"vasIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032"
}
],
"localCidrs" : [
"10.1.1.1/24"
],
"peerLogicRouterId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"peerLogicRouterName" : "router002",
"peerLogicVasId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"peerLogicVasName" : "vas003",
"peerCrossLink" : [
{
"routerIp" : "10.1.1.1",
"vasIp" : "10.1.1.1",
"vlan" : "100",
"routerIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032",
"vasIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032",
"fabricId" : "DBB702C3-7719-4FE6-4488-3A9C9E265322"
}
],
"peerInternalLink" : [
{
"routerIp" : "10.1.1.1",
"vasIp" : "10.1.1.1",
"vlan" : "100",
"routerIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032",
"vasIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032"
}
],
"peerCidrs" : [
"10.1.1.1/24"
],
"tenantId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E26530",
"tenantName" : "tenant1",
"peerTenantId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"peerTenantName" : "tenant1",
"additional" : {
"producer" : "CloudPlatform1",
"createAt" : "2016-10-05T20:11:16.000+00:00",
"updateAt" : "2016-10-05T20:11:16.000+00:00"
},
"localFirewallEnable" : false,
"peerFirewallEnable" : true,
"isLocalAll" : false,
"isPeerAll" : true,
"priority" : 60,
"localPreference" : 50,
"dciGatewayIds" : [
"a915f8c1-d06f-46cd-a968-38328e0ab2d3"
],
"connectRt" : "1:3,65537:3,0.0:3,192.168.122.15:1.",
"srcGwDeviceIds" : [
"a915f8c1-d06f-46cd-a968-38328e0ab2d3"
],
"dstGwDeviceIds" : [
"a915f8c1-d06f-46cd-a968-38328e0ab2d3"
],
"localRouterType" : "LogicRouter/ExternalTransitRouter/ExternalGateway",
"peerRouterType" : "LogicRouter/ExternalTransitRouter/ExternalGateway",
"isAssociatedVpcConnPolicy" : true
}
],
"totalNum" : 100
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Use this API to query a VPC communication instance.
Functions
Query a VPC connection by ID.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/controller/dc/v3/servicenetwork/vpc-connects/vpc-connect/{id}
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v3/servicenetwork/vpc-connects/vpc-connect/a915f8c1-d06f-46cd-a968-38328e0ab2d3
HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
dtId: "G20211101152812691_b34d98a-57f9-49b2-910c-010bcfcc97bcd"
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"vpc-connect" : [
{
"id" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"name" : "vpc001",
"description" : "This is vpc",
"localLogicRouterId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"localLogicRouterName" : "vpc002",
"localLogicVasId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"localLogicVasName" : "vas002",
"localCrossLink" : [
{
"routerIp" : "10.1.1.1",
"vasIp" : "10.1.1.1",
"vlan" : "100",
"routerIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032",
"vasIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032",
"fabricId" : "DBB702C3-7719-4FE6-4488-3A9C9E265322"
}
],
"localInternalLink" : [
{
"routerIp" : "10.1.1.1",
"vasIp" : "10.1.1.1",
"vlan" : "100",
"routerIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032",
"vasIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032"
}
],
"localCidrs" : [
"10.1.1.1/24"
],
"peerLogicRouterId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"peerLogicRouterName" : "router002",
"peerLogicVasId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"peerLogicVasName" : "vas003",
"peerCrossLink" : [
{
"routerIp" : "10.1.1.1",
"vasIp" : "10.1.1.1",
"vlan" : "100",
"routerIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032",
"vasIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032",
"fabricId" : "DBB702C3-7719-4FE6-4488-3A9C9E265322"
}
],
"peerInternalLink" : [
{
"routerIp" : "10.1.1.1",
"vasIp" : "10.1.1.1",
"vlan" : "100",
"routerIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032",
"vasIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032"
}
],
"peerCidrs" : [
"10.1.1.1/24"
],
"tenantId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E26530",
"tenantName" : "tenant1",
"peerTenantId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"peerTenantName" : "tenant1",
"additional" : {
"producer" : "CloudPlatform1",
"createAt" : "2016-10-05T20:11:16.000+00:00",
"updateAt" : "2016-10-05T20:11:16.000+00:00"
},
"localFirewallEnable" : false,
"peerFirewallEnable" : true,
"isLocalAll" : false,
"isPeerAll" : true,
"priority" : 60,
"localPreference" : 50,
"dciGatewayIds" : [
"a915f8c1-d06f-46cd-a968-38328e0ab2d3"
],
"connectRt" : "1:3,65537:3,0.0:3,192.168.122.15:1.",
"srcGwDeviceIds" : [
"a915f8c1-d06f-46cd-a968-38328e0ab2d3"
],
"dstGwDeviceIds" : [
"a915f8c1-d06f-46cd-a968-38328e0ab2d3"
],
"localRouterType" : "LogicRouter/ExternalTransitRouter/ExternalGateway",
"peerRouterType" : "LogicRouter/ExternalTransitRouter/ExternalGateway",
"isAssociatedVpcConnPolicy" : true
}
],
"totalNum" : 100
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A VPC connection needs to be updated by ID.
Functions
Update a VPC connection by ID.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 200 times/minute.
Single-interface performance: ≤ 3600s.
HTTP Method
PUT
URI
/controller/dc/v3/servicenetwork/vpc-connects/vpc-connect/{id}
Request Parameters
Sample Request
HTTP
PUT /controller/dc/v3/servicenetwork/vpc-connects/vpc-connect/a915f8c1-d06f-46cd-a968-38328e0ab2d3
HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"vpc-connect" : [
{
"id" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"name" : "vpc001",
"description" : "This is vpc",
"localLogicRouterId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"localLogicRouterName" : "vpc002",
"localLogicVasId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"localLogicVasName" : "vas002",
"localCrossLink" : [
{
"routerIp" : "10.1.1.1",
"vasIp" : "10.1.1.1",
"vlan" : "100",
"routerIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032",
"vasIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032",
"fabricId" : "DBB702C3-7719-4FE6-4488-3A9C9E265322"
}
],
"localInternalLink" : [
{
"routerIp" : "10.1.1.1",
"vasIp" : "10.1.1.1",
"vlan" : "100",
"routerIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032",
"vasIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032"
}
],
"localCidrs" : [
"10.1.1.1/24"
],
"peerLogicRouterId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"peerLogicRouterName" : "router002",
"peerLogicVasId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"peerLogicVasName" : "vas003",
"peerCrossLink" : [
{
"routerIp" : "10.1.1.1",
"vasIp" : "10.1.1.1",
"vlan" : "100",
"routerIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032",
"vasIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032",
"fabricId" : "DBB702C3-7719-4FE6-4488-3A9C9E265322"
}
],
"peerInternalLink" : [
{
"routerIp" : "10.1.1.1",
"vasIp" : "10.1.1.1",
"vlan" : "100",
"routerIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032",
"vasIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032"
}
],
"peerCidrs" : [
"10.1.1.1/24"
],
"tenantId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E26530",
"tenantName" : "tenant1",
"peerTenantId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"peerTenantName" : "tenant1",
"additional" : {
"producer" : "CloudPlatform1",
"createAt" : "2016-10-05T20:11:16.000+00:00",
"updateAt" : "2016-10-05T20:11:16.000+00:00"
},
"localFirewallEnable" : false,
"peerFirewallEnable" : true,
"isLocalAll" : false,
"isPeerAll" : true,
"priority" : 60,
"localPreference" : 50,
"dciGatewayIds" : [
"a915f8c1-d06f-46cd-a968-38328e0ab2d3"
],
"connectRt" : "1:3,65537:3,0.0:3,192.168.122.15:1.",
"srcGwDeviceIds" : [
"a915f8c1-d06f-46cd-a968-38328e0ab2d3"
],
"dstGwDeviceIds" : [
"a915f8c1-d06f-46cd-a968-38328e0ab2d3"
],
"localRouterType" : "LogicRouter/ExternalTransitRouter/ExternalGateway",
"peerRouterType" : "LogicRouter/ExternalTransitRouter/ExternalGateway",
"isAssociatedVpcConnPolicy" : true
}
],
"totalNum" : 100
}
Response Parameters
Response status code 200: successfully
VpcConnectDtoWrapper parameters, For details, see Table 1-740.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"vpc-connect" : [
{
"id" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"name" : "vpc001",
"description" : "This is vpc",
"localLogicRouterId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"localLogicRouterName" : "vpc002",
"localLogicVasId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"localLogicVasName" : "vas002",
"localCrossLink" : [
{
"routerIp" : "10.1.1.1",
"vasIp" : "10.1.1.1",
"vlan" : "100",
"routerIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032",
"vasIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032",
"fabricId" : "DBB702C3-7719-4FE6-4488-3A9C9E265322"
}
],
"localInternalLink" : [
{
"routerIp" : "10.1.1.1",
"vasIp" : "10.1.1.1",
"vlan" : "100",
"routerIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032",
"vasIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032"
}
],
"localCidrs" : [
"10.1.1.1/24"
],
"peerLogicRouterId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"peerLogicRouterName" : "router002",
"peerLogicVasId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"peerLogicVasName" : "vas003",
"peerCrossLink" : [
{
"routerIp" : "10.1.1.1",
"vasIp" : "10.1.1.1",
"vlan" : "100",
"routerIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032",
"vasIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032",
"fabricId" : "DBB702C3-7719-4FE6-4488-3A9C9E265322"
}
],
"peerInternalLink" : [
{
"routerIp" : "10.1.1.1",
"vasIp" : "10.1.1.1",
"vlan" : "100",
"routerIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032",
"vasIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032"
}
],
"peerCidrs" : [
"10.1.1.1/24"
],
"tenantId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E26530",
"tenantName" : "tenant1",
"peerTenantId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"peerTenantName" : "tenant1",
"additional" : {
"producer" : "CloudPlatform1",
"createAt" : "2016-10-05T20:11:16.000+00:00",
"updateAt" : "2016-10-05T20:11:16.000+00:00"
},
"localFirewallEnable" : false,
"peerFirewallEnable" : true,
"isLocalAll" : false,
"isPeerAll" : true,
"priority" : 60,
"localPreference" : 50,
"dciGatewayIds" : [
"a915f8c1-d06f-46cd-a968-38328e0ab2d3"
],
"connectRt" : "1:3,65537:3,0.0:3,192.168.122.15:1.",
"srcGwDeviceIds" : [
"a915f8c1-d06f-46cd-a968-38328e0ab2d3"
],
"dstGwDeviceIds" : [
"a915f8c1-d06f-46cd-a968-38328e0ab2d3"
],
"localRouterType" : "LogicRouter/ExternalTransitRouter/ExternalGateway",
"peerRouterType" : "LogicRouter/ExternalTransitRouter/ExternalGateway",
"isAssociatedVpcConnPolicy" : true
}
],
"totalNum" : 100
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A VPC connection needs to be deleted by ID.
Functions
Delete a VPC connection by ID.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 200 times/minute.
Single-interface performance: ≤ 3600s.
HTTP Method
DELETE
URI
/controller/dc/v3/servicenetwork/vpc-connects/vpc-connect/{id}
Request Parameters
N/A
Sample Request
HTTP
DELETE /controller/dc/v3/servicenetwork/vpc-connects/vpc-connect/a915f8c1-d06f-46cd-
a968-38328e0ab2d3?producer=Agile-Controller-MDC HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 204: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 204: successfully
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Create a Layer 2 DC/POD Interconnection Instance.
Functions
Create a Layer 2 DC/POD interconnection instance.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 500 times/minute.
Single-interface performance: ≤ 105s.
HTTP Method
POST
URI
/controller/dc/v2/neutronapi/v2.0/l2-dci-connects
Request Parameters
Sample Request
HTTP
POST /controller/dc/v2/neutronapi/v2.0/l2-dci-connects HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"service_name" : "physnet1",
"l2-dci-connect" : {
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "nameofDciL2",
"description" : "L2 Dci object description",
"network_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265310",
"vni" : 100,
"export_rts" : ["1:1"],
"import_rts" : ["1:1"]
}
}
Response Parameters
Response status code 201: Response status code 201: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Response status code 500: Response status code 500: Internal server error.
Sample Response
Response status code 201: Response status code 201: OK.
HTTP/1.1 201 Created
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"service_name" : "physnet1",
"l2-dci-connect" : {
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "nameofDciL2",
"description" : "L2 Dci object description",
"network_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265310",
"vni" : 100,
"export_rts" : ["1:1"],
"import_rts" : ["1:1"]
}
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
All Layer 2 DC/POD interconnection instances need to be queried.
Functions
Query all Layer 2 DC/POD interconnection instances.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 500 times/minute.
Single-interface performance: ≤ 105s.
HTTP Method
GET
URI
/controller/dc/v2/neutronapi/v2.0/l2-dci-connects
Request Parameters
N/A
Sample Request
HTTP
Response Parameters
Response status code 200: Response status code 201: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Response status code 500: Response status code 500: Internal server error.
Sample Response
Response status code 200: Response status code 201: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"l2-dci-connects" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "nameofDciL2",
"description" : "L2 Dci object description",
"network_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265310",
"vni" : 100,
"export_rts" : ["1:1"],
"import_rts" : ["1:1"]
}
],
"service_name" : "physnet1"
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A Layer 2 DC/POD interconnection instance needs to be queried by ID.
Functions
Query a Layer 2 DC/POD interconnection instance.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 500 times/minute.
Single-interface performance: ≤ 105s.
HTTP Method
GET
URI
/controller/dc/v2/neutronapi/v2.0/l2-dci-connects/{id}
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v2/neutronapi/v2.0/l2-dci-connects/DBB702C3-7719-4FE6-A5AD-3A9C9E260001 HTTP/
1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: Response status code 201: OK.
DciL2ConnectDtoWrapper parameters, For details, see Table 1-754.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 200: Response status code 201: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"service_name" : "physnet1",
"l2-dci-connect" : {
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "nameofDciL2",
"description" : "L2 Dci object description",
"network_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265310",
"vni" : 100,
"export_rts" : ["1:1"],
"import_rts" : ["1:1"]
}
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A Layer 2 DC/POD interconnection instance needs to be updated.
Functions
Update a Layer 2 DC/POD interconnection instance.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 500 times/minute.
Single-interface performance: ≤ 105s.
HTTP Method
PUT
URI
/controller/dc/v2/neutronapi/v2.0/l2-dci-connects/{id}
Request Parameters
Sample Request
HTTP
PUT /controller/dc/v2/neutronapi/v2.0/l2-dci-connects/DBB702C3-7719-4FE6-A5AD-3A9C9E260001 HTTP/
1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"service_name" : "physnet1",
"l2-dci-connect" : {
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "nameofDciL2",
"description" : "L2 Dci object description",
"network_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265310",
"vni" : 100,
"export_rts" : ["1:1"],
"import_rts" : ["1:1"]
}
}
Response Parameters
Response status code 200: Response status code 201: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Response status code 500: Response status code 500: Internal server error.
Sample Response
Response status code 200: Response status code 201: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"service_name" : "physnet1",
"l2-dci-connect" : {
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "nameofDciL2",
"description" : "L2 Dci object description",
"network_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265310",
"vni" : 100,
"export_rts" : ["1:1"],
"import_rts" : ["1:1"]
}
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A Layer 2 DC/POD interconnection instance needs to be deleted.
Functions
Delete a Layer 2 DC/POD interconnection instance.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 500 times/minute.
Single-interface performance: ≤ 105s.
HTTP Method
DELETE
URI
/controller/dc/v2/neutronapi/v2.0/l2-dci-connects/{id}
Request Parameters
N/A
Sample Request
HTTP
DELETE /controller/dc/v2/neutronapi/v2.0/l2-dci-connects/DBB702C3-7719-4FE6-A5AD-3A9C9E260001
HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 204: Response status code 201: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 204: Response status code 201: OK.
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
1.9.5.21 DCI L3
Typical Scenarios
A Layer 3 DC/POD interconnection instance needs to be created.
Functions
Create a Layer 3 DC/POD interconnection instance.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 500 times/minute.
Single-interface performance: ≤ 105s.
HTTP Method
POST
URI
/controller/dc/v2/neutronapi/v2.0/l3-dci-connects
Request Parameters
Sample Request
HTTP
POST /controller/dc/v2/neutronapi/v2.0/l3-dci-connects HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"service_name" : "physnet1",
"l3-dci-connect" : {
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "nameofDciL3",
"description" : "L3 Dci object description",
"router_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265310",
"fw_enable" : false,
"logic_fw_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265311",
"local_subnets" : ["DBB702C3-7719-4FE6-A5AD-3A9C9E255300"],
"peer_cidrs" : ["10.1.0.0/16"],
"import_rts" : ["1:1"],
"export_rts" : ["1:1"],
"data_mode" : 1,
"l3_vni" : 1
}
}
Response Parameters
Response status code 201: Response status code 200: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 201: Response status code 200: OK.
HTTP/1.1 201 Created
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"service_name" : "physnet1",
"l3-dci-connect" : {
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "nameofDciL3",
"description" : "L3 Dci object description",
"router_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265310",
"fw_enable" : false,
"logic_fw_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265311",
"local_subnets" : ["DBB702C3-7719-4FE6-A5AD-3A9C9E255300"],
"peer_cidrs" : ["10.1.0.0/16"],
"import_rts" : ["1:1"],
"export_rts" : ["1:1"],
"data_mode" : 1,
"l3_vni" : 1
}
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
L3 DC/POD Interconnection
Typical Scenarios
All Layer 3 DC/POD interconnection instances need to be queried.
Functions
Query all Layer 3 DC/POD interconnection instances.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 500 times/minute.
Single-interface performance: ≤ 105s.
HTTP Method
GET
URI
/controller/dc/v2/neutronapi/v2.0/l3-dci-connects
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v2/neutronapi/v2.0/l3-dci-connects?pageIndex=1&pageSize=10 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: Response status code 200: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Response status code 500: Response status code 500: Internal server error.
Sample Response
Response status code 200: Response status code 200: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"l3-dci-connects" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "nameofDciL3",
"description" : "L3 Dci object description",
"router_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265310",
"fw_enable" : false,
"logic_fw_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265311",
"local_subnets" : ["DBB702C3-7719-4FE6-A5AD-3A9C9E255300"],
"peer_cidrs" : ["10.1.0.0/16"],
"import_rts" : ["1:1"],
"export_rts" : ["1:1"],
"data_mode" : 1,
"l3_vni" : 1
}
],
"service_name" : "physnet1"
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A Layer 3 DC/POD interconnection instance needs to be queried by ID.
Functions
Query a Layer 3 DC/POD interconnection instance by ID.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 500 times/minute.
HTTP Method
GET
URI
/controller/dc/v2/neutronapi/v2.0/l3-dci-connects/{id}
Request Parameters
N/A
Sample Request
HTTP
Response Parameters
Response status code 200: Response status code 200: OK.
DciL3ConnectDtoWrapper parameters, For details, see Table 1-765.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 200: Response status code 200: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"service_name" : "physnet1",
"l3-dci-connect" : {
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "nameofDciL3",
"description" : "L3 Dci object description",
"router_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265310",
"fw_enable" : false,
"logic_fw_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265311",
"local_subnets" : ["DBB702C3-7719-4FE6-A5AD-3A9C9E255300"],
"peer_cidrs" : ["10.1.0.0/16"],
"import_rts" : ["1:1"],
"export_rts" : ["1:1"],
"data_mode" : 1,
"l3_vni" : 1
}
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A Layer 3 DC/POD interconnection instance needs to be updated by ID.
Functions
Update a Layer 3 DC/POD interconnection instance by ID.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 500 times/minute.
Single-interface performance: ≤ 105s.
HTTP Method
PUT
URI
/controller/dc/v2/neutronapi/v2.0/l3-dci-connects/{id}
Request Parameters
Sample Request
HTTP
PUT /controller/dc/v2/neutronapi/v2.0/l3-dci-connects/DBB702C3-7719-4FE6-A5AD-3A9C9E260001 HTTP/
1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"service_name" : "physnet1",
"l3-dci-connect" : {
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "nameofDciL3",
"description" : "L3 Dci object description",
"router_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265310",
"fw_enable" : false,
"logic_fw_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265311",
"local_subnets" : ["DBB702C3-7719-4FE6-A5AD-3A9C9E255300"],
"peer_cidrs" : ["10.1.0.0/16"],
"import_rts" : ["1:1"],
"export_rts" : ["1:1"],
"data_mode" : 1,
"l3_vni" : 1
}
}
Response Parameters
Response status code 200: Response status code 200: OK.
DciL3ConnectDtoWrapper parameters, For details, see Table 1-765.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 200: Response status code 200: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"service_name" : "physnet1",
"l3-dci-connect" : {
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "nameofDciL3",
"description" : "L3 Dci object description",
"router_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265310",
"fw_enable" : false,
"logic_fw_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265311",
"local_subnets" : ["DBB702C3-7719-4FE6-A5AD-3A9C9E255300"],
"peer_cidrs" : ["10.1.0.0/16"],
"import_rts" : ["1:1"],
"export_rts" : ["1:1"],
"data_mode" : 1,
"l3_vni" : 1
}
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A Layer 3 DC/POD interconnection instance needs to be deleted by ID.
Functions
Delete a Layer 3 DC/POD interconnection instance by ID.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 500 times/minute.
Single-interface performance: ≤ 105s.
HTTP Method
DELETE
URI
/controller/dc/v2/neutronapi/v2.0/l3-dci-connects/{id}
Request Parameters
N/A
Sample Request
HTTP
DELETE /controller/dc/v2/neutronapi/v2.0/l3-dci-connects/DBB702C3-7719-4FE6-A5AD-3A9C9E260001
HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 204: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Sample Response
Response status code 204: successfully
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
An L3DCI subnet needs to be created.
Functions
Create an L3DCI subnet.
Constraints
User role: northbound operator.
HTTP Method
POST
URI
/controller/dc/v2/neutronapi/v2.0/l3-add-dci-subnet
Request Parameters
Sample Request
HTTP
POST /controller/dc/v2/neutronapi/v2.0/l3-add-dci-subnet HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"service_name" : "physnet1",
"l3-add-dci-subnet" : {
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265308",
"router_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"subnet_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265310"
}
}
Response Parameters
Response status code 201: Response status code 204: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Response status code 500: Response status code 500: Internal server error.
Sample Response
Response status code 201: Response status code 204: OK.
HTTP/1.1 201 Created
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"service_name" : "physnet1",
"l3-add-dci-subnet" : {
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265308",
"router_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"subnet_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265310"
}
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
An L3DCI subnet needs to be deleted.
Functions
Delete an L3DCI subnet.
Constraints
User role: northbound operator.
HTTP Method
POST
URI
/controller/dc/v2/neutronapi/v2.0/l3-del-dci-subnet
Request Parameters
Sample Request
HTTP
POST /controller/dc/v2/neutronapi/v2.0/l3-del-dci-subnet HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"service_name" : "physnet1",
"l3-del-dci-subnet" : {
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265308",
"router_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"subnet_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265310"
}
}
Response Parameters
Response status code 201: Response status code 201: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 201: Response status code 201: OK.
HTTP/1.1 201 Created
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"service_name" : "physnet1",
"l3-del-dci-subnet" : {
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265308",
"router_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"subnet_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265310"
}
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
1.9.5.22.1 Detect Heartbeats Between the Cloud Platform and the Controller
Typical Scenarios
The availability of the northbound connection between the cloud platform and
controller needs to be checked.
Functions
Maintain the heartbeat of the northbound connection between the cloud platform
and controller.
Constraints
User role: northbound operator.
HTTP Method
PUT
URI
/controller/dc/v2/neutronapi/cloud/northheartbeat
Request Parameters
Sample Request
HTTP
PUT /controller/dc/v2/neutronapi/cloud/northheartbeat HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"cloud_name" : "physnet1",
"agent_ip" : "192.168.3.2"
}
Response Parameters
Response status code 201: Response status code 201: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 201: Response status code 201: OK.
HTTP/1.1 201 Created
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"cloud_name" : "physnet1",
"agent_ip" : "192.168.3.2"
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Routing whitelists need to be queried.
Functions
Query routing whitelist information by router ID.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 500 times/minute.
Single-interface performance: ≤ 105s.
HTTP Method
GET
URI
/controller/dc/v2/neutronapi/logicnetwork/external_whitelists/{id}
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v2/neutronapi/logicnetwork/external_whitelists/DBB702C3-7719-4FE6-
A5AD-3A9C9E265309 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"external_whitelist" : {
"id" : "00000000-0000-0000-1234-000000000002",
"router_id" : "00000000-0000-0000-1234-000000000002"
}
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
1.9.6 K8S
Typical Scenarios
All container platforms need to be queried.
Functions
Query the container platform list.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 500 times/minute.
Single-interface performance: ≤ 105s.
HTTP Method
GET
URI
/controller/dc/v2/containerplatform/k8s
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v2/containerplatform/k8s?pageIndex=1&pageSize=10&name=kk HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: Response status code 200: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Response status code 500: Response status code 500: Internal server error.
Sample Response
Response status code 200: Response status code 200: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"k8s" : [
{
"id" : "00000000-0000-0000-0000-000000000001",
"name" : "k8s_dev",
"tenant-name" : "tenant",
"agent" : [
{
"ipv4-address" : "192.168.10.2"
}
],
"multi-tenant" : false,
"reuse-datas" : [
{
"tenant-id" : "00000000-0000-0000-0000-000000000004",
"router-id" : "00000000-0000-0000-0000-000000000004"
}
],
"related-fabric" : [
"6eaa2006-0eb2-4395-90d9-e351310a8e2d"
],
"monitor-port" : 11111,
"net-mode" : "L2",
"related-datas" : [
{
"tenant-id" : "00000000-0000-0000-0000-000000000004",
"router-id" : "00000000-0000-0000-0000-000000000004"
}
],
"device-loopback-ipv4-ipaddress" : "192.168.13.2",
"tenant-list" : [
{
"id" : "00000000-0000-0000-0000-000000000001",
"name" : "tenant_name",
"l23_tenant_id" : "00000000-0000-0000-0000-000000000001"
}
]
}
],
"total-num" : 10
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A container platform needs to be queried by ID.
Functions
Query a container platform based on the ID.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 500 times/minute.
Single-interface performance: ≤ 105s.
HTTP Method
GET
URI
/controller/dc/v2/containerplatform/k8s/{id}
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v2/containerplatform/k8s/00000000-0000-0000-0000-000000000001 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: Response status code 200: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 200: Response status code 200: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"k8s" : {
"id" : "00000000-0000-0000-0000-000000000001",
"name" : "k8s_dev",
"tenant-name" : "tenant",
"agent" : [
{
"ipv4-address" : "192.168.10.2"
}
],
"multi-tenant" : false,
"reuse-datas" : [
{
"tenant-id" : "00000000-0000-0000-0000-000000000004",
"router-id" : "00000000-0000-0000-0000-000000000004"
}
],
"related-fabric" : [
"6eaa2006-0eb2-4395-90d9-e351310a8e2d"
],
"monitor-port" : 11111,
"net-mode" : "L2",
"related-datas" : [
{
"tenant-id" : "00000000-0000-0000-0000-000000000004",
"router-id" : "00000000-0000-0000-0000-000000000004"
}
],
"device-loopback-ipv4-ipaddress" : "192.168.13.2",
"tenant-list" : [
{
"id" : "00000000-0000-0000-0000-000000000001",
"name" : "tenant_name",
"l23_tenant_id" : "00000000-0000-0000-0000-000000000001"
}
]
}
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A container platform needs to be updated by ID.
Functions
Update a container platform based on the ID.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 500 times/minute.
Single-interface performance: ≤ 105s.
HTTP Method
PUT
URI
/controller/dc/v2/containerplatform/k8s/{id}
Request Parameters
Sample Request
HTTP
PUT /controller/dc/v2/containerplatform/k8s/00000000-0000-0000-0000-000000000001 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"k8s" : {
"id" : "00000000-0000-0000-0000-000000000001",
"name" : "k8s_dev",
"tenant-name" : "tenant",
"agent" : [
{
"ipv4-address" : "192.168.10.2"
}
],
"multi-tenant" : false,
"reuse-datas" : [
{
"tenant-id" : "00000000-0000-0000-0000-000000000004",
"router-id" : "00000000-0000-0000-0000-000000000004"
}
],
"related-fabric" : [
"6eaa2006-0eb2-4395-90d9-e351310a8e2d"
],
"monitor-port" : 11111,
"net-mode" : "L2",
"related-datas" : [
{
"tenant-id" : "00000000-0000-0000-0000-000000000004",
"router-id" : "00000000-0000-0000-0000-000000000004"
}
],
"device-loopback-ipv4-ipaddress" : "192.168.13.2"
}
}
Response Parameters
Response status code 200: Response status code 200: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 200: Response status code 200: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"k8s" : {
"id" : "00000000-0000-0000-0000-000000000001",
"name" : "k8s_dev",
"tenant-name" : "tenant",
"agent" : [
{
"ipv4-address" : "192.168.10.2"
}
],
"multi-tenant" : false,
"reuse-datas" : [
{
"tenant-id" : "00000000-0000-0000-0000-000000000004",
"router-id" : "00000000-0000-0000-0000-000000000004"
}
],
"related-fabric" : [
"6eaa2006-0eb2-4395-90d9-e351310a8e2d"
],
"monitor-port" : 11111,
"net-mode" : "L2",
"related-datas" : [
{
"tenant-id" : "00000000-0000-0000-0000-000000000004",
"router-id" : "00000000-0000-0000-0000-000000000004"
}
],
"device-loopback-ipv4-ipaddress" : "192.168.13.2"
}
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
1.9.6.1.4 Check Connectivity Between the Container Platform and the Controller
Typical Scenarios
The availability of the northbound connection between a container platform and
the controller needs to be checked.
Functions
Maintain the heartbeat of the northbound connection between a container
platform and the controller.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 500 times/minute.
Single-interface performance: ≤ 105s.
HTTP Method
PUT
URI
/controller/dc/v2/containerplatform/k8s/{id}/northheartbeat
Request Parameters
Sample Request
HTTP
PUT /controller/dc/v2/containerplatform/k8s/00000000-0000-0000-0000-000000000001/northheartbeat
HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"agent_ip" : "192.168.3.2"
}
Response Parameters
Response status code 201: Response status code 200: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Response status code 500: Response status code 500: Internal server error.
Sample Response
Response status code 201: Response status code 200: OK.
HTTP/1.1 201 Created
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A tenant needs to be created.
Functions
Create a tenant.
Constraints
User role: northbound operator.
HTTP Method
POST
URI
/controller/dc/v2/containerplatform/tenants
Request Parameters
Sample Request
HTTP
POST /controller/dc/v2/containerplatform/tenants HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"tenants" : [
{
"id" : "00000000-0000-0000-0000-000000000001",
"name" : "tenant_name",
"l23_tenant_id" : "00000000-0000-0000-0000-000000000001"
}
],
"k8s_id" : "00000000-0000-0000-0000-000000000001"
}
Response Parameters
Response status code 201: Response status code 200: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 201: Response status code 200: OK.
HTTP/1.1 201 Created
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"tenants" : [
{
"id" : "00000000-0000-0000-0000-000000000001",
"name" : "tenant_name",
"l23_tenant_id" : "00000000-0000-0000-0000-000000000001"
}
],
"k8s_id" : "00000000-0000-0000-0000-000000000001"
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
The tenant list needs to be queried.
Functions
Query the tenant list.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 500 times/minute.
Single-interface performance: ≤ 105s.
HTTP Method
GET
URI
/controller/dc/v2/containerplatform/tenants
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v2/containerplatform/tenants?pageIndex=1&pageSize=10 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: Response status code 200: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 200: Response status code 200: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"tenants" : [
{
"id" : "00000000-0000-0000-0000-000000000001",
"name" : "tenant_name",
"l23_tenant_id" : "00000000-0000-0000-0000-000000000001",
"k8s_id" : "00000000-0000-0000-0000-000000000001"
}
],
"total-num" : 10
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A tenant needs to be queried by ID.
Functions
Query a tenant by ID.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 500 times/minute.
Single-interface performance: ≤ 105s.
HTTP Method
GET
URI
/controller/dc/v2/containerplatform/tenants/{id}
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v2/containerplatform/tenants/00000000-0000-0000-0000-000000000001 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: Response status code 200: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 200: Response status code 200: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"tenant" : {
"id" : "00000000-0000-0000-0000-000000000001",
"name" : "tenant_name",
"l23_tenant_id" : "00000000-0000-0000-0000-000000000001"
},
"k8s_id" : "00000000-0000-0000-0000-000000000001"
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
Typical Scenarios
A tenant needs to be deleted based on the ID.
Functions
Delete a tenant based on the ID.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 500 times/minute.
Single-interface performance: ≤ 105s.
HTTP Method
DELETE
URI
/controller/dc/v2/containerplatform/tenants/{id}
Request Parameters
N/A
Sample Request
HTTP
DELETE /controller/dc/v2/containerplatform/tenants/00000000-0000-0000-0000-000000000001 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 204: Response status code 200: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Response status code 500: Response status code 500: Internal server error.
Sample Response
Response status code 204: Response status code 200: OK.
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A network needs to be created.
Functions
Create a network.
Constraints
User role: northbound operator.
HTTP Method
POST
URI
/controller/dc/v2/containerplatform/networks
Request Parameters
Sample Request
HTTP
POST /controller/dc/v2/containerplatform/networks HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"networks" : [
{
"subnets" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"cidr" : "192.168.1.0/24",
"gateway_ip" : "192.168.1.1",
"ip_version" : "ipv4"
}
],
"name" : "testNetwork",
"tenant_id" : "00000000-0000-0000-0000-000000000005",
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"network_type" : "vlan",
"segmentation_id" : 10,
"fwdmode" : "bridge"
}
],
"k8s_id" : "00000000-0000-0000-0000-000000000001"
}
Response Parameters
Response status code 201: Response status code 200: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 201: Response status code 200: OK.
HTTP/1.1 201 Created
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"networks" : [
{
"subnets" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"cidr" : "192.168.1.0/24",
"gateway_ip" : "192.168.1.1",
"ip_version" : "ipv4"
}
],
"name" : "testNetwork",
"tenant_id" : "00000000-0000-0000-0000-000000000005",
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"network_type" : "vlan",
"segmentation_id" : 10,
"fwdmode" : "bridge"
}
],
"k8s_id" : "00000000-0000-0000-0000-000000000001"
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
All networks need to be queried.
Functions
Query all networks.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/controller/dc/v2/containerplatform/networks
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v2/containerplatform/networks?k8sId=DBB702C3-7719-4FE6-
A5AD-3A9C9E265309&tenantId=DBB702C3-7719-4FE6-A5AD-3A9C9E265300 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: Response status code 200: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 200: Response status code 200: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"networks" : [
{
"subnets" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"cidr" : "192.168.1.0/24",
"gateway_ip" : "192.168.1.1",
"ip_version" : "ipv4"
}
],
"name" : "testNetwork",
"tenant_id" : "00000000-0000-0000-0000-000000000005",
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"network_type" : "vlan",
"segmentation_id" : 10,
"fwdmode" : "bridge",
"k8s_id" : "00000000-0000-0000-0000-000000000001"
}
],
"total-num" : 10
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A network needs to be queried by ID.
Functions
Query a network by ID.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/controller/dc/v2/containerplatform/networks/{id}
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v2/containerplatform/networks/DBB702C3-7719-4FE6-A5AD-3A9C9E260001 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: Response status code 200: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 200: Response status code 200: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"k8s_id" : "00000000-0000-0000-0000-000000000001",
"network" : {
"subnets" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"cidr" : "192.168.1.0/24",
"gateway_ip" : "192.168.1.1",
"ip_version" : "ipv4"
}
],
"name" : "testNetwork",
"tenant_id" : "00000000-0000-0000-0000-000000000005",
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"network_type" : "vlan",
"segmentation_id" : 10,
"fwdmode" : "bridge"
}
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A network needs to be deleted by ID. After a network is deleted, all the
corresponding subnets are deleted.
Functions
Delete a network by ID.
Constraints
User role: northbound operator.
HTTP Method
DELETE
URI
/controller/dc/v2/containerplatform/networks/{id}
Request Parameters
N/A
Sample Request
HTTP
DELETE /controller/dc/v2/containerplatform/networks/DBB702C3-7719-4FE6-A5AD-3A9C9E260001 HTTP/
1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 204: Response status code 200: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 204: Response status code 200: OK.
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A port needs to be created.
Functions
Create a port.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 10,000 times/minute.
Single-interface performance: ≤ 105s.
HTTP Method
POST
URI
/controller/dc/v2/containerplatform/ports
Request Parameters
Sample Request
HTTP
POST /controller/dc/v2/containerplatform/ports HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"ports" : [
{
"name" : "test_name",
"namespace" : "namespace1",
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"network_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"mac_address" : "fa:16:3e:9e:ff:55",
"fixed_ips" : [
{
"subnet_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"ip_address" : "192.168.10.16"
}
],
"tenant_id" : "14c6bc47-5a5c-47da-bff3-7ed2b0ca8c8f",
"host_id" : "compute-192.168.8.161",
"fwdmode" : "bridge"
}
],
"k8s_id" : "00000000-0000-0000-0000-000000000001"
}
Response Parameters
Response status code 201: Response status code 200: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 201: Response status code 200: OK.
HTTP/1.1 201 Created
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"ports" : [
{
"name" : "test_name",
"namespace" : "namespace1",
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"network_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"mac_address" : "fa:16:3e:9e:ff:55",
"fixed_ips" : [
{
"subnet_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"ip_address" : "192.168.10.16"
}
],
"tenant_id" : "14c6bc47-5a5c-47da-bff3-7ed2b0ca8c8f",
"host_id" : "compute-192.168.8.161",
"fwdmode" : "bridge"
}
],
"k8s_id" : "00000000-0000-0000-0000-000000000001"
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A port needs to be created.
Functions
Query all ports.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 10,000 times/minute.
Single-interface performance: ≤ 105s.
HTTP Method
GET
URI
/controller/dc/v2/containerplatform/ports
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v2/containerplatform/ports HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: Response status code 200: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 200: Response status code 200: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"ports" : [
{
"name" : "test_name",
"namespace" : "namespace1",
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"network_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"mac_address" : "fa:16:3e:9e:ff:55",
"fixed_ips" : [
{
"subnet_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"ip_address" : "192.168.10.16"
}
],
"tenant_id" : "14c6bc47-5a5c-47da-bff3-7ed2b0ca8c8f",
"host_id" : "compute-192.168.8.161",
"fwdmode" : "bridge",
"k8s_id" : "00000000-0000-0000-0000-000000000001"
}
],
"total-num" : 10
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Query a Port by ID.
Functions
Query a port by ID.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 10,000 times/minute.
Single-interface performance: ≤ 105s.
HTTP Method
GET
URI
/controller/dc/v2/containerplatform/ports/{id}
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v2/containerplatform/ports/DBB702C3-7719-4FE6-A5AD-3A9C9E260001 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: Response status code 200: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 200: Response status code 200: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"port" : {
"name" : "test_name",
"namespace" : "namespace1",
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"network_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"mac_address" : "fa:16:3e:9e:ff:55",
"fixed_ips" : [
{
"subnet_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"ip_address" : "192.168.10.16"
}
],
"tenant_id" : "14c6bc47-5a5c-47da-bff3-7ed2b0ca8c8f",
"host_id" : "compute-192.168.8.161",
"fwdmode" : "bridge"
},
"k8s_id" : "00000000-0000-0000-0000-000000000001"
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A port needs to be deleted by ID.
Functions
Update a port by ID.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 10,000 times/minute.
Single-interface performance: ≤ 105s.
HTTP Method
PUT
URI
/controller/dc/v2/containerplatform/ports/{id}
Request Parameters
Sample Request
HTTP
PUT /controller/dc/v2/containerplatform/ports/DBB702C3-7719-4FE6-A5AD-3A9C9E260001 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"port" : {
"name" : "test_name",
"namespace" : "namespace1",
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"network_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"mac_address" : "fa:16:3e:9e:ff:55",
"fixed_ips" : [
{
"subnet_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"ip_address" : "192.168.10.16"
}
],
"tenant_id" : "14c6bc47-5a5c-47da-bff3-7ed2b0ca8c8f",
"host_id" : "compute-192.168.8.161",
"fwdmode" : "bridge"
},
"k8s_id" : "00000000-0000-0000-0000-000000000001"
}
Response Parameters
Response status code 200: Response status code 200: OK.
PortDtoWrapper parameters, For details, see Table 1-845.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 200: Response status code 200: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"port" : {
"name" : "test_name",
"namespace" : "namespace1",
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"network_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"mac_address" : "fa:16:3e:9e:ff:55",
"fixed_ips" : [
{
"subnet_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"ip_address" : "192.168.10.16"
}
],
"tenant_id" : "14c6bc47-5a5c-47da-bff3-7ed2b0ca8c8f",
"host_id" : "compute-192.168.8.161",
"fwdmode" : "bridge"
},
"k8s_id" : "00000000-0000-0000-0000-000000000001"
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A port needs to be deleted by ID.
Functions
Update a port by ID.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 10,000 times/minute.
Single-interface performance: ≤ 105s.
HTTP Method
DELETE
URI
/controller/dc/v2/containerplatform/ports/{id}
Request Parameters
N/A
Sample Request
HTTP
DELETE /controller/dc/v2/containerplatform/ports/DBB702C3-7719-4FE6-A5AD-3A9C9E260001 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 204: Response status code 200: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Response status code 500: Response status code 500: Internal server error.
Sample Response
Response status code 204: Response status code 200: OK.
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Create a Container Node.
Functions
Create a container node.
Constraints
User role: northbound operator.
HTTP Method
POST
URI
/controller/dc/v2/containerplatform/nodes
Request Parameters
Sample Request
HTTP
POST /controller/dc/v2/containerplatform/nodes HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"node" : {
"name" : "calico_node_name",
"k8s_node_name" : "k8s_node_host_name",
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"k8s_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"node_ipv4_address" : "192.168.73.16",
"as_number" : "100"
}
}
Response Parameters
Response status code 201: Response status code 204: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 201: Response status code 204: OK.
HTTP/1.1 201 Created
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"node" : [
{
"name" : "calico_node_name",
"k8s_node_name" : "k8s_node_host_name",
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"k8s_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"node_ipv4_address" : "192.168.73.16",
"as_number" : "100",
"peer_info" : [
{
"peer_ipv4_address" : "192.168.83.16",
"peer_as" : "101"
}
]
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
All container nodes need to be queried.
Functions
Query all container nodes.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 500 times/minute.
Single-interface performance: ≤ 105s.
HTTP Method
GET
URI
/controller/dc/v2/containerplatform/nodes
Request Parameters
N/A
Sample Request
HTTP
Response Parameters
Response status code 200: Response status code 200: OK.
total- int32 - - - 1
num
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 200: Response status code 200: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"nodes" : [
{
"name" : "calico_node_name",
"k8s_node_name" : "k8s_node_host_name",
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"k8s_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"node_ipv4_address" : "192.168.73.16",
"as_number" : "100",
"peer_info" : [
{
"peer_ipv4_address" : "192.168.83.16",
"peer_as" : "101"
}
]
}
],
"total-num" : 1
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A container node needs to be queried by ID.
Functions
Query a container node based on the ID.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 500 times/minute.
Single-interface performance: ≤ 105s.
HTTP Method
GET
URI
/controller/dc/v2/containerplatform/nodes/{id}
Request Parameters
N/A
Sample Request
HTTP
Response Parameters
Response status code 200: Response status code 204: OK.
NodeQueryDtoWrapper parameters, For details, see Table 1-853.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 200: Response status code 204: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"node" : [
{
"name" : "calico_node_name",
"k8s_node_name" : "k8s_node_host_name",
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"k8s_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"node_ipv4_address" : "192.168.73.16",
"as_number" : "100",
"peer_info" : [
{
"peer_ipv4_address" : "192.168.83.16",
"peer_as" : "101"
}
]
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A container node needs to be updated by ID.
Functions
Update a container node by ID.
Constraints
User role: northbound operator.
HTTP Method
PUT
URI
/controller/dc/v2/containerplatform/nodes/{id}
Request Parameters
Sample Request
HTTP
PUT /controller/dc/v2/containerplatform/nodes/{id} HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"node" : {
"name" : "calico_node_name",
"k8s_node_name" : "k8s_node_host_name",
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"k8s_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"node_ipv4_address" : "192.168.73.16",
"as_number" : "100"
}
}
Response Parameters
Response status code 200: Response status code 200: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Response status code 500: Response status code 500: Internal server error.
Sample Response
Response status code 200: Response status code 200: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"node" : [
{
"name" : "calico_node_name",
"k8s_node_name" : "k8s_node_host_name",
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"k8s_id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"node_ipv4_address" : "192.168.73.16",
"as_number" : "100",
"peer_info" : [
{
"peer_ipv4_address" : "192.168.83.16",
"peer_as" : "101"
}
]
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A container node needs to be deleted by ID.
Functions
Delete a container node based on the ID.
Constraints
User role: northbound operator.
HTTP Method
DELETE
URI
/controller/dc/v2/containerplatform/nodes/{id}
Request Parameters
N/A
Sample Request
HTTP
DELETE /controller/dc/v2/containerplatform/nodes/DBB702C3-7719-4FE6-A5AD-3A9C9E260001 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 204: Response status code 201: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 204: Response status code 201: OK.
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A container service needs to be created.
Functions
Create a container service.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 500 times/minute.
Single-interface performance: ≤ 105s.
HTTP Method
POST
URI
/controller/dc/v2/containerplatform/services
Request Parameters
id No string - - epID -
ip No string - - IP address. -
Sample Request
HTTP
POST /controller/dc/v2/containerplatform/services HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"services" : [
{
"id" : "ABB702C3-7719-4FE6-A5AD-3A9C9E260001",
"tenantId" : "CDB702C3-7719-4FE6-A5AD-3A9C9E260001",
"ports" : [
{
"portId" : "CBB702C3-7719-4FE6-A5AD-3A9C9E260001",
"nodePort" : 10,
"port" : 10,
"targetPort" : 10
}
]
}
],
"k8sId" : "00000000-0000-0000-0000-000000000001"
}
Response Parameters
Response status code 200: Response status code 201: OK.
id string - - epID -
ip string - - IP address. -
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 200: Response status code 201: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"services" : [
{
"id" : "ABB702C3-7719-4FE6-A5AD-3A9C9E260001",
"tenantId" : "CDB702C3-7719-4FE6-A5AD-3A9C9E260001",
"ports" : [
{
"portId" : "CBB702C3-7719-4FE6-A5AD-3A9C9E260001",
"nodePort" : 10,
"port" : 10,
"targetPort" : 10
}
]
}
],
"k8sId" : "00000000-0000-0000-0000-000000000001"
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
The container service list needs to be queried.
Functions
Query the container service list.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/controller/dc/v2/containerplatform/services
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v2/containerplatform/services?
pageIndex=1&pageSize=10&queryValue=servicename&order=true&tenantId=CBB702C3-7719-4FE6-
A5AD-3A9C9E260008 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: Response status code 201: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Response status code 500: Response status code 500: Internal server error.
Sample Response
Response status code 200: Response status code 201: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"services" : [
{
"id" : "ABB702C3-7719-4FE6-A5AD-3A9C9E260001",
"tenantId" : "CDB702C3-7719-4FE6-A5AD-3A9C9E260001",
"ports" : [
{
"portId" : "CBB702C3-7719-4FE6-A5AD-3A9C9E260001",
"nodePort" : 10,
"port" : 10,
"targetPort" : 10
}
],
"k8sId" : "00000000-0000-0000-0000-000000000001"
}
],
"totalNum" : 10
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
The container service with a specified ID needs to be queried.
Functions
Query a container service.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/controller/dc/v2/containerplatform/services/service/{id}
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v2/containerplatform/services/service/CBB702C3-7719-4FE6-A5AD-3A9C9E260005 HTTP/
1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: Response status code 201: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 200: Response status code 201: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"service" : {
"id" : "ABB702C3-7719-4FE6-A5AD-3A9C9E260001",
"tenantId" : "CDB702C3-7719-4FE6-A5AD-3A9C9E260001",
"ports" : [
{
"portId" : "CBB702C3-7719-4FE6-A5AD-3A9C9E260001",
"nodePort" : 10,
"port" : 10,
"targetPort" : 10
}
]
},
"k8sId" : "00000000-0000-0000-0000-000000000001"
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A container service needs to be modified.
Functions
Modify a container service.
Constraints
User role: northbound operator.
HTTP Method
PUT
URI
/controller/dc/v2/containerplatform/services/service/{id}
Request Parameters
Sample Request
HTTP
PUT /controller/dc/v2/containerplatform/services/service/CBB702C3-7719-4FE6-A5AD-3A9C9E260004 HTTP/
1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"service" : {
"id" : "ABB702C3-7719-4FE6-A5AD-3A9C9E260001",
"tenantId" : "CDB702C3-7719-4FE6-A5AD-3A9C9E260001",
"ports" : [
{
"portId" : "CBB702C3-7719-4FE6-A5AD-3A9C9E260001",
"nodePort" : 10,
"port" : 10,
"targetPort" : 10
}
]
},
"k8sId" : "00000000-0000-0000-0000-000000000001"
}
Response Parameters
Response status code 200: Response status code 201: OK.
ServiceDtoWrapper parameters, For details, see Table 1-878.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 200: Response status code 201: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"service" : {
"id" : "ABB702C3-7719-4FE6-A5AD-3A9C9E260001",
"tenantId" : "CDB702C3-7719-4FE6-A5AD-3A9C9E260001",
"ports" : [
{
"portId" : "CBB702C3-7719-4FE6-A5AD-3A9C9E260001",
"nodePort" : 10,
"port" : 10,
"targetPort" : 10
}
]
},
"k8sId" : "00000000-0000-0000-0000-000000000001"
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A container service needs to be deleted.
Functions
Delete a container service.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 500 times/minute.
Single-interface performance: ≤ 105s.
HTTP Method
DELETE
URI
/controller/dc/v2/containerplatform/services/service/{id}
Request Parameters
N/A
Sample Request
HTTP
DELETE /controller/dc/v2/containerplatform/services/service/CBB702C3-7719-4FE6-A5AD-3A9C9E260002
HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: Response status code 201: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 200: Response status code 201: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
1.9.7 VPC
|SLA Item|Definition|
|-----|-----|
|Request success rate| ≥ 99.9%|
|Availability|Tier 1|
|Data consistency|Eventual consistency, inconsistency duration < 1 minute|
|Throughput|4000 TPS|
Typical Scenarios
A logical network needs to be created.
Functions
Create a logical network. The following fields are mandatory: id, name, and
fabricId.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 200 times/minute.
HTTP Method
POST
URI
/controller/dc/v3/logicnetwork/networks
Request Parameters
Sample Request
HTTP
Response Parameters
Response status code 204: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Sample Response
Response status code 204: successfully
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
All logical networks need to be queried.
Functions
Query all logical networks.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/controller/dc/v3/logicnetwork/networks
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v3/logicnetwork/networks?
producer=default&type=Transit&tenantId=DBB702C3-7719-4FE6-
A5AD-3A9C9E265309&filterTenant=false&pageIndex=1&pageSize=1 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"network" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "vpcName",
"description" : "description",
"tenantId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"fabricId" : [
"DBB702C3-7719-4FE6-A5AD-3A9C9E265309"
],
"multicastCapability" : false,
"type" : "Transit",
"additional" : {
"producer" : "default",
"createAt" : "2017-08-10 16:30:40",
"updateAt" : "2017-08-10 16:30:40"
},
"isVpcDeployed" : true
}
],
"totalNum" : 200,
"pageIndex" : 1,
"pageSize" : 1
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A logical network needs to be queried by ID.
Functions
Query a logical network by ID.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/controller/dc/v3/logicnetwork/networks/network/{id}
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v3/logicnetwork/networks/network/DBB702C3-7719-4FE6-A5AD-3A9C9E265309 HTTP/
1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"network" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "vpcName",
"description" : "description",
"tenantId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"fabricId" : [
"DBB702C3-7719-4FE6-A5AD-3A9C9E265309"
],
"multicastCapability" : false,
"type" : "Transit",
"additional" : {
"producer" : "default",
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A logical network needs to be updated by ID.
Functions
Modify a logical network based on the logical network ID.
Constraints
User role: northbound operator.
HTTP Method
PUT
URI
/controller/dc/v3/logicnetwork/networks/network/{id}
Request Parameters
Sample Request
HTTP
PUT /controller/dc/v3/logicnetwork/networks/network/DBB702C3-7719-4FE6-A5AD-3A9C9E265309 HTTP/
1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"network" : {
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "vpcName",
"description" : "description",
"tenantId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"fabricId" : [
"DBB702C3-7719-4FE6-A5AD-3A9C9E265309"
],
"multicastCapability" : false,
"type" : "Transit",
"additional" : {
"producer" : "default",
"createAt" : "2017-08-10 16:30:40",
"updateAt" : "2017-08-10 16:30:40"
}
}
}
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"network" : {
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "vpcName",
"description" : "description",
"tenantId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"fabricId" : [
"DBB702C3-7719-4FE6-A5AD-3A9C9E265309"
],
"multicastCapability" : false,
"type" : "Transit",
"additional" : {
"producer" : "default",
"createAt" : "2017-08-10 16:30:40",
"updateAt" : "2017-08-10 16:30:40"
}
}
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A logical network needs to be deleted by ID.
Functions
Delete a logical network based by ID. All related services on the logical network
will be deleted.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 200 times/minute.
HTTP Method
DELETE
URI
/controller/dc/v3/logicnetwork/networks/network/{id}
Request Parameters
N/A
Sample Request
HTTP
DELETE /controller/dc/v3/logicnetwork/networks/network/DBB702C3-7719-4FE6-A5AD-3A9C9E265309?
producer=default HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 204: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 204: successfully
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A subnet needs to be created.
Functions
Create a subnet.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 200 times/minute.
HTTP Method
POST
URI
/controller/dc/v3/logicnetwork/subnets
Request Parameters
Sample Request
HTTP
POST /controller/dc/v3/logicnetwork/subnets HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"subnet" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"logicSwitchId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"cidr" : "192.168.1.0/24",
"gatewayIp" : "192.168.1.1",
"allocPool" : {
"ipBegin" : "192.168.1.1",
"ipEnd" : "192.168.1.2"
},
"reservePool" : {
"ipBegin" : "192.168.1.1",
"ipEnd" : "192.168.1.2"
},
"tenantId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"logicRouterId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceGatewayIps" : [
{
"deviceGroupId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"gatewayIp" : "192.168.1.1"
}
],
"vrrpConfig" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceGroupId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"vrrpVrid" : "10",
"virtualIp" : "192.168.1.1",
"vrrpPriority" : "10",
"preemptEnable" : false,
"preempt" : "10",
"recoveryDelay" : "10"
}
],
"additional" : {
"producer" : "default",
"createAt" : "2016-03-08T20:19:41.000+00:00",
"updateAt" : "2016-03-08T20:19:41.000+00:00"
}
}
]
}
Response Parameters
Response status code 204: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Sample Response
Response status code 204: successfully
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Subnet information needs to be queried.
Functions
Query subnets based on certain conditions.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 200 times/minute.
HTTP Method
GET
URI
/controller/dc/v3/logicnetwork/subnets
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v3/logicnetwork/subnets?producer=default&tenantId=DBB702C3-7719-4FE6-
A5AD-3A9C9E265309&logicSwitchId=DBB702C3-7719-4FE6-
A5AD-3A9C9E265309&logicRouterId=DBB702C3-7719-4FE6-A5AD-3A9C9E265309;DBB702C3-7719-4FE6-
A5AD-3A9C9E265310&pageIndex=1&pageSize=1 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"subnet" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"logicSwitchId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"cidr" : "192.168.1.0/24",
"gatewayIp" : "192.168.1.1",
"allocPool" : {
"ipBegin" : "192.168.1.1",
"ipEnd" : "192.168.1.2"
},
"reservePool" : {
"ipBegin" : "192.168.1.1",
"ipEnd" : "192.168.1.2"
},
"tenantId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"logicRouterId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceGatewayIps" : [
{
"deviceGroupId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"gatewayIp" : "192.168.1.1"
}
],
"vrrpConfig" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceGroupId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"vrrpVrid" : "10",
"virtualIp" : "192.168.1.1",
"vrrpPriority" : "10",
"preemptEnable" : false,
"preempt" : "10",
"recoveryDelay" : "10"
}
],
"additional" : {
"producer" : "default",
"createAt" : "2016-03-08T20:19:41.000+00:00",
"updateAt" : "2016-03-08T20:19:41.000+00:00"
},
"dhcpEnable" : false,
"dhcpGroupId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309"
}
],
"totalNum" : 200,
"pageIndex" : 1,
"pageSize" : 1
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A subnet needs to be queried by ID.
Functions
Query a subnet by ID.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 200 times/minute.
HTTP Method
GET
URI
/controller/dc/v3/logicnetwork/subnets/subnet/{id}
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v3/logicnetwork/subnets/subnet/DBB702C3-7719-4FE6-A5AD-3A9C9E265309 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"subnet" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"logicSwitchId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"cidr" : "192.168.1.0/24",
"gatewayIp" : "192.168.1.1",
"allocPool" : {
"ipBegin" : "192.168.1.1",
"ipEnd" : "192.168.1.2"
},
"reservePool" : {
"ipBegin" : "192.168.1.1",
"ipEnd" : "192.168.1.2"
},
"tenantId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"logicRouterId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceGatewayIps" : [
{
"deviceGroupId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"gatewayIp" : "192.168.1.1"
}
],
"vrrpConfig" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceGroupId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"vrrpVrid" : "10",
"virtualIp" : "192.168.1.1",
"vrrpPriority" : "10",
"preemptEnable" : false,
"preempt" : "10",
"recoveryDelay" : "10"
}
],
"additional" : {
"producer" : "default",
"createAt" : "2016-03-08T20:19:41.000+00:00",
"updateAt" : "2016-03-08T20:19:41.000+00:00"
},
"dhcpEnable" : false,
"dhcpGroupId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309"
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A subnet needs to be updated by ID.
Functions
ID for updating a subnet.
Constraints
User role: northbound operator.
HTTP Method
PUT
URI
/controller/dc/v3/logicnetwork/subnets/subnet/{id}
Request Parameters
Sample Request
HTTP
PUT /controller/dc/v3/logicnetwork/subnets/subnet/DBB702C3-7719-4FE6-A5AD-3A9C9E265309 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"subnet" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"logicSwitchId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"cidr" : "192.168.1.0/24",
"gatewayIp" : "192.168.1.1",
"allocPool" : {
"ipBegin" : "192.168.1.1",
"ipEnd" : "192.168.1.2"
},
"reservePool" : {
"ipBegin" : "192.168.1.1",
"ipEnd" : "192.168.1.2"
},
"tenantId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"logicRouterId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceGatewayIps" : [
{
"deviceGroupId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"gatewayIp" : "192.168.1.1"
}
],
"vrrpConfig" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceGroupId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"vrrpVrid" : "10",
"virtualIp" : "192.168.1.1",
"vrrpPriority" : "10",
"preemptEnable" : false,
"preempt" : "10",
"recoveryDelay" : "10"
}
],
"additional" : {
"producer" : "default",
"createAt" : "2016-03-08T20:19:41.000+00:00",
"updateAt" : "2016-03-08T20:19:41.000+00:00"
}
}
]
}
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"subnet" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"logicSwitchId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"cidr" : "192.168.1.0/24",
"gatewayIp" : "192.168.1.1",
"allocPool" : {
"ipBegin" : "192.168.1.1",
"ipEnd" : "192.168.1.2"
},
"reservePool" : {
"ipBegin" : "192.168.1.1",
"ipEnd" : "192.168.1.2"
},
"tenantId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"logicRouterId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceGatewayIps" : [
{
"deviceGroupId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"gatewayIp" : "192.168.1.1"
}
],
"vrrpConfig" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceGroupId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"vrrpVrid" : "10",
"virtualIp" : "192.168.1.1",
"vrrpPriority" : "10",
"preemptEnable" : false,
"preempt" : "10",
"recoveryDelay" : "10"
}
],
"additional" : {
"producer" : "default",
"createAt" : "2016-03-08T20:19:41.000+00:00",
"updateAt" : "2016-03-08T20:19:41.000+00:00"
}
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A subnet needs to be deleted by ID.
Functions
Delete a subnet by ID.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 200 times/minute.
HTTP Method
DELETE
URI
/controller/dc/v3/logicnetwork/subnets/subnet/{id}
Request Parameters
N/A
Sample Request
HTTP
DELETE /controller/dc/v3/logicnetwork/subnets/subnet/DBB702C3-7719-4FE6-A5AD-3A9C9E265309 HTTP/
1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 204: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Sample Response
Response status code 204: successfully
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A logical switch needs to be created.
Functions
Create a logical switch.
Constraints
User role: northbound operator.
HTTP Method
POST
URI
/controller/dc/v3/logicnetwork/switchs
Request Parameters
bd No int32 [0-160 - BD ID of a 10
00000] logical switch.
This field
cannot be
updated.
Sample Request
HTTP
POST /controller/dc/v3/logicnetwork/switchs HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"switch" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "name",
"description" : "description",
"logicNetworkId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"vni" : 10,
"bd" : 10,
"macAddress" : "00:00:5E:00:01:01",
"tenantId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"tenantName" : "tenantName",
"qosId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"arpBroadcastStormEnable" : "default",
"arpL2ProxyEnable" : false,
"subnets" : [
"192.168.10.1/24"
],
"hostInfoCollect" : false,
"arpDirectRouteEnable" : false,
"ndDirectRouteEnable" : false,
"vlinkDeviceGroups" : [
{
"deviceGroupId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceGroupName" : "deviceGroup1"
}
],
"macRouteSuppress" : false,
"additional" : {
"producer" : "default",
"createAt" : "2017-08-10 16:30:40",
"updateAt" : "2017-08-10 16:30:40"
},
"stormSuppress" : {
"broadcastEnable" : false,
"multicastEnable" : false,
"unicastEnable" : false,
"broadcastCbs" : "10000",
"broadcastCbsUnit" : "byte",
"broadcastCir" : 100,
"broadcastCirUnit" : "kbps",
"unicastCbs" : "10000",
"unicastCbsUnit" : "byte",
"unicastCir" : 100,
"unicastCirUnit" : "kbps",
"multicastCbs" : "10000",
"multicastCbsUnit" : "byte",
"multicastCir" : 100,
"multicastCirUnit" : "kbps"
}
}
]
}
Response Parameters
Response status code 204: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 204: successfully
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Logical switches need to be queried.
Functions
Query all logical switches.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 200 times/minute.
HTTP Method
GET
URI
/controller/dc/v3/logicnetwork/switchs
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v3/logicnetwork/switchs?producer=default&tenantId=DBB702C3-7719-4FE6-
A5AD-3A9C9E265309&logicNetworkId=DBB702C3-7719-4FE6-
A5AD-3A9C9E265309&logicSwitchName=logicSwitchName&pageIndex=1&pageSize=1 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: successfully
bd int32 [0-16000000] - BD ID of a 10
logical switch.
This field
cannot be
updated.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"switch" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "name",
"description" : "description",
"logicNetworkId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"vni" : 10,
"bd" : 10,
"macAddress" : "00:00:5E:00:01:01",
"tenantId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"tenantName" : "tenantName",
"qosId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"arpBroadcastStormEnable" : "default",
"arpL2ProxyEnable" : false,
"subnets" : [
"192.168.10.1/24"
],
"hostInfoCollect" : false,
"arpDirectRouteEnable" : false,
"ndDirectRouteEnable" : false,
"vlinkDeviceGroups" : [
{
"deviceGroupId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceGroupName" : "deviceGroup1"
}
],
"macRouteSuppress" : false,
"additional" : {
"producer" : "default",
"createAt" : "2017-08-10 16:30:40",
"updateAt" : "2017-08-10 16:30:40"
},
"stormSuppress" : {
"broadcastEnable" : false,
"multicastEnable" : false,
"unicastEnable" : false,
"broadcastCbs" : "10000",
"broadcastCbsUnit" : "byte",
"broadcastCir" : 100,
"broadcastCirUnit" : "kbps",
"unicastCbs" : "10000",
"unicastCbsUnit" : "byte",
"unicastCir" : 100,
"unicastCirUnit" : "kbps",
"multicastCbs" : "10000",
"multicastCbsUnit" : "byte",
"multicastCir" : 100,
"multicastCirUnit" : "kbps"
},
"importRouteTargets" : 10,
"exportRouteTargets" : 10,
"qosTemplateId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309"
}
],
"totalNum" : 200,
"pageIndex" : 1,
"pageSize" : 1
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
All logical access switches need to be queried.
Functions
Query all logical access switches and fabric information about VPCs to which the
switches belong based on specified conditions.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/controller/dc/v3/logicnetwork/switchs/access-switch
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v3/logicnetwork/switchs/access-switch?
name=logicSwitchName&fabricIds=DBB702C3-7719-4FE6-A5AD-3A9C9E265309&pageIndex=1&pageSize=1
HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: successfully
bd int32 [0-16000000] - BD ID of a 10
logical switch.
This field
cannot be
updated.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"totalNum" : 200,
"pageIndex" : "1",
"pageSize" : "1",
"accessSwitch" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "name",
"description" : "description",
"logicNetworkId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"vni" : 10,
"bd" : 10,
"macAddress" : "00:00:5E:00:01:01",
"tenantId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"tenantName" : "tenantName",
"qosId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"arpBroadcastStormEnable" : "default",
"arpL2ProxyEnable" : false,
"subnets" : [
"192.168.10.1/24"
],
"hostInfoCollect" : false,
"arpDirectRouteEnable" : false,
"ndDirectRouteEnable" : false,
"vlinkDeviceGroups" : [
{
"deviceGroupId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceGroupName" : "deviceGroup1"
}
],
"macRouteSuppress" : false,
"additional" : {
"producer" : "default",
"createAt" : "2017-08-10 16:30:40",
"updateAt" : "2017-08-10 16:30:40"
},
"stormSuppress" : {
"broadcastEnable" : false,
"multicastEnable" : false,
"unicastEnable" : false,
"broadcastCbs" : "10000",
"broadcastCbsUnit" : "byte",
"broadcastCir" : 100,
"broadcastCirUnit" : "kbps",
"unicastCbs" : "10000",
"unicastCbsUnit" : "byte",
"unicastCir" : 100,
"unicastCirUnit" : "kbps",
"multicastCbs" : "10000",
"multicastCbsUnit" : "byte",
"multicastCir" : 100,
"multicastCirUnit" : "kbps"
},
"importRouteTargets" : 10,
"exportRouteTargets" : 10,
"qosTemplateId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"fabricIds" : ["DBB702C3-7719-4FE6-A5AD-3A9C9E265309"]
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A logical switch needs to be queried by ID.
Functions
Query a logical switch by ID.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/controller/dc/v3/logicnetwork/switchs/switch/{id}
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v3/logicnetwork/switchs/switch/DBB702C3-7719-4FE6-A5AD-3A9C9E265309 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"switch" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "name",
"description" : "description",
"logicNetworkId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"vni" : 10,
"bd" : 10,
"macAddress" : "00:00:5E:00:01:01",
"tenantId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"tenantName" : "tenantName",
"qosId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"arpBroadcastStormEnable" : "default",
"arpL2ProxyEnable" : false,
"subnets" : [
"192.168.10.1/24"
],
"hostInfoCollect" : false,
"arpDirectRouteEnable" : false,
"ndDirectRouteEnable" : false,
"vlinkDeviceGroups" : [
{
"deviceGroupId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceGroupName" : "deviceGroup1"
}
],
"macRouteSuppress" : false,
"additional" : {
"producer" : "default",
"createAt" : "2017-08-10 16:30:40",
"updateAt" : "2017-08-10 16:30:40"
},
"stormSuppress" : {
"broadcastEnable" : false,
"multicastEnable" : false,
"unicastEnable" : false,
"broadcastCbs" : "10000",
"broadcastCbsUnit" : "byte",
"broadcastCir" : 100,
"broadcastCirUnit" : "kbps",
"unicastCbs" : "10000",
"unicastCbsUnit" : "byte",
"unicastCir" : 100,
"unicastCirUnit" : "kbps",
"multicastCbs" : "10000",
"multicastCbsUnit" : "byte",
"multicastCir" : 100,
"multicastCirUnit" : "kbps"
},
"importRouteTargets" : 10,
"exportRouteTargets" : 10,
"qosTemplateId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309"
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Typical Scenarios
A logical switch needs to be updated by ID.
Functions
ID for updating a logical switch.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 200 times/minute.
HTTP Method
PUT
URI
/controller/dc/v3/logicnetwork/switchs/switch/{id}
Request Parameters
Sample Request
HTTP
PUT /controller/dc/v3/logicnetwork/switchs/switch/DBB702C3-7719-4FE6-A5AD-3A9C9E265309 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"switch" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "name",
"description" : "description",
"logicNetworkId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"vni" : 10,
"bd" : 10,
"macAddress" : "00:00:5E:00:01:01",
"tenantId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"tenantName" : "tenantName",
"qosId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"arpBroadcastStormEnable" : "default",
"arpL2ProxyEnable" : false,
"subnets" : [
"192.168.10.1/24"
],
"hostInfoCollect" : false,
"arpDirectRouteEnable" : false,
"ndDirectRouteEnable" : false,
"vlinkDeviceGroups" : [
{
"deviceGroupId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceGroupName" : "deviceGroup1"
}
],
"macRouteSuppress" : false,
"additional" : {
"producer" : "default",
"createAt" : "2017-08-10 16:30:40",
"updateAt" : "2017-08-10 16:30:40"
},
"stormSuppress" : {
"broadcastEnable" : false,
"multicastEnable" : false,
"unicastEnable" : false,
"broadcastCbs" : "10000",
"broadcastCbsUnit" : "byte",
"broadcastCir" : 100,
"broadcastCirUnit" : "kbps",
"unicastCbs" : "10000",
"unicastCbsUnit" : "byte",
"unicastCir" : 100,
"unicastCirUnit" : "kbps",
"multicastCbs" : "10000",
"multicastCbsUnit" : "byte",
"multicastCir" : 100,
"multicastCirUnit" : "kbps"
}
}
]
}
Response Parameters
Response status code 200: successfully
bd int32 [0-16000000] - BD ID of a 10
logical switch.
This field
cannot be
updated.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"switch" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "name",
"description" : "description",
"logicNetworkId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"vni" : 10,
"bd" : 10,
"macAddress" : "00:00:5E:00:01:01",
"tenantId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"tenantName" : "tenantName",
"qosId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"arpBroadcastStormEnable" : "default",
"arpL2ProxyEnable" : false,
"subnets" : [
"192.168.10.1/24"
],
"hostInfoCollect" : false,
"arpDirectRouteEnable" : false,
"ndDirectRouteEnable" : false,
"vlinkDeviceGroups" : [
{
"deviceGroupId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceGroupName" : "deviceGroup1"
}
],
"macRouteSuppress" : false,
"additional" : {
"producer" : "default",
"createAt" : "2017-08-10 16:30:40",
"updateAt" : "2017-08-10 16:30:40"
},
"stormSuppress" : {
"broadcastEnable" : false,
"multicastEnable" : false,
"unicastEnable" : false,
"broadcastCbs" : "10000",
"broadcastCbsUnit" : "byte",
"broadcastCir" : 100,
"broadcastCirUnit" : "kbps",
"unicastCbs" : "10000",
"unicastCbsUnit" : "byte",
"unicastCir" : 100,
"unicastCirUnit" : "kbps",
"multicastCbs" : "10000",
"multicastCbsUnit" : "byte",
"multicastCir" : 100,
"multicastCirUnit" : "kbps"
}
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A logical switch needs to be deleted by ID.
Functions
Delete a logical switch by ID.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 200 times/minute.
HTTP Method
DELETE
URI
/controller/dc/v3/logicnetwork/switchs/switch/{id}
Request Parameters
N/A
Sample Request
HTTP
DELETE /controller/dc/v3/logicnetwork/switchs/switch/DBB702C3-7719-4FE6-A5AD-3A9C9E265309 HTTP/
1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 204: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Sample Response
Response status code 204: successfully
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A logical port needs to be created.
Functions
Create a logical port.
Constraints
User role: northbound operator.
HTTP Method
POST
URI
/controller/dc/v3/logicnetwork/ports
Request Parameters
Sample Request
HTTP
POST /controller/dc/v3/logicnetwork/ports HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"port" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "logicPortName",
"qosId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"description" : "description",
"unsharePortVlan" : false,
"status" : "up",
"logicSwitchId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"logicSwitchName" : "logicSwitchName",
"metaData" : "metaData",
"accessInfo" : {
"mode" : "UNI",
"type" : "DOT1Q",
"vlan" : 10,
"qinq" : {
"innerVidBegin" : 10,
"innerVidEnd" : 10,
"outerVidBegin" : 10,
"outerVidEnd" : 10,
"rewriteAction" : "POPDOUBLE"
},
"location" : [
{
"deviceGroupId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceGroupName" : "CE_45",
"deviceId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceName" : "CE_45",
"portId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"portName" : "10GE1/0/1",
"deviceIp" : "192.168.1.1"
}
],
"subinterfaceNumber" : 10
},
"tenantId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"additional" : {
"producer" : "default",
"createAt" : "2017-08-10 16:30:40",
"updateAt" : "2017-08-10 16:30:40"
},
"fabricId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309"
}
]
}
Response Parameters
Response status code 204: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Sample Response
Response status code 204: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
All logical ports need to be queried.
Functions
Query all logical ports.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 200 times/minute.
HTTP Method
GET
URI
/controller/dc/v3/logicnetwork/ports
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v3/logicnetwork/ports?producer=default&logicSwitchId=DBB702C3-7719-4FE6-
A5AD-3A9C9E265309&pageIndex=1&pageSize=1 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"port" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "logicPortName",
"qosId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"description" : "description",
"unsharePortVlan" : false,
"status" : "up",
"logicSwitchId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"logicSwitchName" : "logicSwitchName",
"metaData" : "metaData",
"accessInfo" : {
"mode" : "UNI",
"type" : "DOT1Q",
"vlan" : 10,
"qinq" : {
"innerVidBegin" : 10,
"innerVidEnd" : 10,
"outerVidBegin" : 10,
"outerVidEnd" : 10,
"rewriteAction" : "POPDOUBLE"
},
"location" : [
{
"deviceGroupId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceGroupName" : "CE_45",
"deviceId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceName" : "CE_45",
"portId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"portName" : "10GE1/0/1",
"deviceIp" : "192.168.1.1"
}
],
"subinterfaceNumber" : 10
},
"tenantId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"additional" : {
"producer" : "default",
"createAt" : "2017-08-10 16:30:40",
"updateAt" : "2017-08-10 16:30:40"
},
"fabricId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309"
}
],
"totalNum" : 200,
"pageIndex" : 1,
"pageSize" : 1
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
1.9.7.4.3 Query Logical Port Information Based on the End Port ID List
Typical Scenarios
Logical port information needs to be queried based on the user port ID list.
Functions
The list of specified logical ports needs to be queried.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 100 times/minute.
HTTP Method
POST
URI
/controller/dc/v3/logicnetwork/ports/endport-ids
Request Parameters
Sample Request
HTTP
POST /controller/dc/v3/logicnetwork/ports/endport-ids HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"endPortIds" : [
"DBB702C3-7719-4FE6-A5AD-3A9C9E265309"
],
"pageIndex" : 1,
"pageSize" : 1
}
Response Parameters
Response status code 200: successfully
PortPagedDtoWrapper parameters, For details, see Table 1-952.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"port" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "logicPortName",
"qosId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"description" : "description",
"unsharePortVlan" : false,
"status" : "up",
"logicSwitchId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"logicSwitchName" : "logicSwitchName",
"metaData" : "metaData",
"accessInfo" : {
"mode" : "UNI",
"type" : "DOT1Q",
"vlan" : 10,
"qinq" : {
"innerVidBegin" : 10,
"innerVidEnd" : 10,
"outerVidBegin" : 10,
"outerVidEnd" : 10,
"rewriteAction" : "POPDOUBLE"
},
"location" : [
{
"deviceGroupId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceGroupName" : "CE_45",
"deviceId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceName" : "CE_45",
"portId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"portName" : "10GE1/0/1",
"deviceIp" : "192.168.1.1"
}
],
"subinterfaceNumber" : 10
},
"tenantId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"additional" : {
"producer" : "default",
"createAt" : "2017-08-10 16:30:40",
"updateAt" : "2017-08-10 16:30:40"
},
"fabricId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309"
}
],
"totalNum" : 200,
"pageIndex" : 1,
"pageSize" : 1
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A logical port needs to be queried by ID.
Functions
Query a logical port by ID.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/controller/dc/v3/logicnetwork/ports/port/{id}
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v3/logicnetwork/ports/port/DBB702C3-7719-4FE6-A5AD-3A9C9E265309 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"port" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "logicPortName",
"qosId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"description" : "description",
"unsharePortVlan" : false,
"status" : "up",
"logicSwitchId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"logicSwitchName" : "logicSwitchName",
"metaData" : "metaData",
"accessInfo" : {
"mode" : "UNI",
"type" : "DOT1Q",
"vlan" : 10,
"qinq" : {
"innerVidBegin" : 10,
"innerVidEnd" : 10,
"outerVidBegin" : 10,
"outerVidEnd" : 10,
"rewriteAction" : "POPDOUBLE"
},
"location" : [
{
"deviceGroupId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceGroupName" : "CE_45",
"deviceId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceName" : "CE_45",
"portId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"portName" : "10GE1/0/1",
"deviceIp" : "192.168.1.1"
}
],
"subinterfaceNumber" : 10
},
"tenantId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"additional" : {
"producer" : "default",
"createAt" : "2017-08-10 16:30:40",
"updateAt" : "2017-08-10 16:30:40"
},
"fabricId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309"
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Update a Logical Port by ID.
Functions
Update a logical port by ID.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 200 times/minute.
HTTP Method
PUT
URI
/controller/dc/v3/logicnetwork/ports/port/{id}
Request Parameters
Sample Request
HTTP
Response Parameters
Response status code 200: successfully
PortDtoWrapper parameters, For details, see Table 1-961.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"port" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "logicPortName",
"qosId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"description" : "description",
"unsharePortVlan" : false,
"status" : "up",
"logicSwitchId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"logicSwitchName" : "logicSwitchName",
"metaData" : "metaData",
"accessInfo" : {
"mode" : "UNI",
"type" : "DOT1Q",
"vlan" : 10,
"qinq" : {
"innerVidBegin" : 10,
"innerVidEnd" : 10,
"outerVidBegin" : 10,
"outerVidEnd" : 10,
"rewriteAction" : "POPDOUBLE"
},
"location" : [
{
"deviceGroupId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceGroupName" : "CE_45",
"deviceId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceName" : "CE_45",
"portId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"portName" : "10GE1/0/1",
"deviceIp" : "192.168.1.1"
}
],
"subinterfaceNumber" : 10
},
"tenantId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"additional" : {
"producer" : "default",
"createAt" : "2017-08-10 16:30:40",
"updateAt" : "2017-08-10 16:30:40"
},
"fabricId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309"
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A logical port needs to be deleted by ID.
Functions
Delete a logical port by ID.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 200 times/minute.
HTTP Method
DELETE
URI
/controller/dc/v3/logicnetwork/ports/port/{id}
Request Parameters
N/A
Sample Request
HTTP
DELETE /controller/dc/v3/logicnetwork/ports/port/DBB702C3-7719-4FE6-A5AD-3A9C9E265309 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 204: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Sample Response
Response status code 204: successfully
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A logical port group needs to be created.
Functions
Create a logical port group.
Constraints
User role: northbound operator.
HTTP Method
POST
URI
/controller/dc/v3/logicnetwork/logicportgroups
Request Parameters
Sample Request
HTTP
POST /controller/dc/v3/logicnetwork/logicportgroups HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"logicPortGroups" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265301",
"logicSwitchId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265301",
"accessType" : "Dot1q",
"vlan" : [
10
],
"portGroupId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265301",
"portGroupName" : "thePortGroup"
}
]
}
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"requestId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E26530e",
"taskIds" : [
"DBB702C3-7719-4FE6-A5AD-3A9C9E26530f"
],
"ids" : [
"DBB702C3-7719-4FE6-A5AD-3A9C9E26530f"
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A logical port group needs to be updated.
Functions
Update a logical port group.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 100 times/minute.
HTTP Method
PUT
URI
/controller/dc/v3/logicnetwork/logicportgroups/logicportgroup/{id}
Request Parameters
Sample Request
HTTP
PUT /controller/dc/v3/logicnetwork/logicportgroups/logicportgroup/DBB702C3-7719-4FE6-
A5AD-3A9C9E265301 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"logicPortGroup" : {
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265301",
"logicSwitchId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265301",
"accessType" : "Dot1q",
"vlan" : [
10
],
"portGroupId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265301",
"portGroupName" : "thePortGroup"
}
}
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"logicPortGroup" : {
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265301",
"logicSwitchId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265301",
"accessType" : "Dot1q",
"vlan" : [
10
],
"portGroupId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265301",
"portGroupName" : "thePortGroup"
}
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A logical port group needs to be deleted.
Functions
Delete a logical port group.
Constraints
User role: northbound operator.
HTTP Method
POST
URI
/controller/dc/v3/logicnetwork/logicportgroup/batchdelete
Request Parameters
Sample Request
HTTP
POST /controller/dc/v3/logicnetwork/logicportgroup/batchdelete HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"ids" : [
"DBB702C3-7719-4FE6-A5AD-3A9C9E265301"
]
}
Response Parameters
Response status code 204: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Sample Response
Response status code 204: successfully
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A logical router needs to be created.
Functions
Create a logical router.
Constraints
User role: northbound operator.
HTTP Method
POST
URI
/controller/dc/v3/logicnetwork/routers
Request Parameters
Sample Request
HTTP
POST /controller/dc/v3/logicnetwork/routers HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"router" : {
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265311",
"name" : "logicRouterName",
"description" : "description",
"qosId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"logicNetworkId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"routerLocations" : [
{
"fabricId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"fabricRole" : "master",
"fabricName" : "fabricName",
"deviceGroup" : [
{
"deviceId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceIp" : "192.168.1.1"
}
]
}
],
"type" : "Normal",
"vni" : 10,
"vrfName" : "vrfName",
"connectMode" : "Nfvi",
"externalCidr" : ["192.168.1.0/24"],
"internalCidr" : ["192.168.2.0/24"],
"maxLoadBalance" : 10,
"additional" : {
"producer" : "default",
"createAt" : "2017-08-10 16:30:40",
"updateAt" : "2017-08-10 16:30:40"
}
}
}
Response Parameters
Response status code 204: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 204: successfully
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
All logical routers need to be queried.
Functions
Query all logical routers.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/controller/dc/v3/logicnetwork/routers
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v3/logicnetwork/routers?producer=default&type=transit&tenantId=DBB702C3-7719-4FE6-
A5AD-3A9C9E265309&logicNetworkId=DBB702C3-7719-4FE6-
A5AD-3A9C9E265309&fabricIds=DBB702C3-7719-4FE6-
A5AD-3A9C9E265309&name=RouterName&transitConnect=false&pageIndex=1&pageSize=1 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"router" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265311",
"name" : "logicRouterName",
"description" : "description",
"qosId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"logicNetworkId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"routerLocations" : [
{
"fabricId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"fabricRole" : "master",
"fabricName" : "fabricName",
"deviceGroup" : [
{
"deviceId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceIp" : "192.168.1.1"
}
]
}
],
"type" : "Normal",
"vni" : 10,
"vrfName" : "vrfName",
"connectMode" : "Nfvi",
"externalCidr" : ["192.168.1.0/24"],
"internalCidr" : ["192.168.2.0/24"],
"maxLoadBalance" : 10,
"additional" : {
"producer" : "default",
"createAt" : "2017-08-10 16:30:40",
"updateAt" : "2017-08-10 16:30:40"
},
"tenantId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"tenantName" : "tenantName",
"egressGatewayDevGrpId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"importRouteTargets" : [
"0:5006"
],
"exportRouteTargets" : [
"0:5006"
],
"routes" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"routeSetId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"addressFamilyType" : "Ipv4",
"destination" : "10.10.10.0/24",
"nexthopIp" : "10.1.1.1",
"nexthopVrf" : "vrf1",
"nexthopLogicRouterId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"preference" : 10,
"nexthopType" : "Ip",
"trackType" : "NQA",
"trackId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"endPortId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"endPortIp" : "10.1.1.1",
"endPortTrackName" : "endPortTrackName",
"trackCheck" : false,
"deviceGroupId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceGroupName" : "deviceGroupName",
"ecmp" : false,
"routeDepolyPos" : "DeviceGroup",
"loopbackId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceIds" : [
"DBB702C3-7719-4FE6-A5AD-3A9C9E265309"
]
}
],
"subnets" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"cidr" : "192.168.1.0/24",
"gatewayIp" : "192.168.1.1"
}
],
"bgp" : {
"addressFamilyType" : "vpnv4-instance",
"importRouteDirect" : false,
"importRouteStatic" : false,
"importNetworks" : [
"192.168.1.0/24"
],
"aggregateRoutes" : [
"192.168.1.0/24"
],
"bgpPeer" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"bgpRouteId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"addressFamilyType" : "Vpnv4",
"description" : "description",
"peerIp" : "192.168.1.1",
"peerAs" : "10",
"bgpPeerType" : "Direct",
"deviceGroupId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceGroupName" : "deviceGroupName",
"sourceIps" : [
{
"deviceId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"loopbackIp" : "192.168.3.3"
}
],
"logicInterfaceId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"keepaliveTime" : 1,
"holdTime" : 3,
"bfd" : false,
"allowAsLoop" : false,
"defaultRouteAdvertise" : false,
"importRoutePolicy" : "routePolicy",
"exportRoutePolicy" : "routePolicy",
"loopbackId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"loopbackName" : "loopbackName",
"sourceIfId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"sourceIfType" : 0,
"ebgpMultiHop" : false,
"minTxInterval" : 1000,
"minRxInterval" : 1000,
"detectMultiplier" : 3,
"fakeAsNum" : "10",
"dualAs" : false,
"auth" : {
"authType" : "None",
"keychainName" : "keychainName",
"passwordType" : "CipherText",
"passwordText" : "passwordText"
}
}
]
},
"routerLocation" : {
"fabricId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"fabricRole" : "master",
"fabricName" : "fabricName",
"deviceGroup" : [
{
"deviceId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceIp" : "192.168.1.1"
}
]
}
}
],
"totalNum" : 200,
"pageIndex" : 1,
"pageSize" : 10
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Basic information about all logical routers needs to be queried.
Functions
Query all logical routers.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/controller/dc/v3/logicnetwork/routers/basicinfo
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v3/logicnetwork/routers/basicinfo?logicRouterIds=DBB702C3-7719-4FE6-
A5AD-3A9C9E265309;DBB702C3-7719-4FE6-A5AD-3A9C9E265311&pageIndex=1&pageSize=1 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"router" : [
{
"router" : {
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265311",
"name" : "logicRouterName",
"description" : "description",
"qosId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"logicNetworkId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"routerLocations" : [
{
"fabricId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"fabricRole" : "master",
"fabricName" : "fabricName",
"deviceGroup" : [
{
"deviceId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceIp" : "192.168.1.1"
}
]
}
],
"type" : "Normal",
"vni" : 10,
"vrfName" : "vrfName",
"connectMode" : "Nfvi",
"externalCidr" : ["192.168.1.0/24"],
"internalCidr" : ["192.168.2.0/24"],
"maxLoadBalance" : 10,
"additional" : {
"producer" : "default",
"createAt" : "2017-08-10 16:30:40",
"updateAt" : "2017-08-10 16:30:40"
}
}
}
],
"totalNum" : 200,
"pageIndex" : 1,
"pageSize" : 10
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
All logical routers need to be queried.
Functions
Query all logical routers based on specified conditions.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/controller/dc/v3/logicnetwork/routers/access-router
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v3/logicnetwork/routers/access-router?
name=logicRouterName&fabricIds=DBB702C3-7719-4FE6-A5AD-3A9C9E265309;DBB702C3-7719-4FE6-
A5AD-3A9C9E265310&pageIndex=1&pageSize=1 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"totalNum" : 200,
"pageIndex" : "1",
"pageSize" : "1",
"accessRouter" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265311",
"name" : "logicRouterName",
"description" : "description",
"qosId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"logicNetworkId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"routerLocations" : [
{
"fabricId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"fabricRole" : "master",
"fabricName" : "fabricName",
"deviceGroup" : [
{
"deviceId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceIp" : "192.168.1.1"
}
]
}
],
"type" : "Normal",
"vni" : 10,
"vrfName" : "vrfName",
"connectMode" : "Nfvi",
"externalCidr" : ["192.168.1.0/24"],
"internalCidr" : ["192.168.2.0/24"],
"maxLoadBalance" : 10,
"additional" : {
"producer" : "default",
"createAt" : "2017-08-10 16:30:40",
"updateAt" : "2017-08-10 16:30:40"
},
"tenantId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"tenantName" : "tenantName",
"egressGatewayDevGrpId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"importRouteTargets" : [
"0:5006"
],
"exportRouteTargets" : [
"0:5006"
],
"routes" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"routeSetId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"addressFamilyType" : "Ipv4",
"destination" : "10.10.10.0/24",
"nexthopIp" : "10.1.1.1",
"nexthopVrf" : "vrf1",
"nexthopLogicRouterId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"preference" : 10,
"nexthopType" : "Ip",
"trackType" : "NQA",
"trackId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"endPortId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"endPortIp" : "10.1.1.1",
"endPortTrackName" : "endPortTrackName",
"trackCheck" : false,
"deviceGroupId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceGroupName" : "deviceGroupName",
"ecmp" : false,
"routeDepolyPos" : "DeviceGroup",
"loopbackId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceIds" : [
"DBB702C3-7719-4FE6-A5AD-3A9C9E265309"
]
}
],
"subnets" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"cidr" : "192.168.1.0/24",
"gatewayIp" : "192.168.1.1"
}
],
"bgp" : {
"addressFamilyType" : "vpnv4-instance",
"importRouteDirect" : false,
"importRouteStatic" : false,
"importNetworks" : [
"192.168.1.0/24"
],
"aggregateRoutes" : [
"192.168.1.0/24"
],
"bgpPeer" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"bgpRouteId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"addressFamilyType" : "Vpnv4",
"description" : "description",
"peerIp" : "192.168.1.1",
"peerAs" : "10",
"bgpPeerType" : "Direct",
"deviceGroupId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceGroupName" : "deviceGroupName",
"sourceIps" : [
{
"deviceId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"loopbackIp" : "192.168.3.3"
}
],
"logicInterfaceId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"keepaliveTime" : 1,
"holdTime" : 3,
"bfd" : false,
"allowAsLoop" : false,
"defaultRouteAdvertise" : false,
"importRoutePolicy" : "routePolicy",
"exportRoutePolicy" : "routePolicy",
"loopbackId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"loopbackName" : "loopbackName",
"sourceIfId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"sourceIfType" : 0,
"ebgpMultiHop" : false,
"minTxInterval" : 1000,
"minRxInterval" : 1000,
"detectMultiplier" : 3,
"fakeAsNum" : "10",
"dualAs" : false,
"auth" : {
"authType" : "None",
"keychainName" : "keychainName",
"passwordType" : "CipherText",
"passwordText" : "passwordText"
}
}
]
},
"routerLocation" : {
"fabricId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"fabricRole" : "master",
"fabricName" : "fabricName",
"deviceGroup" : [
{
"deviceId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceIp" : "192.168.1.1"
}
]
},
"fabricIds" : ["DBB702C3-7719-4FE6-A5AD-3A9C9E265309"]
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A logical router needs to be queried.
Functions
Query a logical router by ID.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/controller/dc/v3/logicnetwork/routers/router/{id}
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v3/logicnetwork/routers/router/DBB702C3-7719-4FE6-A5AD-3A9C9E265309 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"router" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265311",
"name" : "logicRouterName",
"description" : "description",
"qosId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"logicNetworkId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"routerLocations" : [
{
"fabricId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"fabricRole" : "master",
"fabricName" : "fabricName",
"deviceGroup" : [
{
"deviceId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceIp" : "192.168.1.1"
}
]
}
],
"type" : "Normal",
"vni" : 10,
"vrfName" : "vrfName",
"connectMode" : "Nfvi",
"externalCidr" : ["192.168.1.0/24"],
"internalCidr" : ["192.168.2.0/24"],
"maxLoadBalance" : 10,
"additional" : {
"producer" : "default",
"createAt" : "2017-08-10 16:30:40",
"updateAt" : "2017-08-10 16:30:40"
},
"tenantId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"tenantName" : "tenantName",
"egressGatewayDevGrpId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"importRouteTargets" : [
"0:5006"
],
"exportRouteTargets" : [
"0:5006"
],
"routes" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"routeSetId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"addressFamilyType" : "Ipv4",
"destination" : "10.10.10.0/24",
"nexthopIp" : "10.1.1.1",
"nexthopVrf" : "vrf1",
"nexthopLogicRouterId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"preference" : 10,
"nexthopType" : "Ip",
"trackType" : "NQA",
"trackId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"endPortId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"endPortIp" : "10.1.1.1",
"endPortTrackName" : "endPortTrackName",
"trackCheck" : false,
"deviceGroupId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceGroupName" : "deviceGroupName",
"ecmp" : false,
"routeDepolyPos" : "DeviceGroup",
"loopbackId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceIds" : [
"DBB702C3-7719-4FE6-A5AD-3A9C9E265309"
]
}
],
"subnets" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"cidr" : "192.168.1.0/24",
"gatewayIp" : "192.168.1.1"
}
],
"bgp" : {
"addressFamilyType" : "vpnv4-instance",
"importRouteDirect" : false,
"importRouteStatic" : false,
"importNetworks" : [
"192.168.1.0/24"
],
"aggregateRoutes" : [
"192.168.1.0/24"
],
"bgpPeer" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"bgpRouteId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"addressFamilyType" : "Vpnv4",
"description" : "description",
"peerIp" : "192.168.1.1",
"peerAs" : "10",
"bgpPeerType" : "Direct",
"deviceGroupId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceGroupName" : "deviceGroupName",
"sourceIps" : [
{
"deviceId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"loopbackIp" : "192.168.3.3"
}
],
"logicInterfaceId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"keepaliveTime" : 1,
"holdTime" : 3,
"bfd" : false,
"allowAsLoop" : false,
"defaultRouteAdvertise" : false,
"importRoutePolicy" : "routePolicy",
"exportRoutePolicy" : "routePolicy",
"loopbackId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"loopbackName" : "loopbackName",
"sourceIfId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"sourceIfType" : 0,
"ebgpMultiHop" : false,
"minTxInterval" : 1000,
"minRxInterval" : 1000,
"detectMultiplier" : 3,
"fakeAsNum" : "10",
"dualAs" : false,
"auth" : {
"authType" : "None",
"keychainName" : "keychainName",
"passwordType" : "CipherText",
"passwordText" : "passwordText"
}
}
]
},
"routerLocation" : {
"fabricId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"fabricRole" : "master",
"fabricName" : "fabricName",
"deviceGroup" : [
{
"deviceId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceIp" : "192.168.1.1"
}
]
}
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A logical router needs to be updated.
Functions
Update a logical router by ID.
Constraints
User role: northbound operator.
HTTP Method
PUT
URI
/controller/dc/v3/logicnetwork/routers/router/{id}
Request Parameters
Sample Request
HTTP
PUT /controller/dc/v3/logicnetwork/routers/router/DBB702C3-7719-4FE6-A5AD-3A9C9E265309 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"router" : {
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265311",
"name" : "logicRouterName",
"description" : "description",
"qosId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"logicNetworkId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"routerLocations" : [
{
"fabricId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"fabricRole" : "master",
"fabricName" : "fabricName",
"deviceGroup" : [
{
"deviceId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceIp" : "192.168.1.1"
}
]
}
],
"type" : "Normal",
"vni" : 10,
"vrfName" : "vrfName",
"connectMode" : "Nfvi",
"externalCidr" : ["192.168.1.0/24"],
"internalCidr" : ["192.168.2.0/24"],
"maxLoadBalance" : 10,
"additional" : {
"producer" : "default",
"createAt" : "2017-08-10 16:30:40",
"updateAt" : "2017-08-10 16:30:40"
}
}
}
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"router" : {
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265311",
"name" : "logicRouterName",
"description" : "description",
"qosId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"logicNetworkId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"routerLocations" : [
{
"fabricId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"fabricRole" : "master",
"fabricName" : "fabricName",
"deviceGroup" : [
{
"deviceId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceIp" : "192.168.1.1"
}
]
}
],
"type" : "Normal",
"vni" : 10,
"vrfName" : "vrfName",
"connectMode" : "Nfvi",
"externalCidr" : ["192.168.1.0/24"],
"internalCidr" : ["192.168.2.0/24"],
"maxLoadBalance" : 10,
"additional" : {
"producer" : "default",
"createAt" : "2017-08-10 16:30:40",
"updateAt" : "2017-08-10 16:30:40"
}
}
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A logical router needs to be deleted.
Functions
Delete a logical router by ID.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 200 times/minute.
HTTP Method
DELETE
URI
/controller/dc/v3/logicnetwork/routers/router/{id}
Request Parameters
N/A
Sample Request
HTTP
DELETE /controller/dc/v3/logicnetwork/routers/router/DBB702C3-7719-4FE6-A5AD-3A9C9E265309?
producer=default HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 204: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 204: successfully
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Static route information needs to be added to a logical router.
Functions
Add one or more static routes to a logical router. If multiple routes need to be
added, add them in one transaction. If any route fails to be added, all routes will
be rolled back.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 200 times/minute.
HTTP Method
POST
URI
/controller/dc/v3/logicnetwork/routers/router/{id}/route-sets
Request Parameters
Sample Request
HTTP
POST /controller/dc/v3/logicnetwork/routers/router/DBB702C3-7719-4FE6-A5AD-3A9C9E265309/route-sets
HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"routeId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"logicRouterId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"source" : "SystemVas",
"routes" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"routeSetId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"addressFamilyType" : "Ipv4",
"destination" : "10.10.10.0/24",
"nexthopIp" : "10.1.1.1",
"nexthopVrf" : "vrf1",
"nexthopLogicRouterId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"preference" : 10,
"nexthopType" : "Ip",
"trackType" : "NQA",
"trackId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"endPortId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"endPortIp" : "10.1.1.1",
"endPortTrackName" : "endPortTrackName",
"trackCheck" : false,
"deviceGroupId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceGroupName" : "deviceGroupName",
"ecmp" : false,
"routeDepolyPos" : "DeviceGroup",
"loopbackId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceIds" : [
"DBB702C3-7719-4FE6-A5AD-3A9C9E265309"
]
}
],
"additional" : {
"producer" : "default",
"createAt" : "2017-08-10 16:30:40",
"updateAt" : "2017-08-10 16:30:40"
}
}
Response Parameters
Response status code 204: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 204: successfully
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Static route information needs to be added to a logical router.
Functions
Update one or more static routes on a logical router. If multiple routes need to be
updated, update them in one transaction. If any route fails to be updated, all
routes will be rolled back.
Constraints
User role: northbound operator.
HTTP Method
PUT
URI
/controller/dc/v3/logicnetwork/routers/router/{id}/route-sets
Request Parameters
Sample Request
HTTP
PUT /controller/dc/v3/logicnetwork/routers/router/DBB702C3-7719-4FE6-A5AD-3A9C9E265309/route-sets
HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"routeId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"logicRouterId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"source" : "SystemVas",
"routes" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"routeSetId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"addressFamilyType" : "Ipv4",
"destination" : "10.10.10.0/24",
"nexthopIp" : "10.1.1.1",
"nexthopVrf" : "vrf1",
"nexthopLogicRouterId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"preference" : 10,
"nexthopType" : "Ip",
"trackType" : "NQA",
"trackId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"endPortId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"endPortIp" : "10.1.1.1",
"endPortTrackName" : "endPortTrackName",
"trackCheck" : false,
"deviceGroupId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceGroupName" : "deviceGroupName",
"ecmp" : false,
"routeDepolyPos" : "DeviceGroup",
"loopbackId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceIds" : [
"DBB702C3-7719-4FE6-A5AD-3A9C9E265309"
]
}
],
"additional" : {
"producer" : "default",
"createAt" : "2017-08-10 16:30:40",
"updateAt" : "2017-08-10 16:30:40"
}
}
Response Parameters
Response status code 204: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 204: successfully
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Static route information on a logical router needs to be queried.
Functions
Query static route information on a logical router.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 200 times/minute.
HTTP Method
GET
URI
/controller/dc/v3/logicnetwork/routers/router/route-sets/route-set/{id}
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v3/logicnetwork/routers/router/route-sets/route-set/DBB702C3-7719-4FE6-
A5AD-3A9C9E265309 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"routeId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"logicRouterId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"source" : "SystemVas",
"routes" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"routeSetId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"addressFamilyType" : "Ipv4",
"destination" : "10.10.10.0/24",
"nexthopIp" : "10.1.1.1",
"nexthopVrf" : "vrf1",
"nexthopLogicRouterId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"preference" : 10,
"nexthopType" : "Ip",
"trackType" : "NQA",
"trackId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"endPortId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"endPortIp" : "10.1.1.1",
"endPortTrackName" : "endPortTrackName",
"trackCheck" : false,
"deviceGroupId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceGroupName" : "deviceGroupName",
"ecmp" : false,
"routeDepolyPos" : "DeviceGroup",
"loopbackId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceIds" : [
"DBB702C3-7719-4FE6-A5AD-3A9C9E265309"
]
}
],
"additional" : {
"producer" : "default",
"createAt" : "2017-08-10 16:30:40",
"updateAt" : "2017-08-10 16:30:40"
}
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Static route information needs to be deleted from a logical router.
Functions
Delete one or more static routes from a logical router. If multiple routes need to
be deleted, delete them in one transaction. If any route fails to be deleted, all
routes will be rolled back.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 200 times/minute.
HTTP Method
DELETE
URI
/controller/dc/v3/logicnetwork/routers/router/route-sets/route-set/{id}
Request Parameters
N/A
Sample Request
HTTP
DELETE /controller/dc/v3/logicnetwork/routers/router/route-sets/route-set/DBB702C3-7719-4FE6-
A5AD-3A9C9E265309?producer=default HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 204: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 204: successfully
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Static routes need to be queried in batches based on specified conditions.
Functions
Query static routes in batches based on specified conditions.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/controller/dc/v3/logicnetwork/routers/router/route-sets
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v3/logicnetwork/routers/router/route-sets?logicRouterId=DBB702C3-7719-4FE6-
A5AD-3A9C9E265309&producer=default&nexthopType=0 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"routes" : [
{
"routeId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"logicRouterId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"source" : "SystemVas",
"routes" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"routeSetId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"addressFamilyType" : "Ipv4",
"destination" : "10.10.10.0/24",
"nexthopIp" : "10.1.1.1",
"nexthopVrf" : "vrf1",
"nexthopLogicRouterId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"preference" : 10,
"nexthopType" : "Ip",
"trackType" : "NQA",
"trackId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"endPortId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"endPortIp" : "10.1.1.1",
"endPortTrackName" : "endPortTrackName",
"trackCheck" : false,
"deviceGroupId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceGroupName" : "deviceGroupName",
"ecmp" : false,
"routeDepolyPos" : "DeviceGroup",
"loopbackId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceIds" : [
"DBB702C3-7719-4FE6-A5AD-3A9C9E265309"
]
}
],
"additional" : {
"producer" : "default",
"createAt" : "2017-08-10 16:30:40",
"updateAt" : "2017-08-10 16:30:40"
}
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
One or more BGP peers need to be added to a logical router.
Functions
Add one or more BGP peers to a logical router. If multiple BGP peers need to be
added, add them in one transaction. If any BGP peer fails to be added, all BGP
peers will be rolled back.
Constraints
User role: northbound operator.
HTTP Method
POST
URI
/controller/dc/v3/logicnetwork/routers/router/{id}/bgp-peers
Request Parameters
Sample Request
HTTP
POST /controller/dc/v3/logicnetwork/routers/router/DBB702C3-7719-4FE6-A5AD-3A9C9E265309/bgp-peers
HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"routeId" : "FFF702C3-7719-4FE6-A5AD-3A9C9E265309",
"logicRouterId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"bgpPeers" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"bgpRouteId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"addressFamilyType" : "Vpnv4",
"description" : "description",
"peerIp" : "192.168.1.1",
"peerAs" : "10",
"bgpPeerType" : "Direct",
"deviceGroupId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceGroupName" : "deviceGroupName",
"sourceIps" : [
{
"deviceId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"loopbackIp" : "192.168.3.3"
}
],
"logicInterfaceId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"keepaliveTime" : 1,
"holdTime" : 3,
"bfd" : false,
"allowAsLoop" : false,
"defaultRouteAdvertise" : false,
"importRoutePolicy" : "routePolicy",
"exportRoutePolicy" : "routePolicy",
"loopbackId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"loopbackName" : "loopbackName",
"sourceIfId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"sourceIfType" : 0,
"ebgpMultiHop" : false,
"minTxInterval" : 1000,
"minRxInterval" : 1000,
"detectMultiplier" : 3,
"fakeAsNum" : "10",
"dualAs" : false,
"auth" : {
"authType" : "None",
"keychainName" : "keychainName",
"passwordType" : "CipherText",
"passwordText" : "passwordText"
}
}
],
"additional" : {
"producer" : "default",
"createAt" : "2017-08-10 16:30:40",
"updateAt" : "2017-08-10 16:30:40"
}
}
Response Parameters
Response status code 201: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Sample Response
Response status code 201: successfully
HTTP/1.1 201 Created
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
One or more BGP peers on a logical router need to be updated.
Functions
Update one or more BGP peers on a logical router. If multiple BGP peers need to
be updated, update them in one transaction. If any BGP peer fails to be updated,
all BGP peers will be rolled back.
Constraints
User role: northbound operator.
HTTP Method
PUT
URI
/controller/dc/v3/logicnetwork/routers/router/{id}/bgp-peers
Request Parameters
Sample Request
HTTP
PUT /controller/dc/v3/logicnetwork/routers/router/DBB702C3-7719-4FE6-A5AD-3A9C9E265309/bgp-peers
HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"routeId" : "FFF702C3-7719-4FE6-A5AD-3A9C9E265309",
"logicRouterId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"bgpPeers" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"bgpRouteId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"addressFamilyType" : "Vpnv4",
"description" : "description",
"peerIp" : "192.168.1.1",
"peerAs" : "10",
"bgpPeerType" : "Direct",
"deviceGroupId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceGroupName" : "deviceGroupName",
"sourceIps" : [
{
"deviceId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"loopbackIp" : "192.168.3.3"
}
],
"logicInterfaceId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"keepaliveTime" : 1,
"holdTime" : 3,
"bfd" : false,
"allowAsLoop" : false,
"defaultRouteAdvertise" : false,
"importRoutePolicy" : "routePolicy",
"exportRoutePolicy" : "routePolicy",
"loopbackId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"loopbackName" : "loopbackName",
"sourceIfId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"sourceIfType" : 0,
"ebgpMultiHop" : false,
"minTxInterval" : 1000,
"minRxInterval" : 1000,
"detectMultiplier" : 3,
"fakeAsNum" : "10",
"dualAs" : false,
"auth" : {
"authType" : "None",
"keychainName" : "keychainName",
"passwordType" : "CipherText",
"passwordText" : "passwordText"
}
}
],
"additional" : {
"producer" : "default",
"createAt" : "2017-08-10 16:30:40",
"updateAt" : "2017-08-10 16:30:40"
}
}
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
BGP peer information on a logical router needs to be queried.
Functions
Query BGP peer information on a logical router.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 200 times/minute.
HTTP Method
GET
URI
/controller/dc/v3/logicnetwork/routers/router/bgp-peers/bgp-peer/{bgpRouteId}
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v3/logicnetwork/routers/router/bgp-peers/bgp-peer/DBB702C3-7719-4FE6-
A5AD-3A9C9E265309 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"routeId" : "FFF702C3-7719-4FE6-A5AD-3A9C9E265309",
"logicRouterId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"bgpPeers" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"bgpRouteId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"addressFamilyType" : "Vpnv4",
"description" : "description",
"peerIp" : "192.168.1.1",
"peerAs" : "10",
"bgpPeerType" : "Direct",
"deviceGroupId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceGroupName" : "deviceGroupName",
"sourceIps" : [
{
"deviceId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"loopbackIp" : "192.168.3.3"
}
],
"logicInterfaceId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"keepaliveTime" : 1,
"holdTime" : 3,
"bfd" : false,
"allowAsLoop" : false,
"defaultRouteAdvertise" : false,
"importRoutePolicy" : "routePolicy",
"exportRoutePolicy" : "routePolicy",
"loopbackId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"loopbackName" : "loopbackName",
"sourceIfId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"sourceIfType" : 0,
"ebgpMultiHop" : false,
"minTxInterval" : 1000,
"minRxInterval" : 1000,
"detectMultiplier" : 3,
"fakeAsNum" : "10",
"dualAs" : false,
"auth" : {
"authType" : "None",
"keychainName" : "keychainName",
"passwordType" : "CipherText",
"passwordText" : "passwordText"
}
}
],
"additional" : {
"producer" : "default",
"createAt" : "2017-08-10 16:30:40",
"updateAt" : "2017-08-10 16:30:40"
}
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
One or more BGP peers need to be deleted from a logical router.
Functions
Delete one or more BGP peers from a logical router. If multiple BGP peers need to
be deleted, delete them in one transaction. If any BGP peer fails to be deleted, all
BGP peers will be rolled back.
Constraints
User role: northbound operator.
HTTP Method
DELETE
URI
/controller/dc/v3/logicnetwork/routers/router/bgp-peers/bgp-peer/{bgpRouteId}
Request Parameters
N/A
Sample Request
HTTP
DELETE /controller/dc/v3/logicnetwork/routers/router/bgp-peers/bgp-peer/DBB702C3-7719-4FE6-
A5AD-3A9C9E265309?producer=default HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 204: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 204: successfully
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
BGP peers need to be queried in batches based on specified conditions.
Functions
Query BGP peers in batches based on specified conditions.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 200 times/minute.
HTTP Method
GET
URI
/controller/dc/v3/logicnetwork/routers/router/bgp-peers
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v3/logicnetwork/routers/router/bgp-peers?logicRouterId=DBB702C3-7719-4FE6-
A5AD-3A9C9E265309&producer=default HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"bgpPeers" : [
{
"routeId" : "FFF702C3-7719-4FE6-A5AD-3A9C9E265309",
"logicRouterId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"bgpPeers" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"bgpRouteId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"addressFamilyType" : "Vpnv4",
"description" : "description",
"peerIp" : "192.168.1.1",
"peerAs" : "10",
"bgpPeerType" : "Direct",
"deviceGroupId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceGroupName" : "deviceGroupName",
"sourceIps" : [
{
"deviceId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"loopbackIp" : "192.168.3.3"
}
],
"logicInterfaceId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"keepaliveTime" : 1,
"holdTime" : 3,
"bfd" : false,
"allowAsLoop" : false,
"defaultRouteAdvertise" : false,
"importRoutePolicy" : "routePolicy",
"exportRoutePolicy" : "routePolicy",
"loopbackId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"loopbackName" : "loopbackName",
"sourceIfId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"sourceIfType" : 0,
"ebgpMultiHop" : false,
"minTxInterval" : 1000,
"minRxInterval" : 1000,
"detectMultiplier" : 3,
"fakeAsNum" : "10",
"dualAs" : false,
"auth" : {
"authType" : "None",
"keychainName" : "keychainName",
"passwordType" : "CipherText",
"passwordText" : "passwordText"
}
}
],
"additional" : {
"producer" : "default",
"createAt" : "2017-08-10 16:30:40",
"updateAt" : "2017-08-10 16:30:40"
}
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Device groups bound to a logical router need to be queried.
Functions
Query device groups bound to a logical router.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 200 times/minute.
HTTP Method
GET
URI
/controller/dc/v3/logicnetwork/routers/router/{id}/devicegroup-bindinfo
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v3/logicnetwork/routers/router/DBB702C3-7719-4FE6-A5AD-3A9C9E265309/
devicegroup-bindinfo?bussinessType=default&bussinessId=DBB702C3-7719-4FE6-A5AD-3A9C9E265309
HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"devicegroup" : {
"logicRouterId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"bussinessId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"bussinessType" : "DciRoutePolicy",
"devicegroups" : [
"DBB702C3-7719-4FE6-A5AD-3A9C9E265309"
]
}
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Device groups bound to a logical router need to be queried in batches.
Functions
Query device groups bound to a logical router in batches.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 200 times/minute.
HTTP Method
GET
URI
/controller/dc/v3/logicnetwork/routers/router/devicegroup-bindinfos
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v3/logicnetwork/routers/router/devicegroup-bindinfos?
logicRouterId=DBB702C3-7719-4FE6-
A5AD-3A9C9E265309&bussinessType=Dci&bussinessId=DBB702C3-7719-4FE6-A5AD-3A9C9E265309 HTTP/
1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"devicegroup" : [
{
"logicRouterId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"bussinessId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"bussinessType" : "DciRoutePolicy",
"devicegroups" : [
"DBB702C3-7719-4FE6-A5AD-3A9C9E265309"
]
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Bound routing policies on a logical router need to be queried.
Functions
Query routing policies bound to a logical router.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 200 times/minute.
HTTP Method
GET
URI
/controller/dc/v3/logicnetwork/routers/router/bind-route-policy
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v3/logicnetwork/routers/router/bind-route-policy HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"routePolicyInfoDto" : [
{
"routerId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"routePolicyId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"type" : "ribonly, import, export, preference.",
"instanceType" : "vpn,evpn,both",
"deviceGroupIds" : [
"DBB702C3-7719-4FE6-A5AD-3A9C9E265309"
],
"additional" : {
"producer" : "default",
"createAt" : "2017-08-10 16:30:40",
"updateAt" : "2017-08-10 16:30:40"
}
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Routing policies need to be bound to a logical router.
Functions
Bind routing policies to a logical router.
Constraints
User role: northbound operator.
HTTP Method
PUT
URI
/controller/dc/v3/logicnetwork/routers/router/bind-route-policy
Request Parameters
Sample Request
HTTP
PUT /controller/dc/v3/logicnetwork/routers/router/bind-route-policy HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"bindRoutePolicyDto" : {
"routerId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"routePolicyId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"type" : "ribonly, import, export, preference.",
"instanceType" : "vpn,evpn,both",
"deviceGroupIds" : [
"DBB702C3-7719-4FE6-A5AD-3A9C9E265309"
],
"additional" : {
"producer" : "default",
"createAt" : "2017-08-10 16:30:40",
"updateAt" : "2017-08-10 16:30:40"
}
}
}
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Routing policies need to be unbound from a logical router.
Functions
Unbind routing policies from a logical router.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 25 times/minute.
HTTP Method
PUT
URI
/controller/dc/v3/logicnetwork/routers/router/unbind-route-policy
Request Parameters
Sample Request
HTTP
PUT /controller/dc/v3/logicnetwork/routers/router/unbind-route-policy HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"bindRoutePolicyDto" : {
"routerId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"routePolicyId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"type" : "ribonly, import, export, preference.",
"instanceType" : "vpn,evpn,both",
"deviceGroupIds" : [
"DBB702C3-7719-4FE6-A5AD-3A9C9E265309"
],
"additional" : {
"producer" : "default",
"createAt" : "2017-08-10 16:30:40",
"updateAt" : "2017-08-10 16:30:40"
}
}
}
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
One or more device groups need to be bound to a logical router.
Functions
Bind one or more device groups to a logical router. If multiple device groups need
to be bound, bind them in one transaction. If one device group fails to be bound,
all device groups will be rolled back.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 200 times/minute.
HTTP Method
PUT
URI
/controller/dc/v3/logicnetwork/routers/router/{id}/bind-devicegroups
Request Parameters
Sample Request
HTTP
PUT /controller/dc/v3/logicnetwork/routers/router/DBB702C3-7719-4FE6-A5AD-3A9C9E265309/bind-
devicegroups HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"devicegroup" : {
"logicRouterId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"bussinessId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"bussinessType" : "DciRoutePolicy",
"devicegroups" : [
"DBB702C3-7719-4FE6-A5AD-3A9C9E265309"
]
}
}
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
One or more device groups need to be unbound from a logical router.
Functions
Unbind one or more device groups from a logical router. If multiple device groups
need to be unbound, unbind them in one transaction. If one device group fails to
be unbound, all device groups will be rolled back.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 200 times/minute.
HTTP Method
PUT
URI
/controller/dc/v3/logicnetwork/routers/router/{id}/unbind-devicegroups
Request Parameters
Sample Request
HTTP
PUT /controller/dc/v3/logicnetwork/routers/router/DBB702C3-7719-4FE6-A5AD-3A9C9E265309/unbind-
devicegroups HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"devicegroup" : {
"logicRouterId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"bussinessId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"bussinessType" : "DciRoutePolicy",
"devicegroups" : [
"DBB702C3-7719-4FE6-A5AD-3A9C9E265309"
]
}
}
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
The binding relationship between a logical router and an external gateway needs
to be queried.
Functions
Query the binding relationship between a logical router and an external gateway.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/controller/dc/v3/logicnetwork/routers/router/bind-external-gateway
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v3/logicnetwork/routers/router/bind-external-gateway HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"bindExternalGatewayInfo" : [
{
"routerId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"additional" : {
"producer" : "default",
"createAt" : "2017-08-10 16:30:40",
"updateAt" : "2017-08-10 16:30:40"
}
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
An external gateway needs to be bound to a logical router.
Functions
Bind an external gateway to a logical router.
Constraints
User role: northbound operator.
HTTP Method
PUT
URI
/controller/dc/v3/logicnetwork/routers/router/bind-external-gateway
Request Parameters
Sample Request
HTTP
PUT /controller/dc/v3/logicnetwork/routers/router/bind-external-gateway HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"routerId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"additional" : {
"producer" : "default",
"createAt" : "2017-08-10 16:30:40",
"updateAt" : "2017-08-10 16:30:40"
}
}
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Active and standby fabrics of a logical router need to be switched.
Functions
Switch active and standby fabrics of a logical router that has been bound. Only
the distributed fabric is supported.
Constraints
User roles: northbound operator and system administrator.
Concurrency specification: ≤ 200 times/minute.
HTTP Method
POST
URI
/controller/dc/v3/logicnetwork/routers/switchfabricrole
Request Parameters
Sample Request
HTTP
POST /controller/dc/v3/logicnetwork/routers/switchfabricrole HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"logicRouterIds" : [
"2b1daff5-44f1-4209-b7ef-c0277b4b2a01"
]
}
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"logicRouterIds" : [
"2b1daff5-44f1-4209-b7ef-c0277b4b2a01"
],
"taskId" : "2b1daff5-44f1-4209-b7ef-c0277b4b2a01"
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A Layer 3 logical interface needs to be created.
Functions
Create a Layer 3 logical port.
Constraints
User role: northbound operator.
A created router interface can be unbound from a subnet on the GUI.
Concurrency specification: ≤ 200 times/minute.
HTTP Method
POST
URI
/controller/dc/v3/logicnetwork/interfaces
Request Parameters
Sample Request
HTTP
POST /controller/dc/v3/logicnetwork/interfaces HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"interface" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "logicInterfaceName",
"description" : "description",
"logicRouterId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"externalGatewayId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"interfaceType" : "RouterInterface",
"mac" : "00:00:5E:00:01:01",
"ip" : {
"subnetId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"subnetIds" : ["DBB702C3-7719-4FE6-A5AD-3A9C9E265309"],
"ip" : "192.168.1.1/24"
},
"subIp" : ["192.168.1.1/24"],
"logicSwitchId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"connect" : {
"type" : "Dot1q",
"location" : [
{
"portName" : "portName",
"portId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceIp" : "192.168.1.1"
}
],
"vlanId" : 10,
"vniAllocType" : "Automatic",
"vlanAllocType" : "Noalloc",
"vni" : 10,
"subInterfaceNum" : 2000,
"peerVtepIp" : ["192.168.1.1"],
"accessMode" : "Nni",
"routeInterface" : false,
"arpDirectRouteEnable" : false,
"ndDirectRouteEnable" : false
},
"connectIp" : ["192.168.1.1/24"],
"tenantId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"additional" : {
"producer" : "default",
"createAt" : "2017-08-10 16:30:40",
"updateAt" : "2017-08-10 16:30:40"
}
}
]
}
Response Parameters
Response status code 204: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Sample Response
Response status code 204: successfully
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
The logical interface list needs to be queried.
Functions
Query logical interfaces based on the configuration source, logical switch (and
port type), or logical router.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/controller/dc/v3/logicnetwork/interfaces
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v3/logicnetwork/interfaces?
producer=CloudPlatform1&logicRouterId=DBB702C3-7719-4FE6-
A5AD-3A9C9E265309&externalGatewayId=DBB702C3-7719-4FE6-
A5AD-3A9C9E265309&logicSwitchId=DBB702C3-7719-4FE6-
A5AD-3A9C9E265309&interfaceType=RouterInterface&pageIndex=1&pageSize=1 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"interface" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "logicInterfaceName",
"description" : "description",
"logicRouterId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"externalGatewayId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"interfaceType" : "RouterInterface",
"mac" : "00:00:5E:00:01:01",
"ip" : {
"subnetId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"subnetIds" : ["DBB702C3-7719-4FE6-A5AD-3A9C9E265309"],
"ip" : "192.168.1.1/24"
},
"subIp" : ["192.168.1.1/24"],
"logicSwitchId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"connect" : {
"type" : "Dot1q",
"location" : [
{
"portName" : "portName",
"portId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceIp" : "192.168.1.1"
}
],
"vlanId" : 10,
"vniAllocType" : "Automatic",
"vlanAllocType" : "Noalloc",
"vni" : 10,
"subInterfaceNum" : 2000,
"peerVtepIp" : ["192.168.1.1"],
"accessMode" : "Nni",
"routeInterface" : false,
"arpDirectRouteEnable" : false,
"ndDirectRouteEnable" : false
},
"connectIp" : ["192.168.1.1/24"],
"tenantId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"additional" : {
"producer" : "default",
"createAt" : "2017-08-10 16:30:40",
"updateAt" : "2017-08-10 16:30:40"
}
}
],
"totalNum" : 200,
"pageIndex" : 1,
"pageSize" : 1
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A Layer 3 logical port needs to be queried by ID.
Functions
Query a Layer 3 logical port by ID.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/controller/dc/v3/logicnetwork/interfaces/interface/{id}
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v3/logicnetwork/interfaces/interface/DBB702C3-7719-4FE6-A5AD-3A9C9E265309 HTTP/
1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"interface" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "logicInterfaceName",
"description" : "description",
"logicRouterId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"externalGatewayId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"interfaceType" : "RouterInterface",
"mac" : "00:00:5E:00:01:01",
"ip" : {
"subnetId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"subnetIds" : ["DBB702C3-7719-4FE6-A5AD-3A9C9E265309"],
"ip" : "192.168.1.1/24"
},
"subIp" : ["192.168.1.1/24"],
"logicSwitchId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"connect" : {
"type" : "Dot1q",
"location" : [
{
"portName" : "portName",
"portId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceIp" : "192.168.1.1"
}
],
"vlanId" : 10,
"vniAllocType" : "Automatic",
"vlanAllocType" : "Noalloc",
"vni" : 10,
"subInterfaceNum" : 2000,
"peerVtepIp" : ["192.168.1.1"],
"accessMode" : "Nni",
"routeInterface" : false,
"arpDirectRouteEnable" : false,
"ndDirectRouteEnable" : false
},
"connectIp" : ["192.168.1.1/24"],
"tenantId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"additional" : {
"producer" : "default",
"createAt" : "2017-08-10 16:30:40",
"updateAt" : "2017-08-10 16:30:40"
}
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A Layer 3 logical interface needs to be updated.
Functions
Update a Layer 3 logical port.
Constraints
User role: northbound operator.
HTTP Method
PUT
URI
/controller/dc/v3/logicnetwork/interfaces/interface/{id}
Request Parameters
Sample Request
HTTP
PUT /controller/dc/v3/logicnetwork/interfaces/interface/DBB702C3-7719-4FE6-A5AD-3A9C9E266309 HTTP/
1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"interface" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "logicInterfaceName",
"description" : "description",
"logicRouterId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"externalGatewayId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"interfaceType" : "RouterInterface",
"mac" : "00:00:5E:00:01:01",
"ip" : {
"subnetId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"subnetIds" : ["DBB702C3-7719-4FE6-A5AD-3A9C9E265309"],
"ip" : "192.168.1.1/24"
},
"subIp" : ["192.168.1.1/24"],
"logicSwitchId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"connect" : {
"type" : "Dot1q",
"location" : [
{
"portName" : "portName",
"portId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceIp" : "192.168.1.1"
}
],
"vlanId" : 10,
"vniAllocType" : "Automatic",
"vlanAllocType" : "Noalloc",
"vni" : 10,
"subInterfaceNum" : 2000,
"peerVtepIp" : ["192.168.1.1"],
"accessMode" : "Nni",
"routeInterface" : false,
"arpDirectRouteEnable" : false,
"ndDirectRouteEnable" : false
},
"connectIp" : ["192.168.1.1/24"],
"tenantId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"additional" : {
"producer" : "default",
"createAt" : "2017-08-10 16:30:40",
"updateAt" : "2017-08-10 16:30:40"
}
}
]
}
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"interface" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "logicInterfaceName",
"description" : "description",
"logicRouterId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"externalGatewayId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"interfaceType" : "RouterInterface",
"mac" : "00:00:5E:00:01:01",
"ip" : {
"subnetId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"subnetIds" : ["DBB702C3-7719-4FE6-A5AD-3A9C9E265309"],
"ip" : "192.168.1.1/24"
},
"subIp" : ["192.168.1.1/24"],
"logicSwitchId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"connect" : {
"type" : "Dot1q",
"location" : [
{
"portName" : "portName",
"portId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceIp" : "192.168.1.1"
}
],
"vlanId" : 10,
"vniAllocType" : "Automatic",
"vlanAllocType" : "Noalloc",
"vni" : 10,
"subInterfaceNum" : 2000,
"peerVtepIp" : ["192.168.1.1"],
"accessMode" : "Nni",
"routeInterface" : false,
"arpDirectRouteEnable" : false,
"ndDirectRouteEnable" : false
},
"connectIp" : ["192.168.1.1/24"],
"tenantId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"additional" : {
"producer" : "default",
"createAt" : "2017-08-10 16:30:40",
"updateAt" : "2017-08-10 16:30:40"
}
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A Layer 3 logical port needs to be deleted.
Functions
Delete a Layer 3 logical port.
Constraints
User role: northbound operator.
The subnet bound on the GUI cannot be unbound using this API. You can unbind
the subnet by invoking the API for updating a logical switch.
Concurrency specification: ≤ 200 times/minute.
HTTP Method
DELETE
URI
/controller/dc/v3/logicnetwork/interfaces/interface/{id}
Request Parameters
N/A
Sample Request
HTTP
DELETE /controller/dc/v3/logicnetwork/interfaces/interface/DBB702C3-7719-4FE6-A5AD-3A9C9E265309?
producer=default HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 204: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 204: successfully
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A logical link needs to be created.
Functions
Associate the logical switch with the logical router.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 100 times/minute.
HTTP Method
POST
URI
/controller/dc/v3/logicnetwork/links
Request Parameters
Sample Request
HTTP
POST /controller/dc/v3/logicnetwork/links HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"link" : [
{
"id" : "2711c7c3-cec9-490e-b222-8bef7f239523",
"logicSwitchId" : "daa9a6bd-5634-4d86-89f9-73ee1085b270",
"logicRouterId" : "97e06d78-f1f0-401e-8abe-831c67e41c15",
"logicNetworkId" : "c321ed67-1453-4726-85f8-7a2ff56a19e2",
"additional" : {
"producer" : "default",
"createAt" : "2017-08-10 16:30:40",
"updateAt" : "2017-08-10 16:30:40"
}
}
]
}
Response Parameters
Response status code 204: Response status code 204: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Sample Response
Response status code 204: Response status code 204: OK.
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Information about all logical links needs to be queried.
Functions
Query the information list of all logical links.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/controller/dc/v3/logicnetwork/links
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v3/logicnetwork/links?
producer=default&logicSwitchId=daa9a6bd-5634-4d86-89f9-73ee1085b270&logicRouterId=97e06d78-
f1f0-401e-8abe-831c67e41c15&logicNetworkId=c321ed67-1453-4726-85f8-7a2ff56a19e2&pageIndex=1&pa
geSize=1 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: Response status code 200: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: Response status code 200: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"link" : [
{
"id" : "2711c7c3-cec9-490e-b222-8bef7f239523",
"logicSwitchId" : "daa9a6bd-5634-4d86-89f9-73ee1085b270",
"logicRouterId" : "97e06d78-f1f0-401e-8abe-831c67e41c15",
"logicNetworkId" : "c321ed67-1453-4726-85f8-7a2ff56a19e2",
"additional" : {
"producer" : "default",
"createAt" : "2017-08-10 16:30:40",
"updateAt" : "2017-08-10 16:30:40"
}
}
],
"totalNum" : 200,
"pageIndex" : 1,
"pageSize" : 1
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Logical link information needs to be queried.
Functions
Query logical link information.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 100 times/minute.
HTTP Method
GET
URI
/controller/dc/v3/logicnetwork/links/link/{id}
Request Parameters
N/A
Sample Request
HTTP
Response Parameters
Response status code 200: Response status code 200: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Sample Response
Response status code 200: Response status code 200: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"link" : [
{
"id" : "2711c7c3-cec9-490e-b222-8bef7f239523",
"logicSwitchId" : "daa9a6bd-5634-4d86-89f9-73ee1085b270",
"logicRouterId" : "97e06d78-f1f0-401e-8abe-831c67e41c15",
"logicNetworkId" : "c321ed67-1453-4726-85f8-7a2ff56a19e2",
"additional" : {
"producer" : "default",
"createAt" : "2017-08-10 16:30:40",
"updateAt" : "2017-08-10 16:30:40"
}
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A logical link needs to be deleted.
Functions
Disassociate the logical switch from the logical router.
Constraints
User role: northbound operator.
HTTP Method
DELETE
URI
/controller/dc/v3/logicnetwork/links/link/{id}
Request Parameters
N/A
Sample Request
HTTP
DELETE /controller/dc/v3/logicnetwork/links/link/DBB702C3-7719-4FE6-A5AD-3A9C9E265309 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 204: Response status code 204: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 204: Response status code 204: OK.
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
An end port needs to be created. The following fields are mandatory: id, name,
and logicNetworkId.
Functions
Create an end port based on the request.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 200 times/minute.
HTTP Method
POST
URI
/controller/dc/v3/logicnetwork/endports
Request Parameters
Sample Request
HTTP
POST /controller/dc/v3/logicnetwork/endports HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"endPort" : {
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"logicPortId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "name",
"description" : "description",
"logicNetworkId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"location" : "10",
"vmName" : "10",
"ipv4" : ["192.168.1.1"],
"ipv6" : ["FE80::a1"]
}
}
Response Parameters
Response status code 204: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Sample Response
Response status code 204: successfully
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
All end ports need to be queried.
Functions
Query all end ports under a specified condition.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/controller/dc/v3/logicnetwork/endports
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v3/logicnetwork/endports?
pageSize=10&pageIndex=1&logicNetworkId=DBB702C3-7719-4FE6-
A5AD-3A9C9E265309&tenantId=DBB702C3-7719-4FE6-A5AD-3A9C9E265309&producer=default HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"endPorts" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"logicPortId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "name",
"description" : "description",
"logicNetworkId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"location" : "10",
"vmName" : "10",
"ipv4" : ["192.168.1.1"],
"ipv6" : ["FE80::a1"],
"tenantId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"type" : "Manually",
"accessMode" : "Layer2",
"additional" : {
"producer" : "default",
"createAt" : "2017-08-10 16:30:40",
"updateAt" : "2017-08-10 16:30:40"
},
"advance" : {
"vlan" : 200,
"egressVlan" : 200,
"mac" : "00:00:5E:00:01:01",
"externalNetworkId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"ipv4Prefixs" : ["192.168.1.0/24"],
"ipv6Prefixs" : ["FE80::/64"],
"qosTemplate" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309"
},
"dnsAssignment" : [
{
"ipAddress" : "192.168.1.1",
"hostName" : "hostName",
"fqdn" : "hostName.mycompany.com"
}
]
}
],
"totalNum" : 200,
"pageIndex" : 1,
"pageSize" : 1
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Query an End Port by ID.
Functions
Query an end port by ID.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 200 times/minute.
HTTP Method
GET
URI
/controller/dc/v3/logicnetwork/endports/endport/{id}
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v3/logicnetwork/endports/endport/DBB702C3-7719-4FE6-A5AD-3A9C9E265309 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"endPort" : {
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"logicPortId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "name",
"description" : "description",
"logicNetworkId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"location" : "10",
"vmName" : "10",
"ipv4" : ["192.168.1.1"],
"ipv6" : ["FE80::a1"],
"tenantId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"type" : "Manually",
"accessMode" : "Layer2",
"additional" : {
"producer" : "default",
"createAt" : "2017-08-10 16:30:40",
"updateAt" : "2017-08-10 16:30:40"
},
"advance" : {
"vlan" : 200,
"egressVlan" : 200,
"mac" : "00:00:5E:00:01:01",
"externalNetworkId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"ipv4Prefixs" : ["192.168.1.0/24"],
"ipv6Prefixs" : ["FE80::/64"],
"qosTemplate" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309"
},
"dnsAssignment" : [
{
"ipAddress" : "192.168.1.1",
"hostName" : "hostName",
"fqdn" : "hostName.mycompany.com"
}
]
}
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Typical Scenarios
An end port needs to be updated by ID. The fields that can be updated include
name, description, location, vmName, ipv4, and ipv6.
Functions
Update an end port by ID.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 200 times/minute.
HTTP Method
PUT
URI
/controller/dc/v3/logicnetwork/endports/endport/{id}
Request Parameters
Sample Request
HTTP
PUT /controller/dc/v3/logicnetwork/endports/endport/DBB702C3-7719-4FE6-A5AD-3A9C9E265309 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"endPort" : {
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"logicPortId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "name",
"description" : "description",
"logicNetworkId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"location" : "10",
"vmName" : "10",
"ipv4" : ["192.168.1.1"],
"ipv6" : ["FE80::a1"]
}
}
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"endPort" : {
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"logicPortId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "name",
"description" : "description",
"logicNetworkId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"location" : "10",
"vmName" : "10",
"ipv4" : ["192.168.1.1"],
"ipv6" : ["FE80::a1"]
}
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
An end port needs to be deleted by ID.
Functions
ID for deleting an end port.
Constraints
User role: northbound operator.
HTTP Method
DELETE
URI
/controller/dc/v3/logicnetwork/endports/endport/{id}
Request Parameters
N/A
Sample Request
HTTP
DELETE /controller/dc/v3/logicnetwork/endports/endport/DBB702C3-7719-4FE6-A5AD-3A9C9E265309
HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 204: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 204: successfully
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A logical VAS NE needs to be created.
Functions
Create a logical VAS NE, such as a logical firewall or a logical LB.
Constraints
User role: northbound operator.
HTTP Method
POST
URI
/controller/dc/v3/servicenetwork/vass
Request Parameters
Sample Request
HTTP
POST /controller/dc/v3/servicenetwork/vass HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"vas" : [
{
"id" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"name" : "logicfw1",
"description" : "This is vas",
"type" : "Firewall",
"logicNetworkId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"logicRouterId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"tenantId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"designatedName" : "logicfw2",
"vaspoolId" : [
"a915f8c1-d06f-46cd-a968-38328e0ab2d3"
],
"additional" : {
"producer" : "CloudPlatform1",
"createAt" : "2016-10-05T20:11:16.000+00:00",
"updateAt" : "2016-10-05T20:11:16.000+00:00"
}
}
]
}
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"vas" : [
{
"id" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"name" : "logicfw1",
"description" : "This is vas",
"type" : "Firewall",
"logicNetworkId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"logicRouterId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"tenantId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"designatedName" : "logicfw2",
"vaspoolId" : [
"a915f8c1-d06f-46cd-a968-38328e0ab2d3"
],
"additional" : {
"producer" : "CloudPlatform1",
"createAt" : "2016-10-05T20:11:16.000+00:00",
"updateAt" : "2016-10-05T20:11:16.000+00:00"
}
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
The logical VAS list needs to be queried.
Functions
Query logical VAS device groups based on the configuration source, tenant, logical
network, logical router, and type.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/controller/dc/v3/servicenetwork/vass
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v3/servicenetwork/vass?producer=CloudPlatform1&vasName=vas1&tenantId=a915f8c1-
d06f-46cd-a968-38328e0ab2d3&logicNetworkId=a915f8c1-d06f-46cd-
a968-38328e0ab2d3&logicRouterId=a915f8c1-d06f-46cd-
a968-38328e0ab2d3&type=Firewall&pageIndex=1&pageSize=10 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"vas" : [
{
"id" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"name" : "logicfw1",
"description" : "This is vas",
"type" : "Firewall",
"logicNetworkId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"logicRouterId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"tenantId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"designatedName" : "logicfw2",
"vaspoolId" : [
"a915f8c1-d06f-46cd-a968-38328e0ab2d3"
],
"additional" : {
"producer" : "CloudPlatform1",
"createAt" : "2016-10-05T20:11:16.000+00:00",
"updateAt" : "2016-10-05T20:11:16.000+00:00"
}
}
],
"totalNum" : 100,
"pageIndex" : 1,
"pageSize" : 4000
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A logical VAS NE needs to be queried by ID.
Functions
Query a logical VAS NE by ID.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 200 times/minute.
Single-interface performance: ≤ 3600s.
HTTP Method
GET
URI
/controller/dc/v3/servicenetwork/vass/vas/{id}
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v3/servicenetwork/vass/vas/a915f8c1-d06f-46cd-a968-38328e0ab2d3 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: successfully
LogicVasDtoWrapper parameters, For details, see Table 1-1117.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"vas" : [
{
"id" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"name" : "logicfw1",
"description" : "This is vas",
"type" : "Firewall",
"logicNetworkId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"logicRouterId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"tenantId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"designatedName" : "logicfw2",
"vaspoolId" : [
"a915f8c1-d06f-46cd-a968-38328e0ab2d3"
],
"additional" : {
"producer" : "CloudPlatform1",
"createAt" : "2016-10-05T20:11:16.000+00:00",
"updateAt" : "2016-10-05T20:11:16.000+00:00"
}
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Update a Logical VAS NE by ID.
Functions
Update a logical VAS NE by ID.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 200 times/minute.
Single-interface performance: ≤ 3600s.
HTTP Method
PUT
URI
/controller/dc/v3/servicenetwork/vass/vas/{id}
Request Parameters
Sample Request
HTTP
PUT /controller/dc/v3/servicenetwork/vass/vas/a915f8c1-d06f-46cd-a968-38328e0ab2d3 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"vas" : [
{
"id" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"name" : "logicfw1",
"description" : "This is vas",
"type" : "Firewall",
"logicNetworkId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"logicRouterId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"tenantId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"designatedName" : "logicfw2",
"vaspoolId" : [
"a915f8c1-d06f-46cd-a968-38328e0ab2d3"
],
"additional" : {
"producer" : "CloudPlatform1",
"createAt" : "2016-10-05T20:11:16.000+00:00",
"updateAt" : "2016-10-05T20:11:16.000+00:00"
}
}
]
}
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"vas" : [
{
"id" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"name" : "logicfw1",
"description" : "This is vas",
"type" : "Firewall",
"logicNetworkId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"logicRouterId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"tenantId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"designatedName" : "logicfw2",
"vaspoolId" : [
"a915f8c1-d06f-46cd-a968-38328e0ab2d3"
],
"additional" : {
"producer" : "CloudPlatform1",
"createAt" : "2016-10-05T20:11:16.000+00:00",
"updateAt" : "2016-10-05T20:11:16.000+00:00"
}
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A logical VAS NE needs to be deleted by ID.
Functions
Delete a logical VAS NE by ID.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 200 times/minute.
Single-interface performance: ≤ 3600s.
HTTP Method
DELETE
URI
/controller/dc/v3/servicenetwork/vass/vas/{id}
Request Parameters
N/A
Sample Request
HTTP
DELETE /controller/dc/v3/servicenetwork/vass/vas/a915f8c1-d06f-46cd-a968-38328e0ab2d3?
producer=Agile-Controller-MDC HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 204: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 204: successfully
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Logical VAS configurations need to be queried.
Functions
Query southbound configurations of a logical VAS.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 200 times/minute.
Single-interface performance: ≤ 3600s.
HTTP Method
GET
URI
/controller/dc/v3/servicenetwork/vass/vas/{id}/detail
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v3/servicenetwork/vass/vas/a915f8c1-d06f-46cd-a968-38328e0ab2d3/detail HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"vas" : [
{
"deviceId" : "d6e575d5-3a86-393b-b312-cf1936e7c212",
"name" : "vsys_why11_5058_1",
"type" : "paloalto",
"vasport" : [
{
"name" : "ethernet1/11.2002",
"vlan" : 2002,
"ipv4" : "10.1.1.1/29",
"ipv6" : "FF80::1/126"
}
],
"staticRoute" : [
{
"destination" : "10.1.1.0/24",
"nexthop" : "10.1.1.1"
}
]
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A logical link needs to be queried by ID on a logical VAS device.
Functions
Query a logical link by ID on a logical VAS device.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/controller/dc/v3/servicenetwork/vass/vas/{id}/vaslink
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v3/servicenetwork/vass/vas/a915f8c1-d06f-46cd-a968-38328e0ab2d3/vaslink HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"internallink" : [
{
"id" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"name" : "internal_link1",
"routerIp" : "10.1.1.1/24",
"vasIp" : "10.1.1.1/24",
"vlan" : "100",
"vasportId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"routerIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032/127",
"vasIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032/128"
}
],
"externallink" : [
{
"id" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"name" : "external_link1",
"externalGatewayId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"externalNetworkId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"vasportId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"routerIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032/127",
"vasIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032/128",
"routerIp" : "10.1.1.1/30",
"vasIp" : "10.1.1.1/30",
"vlan" : "100"
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
An internal link needs to be created by ID on a logical VAS device.
Functions
Create an internal link by ID on a logical VAS device.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 200 times/minute.
Single-interface performance: ≤ 3600s.
HTTP Method
POST
URI
/controller/dc/v3/servicenetwork/vass/vas/{id}/vaslink/internallinks
Request Parameters
Sample Request
HTTP
POST /controller/dc/v3/servicenetwork/vass/vas/a915f8c1-d06f-46cd-a968-38328e0ab2d3/vaslink/
internallinks HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"internallink" : [
{
"id" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"name" : "internal_link1",
"routerIp" : "10.1.1.1/24",
"vasIp" : "10.1.1.1/24",
"vlan" : "100",
"vasportId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"routerIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032/127",
"vasIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032/128"
}
]
}
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"internallink" : [
{
"id" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"name" : "internal_link1",
"routerIp" : "10.1.1.1/24",
"vasIp" : "10.1.1.1/24",
"vlan" : "100",
"vasportId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"routerIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032/127",
"vasIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032/128"
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
An internal link needs to be deleted.
Functions
Delete an internal link based on the VAS NE ID and link ID.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 200 times/minute.
Single-interface performance: ≤ 3600s.
HTTP Method
DELETE
URI
/controller/dc/v3/servicenetwork/vass/vas/{vasId}/vaslink/internallinks/internallink/
{id}
Request Parameters
N/A
Sample Request
HTTP
DELETE /controller/dc/v3/servicenetwork/vass/vas/a915f8c1-d06f-46cd-a968-38328e0ab2d3/vaslink/
internallinks/internallink/a915f8c1-d06f-46cd-a968-38328e0ab2d3?producer=Agile-Controller-MDC HTTP/
1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 204: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Sample Response
Response status code 204: successfully
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
New routes need to be added for a logical VAS device.
Functions
Add new routes for a logical VAS device.
Constraints
User role: northbound operator.
HTTP Method
POST
URI
/controller/dc/v3/servicenetwork/vass/vas/{vasId}/routes
Request Parameters
Sample Request
HTTP
POST /controller/dc/v3/servicenetwork/vass/vas/a915f8c1-d06f-46cd-a968-38328e0ab2d3/routes HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"routeId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"vasId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"destination" : [
"10.1.1.0/24"
],
"destRouterId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"additional" : {
"producer" : "CloudPlatform1",
"createAt" : "2016-10-05T20:11:16.000+00:00",
"updateAt" : "2016-10-05T20:11:16.000+00:00"
}
}
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"routeId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"vasId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"destination" : [
"10.1.1.0/24"
],
"destRouterId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"additional" : {
"producer" : "CloudPlatform1",
"createAt" : "2016-10-05T20:11:16.000+00:00",
"updateAt" : "2016-10-05T20:11:16.000+00:00"
}
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
New routes need to be queried in batches for a logical VAS device.
Functions
Query new routes for a logical VAS device in batches.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 200 times/minute.
Single-interface performance: ≤ 3600s.
HTTP Method
GET
URI
/controller/dc/v3/servicenetwork/vass/routes
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v3/servicenetwork/vass/routes?routeId=a915f8c1-d06f-46cd-
a968-38328e0ab2d3&producer=Agile-Controller-MDC HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"vasRoutes" : [
{
"routeId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"vasId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"destination" : [
"10.1.1.0/24"
],
"destRouterId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"additional" : {
"producer" : "CloudPlatform1",
"createAt" : "2016-10-05T20:11:16.000+00:00",
"updateAt" : "2016-10-05T20:11:16.000+00:00"
}
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
New routes need to be updated for a logical VAS device.
Functions
Update new routes for a logical VAS device.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 200 times/minute.
Single-interface performance: ≤ 3600s.
HTTP Method
PUT
URI
/controller/dc/v3/servicenetwork/vass/vas/{vasId}/routes/{routeId}
Request Parameters
Sample Request
HTTP
PUT /controller/dc/v3/servicenetwork/vass/vas/a915f8c1-d06f-46cd-a968-38328e0ab2d3/routes/a915f8c1-
d06f-46cd-a968-38328e0ab2d3 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"routeId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"vasId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"destination" : [
"10.1.1.0/24"
],
"destRouterId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"additional" : {
"producer" : "CloudPlatform1",
"createAt" : "2016-10-05T20:11:16.000+00:00",
"updateAt" : "2016-10-05T20:11:16.000+00:00"
}
}
Response Parameters
Response status code 200: successfully
VasRoutesDto parameters, For details, see Table 1-1146.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"routeId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"vasId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"destination" : [
"10.1.1.0/24"
],
"destRouterId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"additional" : {
"producer" : "CloudPlatform1",
"createAt" : "2016-10-05T20:11:16.000+00:00",
"updateAt" : "2016-10-05T20:11:16.000+00:00"
}
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
New routes need to be deleted from a logical VAS device.
Functions
Delete new routes from a logical VAS device.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 200 times/minute.
Single-interface performance: ≤ 3600s.
HTTP Method
DELETE
URI
/controller/dc/v3/servicenetwork/vass/vas/{vasId}/routes/{routeId}
Request Parameters
N/A
Sample Request
HTTP
DELETE /controller/dc/v3/servicenetwork/vass/vas/a915f8c1-d06f-46cd-a968-38328e0ab2d3/routes/
a915f8c1-d06f-46cd-a968-38328e0ab2d3 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 204: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 204: successfully
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
2. Specify the VXLAN tunnel list and VXLAN ingress replication table.
Typical Scenarios
End ports on VMs/BMs need to be queried.
Functions
Query end ports on VMs/BMs based on a specified logical switch or physical
device.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/controller/dc/v3/logicnetwork/logictopo/endport
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v3/logicnetwork/logictopo/endport?deviceIp=10.23.15.1&deviceId=DBB702C3-7719-4FE6-
A5AD-3A9C9E265309&logicSwitchId=DBB702C3-7719-4FE6-
A5AD-3A9C9E265309&logicRouterId=DBB702C3-7719-4FE6-
A5AD-3A9C9E265309&endPortId=DBB702C3-7719-4FE6-A5AD-3A9C9E265309&mac=00:5E:
00:63:96:95&ip=192.168.1.1&vmName=vmPort&type=VM&hostName=hostName&pageIndex=1&pageSize=1
HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"endPort" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "name",
"mac" : "00:5E:00:63:96:95",
"vmName" : "vmname",
"vmmName" : "vmmname",
"vmmType" : "Openstack",
"hostName" : "hostname",
"type" : "VM",
"deviceOwner" : "compute:nova",
"metaData" : "metaData",
"status" : "DOWN",
"connectPort" : [
{
"deviceId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"ifName" : "ifname",
"deviceIp" : "192.168.1.1",
"devicePortName" : "10GE1/0/10",
"deviceName" : "Device1"
}
],
"ip" : ["10.10.10.1"],
"vlan" : 10,
"vni" : 10,
"belongInfo" : {
"logicPortId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"logicSwitchId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"logicSwitchName" : "logicswitch1",
"logicRouterId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"logicRouterName" : "logicrouter1",
"tenantId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"fabricIdName" : "tenant1",
"producer" : "default",
"vpcName" : "VPC1"
},
"createTime" : "2017-08-10 16:30:40",
"updateTime" : "2017-08-10 16:30:40",
"namespace" : "default",
"containerStatus" : "RUNNING"
}
],
"totalNum" : 200,
"pageIndex" : 1,
"pageSize" : 1
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
The device mapping information of all logical ports needs to be queried based on
a specified condition.
Functions
Query the device mapping information of all logical interfaces based on a
specified device (with a specified logical router and interface type), a specified
logical router, and a specified logical interface.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/controller/dc/v3/logicnetwork/logictopo/interface-map
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v3/logicnetwork/logictopo/interface-map?
deviceIp=192.168.1.1&deviceId=DBB702C3-7719-4FE6-
A5AD-3A9C9E265309&logicRouterId=DBB702C3-7719-4FE6-
A5AD-3A9C9E265309&logicInterfaceId=DBB702C3-7719-4FE6-
A5AD-3A9C9E265309&interfaceType=ConnectInterface&pageIndex=1&pageSize=1 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"interface" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "name",
"logicRouterId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"interfaceType" : "ConnectInterface",
"logicRouterName" : "router1",
"vrfName" : "vrf1",
"logicSwitchId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"logicSwitchName" : "switch1",
"physicalIfList" : [
{
"deviceId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"ifname" : "ifName1",
"ifstatus" : "DOWN",
"deviceIp" : "192.168.1.1",
"devicePortName" : "devicePort1"
}
]
}
],
"totalNum" : 200,
"pageIndex" : 1,
"pageSize" : 1
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
The device mapping information of all logical ports needs to be queried based on
a specified condition.
Functions
Query the device mapping information of all logical ports based on a specified
device (with a logical switch), a specified logical switch, and a specified logical
port.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 200 times/minute.
HTTP Method
GET
URI
/controller/dc/v3/logicnetwork/logictopo/port-map
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v3/logicnetwork/logictopo/port-map?
deviceIp=192.168.1.1&deviceId=DBB702C3-7719-4FE6-
A5AD-3A9C9E265309&logicPortId=DBB702C3-7719-4FE6-
A5AD-3A9C9E265309&logicSwitchId=DBB702C3-7719-4FE6-
A5AD-3A9C9E265309&pageIndex=1&pageSize=1 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"port" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "name1",
"bridgeDomainId" : 10,
"logicSwitchId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"logicSwitchName" : "switch1",
"physicalPortlist" : [
{
"deviceId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"ifname" : "ifName1",
"ifstatus" : "DOWN",
"deviceIp" : "192.168.1.1",
"devicePortName" : "devicePort1"
}
],
"endPort" : [
{
"endPortId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"endPortIp" : "192.168.1.1"
}
]
}
],
"totalNum" : 200,
"pageIndex" : 1,
"pageSize" : 1
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
1.9.7.11.4 Query the Device Mapping Information of All Logical Routers Based on a
Specified Condition
Typical Scenarios
The device mapping information of all logical routers needs to be queried based
on a specified condition.
Functions
Query the device mapping information of all logical routers based on a specified
device (with a logical router) or a specified logical router.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 200 times/minute.
HTTP Method
GET
URI
/controller/dc/v3/logicnetwork/logictopo/router-map
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v3/logicnetwork/logictopo/router-map?
deviceIp=192.168.1.1&deviceId=DBB702C3-7719-4FE6-
A5AD-3A9C9E265309&logicRouterId=DBB702C3-7719-4FE6-
A5AD-3A9C9E265309&pageIndex=1&pageSize=1 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"router" : [
{
"vrfName" : "vrfName",
"importRouteTargets" : ["10:111"],
"name" : "name",
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"vni" : 10,
"exportRouteTargets" : ["10:111"],
"deviceList" : [
{
"deviceGroupId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceIp" : "192.168.1.1",
"routeDistinguisher" : "RD"
}
],
"fabricList" : [
{
"fabricId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"fabricIdName" : "fabricId1"
}
]
}
],
"totalNum" : 200,
"pageIndex" : 1,
"pageSize" : 1
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
The device mapping information of all logical switches needs to be queried based
on a specified condition.
Functions
Query the device mapping information of all logical switches based on a specified
condition.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 200 times/minute.
HTTP Method
GET
URI
/controller/dc/v3/logicnetwork/logictopo/switch-map
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v3/logicnetwork/logictopo/switch-map?
deviceIp=192.168.1.1&deviceId=DBB702C3-7719-4FE6-
A5AD-3A9C9E265309&logicSwitchId=DBB702C3-7719-4FE6-
A5AD-3A9C9E265309&pageIndex=1&pageSize=1 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"switch" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"importRouteTargets" : ["10:111"],
"name" : "name1",
"bridgeDomainId" : 10,
"vni" : 10,
"exportRouteTargets" : ["10:111"],
"deviceList" : [
{
"deviceGroupId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceIp" : "192.168.1.1",
"routeDistinguisher" : "RD"
}
],
"fabricList" : [
{
"fabricId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"fabricIdName" : "fabricId1"
}
]
}
],
"totalNum" : 200,
"pageIndex" : 1,
"pageSize" : 1
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
VXLAN tunnels need to be queried by device.
Functions
Query VXLAN tunnels by device.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/controller/dc/v3/logicnetwork/logictopo/vxlan-tunnels
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v3/logicnetwork/logictopo/vxlan-tunnels?
deviceIp=192.168.1.1&deviceId=DBB702C3-7719-4FE6-A5AD-3A9C9E265309&pageIndex=1&pageSize=1
HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"vxlanTunnels" : [
{
"status" : "DOWN",
"peerVtepIp" : "192.168.1.1",
"localVtepIp" : "192.168.1.2"
}
],
"totalNum" : 200,
"pageIndex" : 1,
"pageSize" : 1
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
VXLAN ingress replication tables need to be queried by device.
Functions
Query all VXLAN ingress replication tables by device.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/controller/dc/v3/logicnetwork/logictopo/vni-peers
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v3/logicnetwork/logictopo/vni-peers?
deviceIp=192.168.1.1&deviceId=DBB702C3-7719-4FE6-A5AD-3A9C9E265309&pageIndex=1&pageSize=1
HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"vniPeer" : [
{
"localVtepIp" : "192.168.1.1",
"vni" : 10,
"peerVtepIp" : "192.168.1.2"
}
],
"totalNum" : 200,
"pageIndex" : 1,
"pageSize" : 1
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Devices need to be queried.
Functions
Query the device mapping information of all logical VAS devices based on a
specified condition, such as a logical VAS device, logical router, or specified device.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 200 times/minute.
Single-interface performance: ≤ 3600s.
HTTP Method
GET
URI
/controller/dc/v3/servicenetwork/logictopo/vas-map
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v3/servicenetwork/logictopo/vas-map?logicVasId=DBB702C3-7719-4FE6-
A5AD-3A9C9E26530&logicRouterId=DBB702C3-7719-4FE6-
A5AD-3A9C9E26530&deviceIp=172.16.0.1&deviceId=DBB702C3-7719-4FE6-
A5AD-3A9C9E26530&pageIndex=1&pageSize=4000 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect. example, the parameter type or
value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"vas" : [
{
"deviceInfo" : [
{
"vasPoolId" : "CBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceId" : "CBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceIp" : "172.16.0.1"
}
],
"logicRouterId" : "CCB702C3-7719-4FE6-A5AD-3A9C9E265309",
"vrfName" : "tenant1_router1_1",
"id" : "CCB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "logicfw1",
"type" : "Firewall",
"vsysName" : "vsys1",
"fabricDeviceInfo" : [
{
"routerDeviceId" : "BB702C3-7719-4FE6-A5AD-3A9C9E265309",
"routerDeviceIp" : "10.1.1.1",
"fabricId" : "BB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceGroupId" : "BB702C3-7719-4FE6-A5AD-3A9C9E265309"
}
],
"internallink" : [
{
"internallink" : [
{
"id" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"name" : "internal_link1",
"routerIp" : "10.1.1.1/24",
"vasIp" : "10.1.1.1/24",
"vlan" : "100",
"vasportId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"routerIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032/127",
"vasIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032/128"
}
],
"vasIfName" : "vlanif100",
"routerIfName" : "vBDIF100",
"link" : [
{
"deviceId" : "CCB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceIp" : "172.16.0.1",
"port" : "ETH-TRUNK 10",
"fabricDeviceId" : "CDD702C3-7719-4FE6-A5AD-3A9C9E265311",
"fabricDeviceIp" : "172.16.0.2",
"fabricPort" : "ETH-TRUNK 10"
}
]
}
],
"externallink" : [
{
"externallink" : [
{
"id" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"name" : "external_link1",
"externalGatewayId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"externalNetworkId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"vasportId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"routerIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032/127",
"vasIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032/128",
"routerIp" : "10.1.1.1/30",
"vasIp" : "10.1.1.1/30",
"vlan" : "100"
}
],
"vasIfName" : "vlanif100",
"routerIfName" : "vBDIF100",
"externalVsysName" : "vBDIF100",
"link" : [
{
"deviceId" : "CCB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceIp" : "172.16.0.1",
"port" : "ETH-TRUNK 10",
"fabricDeviceId" : "CDD702C3-7719-4FE6-A5AD-3A9C9E265311",
"fabricDeviceIp" : "172.16.0.2",
"fabricPort" : "ETH-TRUNK 10"
}
]
}
]
}
],
"totalNum" : 100,
"pageIndex" : 1,
"pageSize" : 4000
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect. example, the parameter type or
value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A logical port pair needs to be queried.
Functions
Query information about logical port pairs based on conditions.
Constraints
User role: northbound operator.
HTTP Method
POST
URI
/acdcn/v3/gbpapi/getLogicportpeers
Request Parameters
Sample Request
HTTP
POST /acdcn/v3/gbpapi/getLogicportpeers HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"logicPortIdList" : [
"DBB702C3-7719-4FE6-A5AD-3A9C9E265309"
],
"endPortIdList" : [
"DBB702C3-7719-4FE6-A5AD-3A9C9E265309"
],
"logicSwitchIdList" : [
"DBB702C3-7719-4FE6-A5AD-3A9C9E265309"
]
}
Response Parameters
Response status code 200: successfully
logicPo string - - - -
rtNam
e
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"portPeerList" : [
{
"logicPortId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"endPortId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"endPortName" : "endPort",
"endPortType" : 1,
"endPortIp" : "10.168.11.22",
"endPortMac" : "10",
"endPortVlanId" : 2000,
"endPortHostName" : "Host1",
"endPortHostId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"endPortVMName" : "Vm1",
"logicSwitchId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309"
}
],
"portPeerTotalNum" : 20
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Logical router information needs to be queried.
Functions
Query logical router information based on conditions.
Constraints
User role: northbound operator.
HTTP Method
POST
URI
/acdcn/v3/gbpapi/getLogicrouters
Request Parameters
Sample Request
HTTP
POST /acdcn/v3/gbpapi/getLogicrouters HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"logicRouterIdList" : [
"DBB702C3-7719-4FE6-A5AD-3A9C9E265309"
],
"tenantId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309"
}
Response Parameters
Response status code 200: successfully
vni int64 - - - -
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"logicRouterList" : [
{
"logicRouterId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"logicRouterName" : "router1",
"vrfName" : "Vrf1"
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Logical switch information needs to be queried.
Functions
Query logical switch information based on conditions.
Constraints
User role: northbound operator.
HTTP Method
POST
URI
/acdcn/v3/gbpapi/getLogicswitches
Request Parameters
Sample Request
HTTP
POST /acdcn/v3/gbpapi/getLogicswitches HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"logicSwitchIdList" : [
"DBB702C3-7719-4FE6-A5AD-3A9C9E265309"
],
"logicRouterId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309"
}
Response Parameters
Response status code 200: successfully
logicS string - - - -
witchN
ame
vni int32 - - - -
bd int32 - - - -
subnet array< - - - -
NameL string>
ist
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"logicSwitchList" : [
{
"logicSwitchId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"subnetList" : [
"DBB702C3-7719-4FE6-A5AD-3A9C9E265309"
]
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Subnet information needs to be queried.
Functions
Query subnet information based on search criteria.
Constraints
User role: northbound operator.
HTTP Method
POST
URI
/acdcn/v3/gbpapi/getSubnets
Request Parameters
Sample Request
HTTP
POST /acdcn/v3/gbpapi/getSubnets HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"logicSwitchIdList" : [
"DBB702C3-7719-4FE6-A5AD-3A9C9E265309"
],
"subnetList" : [
"DBB702C3-7719-4FE6-A5AD-3A9C9E265309"
]
}
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"subnetList" : [
{
"logicSwitchId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"subnetId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265388",
"subnetName" : "subnet1",
"cidr" : "10.168.11.0/24",
"allocation-pools" : [
{
"start" : "10.168.11.22",
"end" : "10.168.11.22"
}
]
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Logical port mapping information needs to be queried.
Functions
Query logical port mapping information based on conditions.
Constraints
User role: northbound operator.
HTTP Method
POST
URI
/acdcn/v3/gbpapi/mapping/logicport
Request Parameters
Sample Request
HTTP
POST /acdcn/v3/gbpapi/mapping/logicport HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"logicPortIdList" : [
"DBB702C3-7719-4FE6-A5AD-3A9C9E265309"
]
}
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"portMappingList" : [
{
"logicPortId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"underlayPortList" : [
{
"deviceId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265378",
"portId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"portName" : "port1"
}
]
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Information about all tenants needs to be queried.
Functions
Query information about all tenants.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/acdcn/v3/gbpapi/tenant
Request Parameters
N/A
Sample Request
HTTP
Response Parameters
Response status code 200: successfully
name string - - - -
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"tenantList" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309"
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
VPC interworking needs to be created.
Functions
Create a VPC communication instance.
Constraints
User role: northbound operator.
HTTP Method
POST
URI
/restconf/data/huawei-ac-neutron:neutron-cfg/vpc-connections
Request Parameters
Sample Request
HTTP
POST /restconf/data/huawei-ac-neutron:neutron-cfg/vpc-connections HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"vpc-connection" : ["11000000-2000-0000-0000-000000000020"]
}
Response Parameters
Response status code 201: Response status code 201: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Response status code 500: Response status code 500: Internal server error.
Sample Response
Response status code 201: Response status code 201: OK.
HTTP/1.1 201 Created
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
VPC interworking needs to be queried.
Functions
Query all VPC interworking relationships.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/restconf/data/huawei-ac-neutron:neutron-cfg/vpc-connections
Request Parameters
N/A
Sample Request
HTTP
GET /restconf/data/huawei-ac-neutron:neutron-cfg/vpc-connections HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: Response status code 200: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Response status code 500: Response status code 500: Internal server error.
Sample Response
Response status code 200: Response status code 200: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"vpc-connection" : ["11000000-2000-0000-0000-000000000020"]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A VPC interworking connection needs to be queried by name.
Functions
Query VPC interworking by name.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 500 times/minute.
Single-interface performance: ≤ 105s.
HTTP Method
GET
URI
/restconf/data/huawei-ac-neutron:neutron-cfg/vpc-connections/vpc-connection/
{id}
Request Parameters
N/A
Sample Request
HTTP
GET /restconf/data/huawei-ac-neutron:neutron-cfg/vpc-connections/vpc-connection/
11000000-2000-0000-0000-000000000020 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: Response status code 200: OK.
vpc-connections parameters, For details, see Table 1-1217.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 200: Response status code 200: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"vpc-connection" : ["11000000-2000-0000-0000-000000000020"]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
The VPC interworking needs to be updated.
Functions
Update VPC interworking.
Constraints
User role: northbound operator.
HTTP Method
PUT
URI
/restconf/data/huawei-ac-neutron:neutron-cfg/vpc-connections/vpc-connection/
{id}
Request Parameters
Sample Request
HTTP
PUT /restconf/data/huawei-ac-neutron:neutron-cfg/vpc-connections/vpc-connection/
11000000-2000-0000-0000-000000000020 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"vpc-connection" : ["11000000-2000-0000-0000-000000000020"]
}
Response Parameters
Response status code 204: Response status code 204: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Response status code 500: Response status code 500: Internal server error.
For details, see the response message body.
Sample Response
Response status code 204: Response status code 204: OK.
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
VPC interworking needs to be deleted.
Functions
Delete a VPC interworking connection based on the name.
Constraints
User role: northbound operator.
HTTP Method
DELETE
URI
/restconf/data/huawei-ac-neutron:neutron-cfg/vpc-connections/vpc-connection/
{id}
Request Parameters
N/A
Sample Request
HTTP
DELETE /restconf/data/huawei-ac-neutron:neutron-cfg/vpc-connections/vpc-connection/
11000000-2000-0000-0000-000000000020 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 204: Response status code 204: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Response status code 500: Response status code 500: Internal server error.
Sample Response
Response status code 204: Response status code 204: OK.
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 500: Response status code 500: Internal server error.
HTTP/1.1 500 Internal Server Error
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A VPC connection needs to be created.
Functions
Create a VPC connection.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 200 times/minute.
Single-interface performance: ≤ 3600s.
HTTP Method
POST
URI
/controller/dc/v3/servicenetwork/vpc-connects
Request Parameters
Sample Request
HTTP
POST /controller/dc/v3/servicenetwork/vpc-connects HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"vpc-connect" : [
{
"id" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"name" : "vpc001",
"description" : "This is vpc",
"localLogicRouterId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"localLogicRouterName" : "vpc002",
"localLogicVasId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"localLogicVasName" : "vas002",
"localCrossLink" : [
{
"routerIp" : "10.1.1.1",
"vasIp" : "10.1.1.1",
"vlan" : "100",
"routerIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032",
"vasIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032",
"fabricId" : "DBB702C3-7719-4FE6-4488-3A9C9E265322"
}
],
"localInternalLink" : [
{
"routerIp" : "10.1.1.1",
"vasIp" : "10.1.1.1",
"vlan" : "100",
"routerIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032",
"vasIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032"
}
],
"localCidrs" : [
"10.1.1.1/24"
],
"peerLogicRouterId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"peerLogicRouterName" : "router002",
"peerLogicVasId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"peerLogicVasName" : "vas003",
"peerCrossLink" : [
{
"routerIp" : "10.1.1.1",
"vasIp" : "10.1.1.1",
"vlan" : "100",
"routerIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032",
"vasIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032",
"fabricId" : "DBB702C3-7719-4FE6-4488-3A9C9E265322"
}
],
"peerInternalLink" : [
{
"routerIp" : "10.1.1.1",
"vasIp" : "10.1.1.1",
"vlan" : "100",
"routerIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032",
"vasIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032"
}
],
"peerCidrs" : [
"10.1.1.1/24"
],
"tenantId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E26530",
"tenantName" : "tenant1",
"peerTenantId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"peerTenantName" : "tenant1",
"additional" : {
"producer" : "CloudPlatform1",
"createAt" : "2016-10-05T20:11:16.000+00:00",
"updateAt" : "2016-10-05T20:11:16.000+00:00"
},
"localFirewallEnable" : false,
"peerFirewallEnable" : true,
"isLocalAll" : false,
"isPeerAll" : true,
"priority" : 60,
"localPreference" : 50,
"dciGatewayIds" : [
"a915f8c1-d06f-46cd-a968-38328e0ab2d3"
],
"connectRt" : "1:3,65537:3,0.0:3,192.168.122.15:1.",
"srcGwDeviceIds" : [
"a915f8c1-d06f-46cd-a968-38328e0ab2d3"
],
"dstGwDeviceIds" : [
"a915f8c1-d06f-46cd-a968-38328e0ab2d3"
],
"localRouterType" : "LogicRouter/ExternalTransitRouter/ExternalGateway",
"peerRouterType" : "LogicRouter/ExternalTransitRouter/ExternalGateway",
"isAssociatedVpcConnPolicy" : true
}
],
"totalNum" : 100
}
Response Parameters
Response status code 204: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 204: successfully
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Use this API to query the VPC communication instance list.
Functions
This API is used to query the VPC communication instance list based on the
producer or the tenant ID.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/controller/dc/v3/servicenetwork/vpc-connects
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v3/servicenetwork/vpc-connects?producer=CloudPlatform1&tenantId=a915f8c1-
d06f-46cd-a968-38328e0ab2d3&pageIndex=1&pageSize=10 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"vpc-connect" : [
{
"id" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"name" : "vpc001",
"description" : "This is vpc",
"localLogicRouterId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"localLogicRouterName" : "vpc002",
"localLogicVasId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"localLogicVasName" : "vas002",
"localCrossLink" : [
{
"routerIp" : "10.1.1.1",
"vasIp" : "10.1.1.1",
"vlan" : "100",
"routerIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032",
"vasIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032",
"fabricId" : "DBB702C3-7719-4FE6-4488-3A9C9E265322"
}
],
"localInternalLink" : [
{
"routerIp" : "10.1.1.1",
"vasIp" : "10.1.1.1",
"vlan" : "100",
"routerIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032",
"vasIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032"
}
],
"localCidrs" : [
"10.1.1.1/24"
],
"peerLogicRouterId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"peerLogicRouterName" : "router002",
"peerLogicVasId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"peerLogicVasName" : "vas003",
"peerCrossLink" : [
{
"routerIp" : "10.1.1.1",
"vasIp" : "10.1.1.1",
"vlan" : "100",
"routerIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032",
"vasIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032",
"fabricId" : "DBB702C3-7719-4FE6-4488-3A9C9E265322"
}
],
"peerInternalLink" : [
{
"routerIp" : "10.1.1.1",
"vasIp" : "10.1.1.1",
"vlan" : "100",
"routerIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032",
"vasIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032"
}
],
"peerCidrs" : [
"10.1.1.1/24"
],
"tenantId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E26530",
"tenantName" : "tenant1",
"peerTenantId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"peerTenantName" : "tenant1",
"additional" : {
"producer" : "CloudPlatform1",
"createAt" : "2016-10-05T20:11:16.000+00:00",
"updateAt" : "2016-10-05T20:11:16.000+00:00"
},
"localFirewallEnable" : false,
"peerFirewallEnable" : true,
"isLocalAll" : false,
"isPeerAll" : true,
"priority" : 60,
"localPreference" : 50,
"dciGatewayIds" : [
"a915f8c1-d06f-46cd-a968-38328e0ab2d3"
],
"connectRt" : "1:3,65537:3,0.0:3,192.168.122.15:1.",
"srcGwDeviceIds" : [
"a915f8c1-d06f-46cd-a968-38328e0ab2d3"
],
"dstGwDeviceIds" : [
"a915f8c1-d06f-46cd-a968-38328e0ab2d3"
],
"localRouterType" : "LogicRouter/ExternalTransitRouter/ExternalGateway",
"peerRouterType" : "LogicRouter/ExternalTransitRouter/ExternalGateway",
"isAssociatedVpcConnPolicy" : true
}
],
"totalNum" : 100
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Use this API to query a VPC communication instance.
Functions
Query a VPC connection by ID.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/controller/dc/v3/servicenetwork/vpc-connects/vpc-connect/{id}
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v3/servicenetwork/vpc-connects/vpc-connect/a915f8c1-d06f-46cd-a968-38328e0ab2d3
HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
dtId: "G20211101152812691_b34d98a-57f9-49b2-910c-010bcfcc97bcd"
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"vpc-connect" : [
{
"id" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"name" : "vpc001",
"description" : "This is vpc",
"localLogicRouterId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"localLogicRouterName" : "vpc002",
"localLogicVasId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"localLogicVasName" : "vas002",
"localCrossLink" : [
{
"routerIp" : "10.1.1.1",
"vasIp" : "10.1.1.1",
"vlan" : "100",
"routerIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032",
"vasIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032",
"fabricId" : "DBB702C3-7719-4FE6-4488-3A9C9E265322"
}
],
"localInternalLink" : [
{
"routerIp" : "10.1.1.1",
"vasIp" : "10.1.1.1",
"vlan" : "100",
"routerIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032",
"vasIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032"
}
],
"localCidrs" : [
"10.1.1.1/24"
],
"peerLogicRouterId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"peerLogicRouterName" : "router002",
"peerLogicVasId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"peerLogicVasName" : "vas003",
"peerCrossLink" : [
{
"routerIp" : "10.1.1.1",
"vasIp" : "10.1.1.1",
"vlan" : "100",
"routerIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032",
"vasIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032",
"fabricId" : "DBB702C3-7719-4FE6-4488-3A9C9E265322"
}
],
"peerInternalLink" : [
{
"routerIp" : "10.1.1.1",
"vasIp" : "10.1.1.1",
"vlan" : "100",
"routerIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032",
"vasIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032"
}
],
"peerCidrs" : [
"10.1.1.1/24"
],
"tenantId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E26530",
"tenantName" : "tenant1",
"peerTenantId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"peerTenantName" : "tenant1",
"additional" : {
"producer" : "CloudPlatform1",
"createAt" : "2016-10-05T20:11:16.000+00:00",
"updateAt" : "2016-10-05T20:11:16.000+00:00"
},
"localFirewallEnable" : false,
"peerFirewallEnable" : true,
"isLocalAll" : false,
"isPeerAll" : true,
"priority" : 60,
"localPreference" : 50,
"dciGatewayIds" : [
"a915f8c1-d06f-46cd-a968-38328e0ab2d3"
],
"connectRt" : "1:3,65537:3,0.0:3,192.168.122.15:1.",
"srcGwDeviceIds" : [
"a915f8c1-d06f-46cd-a968-38328e0ab2d3"
],
"dstGwDeviceIds" : [
"a915f8c1-d06f-46cd-a968-38328e0ab2d3"
],
"localRouterType" : "LogicRouter/ExternalTransitRouter/ExternalGateway",
"peerRouterType" : "LogicRouter/ExternalTransitRouter/ExternalGateway",
"isAssociatedVpcConnPolicy" : true
}
],
"totalNum" : 100
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A VPC connection needs to be updated by ID.
Functions
Update a VPC connection by ID.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 200 times/minute.
Single-interface performance: ≤ 3600s.
HTTP Method
PUT
URI
/controller/dc/v3/servicenetwork/vpc-connects/vpc-connect/{id}
Request Parameters
Sample Request
HTTP
PUT /controller/dc/v3/servicenetwork/vpc-connects/vpc-connect/a915f8c1-d06f-46cd-a968-38328e0ab2d3
HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"vpc-connect" : [
{
"id" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"name" : "vpc001",
"description" : "This is vpc",
"localLogicRouterId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"localLogicRouterName" : "vpc002",
"localLogicVasId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"localLogicVasName" : "vas002",
"localCrossLink" : [
{
"routerIp" : "10.1.1.1",
"vasIp" : "10.1.1.1",
"vlan" : "100",
"routerIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032",
"vasIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032",
"fabricId" : "DBB702C3-7719-4FE6-4488-3A9C9E265322"
}
],
"localInternalLink" : [
{
"routerIp" : "10.1.1.1",
"vasIp" : "10.1.1.1",
"vlan" : "100",
"routerIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032",
"vasIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032"
}
],
"localCidrs" : [
"10.1.1.1/24"
],
"peerLogicRouterId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"peerLogicRouterName" : "router002",
"peerLogicVasId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"peerLogicVasName" : "vas003",
"peerCrossLink" : [
{
"routerIp" : "10.1.1.1",
"vasIp" : "10.1.1.1",
"vlan" : "100",
"routerIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032",
"vasIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032",
"fabricId" : "DBB702C3-7719-4FE6-4488-3A9C9E265322"
}
],
"peerInternalLink" : [
{
"routerIp" : "10.1.1.1",
"vasIp" : "10.1.1.1",
"vlan" : "100",
"routerIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032",
"vasIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032"
}
],
"peerCidrs" : [
"10.1.1.1/24"
],
"tenantId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E26530",
"tenantName" : "tenant1",
"peerTenantId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"peerTenantName" : "tenant1",
"additional" : {
"producer" : "CloudPlatform1",
"createAt" : "2016-10-05T20:11:16.000+00:00",
"updateAt" : "2016-10-05T20:11:16.000+00:00"
},
"localFirewallEnable" : false,
"peerFirewallEnable" : true,
"isLocalAll" : false,
"isPeerAll" : true,
"priority" : 60,
"localPreference" : 50,
"dciGatewayIds" : [
"a915f8c1-d06f-46cd-a968-38328e0ab2d3"
],
"connectRt" : "1:3,65537:3,0.0:3,192.168.122.15:1.",
"srcGwDeviceIds" : [
"a915f8c1-d06f-46cd-a968-38328e0ab2d3"
],
"dstGwDeviceIds" : [
"a915f8c1-d06f-46cd-a968-38328e0ab2d3"
],
"localRouterType" : "LogicRouter/ExternalTransitRouter/ExternalGateway",
"peerRouterType" : "LogicRouter/ExternalTransitRouter/ExternalGateway",
"isAssociatedVpcConnPolicy" : true
}
],
"totalNum" : 100
}
Response Parameters
Response status code 200: successfully
VpcConnectDtoWrapper parameters, For details, see Table 1-1230.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"vpc-connect" : [
{
"id" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"name" : "vpc001",
"description" : "This is vpc",
"localLogicRouterId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"localLogicRouterName" : "vpc002",
"localLogicVasId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"localLogicVasName" : "vas002",
"localCrossLink" : [
{
"routerIp" : "10.1.1.1",
"vasIp" : "10.1.1.1",
"vlan" : "100",
"routerIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032",
"vasIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032",
"fabricId" : "DBB702C3-7719-4FE6-4488-3A9C9E265322"
}
],
"localInternalLink" : [
{
"routerIp" : "10.1.1.1",
"vasIp" : "10.1.1.1",
"vlan" : "100",
"routerIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032",
"vasIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032"
}
],
"localCidrs" : [
"10.1.1.1/24"
],
"peerLogicRouterId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"peerLogicRouterName" : "router002",
"peerLogicVasId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"peerLogicVasName" : "vas003",
"peerCrossLink" : [
{
"routerIp" : "10.1.1.1",
"vasIp" : "10.1.1.1",
"vlan" : "100",
"routerIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032",
"vasIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032",
"fabricId" : "DBB702C3-7719-4FE6-4488-3A9C9E265322"
}
],
"peerInternalLink" : [
{
"routerIp" : "10.1.1.1",
"vasIp" : "10.1.1.1",
"vlan" : "100",
"routerIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032",
"vasIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032"
}
],
"peerCidrs" : [
"10.1.1.1/24"
],
"tenantId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E26530",
"tenantName" : "tenant1",
"peerTenantId" : "a915f8c1-d06f-46cd-a968-38328e0ab2d3",
"peerTenantName" : "tenant1",
"additional" : {
"producer" : "CloudPlatform1",
"createAt" : "2016-10-05T20:11:16.000+00:00",
"updateAt" : "2016-10-05T20:11:16.000+00:00"
},
"localFirewallEnable" : false,
"peerFirewallEnable" : true,
"isLocalAll" : false,
"isPeerAll" : true,
"priority" : 60,
"localPreference" : 50,
"dciGatewayIds" : [
"a915f8c1-d06f-46cd-a968-38328e0ab2d3"
],
"connectRt" : "1:3,65537:3,0.0:3,192.168.122.15:1.",
"srcGwDeviceIds" : [
"a915f8c1-d06f-46cd-a968-38328e0ab2d3"
],
"dstGwDeviceIds" : [
"a915f8c1-d06f-46cd-a968-38328e0ab2d3"
],
"localRouterType" : "LogicRouter/ExternalTransitRouter/ExternalGateway",
"peerRouterType" : "LogicRouter/ExternalTransitRouter/ExternalGateway",
"isAssociatedVpcConnPolicy" : true
}
],
"totalNum" : 100
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A VPC connection needs to be deleted by ID.
Functions
Delete a VPC connection by ID.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 200 times/minute.
Single-interface performance: ≤ 3600s.
HTTP Method
DELETE
URI
/controller/dc/v3/servicenetwork/vpc-connects/vpc-connect/{id}
Request Parameters
N/A
Sample Request
HTTP
DELETE /controller/dc/v3/servicenetwork/vpc-connects/vpc-connect/a915f8c1-d06f-46cd-
a968-38328e0ab2d3?producer=Agile-Controller-MDC HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 204: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Sample Response
Response status code 204: successfully
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A VPC communication policy application instance needs to be created.
Functions
Create a VPC communication policy application instance based on conditions.
Constraints
User role: northbound operator.
HTTP Method
POST
URI
/controller/dc/v3/sfco/vpcConnectPolicy
Request Parameters
● Net
Red
irect
● Net
Tos
Red
irect
● Net
Unr
eac
hab
le
● Par
am
eter
Pro
ble
m
● Port
Unr
eac
hab
le
● Prot
ocol
Unr
eac
hab
le
● Rea
sse
mbl
yTi
me
out
● Sou
rce
Que
nch
● Sou
rceR
out
eFai
led
● Tim
esta
mp
Rep
ly
● Tim
esta
mp
Req
uest
● TtlE
xce
ede
d
● Net
wor
kUn
reac
hab
le
● Pac
ket
Too
Big
● Port
Unr
eac
hab
le
● Rou
terA
dve
rtise
me
nt
● Rou
terS
olici
tati
on
● Unk
now
nIpv
6Op
t
● Unk
now
nNe
xtH
dr
Sample Request
HTTP
POST /controller/dc/v3/sfco/vpcConnectPolicy HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
dtId: "G20211008173530511_dbadc40-ece4-421c-bef8-b6548c12d4c7d"
{
"scapp" : [
{
"id" : "CCB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "logicfw1",
"description" : "This is scapp",
"tenantId" : "CCB702C3-7719-4FE6-A5AD-3A9C9E265309",
"dstTenantId" : "CCB702C3-7719-4FE6-A5AD-3A9C9E265309",
"srcAppId" : "CCB702C3-7719-4FE6-A5AD-3A9C9E265309",
"dstAppId" : "CCB702C3-7719-4FE6-A5AD-3A9C9E265309",
"logicNetworkId" : "CCB702C3-7719-4FE6-A5AD-3A9C9E265309",
"srcEpgId" : "CCB702C3-7719-4FE6-A5AD-3A9C9E265309",
"dstEpgId" : "CCB702C3-7719-4FE6-A5AD-3A9C9E265309",
"filterAction" : "FILTER",
"filterDirection" : "Bothdirectional",
"contractId" : "CCB702C3-7719-4FE6-A5AD-3A9C9E265309",
"rules" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265300",
"behavior" : "DENY",
"order" : 1,
"classifier" : {
"ipFamily" : "IPv4 or IPv6.",
"sourceIp" : "1.1.1.0/24 or FE80::/10, which must be the same as the address family
configuration.",
"destinationIp" : "1.1.1.0/24 or FE80::/10, which must be the same as the address family
configuration.",
"protocol" : 17,
"sourcePortRange" : "startPort : 3000",
"destPortRange" : "startPort : 3000",
"direction" : "Bothdirectional",
"logging" : true,
"tcpFlag" : [
"Established"
],
"icmpType" : "Echo",
"icmp6Type" : "Echo"
}
}
],
"sfp" : {
"sfcId" : "CBB702C3-7719-4FE6-A5AD-3A9C9E2653091",
"sfPathHop" : [
{
"hopNumber" : 1,
"logicSFId" : "CBB702C3-7719-4FE6-A5AD-3A9C9E2653091",
"sfType" : "NAT"
}
]
},
"additional" : {
"producer" : "CloudPlatform1",
"createAt" : "2016-10-05T20:11:16.000+00:00",
"updateAt" : "2016-10-05T20:11:16.000+00:00"
}
}
]
}
Response Parameters
Response status code 200: successfully
tcpFla ARRAY 0-6 items. For details, see TCP flag list. -
g _REFER Table 1-1255.
ENCE
Response status code 400: Response status code 400: Bad request.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"scapp" : [
{
"id" : "CCB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "logicfw1",
"description" : "This is scapp",
"tenantId" : "CCB702C3-7719-4FE6-A5AD-3A9C9E265309",
"dstTenantId" : "CCB702C3-7719-4FE6-A5AD-3A9C9E265309",
"srcAppId" : "CCB702C3-7719-4FE6-A5AD-3A9C9E265309",
"dstAppId" : "CCB702C3-7719-4FE6-A5AD-3A9C9E265309",
"logicNetworkId" : "CCB702C3-7719-4FE6-A5AD-3A9C9E265309",
"srcEpgId" : "CCB702C3-7719-4FE6-A5AD-3A9C9E265309",
"dstEpgId" : "CCB702C3-7719-4FE6-A5AD-3A9C9E265309",
"filterAction" : "FILTER",
"filterDirection" : "Bothdirectional",
"contractId" : "CCB702C3-7719-4FE6-A5AD-3A9C9E265309",
"rules" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265300",
"behavior" : "DENY",
"order" : 1,
"classifier" : {
"ipFamily" : "IPv4 or IPv6.",
"sourceIp" : "1.1.1.0/24 or FE80::/10, which must be the same as the address family
configuration.",
"destinationIp" : "1.1.1.0/24 or FE80::/10, which must be the same as the address family
configuration.",
"protocol" : 17,
"sourcePortRange" : "startPort : 3000",
"destPortRange" : "startPort : 3000",
"direction" : "Bothdirectional",
"logging" : true,
"tcpFlag" : [
"Established"
],
"icmpType" : "Echo",
"icmp6Type" : "Echo"
}
}
],
"sfp" : {
"sfcId" : "CBB702C3-7719-4FE6-A5AD-3A9C9E2653091",
"sfPathHop" : [
{
"hopNumber" : 1,
"logicSFId" : "CBB702C3-7719-4FE6-A5AD-3A9C9E2653091",
"sfType" : "NAT"
}
]
},
"additional" : {
"producer" : "CloudPlatform1",
"createAt" : "2016-10-05T20:11:16.000+00:00",
"updateAt" : "2016-10-05T20:11:16.000+00:00"
}
}
]
}
Response status code 400: Response status code 400: Bad request.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A VPC communication policy application instance list needs to be queried.
Functions
Query the list of VPC communication policy application instances based on
producer and tenant ID.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/controller/dc/v3/sfco/vpcConnectPolicy
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v3/sfco/vpcConnectPolicy?
producer=CloudPlatform1&tenantId=00215123-1000-0000-0001-000000000001&pageIndex=1&pageSize=10
HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: successfully.
Response status code 400: Response status code 400: Bad request.
For details, see the response message body.
Sample Response
Response status code 200: successfully.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"scapp" : [
{
"id" : "CCB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "logicfw1",
"description" : "This is scapp",
"tenantId" : "CCB702C3-7719-4FE6-A5AD-3A9C9E265309",
"dstTenantId" : "CCB702C3-7719-4FE6-A5AD-3A9C9E265309",
"srcAppId" : "CCB702C3-7719-4FE6-A5AD-3A9C9E265309",
"dstAppId" : "CCB702C3-7719-4FE6-A5AD-3A9C9E265309",
"logicNetworkId" : "CCB702C3-7719-4FE6-A5AD-3A9C9E265309",
"srcEpgId" : "CCB702C3-7719-4FE6-A5AD-3A9C9E265309",
"dstEpgId" : "CCB702C3-7719-4FE6-A5AD-3A9C9E265309",
"filterAction" : "FILTER",
"filterDirection" : "Bothdirectional",
"contractId" : "CCB702C3-7719-4FE6-A5AD-3A9C9E265309",
"rules" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265300",
"behavior" : "DENY",
"order" : 1,
"classifier" : {
"ipFamily" : "IPv4 or IPv6.",
"sourceIp" : "1.1.1.0/24 or FE80::/10, which must be the same as the address family
configuration.",
"destinationIp" : "1.1.1.0/24 or FE80::/10, which must be the same as the address family
configuration.",
"protocol" : 17,
"sourcePortRange" : "startPort : 3000",
"destPortRange" : "startPort : 3000",
"direction" : "Bothdirectional",
"logging" : true,
"tcpFlag" : [
"Established"
],
"icmpType" : "Echo",
"icmp6Type" : "Echo"
}
}
],
"sfp" : {
"sfcId" : "CBB702C3-7719-4FE6-A5AD-3A9C9E2653091",
"sfPathHop" : [
{
"hopNumber" : 1,
"logicSFId" : "CBB702C3-7719-4FE6-A5AD-3A9C9E2653091",
"sfType" : "NAT"
}
]
},
"additional" : {
"producer" : "CloudPlatform1",
"createAt" : "2016-10-05T20:11:16.000+00:00",
"updateAt" : "2016-10-05T20:11:16.000+00:00"
}
}
],
"totalNum" : 100,
"pageIndex" : 1,
"pageSize" : 4000
}
Response status code 400: Response status code 400: Bad request.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A VPC communication policy application instance needs to be queried.
Functions
Query the VPC communication policy application instance based on the ID.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/controller/dc/v3/sfco/vpcConnectPolicy/{id}
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v3/sfco/vpcConnectPolicy/00215123-1000-0000-0001-000000000001 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: successfully
ScappDtoWrapper parameters, For details, see Table 1-1251.
Response status code 400: Response status code 400: Bad request.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"scapp" : [
{
"id" : "CCB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "logicfw1",
"description" : "This is scapp",
"tenantId" : "CCB702C3-7719-4FE6-A5AD-3A9C9E265309",
"dstTenantId" : "CCB702C3-7719-4FE6-A5AD-3A9C9E265309",
"srcAppId" : "CCB702C3-7719-4FE6-A5AD-3A9C9E265309",
"dstAppId" : "CCB702C3-7719-4FE6-A5AD-3A9C9E265309",
"logicNetworkId" : "CCB702C3-7719-4FE6-A5AD-3A9C9E265309",
"srcEpgId" : "CCB702C3-7719-4FE6-A5AD-3A9C9E265309",
"dstEpgId" : "CCB702C3-7719-4FE6-A5AD-3A9C9E265309",
"filterAction" : "FILTER",
"filterDirection" : "Bothdirectional",
"contractId" : "CCB702C3-7719-4FE6-A5AD-3A9C9E265309",
"rules" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265300",
"behavior" : "DENY",
"order" : 1,
"classifier" : {
"ipFamily" : "IPv4 or IPv6.",
"sourceIp" : "1.1.1.0/24 or FE80::/10, which must be the same as the address family
configuration.",
"destinationIp" : "1.1.1.0/24 or FE80::/10, which must be the same as the address family
configuration.",
"protocol" : 17,
"sourcePortRange" : "startPort : 3000",
Response status code 400: Response status code 400: Bad request.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A VPC communication policy application instance needs to be updated.
Functions
Update the VPC communication policy application instance based on the ID.
Constraints
User role: northbound operator.
HTTP Method
PUT
URI
/controller/dc/v3/sfco/vpcConnectPolicy/{id}
Request Parameters
Sample Request
HTTP
PUT /controller/dc/v3/sfco/vpcConnectPolicy/00215123-1000-0000-0001-000000000001 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
dtId: "G20211008173530511_dbadc40-ece4-421c-bef8-b6548c12d4c7d"
{
"scapp" : [
{
"id" : "CCB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "logicfw1",
"description" : "This is scapp",
"tenantId" : "CCB702C3-7719-4FE6-A5AD-3A9C9E265309",
"dstTenantId" : "CCB702C3-7719-4FE6-A5AD-3A9C9E265309",
"srcAppId" : "CCB702C3-7719-4FE6-A5AD-3A9C9E265309",
"dstAppId" : "CCB702C3-7719-4FE6-A5AD-3A9C9E265309",
"logicNetworkId" : "CCB702C3-7719-4FE6-A5AD-3A9C9E265309",
"srcEpgId" : "CCB702C3-7719-4FE6-A5AD-3A9C9E265309",
"dstEpgId" : "CCB702C3-7719-4FE6-A5AD-3A9C9E265309",
"filterAction" : "FILTER",
"filterDirection" : "Bothdirectional",
"contractId" : "CCB702C3-7719-4FE6-A5AD-3A9C9E265309",
"rules" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265300",
"behavior" : "DENY",
"order" : 1,
"classifier" : {
"ipFamily" : "IPv4 or IPv6.",
"sourceIp" : "1.1.1.0/24 or FE80::/10, which must be the same as the address family
configuration.",
"destinationIp" : "1.1.1.0/24 or FE80::/10, which must be the same as the address family
configuration.",
"protocol" : 17,
"sourcePortRange" : "startPort : 3000",
"destPortRange" : "startPort : 3000",
"direction" : "Bothdirectional",
"logging" : true,
"tcpFlag" : [
"Established"
],
"icmpType" : "Echo",
"icmp6Type" : "Echo"
}
}
],
"sfp" : {
"sfcId" : "CBB702C3-7719-4FE6-A5AD-3A9C9E2653091",
"sfPathHop" : [
{
"hopNumber" : 1,
"logicSFId" : "CBB702C3-7719-4FE6-A5AD-3A9C9E2653091",
"sfType" : "NAT"
}
]
},
"additional" : {
"producer" : "CloudPlatform1",
"createAt" : "2016-10-05T20:11:16.000+00:00",
"updateAt" : "2016-10-05T20:11:16.000+00:00"
}
}
]
}
Response Parameters
Response status code 200: successfully
ScappDtoWrapper parameters, For details, see Table 1-1251.
Response status code 400: Response status code 400: Bad request.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"scapp" : [
{
"id" : "CCB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "logicfw1",
"description" : "This is scapp",
"tenantId" : "CCB702C3-7719-4FE6-A5AD-3A9C9E265309",
"dstTenantId" : "CCB702C3-7719-4FE6-A5AD-3A9C9E265309",
"srcAppId" : "CCB702C3-7719-4FE6-A5AD-3A9C9E265309",
"dstAppId" : "CCB702C3-7719-4FE6-A5AD-3A9C9E265309",
"logicNetworkId" : "CCB702C3-7719-4FE6-A5AD-3A9C9E265309",
"srcEpgId" : "CCB702C3-7719-4FE6-A5AD-3A9C9E265309",
"dstEpgId" : "CCB702C3-7719-4FE6-A5AD-3A9C9E265309",
"filterAction" : "FILTER",
"filterDirection" : "Bothdirectional",
"contractId" : "CCB702C3-7719-4FE6-A5AD-3A9C9E265309",
"rules" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265300",
"behavior" : "DENY",
"order" : 1,
"classifier" : {
"ipFamily" : "IPv4 or IPv6.",
"sourceIp" : "1.1.1.0/24 or FE80::/10, which must be the same as the address family
configuration.",
"destinationIp" : "1.1.1.0/24 or FE80::/10, which must be the same as the address family
configuration.",
"protocol" : 17,
"sourcePortRange" : "startPort : 3000",
"destPortRange" : "startPort : 3000",
"direction" : "Bothdirectional",
"logging" : true,
"tcpFlag" : [
"Established"
],
"icmpType" : "Echo",
"icmp6Type" : "Echo"
}
}
],
"sfp" : {
"sfcId" : "CBB702C3-7719-4FE6-A5AD-3A9C9E2653091",
"sfPathHop" : [
{
"hopNumber" : 1,
"logicSFId" : "CBB702C3-7719-4FE6-A5AD-3A9C9E2653091",
"sfType" : "NAT"
}
]
},
"additional" : {
"producer" : "CloudPlatform1",
"createAt" : "2016-10-05T20:11:16.000+00:00",
"updateAt" : "2016-10-05T20:11:16.000+00:00"
}
}
]
}
Response status code 400: Response status code 400: Bad request.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A VPC communication policy application instance needs to be deleted.
Functions
Delete a VPC communication policy application instance based on the ID.
Constraints
User role: northbound operator.
HTTP Method
DELETE
URI
/controller/dc/v3/sfco/vpcConnectPolicy/{id}
Request Parameters
N/A
Sample Request
HTTP
DELETE /controller/dc/v3/sfco/vpcConnectPolicy/00215123-1000-0000-0001-000000000001 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
dtId: "G20211008173530511_dbadc40-ece4-421c-bef8-b6548c12d4c7d"
Response Parameters
Response status code 204: successfully.
Response status code 400: Response status code 400: Bad request.
For details, see the response message body.
Sample Response
Response status code 204: successfully.
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
All logical networks need to be queried.
Functions
Query all logical networks.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 200 times/minute.
HTTP Method
GET
URI
/controller/dc/v3/logicnetwork/external-networks
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v3/logicnetwork/external-networks?pageSize=10&pageIndex=1 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"externalnetwork" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "name",
"networkType" : 0,
"publicIpPool" : ["10.1.1.0/24"],
"externalGatewayId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"tenantId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"publicRouterId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"logicNetworkId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309"
}
],
"pageSize" : 4000,
"pageIndex" : 1,
"totalNum" : 5
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
An external network needs to be queried by ID.
Functions
Query an external network by ID.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 200 times/minute.
HTTP Method
GET
URI
/controller/dc/v3/logicnetwork/external-networks/external-network/{id}
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v3/logicnetwork/external-networks/external-network/DBB702C3-7719-4FE6-
A5AD-3A9C9E265309 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"externalnetwork" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "name",
"networkType" : 0,
"publicIpPool" : ["10.1.1.0/24"],
"externalGatewayId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"tenantId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"publicRouterId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"logicNetworkId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309"
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
An external network connection needs to be created.
Functions
Create an external network connection based on the request information.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 200 times/minute.
Single-interface performance: ≤ 3600s.
HTTP Method
POST
URI
/controller/dc/v3/servicenetwork/external-connects
Request Parameters
Sample Request
HTTP
POST /controller/dc/v3/servicenetwork/external-connects HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"external-connect" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "10",
"tenantName" : "tenant1",
"tenantId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"logicNetworkId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"routerId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"routerName" : "logicRouter001",
"routerIp" : "10.1.1.1",
"vasIp" : "10.1.1.2",
"mask" : 24,
"routerIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032/127",
"vasIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032/128",
"maskv6" : 64,
"vlan" : 1,
"allcoMode" : "automatic",
"externalGatewayId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"externalNetworkId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"externalNetworkName" : "aaa",
"snatEnable" : false,
"logicVasId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"logicVasName" : "vas001",
"ipv6Enable" : true,
"ipv6FwEnable" : true,
"nat64Prefixes" : [
"10.1.1.0/24"
],
"ipv4AccessExternalEnable" : true,
"ipv6AccessExternalEnable" : true,
"localCidrs" : [
"10.1.1.1/24"
],
"preference" : 230,
"localPreference" : 230,
"bgpPreference" : 230,
"flowRules" : [
{
"id" : "12345678-1234-1234-1234-1234567890ab",
"cidr" : "172.16.13.0/24",
"direction" : "ingress"
}
],
"additional" : {
"producer" : "CloudPlatform1",
"createAt" : "2016-10-05T20:11:16.000+00:00",
"updateAt" : "2016-10-05T20:11:16.000+00:00"
}
}
]
}
Response Parameters
Response status code 200: Response status code 200: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Sample Response
Response status code 200: Response status code 200: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
External network connections need to be queried.
Functions
Query external network connections based on the request information.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/controller/dc/v3/servicenetwork/external-connects
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v3/servicenetwork/external-connects?tenantId=DBB702C3-7719-4FE6-
A5AD-3A9C9E265309&logicRouterId=DBB702C3-7719-4FE6-
A5AD-3A9C9E265309&extNetWorkId=DBB702C3-7719-4FE6-
A5AD-3A9C9E265309&externalGatewayId=DBB702C3-7719-4FE6-
A5AD-3A9C9E265309&excludeProducer=mdc&pageIndex=1&pageSize=10 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: Response status code 200: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: Response status code 200: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"external-connect" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "10",
"tenantName" : "tenant1",
"tenantId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"logicNetworkId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"routerId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"routerName" : "logicRouter001",
"routerIp" : "10.1.1.1",
"vasIp" : "10.1.1.2",
"mask" : 24,
"routerIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032/127",
"vasIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032/128",
"maskv6" : 64,
"vlan" : 1,
"allcoMode" : "automatic",
"externalGatewayId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"externalNetworkId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"externalNetworkName" : "aaa",
"snatEnable" : false,
"logicVasId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"logicVasName" : "vas001",
"ipv6Enable" : true,
"ipv6FwEnable" : true,
"nat64Prefixes" : [
"10.1.1.0/24"
],
"ipv4AccessExternalEnable" : true,
"ipv6AccessExternalEnable" : true,
"localCidrs" : [
"10.1.1.1/24"
],
"preference" : 230,
"localPreference" : 230,
"bgpPreference" : 230,
"flowRules" : [
{
"id" : "12345678-1234-1234-1234-1234567890ab",
"cidr" : "172.16.13.0/24",
"direction" : "ingress"
}
],
"additional" : {
"producer" : "CloudPlatform1",
"createAt" : "2016-10-05T20:11:16.000+00:00",
"updateAt" : "2016-10-05T20:11:16.000+00:00"
}
}
],
"totalNum" : 100,
"pageIndex" : 1,
"pageSize" : 4000
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
External network connections need to be queried.
Functions
Query an external network connection based on the condition information. The
query can be performed based on the ID.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 200 times/minute.
Single-interface performance: ≤ 3600s.
HTTP Method
GET
URI
/controller/dc/v3/servicenetwork/external-connects/external-connect/{id}
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v3/servicenetwork/external-connects/external-connect/DBB702C3-7719-4FE6-
A5AD-3A9C9E265309 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: Response status code 200: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: Response status code 200: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"external-connect" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "10",
"tenantName" : "tenant1",
"tenantId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"logicNetworkId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"routerId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"routerName" : "logicRouter001",
"routerIp" : "10.1.1.1",
"vasIp" : "10.1.1.2",
"mask" : 24,
"routerIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032/127",
"vasIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032/128",
"maskv6" : 64,
"vlan" : 1,
"allcoMode" : "automatic",
"externalGatewayId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"externalNetworkId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"externalNetworkName" : "aaa",
"snatEnable" : false,
"logicVasId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"logicVasName" : "vas001",
"ipv6Enable" : true,
"ipv6FwEnable" : true,
"nat64Prefixes" : [
"10.1.1.0/24"
],
"ipv4AccessExternalEnable" : true,
"ipv6AccessExternalEnable" : true,
"localCidrs" : [
"10.1.1.1/24"
],
"preference" : 230,
"localPreference" : 230,
"bgpPreference" : 230,
"flowRules" : [
{
"id" : "12345678-1234-1234-1234-1234567890ab",
"cidr" : "172.16.13.0/24",
"direction" : "ingress"
}
],
"additional" : {
"producer" : "CloudPlatform1",
"createAt" : "2016-10-05T20:11:16.000+00:00",
"updateAt" : "2016-10-05T20:11:16.000+00:00"
}
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
An external connection needs to be updated by ID.
Functions
Update an external connection by ID.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 200 times/minute.
Single-interface performance: ≤ 3600s.
HTTP Method
PUT
URI
/controller/dc/v3/servicenetwork/external-connects/external-connect/{id}
Request Parameters
Sample Request
HTTP
PUT /controller/dc/v3/servicenetwork/external-connects/external-connect/DBB702C3-7719-4FE6-
A5AD-3A9C9E26530 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
dtId: "G20190812172342232_3483090-f93d-422d-a0f6-54c95fb2ba68d"
{
"external-connect" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "10",
"tenantName" : "tenant1",
"tenantId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"logicNetworkId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"routerId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"routerName" : "logicRouter001",
"routerIp" : "10.1.1.1",
"vasIp" : "10.1.1.2",
"mask" : 24,
"routerIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032/127",
"vasIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032/128",
"maskv6" : 64,
"vlan" : 1,
"allcoMode" : "automatic",
"externalGatewayId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"externalNetworkId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"externalNetworkName" : "aaa",
"snatEnable" : false,
"logicVasId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"logicVasName" : "vas001",
"ipv6Enable" : true,
"ipv6FwEnable" : true,
"nat64Prefixes" : [
"10.1.1.0/24"
],
"ipv4AccessExternalEnable" : true,
"ipv6AccessExternalEnable" : true,
"localCidrs" : [
"10.1.1.1/24"
],
"preference" : 230,
"localPreference" : 230,
"bgpPreference" : 230,
"flowRules" : [
{
"id" : "12345678-1234-1234-1234-1234567890ab",
"cidr" : "172.16.13.0/24",
"direction" : "ingress"
}
],
"additional" : {
"producer" : "CloudPlatform1",
"createAt" : "2016-10-05T20:11:16.000+00:00",
"updateAt" : "2016-10-05T20:11:16.000+00:00"
}
}
]
}
Response Parameters
Response status code 200: Response status code 200: OK.
ExternalConnectRestfulDtoWrapper parameters, For details, see Table 1-1283.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: Response status code 200: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"external-connect" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "10",
"tenantName" : "tenant1",
"tenantId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"logicNetworkId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"routerId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"routerName" : "logicRouter001",
"routerIp" : "10.1.1.1",
"vasIp" : "10.1.1.2",
"mask" : 24,
"routerIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032/127",
"vasIpv6" : "FE80:0000:0000:0000:0000:0044:0000:0032/128",
"maskv6" : 64,
"vlan" : 1,
"allcoMode" : "automatic",
"externalGatewayId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"externalNetworkId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"externalNetworkName" : "aaa",
"snatEnable" : false,
"logicVasId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"logicVasName" : "vas001",
"ipv6Enable" : true,
"ipv6FwEnable" : true,
"nat64Prefixes" : [
"10.1.1.0/24"
],
"ipv4AccessExternalEnable" : true,
"ipv6AccessExternalEnable" : true,
"localCidrs" : [
"10.1.1.1/24"
],
"preference" : 230,
"localPreference" : 230,
"bgpPreference" : 230,
"flowRules" : [
{
"id" : "12345678-1234-1234-1234-1234567890ab",
"cidr" : "172.16.13.0/24",
"direction" : "ingress"
}
],
"additional" : {
"producer" : "CloudPlatform1",
"createAt" : "2016-10-05T20:11:16.000+00:00",
"updateAt" : "2016-10-05T20:11:16.000+00:00"
}
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
An external network connection needs to be deleted.
Functions
Delete an external network connection based on the condition information. The
external network connection can be deleted based on the ID.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 200 times/minute.
Single-interface performance: ≤ 3600s.
HTTP Method
DELETE
URI
/controller/dc/v3/servicenetwork/external-connects/external-connect/{id}
Request Parameters
N/A
Sample Request
HTTP
DELETE /controller/dc/v3/servicenetwork/external-connects/external-connect/DBB702C3-7719-4FE6-
A5AD-3A9C9E265309?producer=Agile-Controller-MDC HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: Response status code 200: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: Response status code 200: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
The address of a tenant to access an external network or the address of an
external network to a tenant needs to be added.
Functions
Add a subnet from an external network.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 200 times/minute.
HTTP Method
POST
URI
/controller/dc/v3/servicenetwork/external-connects/external-connect/{id}/action/
add-cidrs
Request Parameters
Sample Request
HTTP
POST /controller/dc/v3/servicenetwork/external-connects/external-connect/DBB702C3-7719-4FE6-
A5AD-3A9C9E265309/action/add-cidrs HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
dtId: "G20190812172342232_3483090-f93d-422d-a0f6-54c95fb2ba68d"
{
"external-connect-cidr" : [
{
"cidrs" : [
"10.1.1.1/24"
],
"cidrType" : "ingress/egress",
"additional" : {
"producer" : "CloudPlatform1",
"createAt" : "2016-10-05T20:11:16.000+00:00",
"updateAt" : "2016-10-05T20:11:16.000+00:00"
}
}
]
}
Response Parameters
Response status code 200: Response status code 200: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: Response status code 200: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
The address of a tenant to access an external network or the address of an
external network to a tenant needs to be deleted.
Functions
Remove a subnet from an external network.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 200 times/minute.
Single-interface performance: ≤ 3600s.
HTTP Method
POST
URI
/controller/dc/v3/servicenetwork/external-connects/external-connect/{id}/action/
remove-cidrs
Request Parameters
Sample Request
HTTP
POST /controller/dc/v3/servicenetwork/external-connects/external-connect/DBB702C3-7719-4FE6-
A5AD-3A9C9E265309/action/remove-cidrs HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
dtId: "G20190812172342232_3483090-f93d-422d-a0f6-54c95fb2ba68d"
{
"external-connect-cidr" : [
{
"cidrs" : [
"10.1.1.1/24"
],
"cidrType" : "ingress/egress",
"additional" : {
"producer" : "CloudPlatform1",
"createAt" : "2016-10-05T20:11:16.000+00:00",
"updateAt" : "2016-10-05T20:11:16.000+00:00"
}
}
]
}
Response Parameters
Response status code 200: Response status code 200: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Sample Response
Response status code 200: Response status code 200: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
The address of a tenant to access an external network or the address of an
external network to a tenant needs to be queried.
Functions
Query subnets connecting to an external network. By default, subnets are sorted
by cidrType and cidr.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 200 times/minute.
Single-interface performance: ≤ 3600s.
HTTP Method
GET
URI
/controller/dc/v3/servicenetwork/external-connects/external-connect/{id}/action/
query-cidrs
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v3/servicenetwork/external-connects/external-connect/DBB702C3-7719-4FE6-
A5AD-3A9C9E265309/action/query-cidrs?producer=CloudPlatform1&cidrType=ingress/egress/extEgress/
intIngress&pageIndex=1&pageSize=10 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: Response status code 200: OK.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: Response status code 200: OK.
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"external-connect-flat-cidr" : [
{
"cidr" : "172.16.13.0/24",
"cidrType" : "ingress/egress/ext-egress/int-ingress",
"createAt" : "2016-10-05T20:11:16.000+00:00",
"updateAt" : "2016-10-05T20:11:16.000+00:00",
"producer" : "CloudPlatform1"
}
],
"totalNum" : 100,
"pageIndex" : 1,
"pageSize" : 4000
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
2. If the DHCP server connects to the M-LAG consisting of access switches, the
loopback interface cannot be used.
Typical Scenarios
A DHCP group needs to be created.
Functions
Create DHCP groups based on parameters.
Constraints
User role: northbound operator.
HTTP Method
POST
URI
/controller/dc/v3/publicservice/dhcpgroups
Request Parameters
Sample Request
HTTP
POST /controller/dc/v3/publicservice/dhcpgroups HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"dhcpgroup" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "dhcpserver1",
"description" : "description1",
"logicRouterId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"vrfName" : "vrfname",
"serverIp" : ["192.168.192.1"],
"dhcpgroupl2vni" : [
{
"l2Vni" : 10,
"ipv4Cidr" : "192.168.168.0/24",
"ipv6Cidr" : "FE80::/126"
}
],
"producer" : "default",
"deviceGroupInfos" : [
{
"deviceGroupId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceGroupName" : "CE_45"
}
],
"l3Vni" : 10,
"routeTarget" : "0:5006"
}
]
}
Response Parameters
Response status code 201: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Sample Response
Response status code 201: successfully
HTTP/1.1 201 Created
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
DHCP groups need to be queried.
Functions
Query DHCP groups based on the search criteria. Query by page is supported.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/controller/dc/v3/publicservice/dhcpgroups
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v3/publicservice/dhcpgroups?pageIndex=1&pageSize=1 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"dhcpgroup" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "dhcpserver1",
"description" : "description1",
"logicRouterId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"vrfName" : "vrfname",
"serverIp" : ["192.168.192.1"],
"dhcpgroupl2vni" : [
{
"l2Vni" : 10,
"ipv4Cidr" : "192.168.168.0/24",
"ipv6Cidr" : "FE80::/126"
}
],
"producer" : "default",
"deviceGroupInfos" : [
{
"deviceGroupId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceGroupName" : "CE_45"
}
],
"l3Vni" : 10,
"routeTarget" : "0:5006"
}
],
"totalNum" : 1,
"pageIndex" : 1,
"pageSize" : 1
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Typical Scenarios
A DHCP group needs to be queried by ID.
Functions
Query a DHCP group by ID.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 200 times/minute.
HTTP Method
GET
URI
/controller/dc/v3/publicservice/dhcpgroups/dhcpgroup/{id}
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v3/publicservice/dhcpgroups/dhcpgroup/DBB702C3-7719-4FE6-A5AD-3A9C9E265309
HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"dhcpgroup" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "dhcpserver1",
"description" : "description1",
"logicRouterId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"vrfName" : "vrfname",
"serverIp" : ["192.168.192.1"],
"dhcpgroupl2vni" : [
{
"l2Vni" : 10,
"ipv4Cidr" : "192.168.168.0/24",
"ipv6Cidr" : "FE80::/126"
}
],
"producer" : "default",
"deviceGroupInfos" : [
{
"deviceGroupId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceGroupName" : "CE_45"
}
],
"l3Vni" : 10,
"routeTarget" : "0:5006"
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A DHCP group needs to be updated.
Functions
Update a DHCP group.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 200 times/minute.
HTTP Method
PUT
URI
/controller/dc/v3/publicservice/dhcpgroups/dhcpgroup/{id}
Request Parameters
Sample Request
HTTP
PUT /controller/dc/v3/publicservice/dhcpgroups/dhcpgroup/DBB702C3-7719-4FE6-A5AD-3A9C9E265309
HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"dhcpgroup" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "dhcpserver1",
"description" : "description1",
"logicRouterId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"vrfName" : "vrfname",
"serverIp" : ["192.168.192.1"],
"dhcpgroupl2vni" : [
{
"l2Vni" : 10,
"ipv4Cidr" : "192.168.168.0/24",
"ipv6Cidr" : "FE80::/126"
}
],
"producer" : "default",
"deviceGroupInfos" : [
{
"deviceGroupId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceGroupName" : "CE_45"
}
],
"l3Vni" : 10,
"routeTarget" : "0:5006"
}
]
}
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"dhcpgroup" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "dhcpserver1",
"description" : "description1",
"logicRouterId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"vrfName" : "vrfname",
"serverIp" : ["192.168.192.1"],
"dhcpgroupl2vni" : [
{
"l2Vni" : 10,
"ipv4Cidr" : "192.168.168.0/24",
"ipv6Cidr" : "FE80::/126"
}
],
"producer" : "default",
"deviceGroupInfos" : [
{
"deviceGroupId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceGroupName" : "CE_45"
}
],
"l3Vni" : 10,
"routeTarget" : "0:5006"
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A DHCP group needs to be deleted.
Functions
Delete a DHCP group.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 200 times/minute.
HTTP Method
DELETE
URI
/controller/dc/v3/publicservice/dhcpgroups/dhcpgroup/{id}
Request Parameters
N/A
Sample Request
HTTP
DELETE /controller/dc/v3/publicservice/dhcpgroups/dhcpgroup/DBB702C3-7719-4FE6-A5AD-3A9C9E265309
HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 204: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 204: successfully
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A flow rule needs to be created.
Functions
Create a flow rule based on the request information.
Constraints
User role: northbound operator.
HTTP Method
POST
URI
/controller/dc/v3/servicenetwork/flow-rule/{extConId}/add
Request Parameters
Sample Request
HTTP
POST /controller/dc/v3/servicenetwork/flow-rule/12345678-1234-1234-1234-1234567890ab/add HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"id" : "12345678-1234-1234-1234-1234567890ab",
"cidr" : "172.16.13.0/24",
"direction" : "ingress"
}
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Delete a Flow Rule.
Functions
Delete a flow rule based on the ID.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 200 times/minute.
Single-interface performance: ≤ 3600s.
HTTP Method
DELETE
URI
/controller/dc/v3/servicenetwork/flow-rule/{extConId}/remove/{id}
Request Parameters
N/A
Sample Request
HTTP
DELETE /controller/dc/v3/servicenetwork/flow-rule/12345678-1234-1234-1234-1234567890ab/remove/
12345678-1234-1234-1234-1234567890ab HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 204: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 204: successfully
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A subnet needs to be associated with a DHCP group.
Functions
Associate a subnet with a DHCP group.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 200 times/minute.
HTTP Method
POST
URI
/controller/dc/v3/logicnetwork/subnet-dhcprelay
Request Parameters
Sample Request
HTTP
POST /controller/dc/v3/logicnetwork/subnet-dhcprelay HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"subnetDhcpRelay" : [
{
"subnetId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"dhcpGroupId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309"
}
]
}
Response Parameters
Response status code 201: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Sample Response
Response status code 201: successfully
HTTP/1.1 201 Created
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A subnet needs to be disassociated from a DHCP group.
Functions
Disassociate a subnet from a DHCP group.
Constraints
User role: northbound operator.
HTTP Method
DELETE
URI
/controller/dc/v3/logicnetwork/subnet-dhcprelay/{subnet-id}
Request Parameters
N/A
Sample Request
HTTP
DELETE /controller/dc/v3/logicnetwork/subnet-dhcprelay/DBB702C3-7719-4FE6-A5AD-3A9C9E265309
HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 204: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Sample Response
Response status code 204: successfully
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A device group configuration service needs to be created on a logical router.
Functions
Create a device group configuration service on a logical router.
Constraints
User role: northbound operator.
HTTP Method
POST
URI
/controller/dc/v3/logicnetwork/router/devicecfgs
Request Parameters
Sample Request
HTTP
POST /controller/dc/v3/logicnetwork/router/devicecfgs HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"RouterDeviceCfg" : {
"id" : "dc417c43-4426-4244-be45-44b0c6ff2864",
"name" : "name1",
"description" : "10",
"logicRouterId" : "dc417c43-4426-4244-be45-44b0c6ff2864",
"deviceGroupId" : "dc417c43-4426-4244-be45-44b0c6ff2864",
"deviceIps" : ["192.168.1.1"],
"enableEscape" : false,
"enableFrr" : false,
"escapeIpVersion" : "Unknown",
"enableEscapeBgp" : false,
"extInterfaceType" : "Vbdif",
"enableNull0Route" : false,
"null0IpVersion" : "Ipv4",
"escapeMode" : "manual",
"escapeVlan" : 2000,
"escapeIpList" : [
{
"deviceId" : "e22e0885-6c05-4cc1-8ddc-b7d0a21edbf3",
"ipv4" : "10.1.1.1/30",
"ipv6" : "fc00::1/7"
}
],
"enableDciRoutePolicy" : false,
"additional" : {
"producer" : "default",
"createAt" : "2017-08-10 16:30:40",
"updateAt" : "2017-08-10 16:30:40"
}
}
}
Response Parameters
Response status code 201: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 201: successfully
HTTP/1.1 201 Created
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Typical Scenarios
Device group configuration services of a logical router need to be queried.
Functions
Query all device group configuration services of a logical router under a specified
condition.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/controller/dc/v3/logicnetwork/router/devicecfgs
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v3/logicnetwork/router/devicecfgs?
pageSize=10&pageIndex=1&logicRouterId=dc417c43-4426-4244-
be45-44b0c6ff2864&deviceGroupId=dc417c43-4426-4244-
be45-44b0c6ff2864&deviceIp=192.168.1.1&producer=default HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"RouterDeviceCfgs" : [
{
"id" : "dc417c43-4426-4244-be45-44b0c6ff2864",
"name" : "name1",
"description" : "10",
"logicRouterId" : "dc417c43-4426-4244-be45-44b0c6ff2864",
"deviceGroupId" : "dc417c43-4426-4244-be45-44b0c6ff2864",
"deviceIps" : ["192.168.1.1"],
"enableEscape" : false,
"enableFrr" : false,
"escapeIpVersion" : "Unknown",
"enableEscapeBgp" : false,
"extInterfaceType" : "Vbdif",
"enableNull0Route" : false,
"null0IpVersion" : "Ipv4",
"escapeMode" : "manual",
"escapeVlan" : 2000,
"escapeIpList" : [
{
"deviceId" : "e22e0885-6c05-4cc1-8ddc-b7d0a21edbf3",
"ipv4" : "10.1.1.1/30",
"ipv6" : "fc00::1/7"
}
],
"enableDciRoutePolicy" : false,
"additional" : {
"producer" : "default",
"createAt" : "2017-08-10 16:30:40",
"updateAt" : "2017-08-10 16:30:40"
}
}
],
"totalNum" : 200,
"pageIndex" : 1,
"pageSize" : 4000
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Service parameters for a logical router group need to be configured.
Functions
Update service parameters for a device group based on the logical router ID,
device group ID, or device management IP address.
Constraints
User role: northbound operator.
HTTP Method
POST
URI
/controller/dc/v3/logicnetwork/router/devicecfgs/setparams
Request Parameters
Sample Request
HTTP
POST /controller/dc/v3/logicnetwork/router/devicecfgs/setparams HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"RouterDeviceCfg" : {
"logicRouterId" : "dc417c43-4426-4244-be45-44b0c6ff2864",
"deviceGroupId" : "dc417c43-4426-4244-be45-44b0c6ff2864",
"deviceIps" : ["192.168.1.1"],
"enableEscape" : false,
"enableFrr" : false,
"escapeIpVersion" : "Unknown",
"enableEscapeBgp" : false,
"extInterfaceType" : "Vbdif",
"enableNull0Route" : false,
"null0IpVersion" : "Ipv4",
"enableDciRoutePolicy" : false,
"escapeMode" : "manual",
"escapeVlan" : 2000,
"escapeIpList" : [
{
"deviceId" : "e22e0885-6c05-4cc1-8ddc-b7d0a21edbf3",
"ipv4" : "10.1.1.1/30",
"ipv6" : "fc00::1/7"
}
],
"additional" : {
"producer" : "default",
"createAt" : "2017-08-10 16:30:40",
"updateAt" : "2017-08-10 16:30:40"
}
}
}
Response Parameters
Response status code 201: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 201: successfully
HTTP/1.1 201 Created
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A device group configuration service needs to be queried by ID on a logical router.
Functions
Query a device group configuration service by ID on a logical router.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 200 times/minute.
HTTP Method
GET
URI
/controller/dc/v3/logicnetwork/router/devicecfgs/devicecfg/{id}
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v3/logicnetwork/router/devicecfgs/devicecfg/dc417c43-4426-4244-be45-44b0c6ff2864
HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"RouterDeviceCfg" : {
"id" : "dc417c43-4426-4244-be45-44b0c6ff2864",
"name" : "name1",
"description" : "10",
"logicRouterId" : "dc417c43-4426-4244-be45-44b0c6ff2864",
"deviceGroupId" : "dc417c43-4426-4244-be45-44b0c6ff2864",
"deviceIps" : ["192.168.1.1"],
"enableEscape" : false,
"enableFrr" : false,
"escapeIpVersion" : "Unknown",
"enableEscapeBgp" : false,
"extInterfaceType" : "Vbdif",
"enableNull0Route" : false,
"null0IpVersion" : "Ipv4",
"escapeMode" : "manual",
"escapeVlan" : 2000,
"escapeIpList" : [
{
"deviceId" : "e22e0885-6c05-4cc1-8ddc-b7d0a21edbf3",
"ipv4" : "10.1.1.1/30",
"ipv6" : "fc00::1/7"
}
],
"enableDciRoutePolicy" : false,
"additional" : {
"producer" : "default",
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A device group configuration service needs to be updated by ID on a logical router.
Functions
Update a device group configuration service by ID on a logical router.
Constraints
User role: northbound operator.
HTTP Method
PUT
URI
/controller/dc/v3/logicnetwork/router/devicecfgs/devicecfg/{id}
Request Parameters
Sample Request
HTTP
PUT /controller/dc/v3/logicnetwork/router/devicecfgs/devicecfg/dc417c43-4426-4244-be45-44b0c6ff2864
HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"RouterDeviceCfg" : {
"id" : "dc417c43-4426-4244-be45-44b0c6ff2864",
"name" : "name1",
"description" : "10",
"logicRouterId" : "dc417c43-4426-4244-be45-44b0c6ff2864",
"deviceGroupId" : "dc417c43-4426-4244-be45-44b0c6ff2864",
"deviceIps" : ["192.168.1.1"],
"enableEscape" : false,
"enableFrr" : false,
"escapeIpVersion" : "Unknown",
"enableEscapeBgp" : false,
"extInterfaceType" : "Vbdif",
"enableNull0Route" : false,
"null0IpVersion" : "Ipv4",
"escapeMode" : "manual",
"escapeVlan" : 2000,
"escapeIpList" : [
{
"deviceId" : "e22e0885-6c05-4cc1-8ddc-b7d0a21edbf3",
"ipv4" : "10.1.1.1/30",
"ipv6" : "fc00::1/7"
}
],
"enableDciRoutePolicy" : false,
"additional" : {
"producer" : "default",
"createAt" : "2017-08-10 16:30:40",
Response Parameters
Response status code 200: successfully
RouterDeviceCfgDtoWrapper parameters, For details, see Table 1-1338.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"RouterDeviceCfg" : {
"id" : "dc417c43-4426-4244-be45-44b0c6ff2864",
"name" : "name1",
"description" : "10",
"logicRouterId" : "dc417c43-4426-4244-be45-44b0c6ff2864",
"deviceGroupId" : "dc417c43-4426-4244-be45-44b0c6ff2864",
"deviceIps" : ["192.168.1.1"],
"enableEscape" : false,
"enableFrr" : false,
"escapeIpVersion" : "Unknown",
"enableEscapeBgp" : false,
"extInterfaceType" : "Vbdif",
"enableNull0Route" : false,
"null0IpVersion" : "Ipv4",
"escapeMode" : "manual",
"escapeVlan" : 2000,
"escapeIpList" : [
{
"deviceId" : "e22e0885-6c05-4cc1-8ddc-b7d0a21edbf3",
"ipv4" : "10.1.1.1/30",
"ipv6" : "fc00::1/7"
}
],
"enableDciRoutePolicy" : false,
"additional" : {
"producer" : "default",
"createAt" : "2017-08-10 16:30:40",
"updateAt" : "2017-08-10 16:30:40"
}
}
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A device group configuration service needs to be deleted by ID from a logical
router.
Functions
ID for deleting a device group configuration service from a logical router.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 200 times/minute.
HTTP Method
DELETE
URI
/controller/dc/v3/logicnetwork/router/devicecfgs/devicecfg/{id}
Request Parameters
N/A
Sample Request
HTTP
DELETE /controller/dc/v3/logicnetwork/router/devicecfgs/devicecfg/dc417c43-4426-4244-
be45-44b0c6ff2864?producer=North HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 204: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Sample Response
Response status code 204: successfully
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Typical Scenarios
A loopback interface needs to be created.
Functions
Create a loopback interface.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 100 times/minute.
HTTP Method
POST
URI
/controller/dc/v3/logicnetwork/loopbacks
Request Parameters
Sample Request
HTTP
POST /controller/dc/v3/logicnetwork/loopbacks HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"loopback" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "bfd1",
"description" : "This is for tenant1.",
"ownerType" : 1,
"routerId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"loopbackId" : "200",
"ip" : [
"192.168.1.0/24"
],
"deviceGroupId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceList" : [
{
"deviceId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"ip" : [
"192.168.1.0/24"
]
}
]
}
]
}
Response Parameters
Response status code 204: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 204: successfully
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
The loopback interface list needs to be queried.
Functions
Query the loopback interface list by condition.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 100 times/minute.
HTTP Method
GET
URI
/controller/dc/v3/logicnetwork/loopbacks
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v3/logicnetwork/loopbacks?ownerType=1&routerId=DBB702C3-7719-4FE6-
A5AD-3A9C9E265309&loopbackId=200&pageIndex=1&pageSize=1 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"loopback" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "bfd1",
"description" : "This is for tenant1.",
"ownerType" : 1,
"routerId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"loopbackId" : "200",
"ip" : [
"192.168.1.0/24"
],
"deviceGroupId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceList" : [
{
"deviceId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"ip" : [
"192.168.1.0/24"
]
}
]
}
],
"totalNum" : 200,
"pageIndex" : 10,
"pageSize" : 10
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A loopback interface needs to be queried.
Functions
Query a loopback interface.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/controller/dc/v3/logicnetwork/loopbacks/loopback/{id}
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v3/logicnetwork/loopbacks/loopback/DBB702C3-7719-4FE6-A5AD-3A9C9E265309 HTTP/
1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"loopback" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "bfd1",
"description" : "This is for tenant1.",
"ownerType" : 1,
"routerId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"loopbackId" : "200",
"ip" : [
"192.168.1.0/24"
],
"deviceGroupId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceList" : [
{
"deviceId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"ip" : [
"192.168.1.0/24"
]
}
]
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A loopback interface needs to be updated.
Functions
Update a loopback interface by ID. Parameters of a loopback interface can be
modified only when no services reference the loopback interface.
Constraints
User role: northbound operator.
HTTP Method
PUT
URI
/controller/dc/v3/logicnetwork/loopbacks/loopback/{id}
Request Parameters
Sample Request
HTTP
PUT /controller/dc/v3/logicnetwork/loopbacks/loopback/DBB702C3-7719-4FE6-A5AD-3A9C9E265309 HTTP/
1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"loopback" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "bfd1",
"description" : "This is for tenant1.",
"ownerType" : 1,
"routerId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"loopbackId" : "200",
"ip" : [
"192.168.1.0/24"
],
"deviceGroupId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceList" : [
{
"deviceId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"ip" : [
"192.168.1.0/24"
]
}
]
}
]
}
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"loopback" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "bfd1",
"description" : "This is for tenant1.",
"ownerType" : 1,
"routerId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"loopbackId" : "200",
"ip" : [
"192.168.1.0/24"
],
"deviceGroupId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceList" : [
{
"deviceId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"ip" : [
"192.168.1.0/24"
]
}
]
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A loopback interface needs to be deleted by ID.
Functions
Delete a loopback interface by ID. A loopback interface can be deleted only when
no services reference it.
Constraints
User role: northbound operator.
HTTP Method
DELETE
URI
/controller/dc/v3/logicnetwork/loopbacks/loopback/{id}
Request Parameters
N/A
Sample Request
HTTP
DELETE /controller/dc/v3/logicnetwork/loopbacks/loopback/DBB702C3-7719-4FE6-A5AD-3A9C9E265309
HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 204: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Sample Response
Response status code 204: successfully
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
The name and usage of a logical resource need to be queried.
Functions
Query the name and usage of child resources based on the parent resource ID.
Constraints
User role: northbound operator.
HTTP Method
POST
URI
/controller/dc/v3/logicnetwork/logicresusage
Request Parameters
Sample Request
HTTP
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
2. For a group of devices that function as a logic router or external gateway, only
one OSPF or OSPFv3 process can be deployed, with the same process ID. Different
processes can be deployed on different groups of devices. The process IDs that the
Agile Controller-DCN automatically allocates are different by default.
Typical Scenarios
An OSPF process needs to be created.
Functions
Create an OSPF process globally or in a tenant view. By default, an OSPF process
created in a tenant view is visible to the tenant.
Constraints
User role: northbound operator.
HTTP Method
POST
URI
/controller/dc/v3/logicnetwork/ospf/processs
Request Parameters
Sample Request
HTTP
POST /controller/dc/v3/logicnetwork/ospf/processs HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"process" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "ospf1",
"description" : "This is for tenant1.",
"ownerType" : 1,
"routerId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"type" : 1,
"ospfProcessId" : 100,
"deviceGroup" : [
{
"deviceGroup" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceCfg" : [
{
"deviceId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"ospfRouterId" : "192.168.1.1"
}
]
}
],
"ospfCfg" : {
"vpnCapability" : false,
"bandwidthReference" : 100,
"routePreference" : [
{
"routeType" : 1,
"preference" : 10
}
],
"stubRouter" : {
"flag" : "NoConfig",
"interval" : 500,
"externalLsa" : true,
"externalCost" : 16711680
},
"defaultRoute" : {
"enable" : true,
"always" : true,
"permit-ibgp" : true
},
"importRtp" : [
{
"protocol" : 1,
"cost" : 1,
"tag" : 1,
"type" : 1,
"permitIbgp" : true,
"rtpId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309"
}
],
"export2EvpnRtpId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"filterImportRtpId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"timer" : {
"lsaArrival" : {
"intervalEnable" : false,
"interval" : 1,
"intelligentTimerEnable" : false,
"maxInterval" : 1000,
"startInterval" : 500,
"holdInterval" : 500
},
"lsaOriginate" : {
"intelligentTimerEnable" : false,
"maxInterval" : 5000,
"startInterval" : 500,
"holdInterval" : 1000
},
"spfSchedule" : {
"intelligentTimerEnable" : false,
"maxInterval" : 5000,
"startInterval" : 50,
"holdInterval" : 200
}
}
},
"ospfV3Cfg" : {
"vpnCapability" : false,
"bandwidthReference" : 100,
"routePreference" : [
{
"routeType" : 1,
"preference" : 10
}
],
"stubRouter" : {
"flag" : "NoConfig",
"interval" : 500,
"externalLsa" : true,
"externalCost" : 16711680
},
"defaultRoute" : {
"enable" : true,
"always" : true,
"permit-ibgp" : true
},
"importRtp" : [
{
"protocol" : 1,
"cost" : 1,
"tag" : 1,
"type" : 1,
"permitIbgp" : true,
"rtpId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309"
}
],
"export2EvpnRtpId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"filterImportRtpId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"timer" : {
"lsaArrival" : {
"intervalEnable" : false,
"interval" : 1,
"intelligentTimerEnable" : false,
"maxInterval" : 1000,
"startInterval" : 500,
"holdInterval" : 500
},
"lsaOriginate" : {
"intelligentTimerEnable" : false,
"maxInterval" : 5000,
"startInterval" : 500,
"holdInterval" : 1000
},
"spfSchedule" : {
"intelligentTimerEnable" : false,
"maxInterval" : 5000,
"startInterval" : 50,
"holdInterval" : 200
}
}
}
}
]
}
Response Parameters
Response status code 204: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Sample Response
Response status code 204: successfully
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
OSPF process information needs to be queried.
Functions
Query the OSPF process list by logical router or external gateway.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/controller/dc/v3/logicnetwork/ospf/processs
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v3/logicnetwork/ospf/processs?pageIndex=1&pageSize=1&vrfName=vrfName1 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"process" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "ospf1",
"description" : "This is for tenant1.",
"ownerType" : 1,
"routerId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"type" : 1,
"ospfProcessId" : 100,
"deviceGroup" : [
{
"deviceGroup" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceCfg" : [
{
"deviceId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"ospfRouterId" : "192.168.1.1"
}
]
}
],
"ospfCfg" : {
"vpnCapability" : false,
"bandwidthReference" : 100,
"routePreference" : [
{
"routeType" : 1,
"preference" : 10
}
],
"stubRouter" : {
"flag" : "NoConfig",
"interval" : 500,
"externalLsa" : true,
"externalCost" : 16711680
},
"defaultRoute" : {
"enable" : true,
"always" : true,
"permit-ibgp" : true
},
"importRtp" : [
{
"protocol" : 1,
"cost" : 1,
"tag" : 1,
"type" : 1,
"permitIbgp" : true,
"rtpId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309"
}
],
"export2EvpnRtpId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"filterImportRtpId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"timer" : {
"lsaArrival" : {
"intervalEnable" : false,
"interval" : 1,
"intelligentTimerEnable" : false,
"maxInterval" : 1000,
"startInterval" : 500,
"holdInterval" : 500
},
"lsaOriginate" : {
"intelligentTimerEnable" : false,
"maxInterval" : 5000,
"startInterval" : 500,
"holdInterval" : 1000
},
"spfSchedule" : {
"intelligentTimerEnable" : false,
"maxInterval" : 5000,
"startInterval" : 50,
"holdInterval" : 200
}
}
},
"ospfV3Cfg" : {
"vpnCapability" : false,
"bandwidthReference" : 100,
"routePreference" : [
{
"routeType" : 1,
"preference" : 10
}
],
"stubRouter" : {
"flag" : "NoConfig",
"interval" : 500,
"externalLsa" : true,
"externalCost" : 16711680
},
"defaultRoute" : {
"enable" : true,
"always" : true,
"permit-ibgp" : true
},
"importRtp" : [
{
"protocol" : 1,
"cost" : 1,
"tag" : 1,
"type" : 1,
"permitIbgp" : true,
"rtpId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309"
}
],
"export2EvpnRtpId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"filterImportRtpId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"timer" : {
"lsaArrival" : {
"intervalEnable" : false,
"interval" : 1,
"intelligentTimerEnable" : false,
"maxInterval" : 1000,
"startInterval" : 500,
"holdInterval" : 500
},
"lsaOriginate" : {
"intelligentTimerEnable" : false,
"maxInterval" : 5000,
"startInterval" : 500,
"holdInterval" : 1000
},
"spfSchedule" : {
"intelligentTimerEnable" : false,
"maxInterval" : 5000,
"startInterval" : 50,
"holdInterval" : 200
}
}
}
}
],
"totalNum" : 200,
"pageIndex" : 10,
"pageSize" : 10
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
OSPF process information needs to be queried.
Functions
Query OSPF process information.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 100 times/minute.
HTTP Method
GET
URI
/controller/dc/v3/logicnetwork/ospf/processs/process/{id}
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v3/logicnetwork/ospf/processs/process/DBB702C3-7719-4FE6-A5AD-3A9C9E265309
HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"process" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "ospf1",
"description" : "This is for tenant1.",
"ownerType" : 1,
"routerId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"type" : 1,
"ospfProcessId" : 100,
"deviceGroup" : [
{
"deviceGroup" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceCfg" : [
{
"deviceId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"ospfRouterId" : "192.168.1.1"
}
]
}
],
"ospfCfg" : {
"vpnCapability" : false,
"bandwidthReference" : 100,
"routePreference" : [
{
"routeType" : 1,
"preference" : 10
}
],
"stubRouter" : {
"flag" : "NoConfig",
"interval" : 500,
"externalLsa" : true,
"externalCost" : 16711680
},
"defaultRoute" : {
"enable" : true,
"always" : true,
"permit-ibgp" : true
},
"importRtp" : [
{
"protocol" : 1,
"cost" : 1,
"tag" : 1,
"type" : 1,
"permitIbgp" : true,
"rtpId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309"
}
],
"export2EvpnRtpId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"filterImportRtpId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"timer" : {
"lsaArrival" : {
"intervalEnable" : false,
"interval" : 1,
"intelligentTimerEnable" : false,
"maxInterval" : 1000,
"startInterval" : 500,
"holdInterval" : 500
},
"lsaOriginate" : {
"intelligentTimerEnable" : false,
"maxInterval" : 5000,
"startInterval" : 500,
"holdInterval" : 1000
},
"spfSchedule" : {
"intelligentTimerEnable" : false,
"maxInterval" : 5000,
"startInterval" : 50,
"holdInterval" : 200
}
}
},
"ospfV3Cfg" : {
"vpnCapability" : false,
"bandwidthReference" : 100,
"routePreference" : [
{
"routeType" : 1,
"preference" : 10
}
],
"stubRouter" : {
"flag" : "NoConfig",
"interval" : 500,
"externalLsa" : true,
"externalCost" : 16711680
},
"defaultRoute" : {
"enable" : true,
"always" : true,
"permit-ibgp" : true
},
"importRtp" : [
{
"protocol" : 1,
"cost" : 1,
"tag" : 1,
"type" : 1,
"permitIbgp" : true,
"rtpId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309"
}
],
"export2EvpnRtpId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"filterImportRtpId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"timer" : {
"lsaArrival" : {
"intervalEnable" : false,
"interval" : 1,
"intelligentTimerEnable" : false,
"maxInterval" : 1000,
"startInterval" : 500,
"holdInterval" : 500
},
"lsaOriginate" : {
"intelligentTimerEnable" : false,
"maxInterval" : 5000,
"startInterval" : 500,
"holdInterval" : 1000
},
"spfSchedule" : {
"intelligentTimerEnable" : false,
"maxInterval" : 5000,
"startInterval" : 50,
"holdInterval" : 200
}
}
}
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
OSPF process information needs to be updated.
Functions
Update OSPF process information by ID. An OSPF process can be updated only
when no services reference it.
Constraints
User role: northbound operator.
HTTP Method
PUT
URI
/controller/dc/v3/logicnetwork/ospf/processs/process/{id}
Request Parameters
Sample Request
HTTP
PUT /controller/dc/v3/logicnetwork/ospf/processs/process/DBB702C3-7719-4FE6-A5AD-3A9C9E265309
HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"process" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "ospf1",
"description" : "This is for tenant1.",
"ownerType" : 1,
"routerId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"type" : 1,
"ospfProcessId" : 100,
"deviceGroup" : [
{
"deviceGroup" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceCfg" : [
{
"deviceId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"ospfRouterId" : "192.168.1.1"
}
]
}
],
"ospfCfg" : {
"vpnCapability" : false,
"bandwidthReference" : 100,
"routePreference" : [
{
"routeType" : 1,
"preference" : 10
}
],
"stubRouter" : {
"flag" : "NoConfig",
"interval" : 500,
"externalLsa" : true,
"externalCost" : 16711680
},
"defaultRoute" : {
"enable" : true,
"always" : true,
"permit-ibgp" : true
},
"importRtp" : [
{
"protocol" : 1,
"cost" : 1,
"tag" : 1,
"type" : 1,
"permitIbgp" : true,
"rtpId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309"
}
],
"export2EvpnRtpId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"filterImportRtpId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"timer" : {
"lsaArrival" : {
"intervalEnable" : false,
"interval" : 1,
"intelligentTimerEnable" : false,
"maxInterval" : 1000,
"startInterval" : 500,
"holdInterval" : 500
},
"lsaOriginate" : {
"intelligentTimerEnable" : false,
"maxInterval" : 5000,
"startInterval" : 500,
"holdInterval" : 1000
},
"spfSchedule" : {
"intelligentTimerEnable" : false,
"maxInterval" : 5000,
"startInterval" : 50,
"holdInterval" : 200
}
}
},
"ospfV3Cfg" : {
"vpnCapability" : false,
"bandwidthReference" : 100,
"routePreference" : [
{
"routeType" : 1,
"preference" : 10
}
],
"stubRouter" : {
"flag" : "NoConfig",
"interval" : 500,
"externalLsa" : true,
"externalCost" : 16711680
},
"defaultRoute" : {
"enable" : true,
"always" : true,
"permit-ibgp" : true
},
"importRtp" : [
{
"protocol" : 1,
"cost" : 1,
"tag" : 1,
"type" : 1,
"permitIbgp" : true,
"rtpId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309"
}
],
"export2EvpnRtpId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"filterImportRtpId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"timer" : {
"lsaArrival" : {
"intervalEnable" : false,
"interval" : 1,
"intelligentTimerEnable" : false,
"maxInterval" : 1000,
"startInterval" : 500,
"holdInterval" : 500
},
"lsaOriginate" : {
"intelligentTimerEnable" : false,
"maxInterval" : 5000,
"startInterval" : 500,
"holdInterval" : 1000
},
"spfSchedule" : {
"intelligentTimerEnable" : false,
"maxInterval" : 5000,
"startInterval" : 50,
"holdInterval" : 200
}
}
}
}
]
}
Response Parameters
Response status code 200: successfully
OspfProcessDtoWrapper parameters, For details, see Table 1-1389.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"process" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "ospf1",
"description" : "This is for tenant1.",
"ownerType" : 1,
"routerId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"type" : 1,
"ospfProcessId" : 100,
"deviceGroup" : [
{
"deviceGroup" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"deviceCfg" : [
{
"deviceId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"ospfRouterId" : "192.168.1.1"
}
]
}
],
"ospfCfg" : {
"vpnCapability" : false,
"bandwidthReference" : 100,
"routePreference" : [
{
"routeType" : 1,
"preference" : 10
}
],
"stubRouter" : {
"flag" : "NoConfig",
"interval" : 500,
"externalLsa" : true,
"externalCost" : 16711680
},
"defaultRoute" : {
"enable" : true,
"always" : true,
"permit-ibgp" : true
},
"importRtp" : [
{
"protocol" : 1,
"cost" : 1,
"tag" : 1,
"type" : 1,
"permitIbgp" : true,
"rtpId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309"
}
],
"export2EvpnRtpId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"filterImportRtpId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"timer" : {
"lsaArrival" : {
"intervalEnable" : false,
"interval" : 1,
"intelligentTimerEnable" : false,
"maxInterval" : 1000,
"startInterval" : 500,
"holdInterval" : 500
},
"lsaOriginate" : {
"intelligentTimerEnable" : false,
"maxInterval" : 5000,
"startInterval" : 500,
"holdInterval" : 1000
},
"spfSchedule" : {
"intelligentTimerEnable" : false,
"maxInterval" : 5000,
"startInterval" : 50,
"holdInterval" : 200
}
}
},
"ospfV3Cfg" : {
"vpnCapability" : false,
"bandwidthReference" : 100,
"routePreference" : [
{
"routeType" : 1,
"preference" : 10
}
],
"stubRouter" : {
"flag" : "NoConfig",
"interval" : 500,
"externalLsa" : true,
"externalCost" : 16711680
},
"defaultRoute" : {
"enable" : true,
"always" : true,
"permit-ibgp" : true
},
"importRtp" : [
{
"protocol" : 1,
"cost" : 1,
"tag" : 1,
"type" : 1,
"permitIbgp" : true,
"rtpId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309"
}
],
"export2EvpnRtpId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"filterImportRtpId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"timer" : {
"lsaArrival" : {
"intervalEnable" : false,
"interval" : 1,
"intelligentTimerEnable" : false,
"maxInterval" : 1000,
"startInterval" : 500,
"holdInterval" : 500
},
"lsaOriginate" : {
"intelligentTimerEnable" : false,
"maxInterval" : 5000,
"startInterval" : 500,
"holdInterval" : 1000
},
"spfSchedule" : {
"intelligentTimerEnable" : false,
"maxInterval" : 5000,
"startInterval" : 50,
"holdInterval" : 200
}
}
}
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Typical Scenarios
An OSPF process needs to be deleted by ID.
Functions
Delete an OSPF process by ID. An OSPF process can be deleted only when no
services reference it.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 100 times/minute.
HTTP Method
DELETE
URI
/controller/dc/v3/logicnetwork/ospf/processs/process/{id}
Request Parameters
N/A
Sample Request
HTTP
DELETE /controller/dc/v3/logicnetwork/ospf/processs/process/DBB702C3-7719-4FE6-A5AD-3A9C9E265309
HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 204: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 204: successfully
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
An OSPF neighbor needs to be created.
Functions
Create an OSPF neighbor globally or in a tenant view. By default, an OSPF
neighbor created in a tenant view is visible to the tenant.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 100 times/minute.
HTTP Method
POST
URI
/controller/dc/v3/logicnetwork/ospf/peers
Request Parameters
Sample Request
HTTP
POST /controller/dc/v3/logicnetwork/ospf/peers HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"peer" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"processId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"ipFamily" : 1,
"sourceIfType" : 1,
"sourceIfId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"areaId" : "192.168.2.2",
"networkType" : 1,
"drPriority" : 100,
"cost" : 100,
"helloInterval" : 100,
"deadInterval" : 100,
"bfd" : {
"enable" : false,
"detectMultiplier" : 3,
"minTxinterval" : 10,
"minRxinterval" : 10
},
"auth" : {
"mode" : 1,
"passwordText" : "passwordText",
"keyId" : 1
}
}
]
}
Response Parameters
Response status code 204: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 204: successfully
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
OSPF neighbor information needs to be queried.
Functions
Query the OSPF neighbor list by the OSPF network process ID, VRF name,
interface name, or IP address family.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 100 times/minute.
HTTP Method
GET
URI
/controller/dc/v3/logicnetwork/ospf/peers
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v3/logicnetwork/ospf/peers?
pageIndex=1&pageSize=1&vrfName=vrfName1&ifName=ifName1 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"peer" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"processId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"ipFamily" : 1,
"sourceIfType" : 1,
"sourceIfId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"areaId" : "192.168.2.2",
"networkType" : 1,
"drPriority" : 100,
"cost" : 100,
"helloInterval" : 100,
"deadInterval" : 100,
"bfd" : {
"enable" : false,
"detectMultiplier" : 3,
"minTxinterval" : 10,
"minRxinterval" : 10
},
"auth" : {
"mode" : 1,
"passwordText" : "passwordText",
"keyId" : 1
}
}
],
"totalNum" : 200,
"pageIndex" : 10,
"pageSize" : 10
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
OSPF neighbor information needs to be queried.
Functions
Query OSPF neighbor information.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 100 times/minute.
HTTP Method
GET
URI
/controller/dc/v3/logicnetwork/ospf/peers/peer/{id}
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v3/logicnetwork/ospf/peers/peer/DBB702C3-7719-4FE6-A5AD-3A9C9E265309 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"peer" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"processId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"ipFamily" : 1,
"sourceIfType" : 1,
"sourceIfId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"areaId" : "192.168.2.2",
"networkType" : 1,
"drPriority" : 100,
"cost" : 100,
"helloInterval" : 100,
"deadInterval" : 100,
"bfd" : {
"enable" : false,
"detectMultiplier" : 3,
"minTxinterval" : 10,
"minRxinterval" : 10
},
"auth" : {
"mode" : 1,
"passwordText" : "passwordText",
"keyId" : 1
}
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
OSPF neighbor information needs to be updated.
Functions
Update OSPF neighbor information by ID. An OSPF neighbor can be updated only
when no services reference it.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 100 times/minute.
HTTP Method
PUT
URI
/controller/dc/v3/logicnetwork/ospf/peers/peer/{id}
Request Parameters
Sample Request
HTTP
PUT /controller/dc/v3/logicnetwork/ospf/peers/peer/DBB702C3-7719-4FE6-A5AD-3A9C9E265309 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"peer" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"processId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"ipFamily" : 1,
"sourceIfType" : 1,
"sourceIfId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"areaId" : "192.168.2.2",
"networkType" : 1,
"drPriority" : 100,
"cost" : 100,
"helloInterval" : 100,
"deadInterval" : 100,
"bfd" : {
"enable" : false,
"detectMultiplier" : 3,
"minTxinterval" : 10,
"minRxinterval" : 10
},
"auth" : {
"mode" : 1,
"passwordText" : "passwordText",
"keyId" : 1
}
}
]
}
Response Parameters
Response status code 200: successfully
OspfPeerDtoWrapper parameters, For details, see Table 1-1404.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"peer" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"processId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"ipFamily" : 1,
"sourceIfType" : 1,
"sourceIfId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"areaId" : "192.168.2.2",
"networkType" : 1,
"drPriority" : 100,
"cost" : 100,
"helloInterval" : 100,
"deadInterval" : 100,
"bfd" : {
"enable" : false,
"detectMultiplier" : 3,
"minTxinterval" : 10,
"minRxinterval" : 10
},
"auth" : {
"mode" : 1,
"passwordText" : "passwordText",
"keyId" : 1
}
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
An OSPF neighbor needs to be deleted by ID.
Functions
Delete an OSPF neighbor by ID. An OSPF neighbor can be deleted only when no
services reference it.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 100 times/minute.
HTTP Method
DELETE
URI
/controller/dc/v3/logicnetwork/ospf/peers/peer/{id}
Request Parameters
N/A
Sample Request
HTTP
DELETE /controller/dc/v3/logicnetwork/ospf/peers/peer/DBB702C3-7719-4FE6-A5AD-3A9C9E265309 HTTP/
1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 204: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 204: successfully
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
OSPF neighbor states need to be queried.
Functions
Query OSPF neighbor states on a device. If a logical switch is used as a neighbor
interface, the logical switch may be connected to multiple devices. In this case, the
interface will return the neighbor states of multiple devices simultaneously.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 100 times/minute.
HTTP Method
GET
URI
/controller/dc/v3/logicnetwork/ospf/peers/peer/{id}/running
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v3/logicnetwork/ospf/peers/peer/DBB702C3-7719-4FE6-A5AD-3A9C9E265309/running
HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"running" : [
{
"deviceId" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"status" : "1",
"peerIp" : "1"
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Availability: Tier 1
Typical Scenarios
Routing whitelist information needs to be queried by router ID.
Functions
Query routing whitelist information by router ID.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 100 times/minute.
HTTP Method
GET
URI
/controller/dc/v3/logicnetwork/external_whitelists/{id}
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v3/logicnetwork/external_whitelists/DBB702C3-7719-4FE6-A5AD-3A9C9E265309 HTTP/
1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"external_whitelist" : {
"id" : "00000000-0000-0000-1234-000000000002",
"router_id" : "00000000-0000-0000-1234-000000000002",
"routes" : ["192.168.1.0/24"],
"subnets" : ["00000000-0000-0000-1234-000000000003"]
}
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A routing whitelist needs to be queried.
Functions
Query a routing whitelist.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 25 times/minute.
HTTP Method
PUT
URI
/controller/dc/v3/logicnetwork/external_whitelists/{id}
Request Parameters
Sample Request
HTTP
PUT /controller/dc/v3/logicnetwork/external_whitelists/DBB702C3-7719-4FE6-A5AD-3A9C9E265309 HTTP/
1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"external_whitelist" : {
"id" : "00000000-0000-0000-1234-000000000002",
"router_id" : "00000000-0000-0000-1234-000000000002",
"routes" : ["192.168.1.0/24"],
"subnets" : ["00000000-0000-0000-1234-000000000003"]
}
}
Response Parameters
Response status code 204: successfully
RouteWhiteListWrapper parameters, For details, see Table 1-1412.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 204: successfully
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"external_whitelist" : {
"id" : "00000000-0000-0000-1234-000000000002",
"router_id" : "00000000-0000-0000-1234-000000000002",
"routes" : ["192.168.1.0/24"],
"subnets" : ["00000000-0000-0000-1234-000000000003"]
}
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Delete Routes in the Whitelist.
Functions
Delete routing whitelist information by routing whitelist ID.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 25 times/minute.
HTTP Method
DELETE
URI
/controller/dc/v3/logicnetwork/external_whitelists/{id}
Request Parameters
N/A
Sample Request
HTTP
DELETE /controller/dc/v3/logicnetwork/external_whitelists/DBB702C3-7719-4FE6-A5AD-3A9C9E265309
HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 204: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 204: successfully
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A routing whitelist needs to be created.
Functions
Create a routing whitelist.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 25 times/minute.
HTTP Method
POST
URI
/controller/dc/v3/logicnetwork/external_whitelists
Request Parameters
Sample Request
HTTP
POST /controller/dc/v3/logicnetwork/external_whitelists HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"external_whitelist" : {
"id" : "00000000-0000-0000-1234-000000000002",
"router_id" : "00000000-0000-0000-1234-000000000002",
"routes" : ["192.168.1.0/24"],
"subnets" : ["00000000-0000-0000-1234-000000000003"]
}
}
Response Parameters
Response status code 204: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 204: successfully
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Typical Scenarios
Routing whitelists need to be queried.
Functions
Query routing whitelist information by router ID.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 25 times/minute.
HTTP Method
GET
URI
/controller/dc/v3/logicnetwork/external_whitelists
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v3/logicnetwork/external_whitelists?router_id=DBB702C3-7719-4FE6-
A5AD-3A9C9E265309 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Sample Response
Response status code 200: successfully
HTTP/1.1 200 OK
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"external_whitelists" : [
{
"id" : "00000000-0000-0000-1234-000000000002",
"router_id" : "00000000-0000-0000-1234-000000000002",
"routes" : ["192.168.1.0/24"],
"subnets" : ["00000000-0000-0000-1234-000000000003"]
}
]
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Add Subnets to a Whitelist.
Functions
Add subnets to a whitelist by subnet ID.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 25 times/minute.
HTTP Method
PUT
URI
/controller/dc/v3/logicnetwork/external_whitelists/{id}/add_subnets
Request Parameters
Sample Request
HTTP
PUT /controller/dc/v3/logicnetwork/external_whitelists/DBB702C3-7719-4FE6-A5AD-3A9C9E265309/
add_subnets HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"external_whitelist" : {
"subnets" : ["00000000-0000-0000-1234-000000000003"]
}
}
Response Parameters
Response status code 204: successfully
RouteWhiteListWrapper parameters, For details, see Table 1-1412.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 204: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Remove Subnets from a Whitelist.
Functions
Delete subnets from a whitelist by subnet ID.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 25 times/minute.
HTTP Method
PUT
URI
/controller/dc/v3/logicnetwork/external_whitelists/{id}/remove_subnets
Request Parameters
Sample Request
HTTP
PUT /controller/dc/v3/logicnetwork/external_whitelists/DBB702C3-7719-4FE6-A5AD-3A9C9E265309/
remove_subnets HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"external_whitelist" : {
"subnets" : ["00000000-0000-0000-1234-000000000003"]
}
}
Response Parameters
Response status code 204: successfully
RouteWhiteListWrapper parameters, For details, see Table 1-1412.
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
For details, see the response message body.
Sample Response
Response status code 204: successfully
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"external_whitelist" : {
"id" : "00000000-0000-0000-1234-000000000002",
"router_id" : "00000000-0000-0000-1234-000000000002",
"routes" : ["192.168.1.0/24"],
"subnets" : ["00000000-0000-0000-1234-000000000003"]
}
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Add routes to a whitelist by route ID.
Functions
Add routes to a whitelist by route.
Constraints
User role: northbound operator.
Concurrency specification: ≤ 25 times/minute.
HTTP Method
PUT
URI
/controller/dc/v3/logicnetwork/external_whitelists/{id}/add_routes
Request Parameters
Sample Request
HTTP
PUT /controller/dc/v3/logicnetwork/external_whitelists/DBB702C3-7719-4FE6-A5AD-3A9C9E265309/
add_routes HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"external_whitelist" : {
"routes" : ["192.168.1.0/24"]
}
}
Response Parameters
Response status code 204: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Sample Response
Response status code 204: successfully
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"external_whitelist" : {
"id" : "00000000-0000-0000-1234-000000000002",
"router_id" : "00000000-0000-0000-1234-000000000002",
"routes" : ["192.168.1.0/24"],
"subnets" : ["00000000-0000-0000-1234-000000000003"]
}
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Delete Specified Routing Whitelist Information.
Functions
Delete specified routing whitelist information by routing whitelist ID.
Constraints
User role: northbound operator.
HTTP Method
PUT
URI
/controller/dc/v3/logicnetwork/external_whitelists/{id}/remove_routes
Request Parameters
Sample Request
HTTP
PUT /controller/dc/v3/logicnetwork/external_whitelists/DBB702C3-7719-4FE6-A5AD-3A9C9E265309/
remove_routes HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"external_whitelist" : {
"routes" : ["192.168.1.0/24"]
}
}
Response Parameters
Response status code 204: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Sample Response
Response status code 204: successfully
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
"external_whitelist" : {
"id" : "00000000-0000-0000-1234-000000000002",
"router_id" : "00000000-0000-0000-1234-000000000002",
"routes" : ["192.168.1.0/24"],
"subnets" : ["00000000-0000-0000-1234-000000000003"]
}
}
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
A routing policy needs to be created.
Functions
Create a routing policy globally or in a tenant view. By default, a routing policy
created in a tenant view is visible to the tenant.
Constraints
User role: northbound operator.
HTTP Method
POST
URI
/controller/dc/v3/logicnetwork/rtps
Request Parameters
Sample Request
HTTP
POST /controller/dc/v3/logicnetwork/rtps HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
{
"rtp" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "bfd1",
"deployPolicyName" : "bfd1",
"description" : "This is for tenant1.",
"rtpType" : "general",
"ipVersion" : "ipv4",
"relatedExternalGatewayIds" : ["DBB702C3-7719-4FE6-A5AD-3A9C9E265309"],
"deviceGroupIds" : ["DBB702C3-7719-4FE6-A5AD-3A9C9E265309"],
"deviceGroupNames" : ["deviceGroupName"],
"ipPrefixes" : ["192.168.1.0/24"],
"dciRoutePolicy" : [
{
"id" : "DBB702C3-7719-4FE6-A5AD-3A9C9E265309",
"name" : "bfd1",
"dciType" : "DciImport",
"startNodeId" : 101
}
],
"thirdPartyEnable" : false,
"merge" : false,
"rtpNode" : [
{
"index" : 1,
"mode" : 1,
"gotoNextNode" : false,
"match" : {
"ipPrefix" : [
{
"index" : 10,
"mode" : 1,
"prefix" : "10.10.10.0/24",
"matchNetwork" : false,
"maskLengthLower" : 1,
"maskLengthUpper" : 1
}
],
"tag" : 82345,
"community" : [
{
"index" : 10,
"mode" : 1,
"value" : [
100
]
}
],
"extCommunity" : [
{
"index" : 10,
"mode" : 1,
"rtValue" : [
"100:1"
]
}
],
"asPath" : [
{
"index" : 10,
"mode" : 1,
"regularExpression" : "_30_"
}
],
"l2vni" : [
"100"
],
"l3vni" : [
"100"
],
"routeType" : [
"1"
]
},
"action" : {
"applyCommunity" : {
"community" : [
"100:1"
],
"additive" : false
},
"applyAsPath" : {
"operation" : 1,
"asNumber" : [
"10"
]
},
"applyCost" : {
"operation" : 1,
"cost" : 10
},
"applyLocalPreference" : {
"value" : 10
},
"applyPreference" : {
"value" : 10
},
"applyGatewayOriginNexthop" : false
}
}
],
"additional" : {
"producer" : "10",
"createAt" : "2016-03-08T20:19:41.000+00:00",
"updateAt" : "2016-03-08T20:19:41.000+00:00"
}
}
]
}
Response Parameters
Response status code 204: successfully
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
Sample Response
Response status code 204: successfully
HTTP/1.1 204 No Content
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Response status code 400: Response status code 400: Bad request. For example,
the parameter type or value range is incorrect.
HTTP/1.1 400 Bad Request
Date: Thu,28 Apr 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Typical Scenarios
Routing policy information needs to be queried.
Functions
Query the routing policy list by condition.
Constraints
User role: northbound operator.
HTTP Method
GET
URI
/controller/dc/v3/logicnetwork/rtps
Request Parameters
N/A
Sample Request
HTTP
GET /controller/dc/v3/logicnetwork/rtps?pageIndex=1&pageSize=1 HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-ACCESS-TOKEN: x-
rwld6ng9vy2rg96llg85sbdisbmrfw1gdfamaoepoahcaq2nliams8s8epapiofx2r5druhi5g7wmmjzc5btftlduo7w88
bybuqp7xmlup9htd5gpg4bmmrufvnt4aan
Response Parameters
Response status code 200: successfully