Download OpenAPI specification:Download
This is the spec that defines the API provided by the application to provide APIs that act as proxy for openstack neutron APIS
Get one or All Networks
net_id | string Network-id of the Neutron Network to retrieve |
tenant_name | string tenant to which this network belongs |
{- "items": [
- {
- "name": "GREEN_NETWORK",
- "net_id": "123e4567-e89b-12d3-a456-426655440012",
- "efa_net_id": 1,
- "description": "Green Network",
- "segments": [
- {
- "segment_id": "1",
- "network_type": "vlan"
}
], - "tenant_name": "Customer-A",
- "admin_state_up": true,
- "mtu": 1400,
- "enable_bd": true,
- "error": [
- {
- "code": 0,
- "message": "message"
}
]
}
]
}
Create Network
name required | string |
net_id | string |
description | string |
Array of objects (Segment) unique | |
tenant_name | string Unique Name of the tenant |
admin_state_up | boolean |
mtu | integer |
enable_bd | boolean Default: false |
{- "name": "GREEN_NETWORK",
- "net_id": "123e4567-e89b-12d3-a456-426655440012",
- "description": "Bengaluru DC IP Network",
- "tenant_name": "Customer-A",
- "segments": [
- {
- "segment_id": "1",
- "network_type": "vlan"
}
], - "admin_state_up": true,
- "mtu": 1400
}
{- "name": "GREEN_NETWORK",
- "net_id": "123e4567-e89b-12d3-a456-426655440012",
- "efa_net_id": 1,
- "description": "Green Network",
- "segments": [
- {
- "segment_id": "1",
- "network_type": "vlan"
}
], - "tenant_name": "Customer-A",
- "admin_state_up": true,
- "mtu": 1400,
- "enable_bd": true,
- "error": [
- {
- "code": 0,
- "message": "message"
}
]
}
Get All Subnets
subnet_id | string ID of the Subnet to retrieve |
{- "items": [
- {
- "name": "MY_SUBNET",
- "description": "MY_GREEN_SUBNET",
- "net_id": "123e4567-e89b-12d3-a456-426655440012",
- "subnet_id": "b0e7435c-1512-45fb-aa9e-9a7c5932fb30",
- "segment_id": "1",
- "efa_subnet_id": 1,
- "ip_version": 4,
- "cidr": "10.56.4.0/22",
- "gateway_ip": "10.56.4.1",
- "ipv6_address_mode": "slaac",
- "ipv6_ra_mode": "slaac",
- "error": [
- {
- "code": 0,
- "message": "message"
}
]
}
]
}
Create Subnet
name required | string |
description | string Description of the Subnet |
net_id required | string |
subnet_id | string |
segment_id | string |
ip_version | integer <uint8> |
cidr | string |
gateway_ip | string |
ipv6_address_mode | string The IPv6 address modes specifies mechanisms for assigning IP addresses |
ipv6_ra_mode | string The IPv6 router advertisement specifies whether the networking service should transmit ICMPv6 packets, for a subnet. |
{- "name": "MY_SUBNET",
- "description": "MY_GREEN_SUBNET",
- "net_id": "123e4567-e89b-12d3-a456-426655440012",
- "subnet_id": "b0e7435c-1512-45fb-aa9e-9a7c5932fb30",
- "segment_id": "1",
- "ip_version": 4,
- "cidr": "10.56.4.0/22",
- "gateway_ip": "10.56.4.1",
- "ipv6_address_mode": "slaac",
- "ipv6_ra_mode": "slaac"
}
{- "name": "MY_SUBNET",
- "description": "MY_GREEN_SUBNET",
- "net_id": "123e4567-e89b-12d3-a456-426655440012",
- "subnet_id": "b0e7435c-1512-45fb-aa9e-9a7c5932fb30",
- "segment_id": "1",
- "efa_subnet_id": 1,
- "ip_version": 4,
- "cidr": "10.56.4.0/22",
- "gateway_ip": "10.56.4.1",
- "ipv6_address_mode": "slaac",
- "ipv6_ra_mode": "slaac",
- "error": [
- {
- "code": 0,
- "message": "message"
}
]
}
Delete Subnet by subnet UUID
subnet_id | string subnet UUID |
{- "name": "MY_SUBNET",
- "description": "MY_GREEN_SUBNET",
- "net_id": "123e4567-e89b-12d3-a456-426655440012",
- "subnet_id": "b0e7435c-1512-45fb-aa9e-9a7c5932fb30",
- "segment_id": "1",
- "efa_subnet_id": 1,
- "ip_version": 4,
- "cidr": "10.56.4.0/22",
- "gateway_ip": "10.56.4.1",
- "ipv6_address_mode": "slaac",
- "ipv6_ra_mode": "slaac",
- "error": [
- {
- "code": 0,
- "message": "message"
}
]
}
Update Subnet Settings
name required | string |
subnet_id | string |
net_id required | string |
gateway_ip required | string |
ipv6_address_mode | string The IPv6 address modes specifies mechanisms for assigning IP addresses |
ipv6_ra_mode | string The IPv6 router advertisement specifies whether the networking service should transmit ICMPv6 packets, for a subnet. |
{- "name": "MY_SUBNET",
- "net_id": "123e4567-e89b-12d3-a456-426655440012",
- "gateway_ip": "10.56.4.1"
}
{- "name": "MY_SUBNET",
- "description": "MY_GREEN_SUBNET",
- "net_id": "123e4567-e89b-12d3-a456-426655440012",
- "subnet_id": "b0e7435c-1512-45fb-aa9e-9a7c5932fb30",
- "segment_id": "1",
- "efa_subnet_id": 1,
- "ip_version": 4,
- "cidr": "10.56.4.0/22",
- "gateway_ip": "10.56.4.1",
- "ipv6_address_mode": "slaac",
- "ipv6_ra_mode": "slaac",
- "error": [
- {
- "code": 0,
- "message": "message"
}
]
}
Get specified or all Port-channel details.
name | string Unique name of the Port-channel to be fetched. |
tenant_name required | string tenant to which this port channel belongs. |
{- "items": [
- {
- "id": 1,
- "number": "1",
- "name": "po101",
- "speed": "10Gbps",
- "negotiation": "active",
- "memberinterfaces": [
- {
- "mgmtIP": "10.37.18.222",
- "intType": "ethernet",
- "name": "0/1"
}
], - "tenantName": "Tenant-1",
- "error": [
- {
- "code": 0,
- "message": "message"
}
]
}
]
}
This api will fetch the configured details like l2VNI, l3VNI and its assets.
name | string Name of the tenant to retrieve |
{- "items": [
- {
- "id": 1,
- "name": "Customer-A",
- "description": "Tenant Description",
- "l2-vni-range": "1-100",
- "l3-vni-range": "4096-5000",
- "vlan-range": "10-20,50-60",
- "num-of-vrf": 20,
- "interfaces": [
- {
- "mgmtIP": "10.37.18.222",
- "intType": "ethernet",
- "name": "0/1"
}
], - "error": [
- {
- "code": 0,
- "message": "message"
}
]
}
]
}
Create a number of new Ports
required | Array of objects (Port) unique |
{- "items": [
- {
- "name": "Private-Port",
- "port_id": "Ethernet 0/1",
- "net_id": "123e4567-e89b-12d3-a456-426655440012",
- "dns_domain": "my-domain.org",
- "dns_name": "myport",
- "device_owner": "baremetal:none",
- "switch_information": [
- {
- "intf_type": "ethernet",
- "intf_name": "0/2",
- "mgmt_ip": "10.10.10.1"
}
]
}
]
}
{- "items": [
- {
- "name": "Private-Port",
- "port_id": "Ethernet 0/1",
- "net_id": "123e4567-e89b-12d3-a456-426655440012",
- "dns_domain": "my-domain.org",
- "dns_name": "myport",
- "device_owner": "baremetal:none",
- "switch_information": [
- {
- "intf_type": "ethernet",
- "intf_name": "0/2",
- "mgmt_ip": "10.10.10.1"
}
], - "error": [
- {
- "code": 0,
- "message": "message"
}
]
}
]
}
Delete Ports by name or all ports
Port IDs to be deleted
[- "string"
]
{- "items": [
- {
- "name": "Private-Port",
- "port_id": "Ethernet 0/1",
- "net_id": "123e4567-e89b-12d3-a456-426655440012",
- "dns_domain": "my-domain.org",
- "dns_name": "myport",
- "device_owner": "baremetal:none",
- "switch_information": [
- {
- "intf_type": "ethernet",
- "intf_name": "0/2",
- "mgmt_ip": "10.10.10.1"
}
], - "error": [
- {
- "code": 0,
- "message": "message"
}
]
}
]
}
Get specified or all Ports
port_id | string Neutron port-id of the Port to retrieve |
{- "items": [
- {
- "name": "Private-Port",
- "port_id": "Ethernet 0/1",
- "net_id": "123e4567-e89b-12d3-a456-426655440012",
- "dns_domain": "my-domain.org",
- "dns_name": "myport",
- "device_owner": "baremetal:none",
- "switch_information": [
- {
- "intf_type": "ethernet",
- "intf_name": "0/2",
- "mgmt_ip": "10.10.10.1"
}
], - "error": [
- {
- "code": 0,
- "message": "message"
}
]
}
]
}
Create a new Port
name required | string |
port_id required | string |
net_id | string |
dns_domain | string |
dns_name | string |
device_owner | string |
Array of objects (SwitchInformation) unique |
{- "name": "Private-Port",
- "port_id": "Ethernet 0/1",
- "net_id": "123e4567-e89b-12d3-a456-426655440012",
- "dns_domain": "my-domain.org",
- "dns_name": "myport",
- "device_owner": "baremetal:none",
- "switch_information": [
- {
- "intf_type": "ethernet",
- "intf_name": "0/2",
- "mgmt_ip": "10.10.10.1"
}
]
}
{- "name": "Private-Port",
- "port_id": "Ethernet 0/1",
- "net_id": "123e4567-e89b-12d3-a456-426655440012",
- "dns_domain": "my-domain.org",
- "dns_name": "myport",
- "device_owner": "baremetal:none",
- "switch_information": [
- {
- "intf_type": "ethernet",
- "intf_name": "0/2",
- "mgmt_ip": "10.10.10.1"
}
], - "error": [
- {
- "code": 0,
- "message": "message"
}
]
}
Delete Ports by neutron port id
port_id required | string Port ID to be deleted |
{- "name": "Private-Port",
- "port_id": "Ethernet 0/1",
- "net_id": "123e4567-e89b-12d3-a456-426655440012",
- "dns_domain": "my-domain.org",
- "dns_name": "myport",
- "device_owner": "baremetal:none",
- "switch_information": [
- {
- "intf_type": "ethernet",
- "intf_name": "0/2",
- "mgmt_ip": "10.10.10.1"
}
], - "error": [
- {
- "code": 0,
- "message": "message"
}
]
}
Update Port Setting.
name required | string |
device_owner required | string |
{- "name": "Private-port",
- "device_owner": "baremetal:none"
}
{- "name": "Private-Port",
- "port_id": "Ethernet 0/1",
- "net_id": "123e4567-e89b-12d3-a456-426655440012",
- "dns_domain": "my-domain.org",
- "dns_name": "myport",
- "device_owner": "baremetal:none",
- "switch_information": [
- {
- "intf_type": "ethernet",
- "intf_name": "0/2",
- "mgmt_ip": "10.10.10.1"
}
], - "error": [
- {
- "code": 0,
- "message": "message"
}
]
}
Get specified or all Routers
router_id | string router-id of the Router |
routing_type | string Default: "centralized" Distributed or centralized Router |
tenant_name | string tenant to which this router belongs |
{- "items": [
- {
- "name": "ROUTER-1",
- "router_id": "f8a44de0-fc8e-45df-93c7-f79bf3b01c95",
- "efa_router_id": 1,
- "routing_type": "distributed",
- "subnet_id": "123e4567-e89b-12d3-a456-426655440012",
- "tenant_name": "Customer-A",
- "error": [
- {
- "code": 0,
- "message": "message"
}
]
}
]
}
Create Router with a specified Neutron UUID
name required | string |
router_id required | string |
routing_type | string |
tenant_name | string Unique Name of the tenant |
{- "name": "ROUTER-1",
- "router_id": "f8a44de0-fc8e-45df-93c7-f79bf3b01c95",
- "routing_type": "distributed",
- "tenant_name": "Customer-A"
}
{- "name": "ROUTER-1",
- "router_id": "f8a44de0-fc8e-45df-93c7-f79bf3b01c95",
- "efa_router_id": 1,
- "routing_type": "distributed",
- "subnet_id": "123e4567-e89b-12d3-a456-426655440012",
- "tenant_name": "Customer-A",
- "error": [
- {
- "code": 0,
- "message": "message"
}
]
}
Delete specified router on router-id
router_id | string The ID of the router to be deleted |
{- "name": "ROUTER-1",
- "router_id": "f8a44de0-fc8e-45df-93c7-f79bf3b01c95",
- "efa_router_id": 1,
- "routing_type": "distributed",
- "subnet_id": "123e4567-e89b-12d3-a456-426655440012",
- "tenant_name": "Customer-A",
- "error": [
- {
- "code": 0,
- "message": "message"
}
]
}
Get all Router Interfaces
router_id | string router-id of the Router |
{- "items": [
- {
- "router_id": "f8a44de0-fc8e-45df-93c7-f79bf3b01c95",
- "efa_router_interface_id": 1,
- "subnet_id": "45a44de0-fc8e-45df-93c7-f79bf3b01c95",
- "error": [
- {
- "code": 0,
- "message": "message"
}
]
}
]
}
Add a Router Interface to a Router
router_id required | string |
subnet_id | string |
{- "router_id": "f8a44de0-fc8e-45df-93c7-f79bf3b01c95",
- "subnet_id": "45a44de0-fc8e-45df-93c7-f79bf3b01c95"
}
{- "router_id": "f8a44de0-fc8e-45df-93c7-f79bf3b01c95",
- "efa_router_interface_id": 1,
- "subnet_id": "45a44de0-fc8e-45df-93c7-f79bf3b01c95",
- "error": [
- {
- "code": 0,
- "message": "message"
}
]
}
Delete Router Interface from Router
router_id required | string |
subnet_id | string |
{- "router_id": "f8a44de0-fc8e-45df-93c7-f79bf3b01c95",
- "subnet_id": "45a44de0-fc8e-45df-93c7-f79bf3b01c95"
}
{- "router_id": "f8a44de0-fc8e-45df-93c7-f79bf3b01c95",
- "efa_router_interface_id": 1,
- "subnet_id": "45a44de0-fc8e-45df-93c7-f79bf3b01c95",
- "error": [
- {
- "code": 0,
- "message": "message"
}
]
}
Get all Router Routes
router_id | string router-id of the Router |
{- "items": [
- {
- "router_id": "f8a44de0-fc8e-45df-93c7-f79bf3b01c95",
- "ip_version": 4,
- "destination": "10.56.4.0/22",
- "nexthop_ip": "10.56.4.1",
- "device_ips": "10.25.25.100,10.25.25.101",
- "error": [
- {
- "code": 0,
- "message": "message"
}
]
}
]
}
Add Routes to a Router
required | Array of objects (RouterRoute) unique |
{- "items": [
- {
- "router_id": "f8a44de0-fc8e-45df-93c7-f79bf3b01c95",
- "ip_version": 4,
- "destination": "10.56.4.0/22",
- "nexthop_ip": "10.56.4.1",
- "device_ips": "10.25.25.100,10.25.25.101"
}
]
}
{- "items": [
- {
- "router_id": "f8a44de0-fc8e-45df-93c7-f79bf3b01c95",
- "ip_version": 4,
- "destination": "10.56.4.0/22",
- "nexthop_ip": "10.56.4.1",
- "device_ips": "10.25.25.100,10.25.25.101",
- "error": [
- {
- "code": 0,
- "message": "message"
}
]
}
]
}
Delete Routes from Router
required | Array of objects (RouterRoute) unique |
{- "items": [
- {
- "router_id": "f8a44de0-fc8e-45df-93c7-f79bf3b01c95",
- "ip_version": 4,
- "destination": "10.56.4.0/22",
- "nexthop_ip": "10.56.4.1",
- "device_ips": "10.25.25.100,10.25.25.101"
}
]
}
{- "items": [
- {
- "router_id": "f8a44de0-fc8e-45df-93c7-f79bf3b01c95",
- "ip_version": 4,
- "destination": "10.56.4.0/22",
- "nexthop_ip": "10.56.4.1",
- "device_ips": "10.25.25.100,10.25.25.101",
- "error": [
- {
- "code": 0,
- "message": "message"
}
]
}
]
}
This API will delete openstack asset
Ids of the Oss sset to delete
operation | string Enum: "network-delete" "network-interface-delete" "router-delete" "router-interface-delete" "router-route-delete" |
net_id | string |
port_id | string |
router_id | string |
subnet_id | string |
destination | string |
nexthop | string |
{- "operation": "network-delete",
- "net_id": "123e4567-e89b-12d3-a456-426655440012",
- "port_id": "123e4567-e89b-12d3-a456-426655440010",
- "router_id": "f8a44de0-fc8e-45df-93c7-f79bf3b01c95",
- "subnet_id": "45a44de0-fc8e-45df-93c7-f79bf3b01c95",
- "destination": "10.2.1.0/24",
- "nexthop": "10.23.1.1"
}
{- "items": {
- "operation": "network-delete",
- "net_id": "123e4567-e89b-12d3-a456-426655440012",
- "port_id": "123e4567-e89b-12d3-a456-426655440010",
- "router_id": "f8a44de0-fc8e-45df-93c7-f79bf3b01c95",
- "subnet_id": "45a44de0-fc8e-45df-93c7-f79bf3b01c95",
- "destination": "10.2.1.0/24",
- "nexthop": "10.23.1.1"
}, - "error": [
- {
- "code": 0,
- "message": "message"
}
]
}
Get the detailed output of the given execution ID
id required | string Execution ID |
{- "start_time": "2000-01-23T04:56:07.000+00:00",
- "end_time": "2000-01-23T04:56:07.000+00:00",
- "id": "id",
- "parameters": "",
- "logs": "logs",
- "command": "network create",
- "status": "Failed, Succeeded"
}
Get the list of all the previous executions
limit required | integer Default: 10 Limit the number of executions that will be sent in the response. Default is 10 |
status | string Default: "all" Filter the executions based on the status(failed/succeeded/all) |
{- "items": [
- {
- "start_time": "2000-01-23T04:56:07.000+00:00",
- "end_time": "2000-01-23T04:56:07.000+00:00",
- "id": "id",
- "command": "network create",
- "status": "Completed"
}, - {
- "start_time": "2000-01-23T04:56:07.000+00:00",
- "end_time": "2000-01-23T04:56:07.000+00:00",
- "id": "id",
- "command": "router create",
- "status": "router create"
}
]
}
This API will delete the execution entries older than specific number of days
days_older_by required | integer Default: 30 Deletes execution entries older than specified number of days |
{- "code": 0,
- "message": "message"
}
Takes EFA Lock From Neutron
region required | string |
requester required | string |
request_id | string |
{- "region": "RegionOne",
- "requester": "controller-1",
- "request_id": "123e4567-e89b-12d3-a456-426614174000"
}
{- "result": 0
}
Releases EFA Lock From Neutron
region required | string |
requester required | string |
request_id | string |
{- "region": "RegionOne",
- "requester": "controller-1",
- "request_id": "123e4567-e89b-12d3-a456-426614174000"
}
{- "result": 0
}
tenant required | string tenant name of the openstack instance |
{- "efa": "UP",
- "master": "node1",
- "slave": "node2",
- "database": "DOWN",
- "failure_reason": [
- "Database Connection Failed"
], - "pod_status": [
- {
- "name": "goopenstack",
- "status": "UP"
}
], - "error": [
- {
- "code": 0,
- "message": "message"
}
]
}