• No results found

Appendix A – Cross-VC NSX REST API Call Examples

Make NSX Manager Primary

The NSX REST API call below should be on the primary NSX Manager. The Primary NSX Manager will change to transit state.

POST https://<NSX Manager IP>/api/2.0/universalsync/configuration/role?action=set-as-standalone

Disconnect Secondary NSX Manager from the Primary NSX Manager

The NSX REST API call below should be on the secondary NSX Manager.

POST https://<NSX Manager

M U L I T - S I T E O P T I O N S A N D C R O S S - V C N S X D E S I G N G U I D E / 1 5 9

Routing configuration for Control VM was copied over from GET API call on UDLR Control VM at site 1.

<highAvailabilityIndex>0</highAvailabilityIndex>

<vcUuid>502adf1a-f719-32ec-19ef-debddbcb0bf5</vcUuid>

<vmId>vm-109</vmId>

M U L I T - S I T E O P T I O N S A N D C R O S S - V C N S X D E S I G N G U I D E / 1 6 0

<resourcePoolId>domain-c30</resourcePoolId>

<resourcePoolName>Edge Cluster</resourcePoolName>

<datastoreId>datastore-58</datastoreId>

<datastoreName>EMC_VNX_1-1</datastoreName>

<hostId>host-51</hostId>

<hostName>10.200.1.50</hostName>

<vmFolderId>group-v22</vmFolderId>

<vmFolderName>vm</vmFolderName>

<vmHostname>NSX-edge-2167d8fa-915d-48b7-a7c1-620906013091-0</vmHostname>

<vmName>edge-2167d8fa-915d-48b7-a7c1-620906013091-0-Universal DLR</vmName>

<deployed>true</deployed>

<edgeId>edge-2167d8fa-915d-48b7-a7c1-620906013091</edgeId>

</appliance> intercepted, monitored, recorded, copied, audited, inspected, and disclosed to your employer, to authorized site, government, and law enforcement personnel, as well as authorized officials of government agencies, both domestic and foreign.

By using this system, the user consents to such interception, monitoring, recording, copying, auditing, inspection, and disclosure at the

discretion of such personnel or officials. Unauthorized or improper use of this system may result in civil and criminal penalties and

administrative or disciplinary action, as appropriate. By continuing to use this system you indicate your awareness of and consent to these terms

M U L I T - S I T E O P T I O N S A N D C R O S S - V C N S X D E S I G N G U I D E / 1 6 1

<version>23</version>

<enabled>true</enabled>

<globalConfig>

<tcpPickOngoingConnections>false</tcpPickOngoingConnections>

<tcpAllowOutOfWindowPackets>false</tcpAllowOutOfWindowPackets>

<tcpSendResetForClosedVsePorts>true</tcpSendResetForClosedVsePorts>

<dropInvalidTraffic>true</dropInvalidTraffic>

<logInvalidTraffic>false</logInvalidTraffic>

<tcpTimeoutOpen>30</tcpTimeoutOpen>

<tcpTimeoutEstablished>3600</tcpTimeoutEstablished>

<tcpTimeoutClose>30</tcpTimeoutClose>

<udpTimeout>60</udpTimeout>

<icmpTimeout>10</icmpTimeout>

<icmp6Timeout>10</icmp6Timeout>

<ipGenericTimeout>120</ipGenericTimeout>

</globalConfig>

<defaultPolicy>

<action>deny</action>

<loggingEnabled>false</loggingEnabled>

</defaultPolicy>

M U L I T - S I T E O P T I O N S A N D C R O S S - V C N S X D E S I G N G U I D E / 1 6 2

<ruleType>default_policy</ruleType>

<enabled>true</enabled>

<loggingEnabled>false</loggingEnabled>

<description>default rule for ingress traffic</description>

<action>deny</action>

<gracefulRestart>true</gracefulRestart>

<defaultOriginate>false</defaultOriginate>

</ospf>

M U L I T - S I T E O P T I O N S A N D C R O S S - V C N S X D E S I G N G U I D E / 1 6 3

<ipAddress>172.39.39.2</ipAddress>

<protocolAddress>172.39.39.13</protocolAddress>

<forwardingAddress>172.39.39.14</forwardingAddress>

<remoteAS>64514</remoteAS>

<forwardingAddress>172.39.39.14</forwardingAddress>

<remoteAS>64514</remoteAS>

<gracefulRestart>false</gracefulRestart>

<defaultOriginate>false</defaultOriginate>

</bgp>

<declareDeadTime>15</declareDeadTime>

<logging>

M U L I T - S I T E O P T I O N S A N D C R O S S - V C N S X D E S I G N G U I D E / 1 6 4

