Руководство Разработчика для Cisco Cisco Virtual Topology System 2.0

Скачать
Страница из 102
VTS 2.0 Developer Guide 
 
 
13 
"enable-dhcp": true, 
"cidr": "2.2.2.0/24", 
"gateway-ip": "2.2.2.1", 
"ip-version": "4", 
"shared": false -- 
    } 

 
GET  
Show  subnet  details  associated  to  one  VTS  Subnet  under  topology  <topology-
name> of a tenant <tenant-name>. 
https://<vtc-ip>:8888/api/running/cisco-vts/tenants/tenant/<tenant-
name>/topologies/topology/<topology-name>/subnets/subnet/<id
 
 LIST (GET) 
Show  list of  all  subnets under topology  <topology-name> of  a tenant  <tenant-
name>. 
https://<vtc-ip>:8888/api/running/cisco-vts/tenants/tenant/<tenant-
name>/topologies/topology/<topology-name>/subnets/subnet/
 
 
DELETE    
Delete subnet under topology <topology-name> of a tenant <tenant-name> and 
associated resources.
 
https://<vtc-ip>:8888/api/running/cisco-vts/tenants/tenant/<tenant-
name>/topologies/topology/<topology-name>/subnets/subnet/<id
 
 
4.6  VM Port 
Shows/Lists information for creates, updates and deletes of port 
 
Create (PUT) 
Create a port in VTS 
https://<vtc-ip>:8888/api/running/cisco-vts/tenants/tenant/<tenant-
name>/topologies/topology/<topology-name>/ports/port/<id> 
 
 
Parameter 
   Value 
Description 
network-id
 
 
uuid
 
Network ID 
id 
 uuid
 
port ID
 
name
 
String
 
Port name
 
status 
active/build/down
 
Network Status
 
admin-state-
up
 
boolean
 
Admin state of the network up or 
down 
cidr 
String 
The CIDR 
connid 
uuid 
Connection id of the device