{ "info": { "_postman_id": "4470acc6-3fd7-4714-94a7-7b2d48ceb98e", "name": "solution12-delete", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" }, "item": [ { "name": "bigip5-Test AS3 is running", "event": [ { "listen": "test", "script": { "id": "66765d3b-4355-403e-b1f1-35c5483c4b62", "exec": [ "pm.test(\"AS3 is Running\", function () {", " pm.response.to.have.status(200);", "});", "", "" ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "id": "cf15f5df-d025-4005-9544-2cb29f00b1a4", "exec": [ "pm.collectionVariables.set(\"DNS1_NAME\", \"solution12.acme.com\");", "pm.collectionVariables.set(\"VS1_NAME\", \"solution12\");", "pm.collectionVariables.set(\"PATH_NAME\", \"solution12\");", "pm.collectionVariables.set(\"PARTITION_NAME\", \"solution12\");", "pm.collectionVariables.set(\"CUSTOM_TYPE\", \"modern\");", "", "var COUNTER = pm.collectionVariables.get(\"COUNTER\");", "", "if (COUNTER === \"2\") {", "pm.collectionVariables.set(\"BIGIP_MGMT\", \"10.1.1.5\");", "pm.collectionVariables.set(\"BIGIP_NUMBER\", \"2\");", "pm.collectionVariables.set(\"BIGIP_SCOPE\", pm.environment.get(\"BIGIP2_SCOPE\"));", "} else {", "pm.collectionVariables.set(\"BIGIP_MGMT\", \"10.1.1.4\");", "pm.collectionVariables.set(\"BIGIP_NUMBER\", \"1\");", "pm.collectionVariables.set(\"BIGIP_SCOPE\", pm.environment.get(\"BIGIP1_SCOPE\"));", "pm.collectionVariables.set('COUNTER',\"1\" );", "", "}" ], "type": "text/javascript" } } ], "request": { "auth": { "type": "basic", "basic": [ { "key": "password", "value": "admin", "type": "string" }, { "key": "username", "value": "admin", "type": "string" } ] }, "method": "GET", "header": [], "url": { "raw": "https://10.1.1.11/mgmt/shared/appsvcs/info", "protocol": "https", "host": [ "10", "1", "1", "11" ], "path": [ "mgmt", "shared", "appsvcs", "info" ] } }, "response": [] }, { "name": "bigip5-Delete WideIP1", "event": [ { "listen": "prerequest", "script": { "id": "d48fb0c1-d172-40bb-bb4d-c7671dbd2e11", "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "id": "5a4a42f7-48c6-4bd6-ba6b-285ce202197b", "exec": [ "", "if (responseCode.code === 200) {", "", " pm.test(\"Wide IP deleted\", function () {", " pm.response.to.have.status(200);", " });", "} else if (responseCode.code === 422) {", " pm.test(\"WideIP does not exist\", function () {", " pm.expect(pm.response.text()).to.include(\"path does not exist\");", " });", "", "}", "", "setTimeout(function(){}, 1000);" ], "type": "text/javascript" } } ], "request": { "auth": { "type": "basic", "basic": [ { "key": "password", "value": "admin", "type": "string" }, { "key": "username", "value": "admin", "type": "string" } ] }, "method": "PATCH", "header": [], "body": { "mode": "raw", "raw": "[\n{\n\t\"op\":\"remove\",\n\t\"path\":\"{{PARTITION_NAME}}/Application\"\n \n}\n]" }, "url": { "raw": "https://10.1.1.11/mgmt/shared/appsvcs/declare", "protocol": "https", "host": [ "10", "1", "1", "11" ], "path": [ "mgmt", "shared", "appsvcs", "declare" ] } }, "response": [] }, { "name": "bigip5-Get bigip Server VS1 address", "event": [ { "listen": "prerequest", "script": { "id": "58d1daed-e6ca-465f-9bd4-1abe8e75b500", "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "id": "aa99f027-fcfb-4834-ac3f-8793bc3e2319", "exec": [ "if (responseCode.code === 200) {", "", " pm.test(\"VS Address found\", function () {", " pm.response.to.have.status(200);", "", " var jsonData = JSON.parse(responseBody);", " pm.collectionVariables.set(\"DNS_DEST\", jsonData.destination);", " address = (pm.collectionVariables.get(\"DNS_DEST\")).split(\":\");", " pm.collectionVariables.set('BIGIP_ADDRESS1', address[0]);", " });", "} else", " pm.test(\"VS does not exist\", function () {", " pm.response.to.have.status(404);", " });", "", "", "", "", "", "", "", "", "", "", "" ], "type": "text/javascript" } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "basic", "basic": [ { "key": "password", "value": "admin", "type": "string" }, { "key": "username", "value": "admin", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "https://10.1.1.11/mgmt/tm/gtm/server/~Common~bigip{{BIGIP_NUMBER}}.f5lab.local/virtual-servers/~{{PARTITION_NAME}}~{{PATH_NAME}}~{{VS1_NAME}}", "protocol": "https", "host": [ "10", "1", "1", "11" ], "path": [ "mgmt", "tm", "gtm", "server", "~Common~bigip{{BIGIP_NUMBER}}.f5lab.local", "virtual-servers", "~{{PARTITION_NAME}}~{{PATH_NAME}}~{{VS1_NAME}}" ] } }, "response": [] }, { "name": "bigip-Checkin Address", "event": [ { "listen": "test", "script": { "id": "55564863-d0f7-4279-a0a3-002f213a7b10", "exec": [ "var jsonData = pm.response.json();", "", " if(jsonData.status === \"Success\") {", " pm.test(\"Address returned to Scope\", function () {", " pm.response.to.have.status(200);", " });", "} else {", "", " pm.test(\"Address not assigned in Scope\", function () {", " pm.response.to.have.status(200);", " });", "}", "" ], "type": "text/javascript" } } ], "request": { "method": "DELETE", "header": [], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "http://10.1.20.6:81/addr/checkin?address={{BIGIP_ADDRESS1}}", "protocol": "http", "host": [ "10", "1", "20", "6" ], "port": "81", "path": [ "addr", "checkin" ], "query": [ { "key": "address", "value": "{{BIGIP_ADDRESS1}}" } ] } }, "response": [] }, { "name": "bigip5-Delete bigip1 Server VS", "event": [ { "listen": "prerequest", "script": { "id": "f2de6671-14bb-47b1-810f-87f609e692f0", "exec": [ "setTimeout(function(){}, 1000);" ], "type": "text/javascript" } }, { "listen": "test", "script": { "id": "d9085eae-966f-4005-ae33-71072c7d90c4", "exec": [ "if (responseCode.code === 200) {", "", "pm.test(\"VS deleted from server\", function () {", " pm.response.to.have.status(200);", "});", "} else ", "pm.test(\"VS does not exist\", function () {", " pm.response.to.have.status(404);", "});", "", "", "" ], "type": "text/javascript" } } ], "request": { "auth": { "type": "basic", "basic": [ { "key": "password", "value": "admin", "type": "string" }, { "key": "username", "value": "admin", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "https://10.1.1.11/mgmt/tm/gtm/server/~Common~bigip{{BIGIP_NUMBER}}.f5lab.local/virtual-servers/~{{PARTITION_NAME}}~{{PATH_NAME}}~{{VS1_NAME}}", "protocol": "https", "host": [ "10", "1", "1", "11" ], "path": [ "mgmt", "tm", "gtm", "server", "~Common~bigip{{BIGIP_NUMBER}}.f5lab.local", "virtual-servers", "~{{PARTITION_NAME}}~{{PATH_NAME}}~{{VS1_NAME}}" ] } }, "response": [] }, { "name": "bigip-Test AS3 is running", "event": [ { "listen": "test", "script": { "id": "feea6226-1a4b-45c3-9df1-867c6f63c2f5", "exec": [ "pm.test(\"AS3 is Running\", function () {", " pm.response.to.have.status(200);", "});", "", "" ], "type": "text/javascript" } } ], "request": { "auth": { "type": "basic", "basic": [ { "key": "password", "value": "admin", "type": "string" }, { "key": "username", "value": "admin", "type": "string" } ] }, "method": "GET", "header": [], "url": { "raw": "https://{{BIGIP_MGMT}}/mgmt/shared/appsvcs/info", "protocol": "https", "host": [ "{{BIGIP_MGMT}}" ], "path": [ "mgmt", "shared", "appsvcs", "info" ] } }, "response": [] }, { "name": "bigip-delete Application", "event": [ { "listen": "prerequest", "script": { "id": "0d7cc50f-2736-4658-93e0-602f61acb5f8", "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "id": "0ebe0d81-a65e-4325-aab6-43ce97e0c89c", "exec": [ "pm.test(\"Application deleted\", function () {", " pm.response.to.have.status(200);", "});", "", "setTimeout(function(){}, 2000);", "", "" ], "type": "text/javascript" } } ], "request": { "auth": { "type": "basic", "basic": [ { "key": "password", "value": "admin", "type": "string" }, { "key": "username", "value": "admin", "type": "string" } ] }, "method": "DELETE", "header": [], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "https://{{BIGIP_MGMT}}/mgmt/shared/appsvcs/declare/{{PARTITION_NAME}}", "protocol": "https", "host": [ "{{BIGIP_MGMT}}" ], "path": [ "mgmt", "shared", "appsvcs", "declare", "{{PARTITION_NAME}}" ] } }, "response": [] }, { "name": "bigip-delete-profile-psp", "event": [ { "listen": "test", "script": { "id": "21911694-7b79-491a-af84-886d44335dbf", "exec": [ "if (responseCode.code === 200) {\r", "pm.test(\"Profile Deleted\", function () {\r", " pm.response.to.have.status(200);\r", "});\r", "} else \r", "pm.test(\"Profile Does Not Exist\", function () {\r", " pm.response.to.have.status(404);\r", "});\r", "\r", "setTimeout(function(){}, 2000);\r", "" ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "id": "f1bc4586-e023-4b0b-80d0-b1577c3c04a0", "exec": [ "" ], "type": "text/javascript" } } ], "request": { "auth": { "type": "basic", "basic": [ { "key": "password", "value": "admin", "type": "string" }, { "key": "username", "value": "admin", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" }, { "key": "X-F5-REST-Coordination-Id", "type": "text", "value": "", "disabled": true } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "https://{{BIGIP_MGMT}}/mgmt/tm/apm/profile/access/~Common~{{PARTITION_NAME}}-psp", "protocol": "https", "host": [ "{{BIGIP_MGMT}}" ], "path": [ "mgmt", "tm", "apm", "profile", "access", "~Common~{{PARTITION_NAME}}-psp" ] } }, "response": [] }, { "name": "bigip-delete-policy-psp", "event": [ { "listen": "test", "script": { "id": "1b8f3e97-3da0-4dcf-9b4c-0c722d89e95b", "exec": [ "if (responseCode.code === 200) {\r", "pm.test(\"Policy Deleted\", function () {\r", " pm.response.to.have.status(200);\r", "});\r", "} else \r", "pm.test(\"Policy Does Not Exist\", function () {\r", " pm.response.to.have.status(404);\r", "});\r", "\r", "\r", "setTimeout(function(){}, 2000);" ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "id": "889dcd8e-2954-4de8-8c95-4a4f7ab24b17", "exec": [ "" ], "type": "text/javascript" } } ], "request": { "auth": { "type": "basic", "basic": [ { "key": "password", "value": "admin", "type": "string" }, { "key": "username", "value": "admin", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" }, { "key": "X-F5-REST-Coordination-Id", "type": "text", "value": "{{TRANSID}}", "disabled": true } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "https://{{BIGIP_MGMT}}/mgmt/tm/apm/policy/access-policy/~Common~{{PARTITION_NAME}}-psp", "protocol": "https", "host": [ "{{BIGIP_MGMT}}" ], "path": [ "mgmt", "tm", "apm", "policy", "access-policy", "~Common~{{PARTITION_NAME}}-psp" ] } }, "response": [] }, { "name": "bigip-delete-profile-rdg", "event": [ { "listen": "test", "script": { "id": "03442b05-0725-4fb7-9482-1a8c7b622644", "exec": [ "if (responseCode.code === 200) {\r", " pm.test(\" RDG Profile Deleted\", function () {\r", " pm.response.to.have.status(200);\r", " });\r", "} else \r", " pm.test(\" RDG Profile Does Not Exist\", function () {\r", " pm.response.to.have.status(404);\r", " });\r", "\r", "setTimeout(function(){}, 2000);" ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "id": "c2eb4ab7-81a7-4ed7-bfc9-78ec0acee444", "exec": [ "" ], "type": "text/javascript" } } ], "request": { "auth": { "type": "basic", "basic": [ { "key": "password", "value": "admin", "type": "string" }, { "key": "username", "value": "admin", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" }, { "key": "X-F5-REST-Coordination-Id", "type": "text", "value": "", "disabled": true } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "https://{{BIGIP_MGMT}}/mgmt/tm/apm/profile/access/~Common~{{PARTITION_NAME}}-rdg", "protocol": "https", "host": [ "{{BIGIP_MGMT}}" ], "path": [ "mgmt", "tm", "apm", "profile", "access", "~Common~{{PARTITION_NAME}}-rdg" ] } }, "response": [] }, { "name": "bigip-delete-policy-rdg", "event": [ { "listen": "test", "script": { "id": "fe7ecebb-a2cf-4ca0-815b-c979fd9f8537", "exec": [ "if (responseCode.code === 200) {\r", "pm.test(\"RDG Policy Deleted\", function () {\r", " pm.response.to.have.status(200);\r", "});\r", "} else \r", "pm.test(\"RDG Policy Does Not Exist\", function () {\r", " pm.response.to.have.status(404);\r", "});\r", "\r", "setTimeout(function(){}, 2000);\r", "" ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "id": "b9073d45-0662-461e-9687-01e64b12a70c", "exec": [ "" ], "type": "text/javascript" } } ], "request": { "auth": { "type": "basic", "basic": [ { "key": "password", "value": "admin", "type": "string" }, { "key": "username", "value": "admin", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" }, { "key": "X-F5-REST-Coordination-Id", "type": "text", "value": "{{TRANSID}}", "disabled": true } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "https://{{BIGIP_MGMT}}/mgmt/tm/apm/policy/access-policy/~Common~{{PARTITION_NAME}}-rdg", "protocol": "https", "host": [ "{{BIGIP_MGMT}}" ], "path": [ "mgmt", "tm", "apm", "policy", "access-policy", "~Common~{{PARTITION_NAME}}-rdg" ] } }, "response": [] }, { "name": "bigip-delete-resource-rdp", "event": [ { "listen": "test", "script": { "id": "c25b2302-aea0-4fc1-8256-e946cb7f35c6", "exec": [ "if (responseCode.code === 200) {\r", "pm.test(\"RDP Resource Deleted\", function () {\r", " pm.response.to.have.status(200);\r", "});\r", "} else \r", "pm.test(\"RDP Resource Does Not Exist\", function () {\r", " pm.response.to.have.status(404);\r", "});\r", "\r", "setTimeout(function(){}, 2000);\r", "" ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "id": "13aa8a6f-7261-4a31-8c32-ead73cd8fc77", "exec": [ "" ], "type": "text/javascript" } } ], "request": { "auth": { "type": "basic", "basic": [ { "key": "password", "value": "admin", "type": "string" }, { "key": "username", "value": "admin", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" }, { "key": "X-F5-REST-Coordination-Id", "type": "text", "value": "{{TRANSID}}", "disabled": true } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "https://{{BIGIP_MGMT}}/mgmt/tm/apm/resource/remote-desktop/rdp/~Common~{{VS1_NAME}}-vdi-resource", "protocol": "https", "host": [ "{{BIGIP_MGMT}}" ], "path": [ "mgmt", "tm", "apm", "resource", "remote-desktop", "rdp", "~Common~{{VS1_NAME}}-vdi-resource" ] } }, "response": [] }, { "name": "bigip-delete-profile-vdi", "event": [ { "listen": "test", "script": { "id": "a11e39a4-3635-4635-b5cc-3e20ae0cdec4", "exec": [ "if (responseCode.code === 200) {\r", "pm.test(\"VDI Profile Deleted\", function () {\r", " pm.response.to.have.status(200);\r", "});\r", "} else \r", "pm.test(\"VDI Profile Does Not Exist\", function () {\r", " pm.response.to.have.status(404);\r", "});\r", "\r", "setTimeout(function(){}, 2000);\r", "" ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "id": "fb1a4959-84eb-4bd2-a6e6-64a069e917f9", "exec": [ "" ], "type": "text/javascript" } } ], "request": { "auth": { "type": "basic", "basic": [ { "key": "password", "value": "admin", "type": "string" }, { "key": "username", "value": "admin", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" }, { "key": "X-F5-REST-Coordination-Id", "type": "text", "value": "{{TRANSID}}", "disabled": true } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "https://{{BIGIP_MGMT}}/mgmt/tm/apm/profile/vdi/~Common~{{VS1_NAME}}-vdi", "protocol": "https", "host": [ "{{BIGIP_MGMT}}" ], "path": [ "mgmt", "tm", "apm", "profile", "vdi", "~Common~{{VS1_NAME}}-vdi" ] } }, "response": [] }, { "name": "bigip-delete-profile-connectivity", "event": [ { "listen": "test", "script": { "id": "d2c8f2ae-b70c-4de4-afbb-d4289b537960", "exec": [ "if (responseCode.code === 200) {\r", "pm.test(\"Connectivity Profile Deleted\", function () {\r", " pm.response.to.have.status(200);\r", "});\r", "} else \r", "pm.test(\"Connectivity Profile Does Not Exist\", function () {\r", " pm.response.to.have.status(404);\r", "});\r", "\r", "setTimeout(function(){}, 2000);\r", "" ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "id": "e7372578-2d92-420e-ad90-16ecb97b5e19", "exec": [ "" ], "type": "text/javascript" } } ], "request": { "auth": { "type": "basic", "basic": [ { "key": "password", "value": "admin", "type": "string" }, { "key": "username", "value": "admin", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" }, { "key": "X-F5-REST-Coordination-Id", "type": "text", "value": "{{TRANSID}}", "disabled": true } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "https://{{BIGIP_MGMT}}/mgmt/tm/apm/profile/connectivity/~Common~{{VS1_NAME}}-cp", "protocol": "https", "host": [ "{{BIGIP_MGMT}}" ], "path": [ "mgmt", "tm", "apm", "profile", "connectivity", "~Common~{{VS1_NAME}}-cp" ] } }, "response": [] }, { "name": "bigip-delete-tunnel-ppp", "event": [ { "listen": "test", "script": { "id": "9a0fbb3f-0777-4676-baef-435b0b10a36c", "exec": [ "if (responseCode.code === 200) {\r", "pm.test(\"Tunnel Deleted\", function () {\r", " pm.response.to.have.status(200);\r", "});\r", "} else \r", "pm.test(\"Tunnel Does Not Exist\", function () {\r", " pm.response.to.have.status(404);\r", "});\r", "\r", "\r", "" ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "id": "128e1533-d1c9-49b1-ae1b-9977e7c4b390", "exec": [ "" ], "type": "text/javascript" } } ], "request": { "auth": { "type": "basic", "basic": [ { "key": "password", "value": "admin", "type": "string" }, { "key": "username", "value": "admin", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" }, { "key": "X-F5-REST-Coordination-Id", "type": "text", "value": "{{TRANSID}}", "disabled": true } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "https://{{BIGIP_MGMT}}/mgmt/tm/net/tunnels/tunnel/~Common~{{VS1_NAME}}-tunnel", "protocol": "https", "host": [ "{{BIGIP_MGMT}}" ], "path": [ "mgmt", "tm", "net", "tunnels", "tunnel", "~Common~{{VS1_NAME}}-tunnel" ] } }, "response": [] }, { "name": "bigip-delete-webtop", "event": [ { "listen": "test", "script": { "id": "ef34bb2f-f34a-44ea-ba59-b936e41d519f", "exec": [ "if (responseCode.code === 200) {", "", " pm.test(\"Webtop Deleted\", function () {", " pm.response.to.have.status(200);", " });", "} else ", " pm.test(\"Webtop does not exist\", function () {", " pm.response.to.have.status(404);", " });", "", "" ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "id": "965d7317-17df-4820-950f-fcb76a63692f", "exec": [ "" ], "type": "text/javascript" } } ], "request": { "auth": { "type": "basic", "basic": [ { "key": "password", "value": "admin", "type": "string" }, { "key": "username", "value": "admin", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "https://{{BIGIP_MGMT}}/mgmt/tm/apm/resource/webtop/~Common~{{VS1_NAME}}-webtop", "protocol": "https", "host": [ "{{BIGIP_MGMT}}" ], "path": [ "mgmt", "tm", "apm", "resource", "webtop", "~Common~{{VS1_NAME}}-webtop" ] } }, "response": [] }, { "name": "bigip-delete-AAA AD", "event": [ { "listen": "test", "script": { "id": "1860eb2a-8119-4b1d-90c4-4e8b68e2081e", "exec": [ "if (responseCode.code === 200) {", "", "pm.test(\"AAA AD Object Deleted\", function () {", " pm.response.to.have.status(200);", "});", "} else ", "pm.test(\"AAA AD object Does Not Exist\", function () {", " pm.response.to.have.status(404);", "});", "", "" ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "id": "d7334f2f-5d9f-4dfa-8531-c053437b9daf", "exec": [ "" ], "type": "text/javascript" } } ], "request": { "auth": { "type": "basic", "basic": [ { "key": "password", "value": "admin", "type": "string" }, { "key": "username", "value": "admin", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "https://{{BIGIP_MGMT}}/mgmt/tm/apm/aaa/active-directory/~Common~{{VS1_NAME}}-ad-servers", "protocol": "https", "host": [ "{{BIGIP_MGMT}}" ], "path": [ "mgmt", "tm", "apm", "aaa", "active-directory", "~Common~{{VS1_NAME}}-ad-servers" ] } }, "response": [] }, { "name": "bigip-delete-AD Server Pool", "event": [ { "listen": "test", "script": { "id": "ab980d2d-7b29-48e1-8afd-4afcb650c08b", "exec": [ "if (responseCode.code === 200) {", "", "pm.test(\"Pool Deleted\", function () {", " pm.response.to.have.status(200);", "});", "} else ", "pm.test(\"Pool does not exist\", function () {", " pm.response.to.have.status(404);", "});", "", "setTimeout(function(){}, 1000);", "" ], "type": "text/javascript" } } ], "request": { "auth": { "type": "basic", "basic": [ { "key": "password", "value": "admin", "type": "string" }, { "key": "username", "value": "admin", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "https://{{BIGIP_MGMT}}/mgmt/tm/ltm/pool/~Common~{{VS1_NAME}}-ad-pool", "protocol": "https", "host": [ "{{BIGIP_MGMT}}" ], "path": [ "mgmt", "tm", "ltm", "pool", "~Common~{{VS1_NAME}}-ad-pool" ] } }, "response": [] }, { "name": "bigip-Delete Node", "event": [ { "listen": "prerequest", "script": { "id": "6e6eeac6-3e83-4600-8298-65bd2fd3022b", "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "id": "3d647894-4135-4e98-a584-ee8e5aefee43", "exec": [ "if (responseCode.code === 200) {", "", "pm.test(\"Node deleted\", function () {", " pm.response.to.have.status(200);", "});", "} else if (responseCode.code === 404) { ", "pm.test(\"Node does not exist\", function () {", " pm.response.to.have.status(404);", "});", "} else if (responseCode.code === 400) {", "pm.test(\"Unable to Delete Node. Still in use\", function () {", " pm.expect(pm.response.text()).to.include(\"member of pool\");", "});", "", "}", "", "", "var DC2_APM = pm.environment.get(\"DC2_APM\");", "var COUNTER = pm.collectionVariables.get(\"COUNTER\");", "", "if (DC2_APM === \"true\" && COUNTER === \"1\") {", "postman.setNextRequest(\"bigip5-Test AS3 is running\");", "pm.collectionVariables.set(\"COUNTER\", \"2\" );", "", "} else {", "", "pm.collectionVariables.set(\"COUNTER\", \"1\" );", "}", "", "" ], "type": "text/javascript" } } ], "request": { "auth": { "type": "basic", "basic": [ { "key": "password", "value": "admin", "type": "string" }, { "key": "username", "value": "admin", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "https://{{BIGIP_MGMT}}/mgmt/tm/ltm/node/10.1.20.7", "protocol": "https", "host": [ "{{BIGIP_MGMT}}" ], "path": [ "mgmt", "tm", "ltm", "node", "10.1.20.7" ] } }, "response": [] } ], "event": [ { "listen": "prerequest", "script": { "id": "b5c2b643-b295-4e67-a473-e21ed73bf2b9", "type": "text/javascript", "exec": [ "" ] } }, { "listen": "test", "script": { "id": "1df993c2-737b-4c13-bad4-ad022dff63fe", "type": "text/javascript", "exec": [ "" ] } } ], "protocolProfileBehavior": {} }