From 14ebdac49fb00c68a861acf3bcf6be8bdd50e62d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alexis=20de=20Talhou=C3=ABt?= Date: Thu, 9 Jul 2015 12:28:17 -0400 Subject: [PATCH] Add postman collection to interact with LBass. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This postman contains queries to interact with: - pool - pool member - loadbalancer It also contains queries to create a network, a subnet and two ports, in order to have a proper network topology for testing purposes. Change-Id: I9bc1fd6e7d59abea5b22bb8260d79b9fa11e9dc9 Signed-off-by: Alexis de Talhouët --- ...xamples_July15.json.postman_collection.txt | 247 ++++++++++++++++++ 1 file changed, 247 insertions(+) create mode 100644 resources/commons/Neutron-v2.0-LBaaS-API-Examples_July15.json.postman_collection.txt diff --git a/resources/commons/Neutron-v2.0-LBaaS-API-Examples_July15.json.postman_collection.txt b/resources/commons/Neutron-v2.0-LBaaS-API-Examples_July15.json.postman_collection.txt new file mode 100644 index 000000000..ae623ab40 --- /dev/null +++ b/resources/commons/Neutron-v2.0-LBaaS-API-Examples_July15.json.postman_collection.txt @@ -0,0 +1,247 @@ +{ + "id": "1ad8d425-4d48-1f4d-9659-f8dab30861e6", + "name": "Neutron-v2.0-LBaaS-API-Examples", + "description": "A collection of OpenStack Neutron v2.0 REST API calls for Postman. Import these into Postman and use to validate the OpenDaylight Neutron NB-API interfaces.\n\nResources:\n- Postman http://www.getpostman.com\n- Neutron v2.0 https://wiki.openstack.org/wiki/Neutron/APIv2-specification", + "order": [ + "80b2233e-3c0c-1eda-ee31-c78abad32f8f", + "e9e80a59-0898-4429-81fb-8e9a85eec77f", + "976a426e-c8ec-efae-c80a-f23cb4d0d404", + "a6a09c93-a701-3381-9560-7d6b4f12083d", + "647ecd26-a5f9-9f6e-c2ed-bbb2881c57ab", + "261535f5-37c0-8358-8f26-0a76ea169c54", + "e5230742-6966-2fd3-5ba9-a5c6784b5fd5", + "92ecc186-f3ff-c6cf-4a12-f66e0ba41c44", + "4df70c66-4d47-a1eb-ea3c-3a53021b59a6", + "e489ca9e-82c3-b988-0c69-3e29ef08f689", + "8c9eba41-f49d-3cb3-4a36-b7e743ac4e80", + "c06c3e2e-80b4-9673-3ad2-dba02eee7ab0", + "37c50edc-99e0-6256-ef49-e26bcdce00ce" + ], + "folders": [], + "timestamp": 1394529177458, + "owner": "79838", + "remoteLink": "", + "public": false, + "requests": [ + { + "collectionId": "1ad8d425-4d48-1f4d-9659-f8dab30861e6", + "id": "261535f5-37c0-8358-8f26-0a76ea169c54", + "name": "Get Neutron Load Balancer Pool", + "description": "Return a Neutron v2.0 Load Balancer Pool.", + "url": "http://127.0.0.1:8080/controller/nb/v2/neutron/lbaas/pools/", + "method": "GET", + "headers": "Authorization: Basic YWRtaW46YWRtaW4=\n", + "data": [], + "dataMode": "raw", + "timestamp": 0, + "version": 2, + "time": 1436369062511, + "preRequestScript": "", + "tests": "", + "rawModeData": "" + }, + { + "collectionId": "1ad8d425-4d48-1f4d-9659-f8dab30861e6", + "id": "37c50edc-99e0-6256-ef49-e26bcdce00ce", + "name": "Delete Neutron Load Balancer Pool Member", + "description": "", + "url": "http://127.0.0.1:8080/controller/nb/v2/neutron/lbaas/pools/332abe93-f488-41ba-870b-2ac66be7f853/members/a183a8b3-bddb-dc04-ae73-3beb11af4d06", + "method": "DELETE", + "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nAccept: application/json\nContent-Type: application/json\n", + "data": [], + "dataMode": "raw", + "timestamp": 0, + "version": 2, + "time": 1436380297165, + "preRequestScript": "", + "tests": "", + "rawModeData": "" + }, + { + "collectionId": "1ad8d425-4d48-1f4d-9659-f8dab30861e6", + "id": "4df70c66-4d47-a1eb-ea3c-3a53021b59a6", + "name": "Post Add Neutron Load Balancer", + "description": "Example posting of a Neutron v2.0 Load Balancer (LBaaS).", + "url": "http://127.0.0.1:8080/controller/nb/v2/neutron/lbaas/loadbalancers/", + "method": "POST", + "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nAccept: application/json\nContent-Type: application/json\n", + "data": [], + "dataMode": "raw", + "timestamp": 0, + "version": 2, + "time": 1436380013197, + "preRequestScript": "", + "tests": "", + "rawModeData": "{\n \"loadbalancer\": {\n \"id\": \"8992a43f-83af-4b49-9afd-c2bfbd82d7d7\",\n \"name\": \"Example LB\",\n \"description\": \"A very simple example load balancer.\",\n \"vip_address\": \"10.0.0.5\",\n \"vip_subnet_id\": \"5966ebd4-b456-4e11-a3a3-def0d3f432d4\",\n \"tenant_id\": \"c778d7b543914fc68df8b44f57035f0b\",\n \"status\": \"PENDING_CREATE\"\n }\n}" + }, + { + "collectionId": "1ad8d425-4d48-1f4d-9659-f8dab30861e6", + "id": "647ecd26-a5f9-9f6e-c2ed-bbb2881c57ab", + "name": "Post Add Neutron Load Balancer Pool", + "description": "Example posting of a Neutron v2.0 Load Balancer Pool.", + "url": "http://127.0.0.1:8080/controller/nb/v2/neutron/lbaas/pools/", + "method": "POST", + "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nAccept: application/json\nContent-Type: application/json\n", + "data": [], + "dataMode": "raw", + "timestamp": 0, + "version": 2, + "time": 1436380885465, + "preRequestScript": "", + "tests": "", + "rawModeData": "{\n \"pool\": {\n \"id\": \"332abe93-f488-41ba-870b-2ac66be7f853\",\n \"tenant_id\": \"19eaa775-cf5d-49bc-902e-2f85f668d995\",\n \"name\": \"Example pool\",\n \"description\": \"\",\n \"protocol\": \"http\",\n \"lb_algorithm\": \"ROUND_ROBIN\",\n \"session_persistence\": {},\n \"healthmonitor_id\": null,\n \"members\": [\n {\n \"id\": \"a183a8b3-bddb-dc04-ae73-3beb11af4d04\",\n \"tenant_id\": \"c778d7b543914fc68df8b44f57035f0b\",\n \"address\": \"10.0.0.7\",\n \"protocol_port\": 80,\n \"subnet_id\": \"5966ebd4-b456-4e11-a3a3-def0d3f432d4\",\n \"admin_state_up\": true\n }\n ],\n \"admin_state_up\": true,\n \"status\": \"ACTIVE\"\n }\n}" + }, + { + "id": "80b2233e-3c0c-1eda-ee31-c78abad32f8f", + "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nAccept: application/json\nContent-Type: application/json\n", + "url": "http://127.0.0.1:8080/controller/nb/v2/neutron/networks/", + "pathVariables": {}, + "preRequestScript": "", + "method": "GET", + "collectionId": "1ad8d425-4d48-1f4d-9659-f8dab30861e6", + "data": [], + "dataMode": "params", + "name": "Post Add Neutron Network", + "description": "", + "descriptionFormat": "html", + "time": 1436388271366, + "version": 2, + "responses": [], + "tests": "", + "currentHelper": "normal", + "helperAttributes": {} + }, + { + "collectionId": "1ad8d425-4d48-1f4d-9659-f8dab30861e6", + "id": "8c9eba41-f49d-3cb3-4a36-b7e743ac4e80", + "name": "Post Add LoadBalancer Pool Member", + "description": "", + "url": "http://127.0.0.1:8080/controller/nb/v2/neutron/lbaas/pools/332abe93-f488-41ba-870b-2ac66be7f853/members/", + "method": "PUT", + "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nAccept: application/json\nContent-Type: application/json\n", + "data": [], + "dataMode": "raw", + "timestamp": 0, + "version": 2, + "time": 1436379833081, + "preRequestScript": "", + "tests": "", + "rawModeData": "{\n \"member\": {\n \"id\": \"a183a8b3-bddb-dc04-ae73-3beb11af4d06\",\n \"tenant_id\": \"c778d7b543914fc68df8b44f57035f0b\",\n \"address\": \"10.0.0.1\",\n \"protocol_port\": 80,\n \"subnet_id\": \"3b80198d-4f7b-4f77-9ef5-774d54e17126\",\n \"admin_state_up\": true,\n \"weight\": 1,\n \"status\": \"UP\"\n }\n}" + }, + { + "collectionId": "1ad8d425-4d48-1f4d-9659-f8dab30861e6", + "id": "92ecc186-f3ff-c6cf-4a12-f66e0ba41c44", + "name": "Get Neutron Load Balancers", + "description": "Return a Neutron v2.0 Load Balancer (LBaaS).", + "url": "http://127.0.0.1:8080/controller/nb/v2/neutron/lbaas/loadbalancers/", + "method": "GET", + "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nAccept: application/json\nContent-Type: application/json\n", + "data": [], + "dataMode": "raw", + "timestamp": 0, + "version": 2, + "time": 1436369027509, + "preRequestScript": "", + "tests": "", + "rawModeData": "{\n \"pool\": {\n \"id\": \"332abe93-f488-41ba-870b-2ac66be7f853\",\n \"tenant_id\": \"19eaa775-cf5d-49bc-902e-2f85f668d995\",\n \"name\": \"Example pool\",\n \"description\": \"\",\n \"protocol\": \"http\",\n \"lb_algorithm\": \"ROUND_ROBIN\",\n \"session_persistence\": {\n },\n \"healthmonitor_id\": null,\n \"members\": [{\n \"id\": \"a183a8b3-bddb-dc04-ae73-3beb11af4d04\",\n \"tenant_id\": \"c778d7b543914fc68df8b44f57035f0b\",\n \"address\": \"10.0.0.7\",\n \"protocol_port\":80,\n \"subnet_id\": \"5966ebd4-b456-4e11-a3a3-def0d3f432d4\",\n \"admin_state_up\": true\n }],\n \"admin_state_up\": true,\n \"status\": \"ACTIVE\"\n }\n}" + }, + { + "collectionId": "1ad8d425-4d48-1f4d-9659-f8dab30861e6", + "id": "976a426e-c8ec-efae-c80a-f23cb4d0d404", + "name": "Post Add Neutron Network Port", + "description": "Post a list of Neutron v2.0 Port", + "url": "http://127.0.0.1:8080/controller/nb/v2/neutron/ports/", + "method": "POST", + "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nAccept: application/json\nContent-Type: application/json\n", + "data": [], + "dataMode": "raw", + "timestamp": 0, + "version": 2, + "preRequestScript": "", + "tests": "", + "rawModeData": "{\n \"port\": {\n \"status\": \"UP\",\n \"binding:host_id\": \"\",\n \"name\": \"private-port\",\n \"allowed_address_pairs\": [\n ],\n \"admin_state_up\": true,\n \"network_id\": \"e9330b1f-a2ef-4160-a991-169e56ab17f5\",\n \"tenant_id\": \"19eaa775-cf5d-49bc-902e-2f85f668d995\",\n \"binding:vif_details\": {\n },\n \"binding:vnic_type\": \"normal\",\n \"binding:vif_type\": \"unbound\",\n \"device_owner\": \"\",\n \"mac_address\": \"fa:16:3e:c9:cb:f0\",\n \"binding:profile\": {\n },\n \"fixed_ips\": [\n {\n \"subnet_id\": \"5966ebd4-b456-4e11-a3a3-def0d3f432d4\",\n \"ip_address\": \"10.0.0.7\"\n }\n ],\n \"id\": \"65c0ee9f-d634-4522-8954-51021b570b0d\",\n \"security_groups\": [\n \"f0ac4394-7e4a-4409-9701-ba8be283dbc3\"\n ],\n \"device_id\": \"\"\n }\n}" + }, + { + "collectionId": "1ad8d425-4d48-1f4d-9659-f8dab30861e6", + "id": "a6a09c93-a701-3381-9560-7d6b4f12083d", + "name": "Post Add Neutron Network Port 2", + "description": "", + "url": "http://127.0.0.1:8080/controller/nb/v2/neutron/ports/", + "method": "POST", + "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nAccept: application/json\nContent-Type: application/json\n", + "data": [], + "dataMode": "raw", + "timestamp": 0, + "version": 2, + "preRequestScript": "", + "tests": "", + "rawModeData": "{\n \"port\": {\n \"status\": \"UP\",\n \"binding:host_id\": \"\",\n \"name\": \"private-port\",\n \"allowed_address_pairs\": [\n ],\n \"admin_state_up\": true,\n \"network_id\": \"e9330b1f-a2ef-4160-a991-169e56ab17f5\",\n \"tenant_id\": \"19eaa775-cf5d-49bc-902e-2f85f668d995\",\n \"binding:vif_details\": {\n },\n \"binding:vnic_type\": \"normal\",\n \"binding:vif_type\": \"unbound\",\n \"device_owner\": \"\",\n \"mac_address\": \"fa:16:3e:c9:cb:f4\",\n \"binding:profile\": {\n },\n \"fixed_ips\": [\n {\n \"subnet_id\": \"5966ebd4-b456-4e11-a3a3-def0d3f432d4\",\n \"ip_address\": \"10.0.0.8\"\n }\n ],\n \"id\": \"65c0ee9f-d634-4522-8954-51021b570b0e\",\n \"security_groups\": [\n \"f0ac4394-7e4a-4409-9701-ba8be283dbc3\"\n ],\n \"device_id\": \"\"\n }\n}" + }, + { + "collectionId": "1ad8d425-4d48-1f4d-9659-f8dab30861e6", + "id": "c06c3e2e-80b4-9673-3ad2-dba02eee7ab0", + "name": "Get Neutron Load Balancer Pool Members", + "description": "Return Neutron v2.0 Load Balancer (LBaaS). pool members", + "url": "http://127.0.0.1:8080/controller/nb/v2/neutron/lbaas/pools/332abe93-f488-41ba-870b-2ac66be7f853/members", + "method": "GET", + "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nAccept: application/json\nContent-Type: application/json\n", + "data": [], + "dataMode": "raw", + "timestamp": 0, + "version": 2, + "time": 1436369134571, + "preRequestScript": "", + "tests": "", + "rawModeData": "{\n \"member\": {\n \"id\": \"a183a8b3-bddb-dc04-ae73-3beb11af4d05\",\n \"tenant_id\": \"c778d7b543914fc68df8b44f57035f0b\",\n \"address\": \"10.0.0.8\",\n \"protocol_port\":80,\n \"subnet_id\": \"5966ebd4-b456-4e11-a3a3-def0d3f432d4\",\n \"admin_state_up\": true,\n \"weight\": 1,\n \"status\": \"UP\"\n }\n}" + }, + { + "collectionId": "1ad8d425-4d48-1f4d-9659-f8dab30861e6", + "id": "e489ca9e-82c3-b988-0c69-3e29ef08f689", + "name": "Delete Neutron Load Balancer", + "description": "", + "url": "http://127.0.0.1:8080/controller/nb/v2/neutron/lbaas/loadbalancers/8992a43f-83af-4b49-9afd-c2bfbd82d7d7", + "method": "DELETE", + "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nAccept: application/json\nContent-Type: application/json\n", + "data": [], + "dataMode": "params", + "timestamp": 0, + "version": 2, + "time": 1436378718919, + "preRequestScript": "", + "tests": "" + }, + { + "collectionId": "1ad8d425-4d48-1f4d-9659-f8dab30861e6", + "id": "e5230742-6966-2fd3-5ba9-a5c6784b5fd5", + "name": "Delete Neutron Load Balancer Pool", + "description": "", + "url": "http://127.0.0.1:8080/controller/nb/v2/neutron/lbaas/pools/332abe93-f488-41ba-870b-2ac66be7f853", + "method": "DELETE", + "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nAccept: application/json\nContent-Type: application/json\n", + "data": [], + "dataMode": "raw", + "timestamp": 0, + "version": 2, + "time": 1436376334648, + "preRequestScript": "", + "tests": "", + "rawModeData": "" + }, + { + "collectionId": "1ad8d425-4d48-1f4d-9659-f8dab30861e6", + "id": "e9e80a59-0898-4429-81fb-8e9a85eec77f", + "name": "Post Add Neutron Subnet", + "description": "", + "url": "http://127.0.0.1:8080/controller/nb/v2/neutron/subnets/", + "method": "POST", + "headers": "Authorization: Basic YWRtaW46YWRtaW4=\nAccept: application/json\nContent-Type: application/json\n", + "data": [], + "dataMode": "raw", + "timestamp": 0, + "version": 2, + "preRequestScript": "", + "tests": "", + "rawModeData": "{\n \"subnet\": {\n \"name\": \"\",\n \"enable_dhcp\": true,\n \"network_id\": \"e9330b1f-a2ef-4160-a991-169e56ab17f5\",\n \"tenant_id\": \"19eaa775-cf5d-49bc-902e-2f85f668d995\",\n \"dns_nameservers\": [\n ],\n \"allocation_pools\": [\n {\n \"start\": \"10.0.0.2\",\n \"end\": \"10.0.0.254\"\n }\n ],\n \"host_routes\": [\n ],\n \"ip_version\": 4,\n \"gateway_ip\": \"10.0.0.1\",\n \"cidr\": \"10.0.0.0/24\",\n \"id\": \"5966ebd4-b456-4e11-a3a3-def0d3f432d4\"\n }\n}" + } + ] +} \ No newline at end of file -- 2.36.6