<label>15f9000000002/vNic_2</label>

<name>Transit_Uplink</name>

<addressGroups>

<addressGroup>

<primaryAddress>172.39.39.14</primaryAddress>

<subnetMask>255.255.255.240</subnetMask>

<subnetPrefixLength>28</subnetPrefixLength>

</addressGroup>

</addressGroups>

<mtu>1500</mtu>

<type>uplink</type>

<isConnected>true</isConnected>

<isSharedNetwork>false</isSharedNetwork>

<index>2</index>

<connectedToId>universalwire-10</connectedToId>

<connectedToName>Universal Transit</connectedToName>

</interface>

<interface>

<label>15f900000000a</label>

<name>Universal_Web_Internal</name>

<addressGroups>

<addressGroup>

<primaryAddress>172.20.1.254</primaryAddress>

<subnetMask>255.255.255.0</subnetMask>

<subnetPrefixLength>24</subnetPrefixLength>

</addressGroup>

</addressGroups>

<mtu>1500</mtu>

<type>internal</type>

<isConnected>true</isConnected>

<isSharedNetwork>false</isSharedNetwork>

<index>10</index>

<connectedToId>universalwire-1</connectedToId>

<connectedToName>Universal Web</connectedToName>

</interface>

<interface>

<label>15f900000000b</label>

M U L I T - S I T E O P T I O N S A N D C R O S S - V C N S X D E S I G N G U I D E / 1 6 5

<name>Universal_App_Internal</name>

<addressGroups>

<addressGroup>

<primaryAddress>172.20.2.254</primaryAddress>

<subnetMask>255.255.255.0</subnetMask>

<subnetPrefixLength>24</subnetPrefixLength>

</addressGroup>

</addressGroups>

<mtu>1500</mtu>

<type>internal</type>

<isConnected>true</isConnected>

<isSharedNetwork>false</isSharedNetwork>

<index>11</index>

<connectedToId>universalwire-4</connectedToId>

<connectedToName>Universal App</connectedToName>

</interface>

<interface>

<label>15f900000000c</label>

<name>Universal_DB_Internal</name>

<addressGroups>

<addressGroup>

<primaryAddress>172.20.3.254</primaryAddress>

<subnetMask>255.255.255.0</subnetMask>

<subnetPrefixLength>24</subnetPrefixLength>

</addressGroup>

</addressGroups>

<mtu>1500</mtu>

<type>internal</type>

<isConnected>true</isConnected>

<isSharedNetwork>false</isSharedNetwork>

<index>12</index>

<connectedToId>universalwire-5</connectedToId>

<connectedToName>Universal DB</connectedToName>

</interface>

<interface>

<label>15f900000000d</label>

<name>Universal_Web_2_Internal</name>

<addressGroups>

<addressGroup>

<primaryAddress>172.20.8.254</primaryAddress>

<subnetMask>255.255.255.0</subnetMask>

<subnetPrefixLength>24</subnetPrefixLength>

</addressGroup>

</addressGroups>

<mtu>1500</mtu>

<type>internal</type>

<isConnected>true</isConnected>

<isSharedNetwork>false</isSharedNetwork>

<index>13</index>

<connectedToId>universalwire-7</connectedToId>

<connectedToName>Universal Web 2</connectedToName>

</interface>

<interface>

<label>15f900000000e</label>

<name>Universal_App_2_Internal</name>

<addressGroups>

M U L I T - S I T E O P T I O N S A N D C R O S S - V C N S X D E S I G N G U I D E / 1 6 6

<addressGroup>

<primaryAddress>172.20.9.254</primaryAddress>

<subnetMask>255.255.255.0</subnetMask>

<subnetPrefixLength>24</subnetPrefixLength>

</addressGroup>

</addressGroups>

<mtu>1500</mtu>

<type>internal</type>

<isConnected>true</isConnected>

<isSharedNetwork>false</isSharedNetwork>

<index>14</index>

<connectedToId>universalwire-8</connectedToId>

<connectedToName>Universal App 2</connectedToName>

</interface>

<interface>

<label>15f900000000f</label>

<name>Universal_DB_2_Internal</name>

<addressGroups>

<addressGroup>

<primaryAddress>172.20.10.254</primaryAddress>

<subnetMask>255.255.255.0</subnetMask>

<subnetPrefixLength>24</subnetPrefixLength>

</addressGroup>

</addressGroups>

<mtu>1500</mtu>

<type>internal</type>

<isConnected>true</isConnected>

<isSharedNetwork>false</isSharedNetwork>

<index>15</index>

<connectedToId>universalwire-9</connectedToId>

<connectedToName>Universal DB 2</connectedToName>

</interface>

Related documents