{ "info": { "_postman_id": "917d74d9-8460-4a1f-b11c-3c52d62f0203", "name": "solution6-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": "0fa6b2cc-7bc0-430f-858b-55965389b778", "exec": [ "if (responseCode.code === 200) {", " pm.collectionVariables.set('PRIOR_RESPONSE', 'OK');", "", "}", "", "", "pm.test(\"AS3 is Running\", function () {", " pm.response.to.have.status(200);", "});", "", "" ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "id": "60f80fc3-6673-4c0e-a338-18fcca89c719", "exec": [ "pm.collectionVariables.set(\"DNS1_NAME\", \"solution6.acme.com\");", "pm.collectionVariables.set(\"VS1_NAME\", \"solution6\");", "pm.collectionVariables.set(\"PATH_NAME\", \"solution6\");", "pm.collectionVariables.set(\"PARTITION_NAME\", \"solution6\");", "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": "dff8f81a-249e-4b14-a438-f0f4dfb3fe28", "exec": [ "", "var PRIOR_RESPONSE = pm.collectionVariables.get(\"PRIOR_RESPONSE\");", "", "if (PRIOR_RESPONSE === 'OK') {", "", "}" ], "type": "text/javascript" } }, { "listen": "test", "script": { "id": "e13bc75d-e324-4887-a513-c493ca280463", "exec": [ "", "if (responseCode.code === 200) {", "pm.collectionVariables.set('PRIOR_RESPONSE', 'OK' );", "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\");", "});", "", "}" ], "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": "eb65c24e-218a-40f2-9ed1-7f8b6fb8cbd1", "exec": [ "setTimeout(function(){}, 1000);" ], "type": "text/javascript" } }, { "listen": "test", "script": { "id": "ad4aec50-8faf-4ef9-9115-21d4ce45c9a0", "exec": [ "if (responseCode.code === 200) {", " pm.collectionVariables.set('PRIOR_RESPONSE', 'OK');", " 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": "dd9fb784-b1ec-47bf-ac35-de1a53dc7a32", "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": "7c49ec3a-3efc-4e10-b892-3a4944d8b284", "exec": [ "setTimeout(function(){}, 1000);" ], "type": "text/javascript" } }, { "listen": "test", "script": { "id": "ec754160-79fb-47b3-aa39-74f21de58808", "exec": [ "if (responseCode.code === 200) {", "pm.collectionVariables.set('PRIOR_RESPONSE', 'OK' );", "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": "f70f2eca-9b2e-40ae-9a65-f74e6d423b07", "exec": [ "if (responseCode.code === 200) {", "pm.collectionVariables.set('PRIOR_RESPONSE', 'OK' );", "}", "", "", "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": "46eefa40-a4e2-4696-aa06-7e3f271af619", "exec": [ "", "var PRIOR_RESPONSE = pm.collectionVariables.get(\"PRIOR_RESPONSE\");", "", "if (PRIOR_RESPONSE === 'OK') {", "", "}" ], "type": "text/javascript" } }, { "listen": "test", "script": { "id": "dc255af7-07f4-45c5-bfb0-9e52c7a44d03", "exec": [ "if (responseCode.code === 200) {", "pm.collectionVariables.set('PRIOR_RESPONSE', 'OK' );", "}", "", "pm.test(\"Application deleted\", 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": "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-get-node-iis", "event": [ { "listen": "prerequest", "script": { "id": "b3c89a73-27bf-481b-84e4-653b16826414", "exec": [ "setTimeout(function(){}, 1000);" ], "type": "text/javascript" } }, { "listen": "test", "script": { "id": "de073a30-504d-4e0c-9412-b4a824f8c8bd", "exec": [ "var IIS_NAME = pm.collectionVariables.get(\"VS1_NAME\")+\"-iis\"", "", "", "var jsonData = pm.response.json();", "", "", "\tfor (var i = 0; i < jsonData.items.length; i++) {", " ", "\t\tif (jsonData.items[i].name === IIS_NAME) {", "\t\t\tpm.collectionVariables.set(\"IIS_ADDRESS1\", jsonData.items[i].address);", " pm.test(\"Node address returned\", function () {", " pm.response.to.have.status(200);", " });", "\t\t}", "\t}" ], "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://{{BIGIP_MGMT}}/mgmt/tm/ltm/node", "protocol": "https", "host": [ "{{BIGIP_MGMT}}" ], "path": [ "mgmt", "tm", "ltm", "node" ] } }, "response": [] }, { "name": "bigip-delete-node-iis", "event": [ { "listen": "prerequest", "script": { "id": "68ec54b0-8644-4e77-9e03-1aaed2f89a00", "exec": [ "setTimeout(function(){}, 1000);" ], "type": "text/javascript" } }, { "listen": "test", "script": { "id": "0655a3b8-d653-449e-bfe8-af82dbe41e16", "exec": [ "if (responseCode.code === 200) {", "pm.collectionVariables.set('PRIOR_RESPONSE', 'OK' );", "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\");", "});", "", "}" ], "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/~Common~{{VS1_NAME}}-iis", "protocol": "https", "host": [ "{{BIGIP_MGMT}}" ], "path": [ "mgmt", "tm", "ltm", "node", "~Common~{{VS1_NAME}}-iis" ] } }, "response": [] }, { "name": "bigip-delete-profile", "event": [ { "listen": "test", "script": { "id": "21958af5-9609-4f17-baec-cf62251828f9", "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", "" ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "id": "b580f112-5be0-40f1-ae79-2babf3d1484f", "exec": [ "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": [ { "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", "event": [ { "listen": "test", "script": { "id": "b23c3257-27ca-4c1d-a0a8-aa1aef7afbfb", "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", "" ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "id": "af171d72-9853-447a-b7db-80b9596b1a53", "exec": [ "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": [ { "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-kerberos SSO profile", "event": [ { "listen": "test", "script": { "id": "11d7411a-33b4-4e30-860b-b4113f48130e", "exec": [ "if (responseCode.code === 200) {", "pm.collectionVariables.set('PRIOR_RESPONSE', 'OK' );", "pm.test(\"APM Kerberos Object Deleted\", function () {", " pm.response.to.have.status(200);", "});", "} else ", "pm.test(\"APM Kerberos Object does not exist\", function () {", " pm.response.to.have.status(404);", "});", "" ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "id": "b430d221-1238-4126-992f-d096e00b9591", "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/sso/kerberos/~Common~{{VS1_NAME}}-kerbsso", "protocol": "https", "host": [ "{{BIGIP_MGMT}}" ], "path": [ "mgmt", "tm", "apm", "sso", "kerberos", "~Common~{{VS1_NAME}}-kerbsso" ] } }, "response": [] }, { "name": "bigip-delete-OCSP Servers", "event": [ { "listen": "test", "script": { "id": "0ac0bdba-659b-4096-8b60-5e9bade11fc0", "exec": [ "if (responseCode.code === 200) {", "pm.collectionVariables.set('PRIOR_RESPONSE', 'OK' );", "pm.test(\"APM OCSP Responsder Object Deleted\", function () {", " pm.response.to.have.status(200);", "});", "} else ", "pm.test(\"APM AAA AD Object does not exist\", function () {", " pm.response.to.have.status(404);", "});", "" ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "id": "651445c4-e69c-4b3c-a4b8-63c35758b22a", "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/ocsp/~Common~{{VS1_NAME}}-ocsp-servers", "protocol": "https", "host": [ "{{BIGIP_MGMT}}" ], "path": [ "mgmt", "tm", "apm", "aaa", "ocsp", "~Common~{{VS1_NAME}}-ocsp-servers" ] } }, "response": [] }, { "name": "bigip-delete-APM AAA LDAP", "event": [ { "listen": "test", "script": { "id": "db23d6f5-c7d4-4a30-adf9-028a82bab247", "exec": [ "if (responseCode.code === 200) {", "pm.collectionVariables.set('PRIOR_RESPONSE', 'OK' );", "pm.test(\"APM AAA LDAP Object Deleted\", function () {", " pm.response.to.have.status(200);", "});", "} else ", "pm.test(\"APM AAA LDAP Object does not exist\", function () {", " pm.response.to.have.status(404);", "});", "", "" ], "type": "text/javascript" } }, { "listen": "prerequest", "script": { "id": "55287316-74c3-43c8-b070-0464ccb4ed1a", "exec": [ "", "var PRIOR_RESPONSE = pm.collectionVariables.get(\"PRIOR_RESPONSE\");", "", "if (PRIOR_RESPONSE === 'OK') {", "", "}" ], "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", "value": "application/json", "type": "text" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "https://{{BIGIP_MGMT}}/mgmt/tm/apm/aaa/ldap/~Common~{{VS1_NAME}}-ldap-servers", "protocol": "https", "host": [ "{{BIGIP_MGMT}}" ], "path": [ "mgmt", "tm", "apm", "aaa", "ldap", "~Common~{{VS1_NAME}}-ldap-servers" ] } }, "response": [] }, { "name": "bigip-delete-LDAP Server Pool", "event": [ { "listen": "test", "script": { "id": "8fc88fdd-3ee6-4ff0-ad6f-48df75a3c793", "exec": [ "if (responseCode.code === 200) {", "pm.collectionVariables.set('PRIOR_RESPONSE', 'OK' );", "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);", "});", "", "" ], "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}}-ldap-pool", "protocol": "https", "host": [ "{{BIGIP_MGMT}}" ], "path": [ "mgmt", "tm", "ltm", "pool", "~Common~{{VS1_NAME}}-ldap-pool" ] } }, "response": [] }, { "name": "bigip-delete-node-10.1.20.7", "event": [ { "listen": "prerequest", "script": { "id": "d2299326-d690-43b5-b3a4-7911ef88795f", "exec": [ "setTimeout(function(){}, 1000);" ], "type": "text/javascript" } }, { "listen": "test", "script": { "id": "4c0088fa-bdd9-46c8-840f-51ab0bb459ad", "exec": [ "if (responseCode.code === 200) {", "pm.collectionVariables.set('PRIOR_RESPONSE', 'OK' );", "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\");", "});", "", "}" ], "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": [] }, { "name": "bigip-delete-ca.f5lab.local cert", "event": [ { "listen": "test", "script": { "id": "c83f5d7e-4756-4198-99ce-af214a57e791", "exec": [ "var DC2_APM = pm.environment.get(\"DC2_APM\");\r", "var COUNTER = pm.collectionVariables.get(\"COUNTER\");\r", "\r", "if (DC2_APM === \"true\" && COUNTER === \"1\") {\r", "postman.setNextRequest(\"bigip5-Test AS3 is running\");\r", "pm.collectionVariables.set(\"COUNTER\", \"2\" );\r", "\r", "} else {\r", "\r", "\r", "}" ], "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 }, { "key": "Content-Range", "type": "text", "value": "0-1321/1322", "disabled": true } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "https://{{BIGIP_MGMT}}/mgmt/tm/sys/crypto/cert/~Common~ca.f5lab.local", "protocol": "https", "host": [ "{{BIGIP_MGMT}}" ], "path": [ "mgmt", "tm", "sys", "crypto", "cert", "~Common~ca.f5lab.local" ] } }, "response": [] }, { "name": "ad-delete-dns", "event": [ { "listen": "test", "script": { "id": "dd8cf10f-2959-4223-94f8-f9e9bdc2c354", "exec": [ " var jsonData = pm.response.json();", "\t", " if (jsonData.status === \"nonexistent\") {", " pm.test(\"nonexistent\", function () {", " pm.expect(jsonData.status).to.eql(\"nonexistent\");", " });", " } else {", "", " ", " pm.test(\"Success\", function () {", " pm.expect(jsonData[1].status).to.eql(\"Success\");", " });", " }" ], "type": "text/javascript" } } ], "request": { "method": "DELETE", "header": [], "body": { "mode": "raw", "raw": "{\n\"record_type\":\"a\",\n\"fqdn\":\"{{DNS1_NAME}}\",\n\"computer_ip\":\"{{IIS_ADDRESS1}}\" \n}" }, "url": { "raw": "http://10.1.20.6:81/dns", "protocol": "http", "host": [ "10", "1", "20", "6" ], "port": "81", "path": [ "dns" ] } }, "response": [] }, { "name": "ad-delete-delegation account", "event": [ { "listen": "test", "script": { "id": "0eebf377-beeb-4594-be34-7763b8e347b6", "exec": [ " ", " var jsonData = pm.response.json();", "\t", " if (jsonData.status === \"nonexistent\") {", " pm.test(\"nonexistent\", function () {", " pm.expect(jsonData.status).to.eql(\"nonexistent\");", " });", " } else {", " pm.test(\"Success\", function () {", " pm.expect(jsonData.status).to.eql(\"Success\");", " });", " }", "" ], "type": "text/javascript" } } ], "request": { "method": "DELETE", "header": [], "body": { "mode": "raw", "raw": "{\r\n\"username\":\"{{VS1_NAME}}\"\r\n}" }, "url": { "raw": "http://10.1.20.6:81/user", "protocol": "http", "host": [ "10", "1", "20", "6" ], "port": "81", "path": [ "user" ] } }, "response": [] }, { "name": "Delete SPN", "event": [ { "listen": "test", "script": { "id": "f2b5cbd6-de8b-4056-a5b6-850b80db8c69", "exec": [ "", "", "var jsonData = pm.response.json();", "pm.test(\"SPN Deleted\", function () {", "", " pm.expect(jsonData.status).to.eql(\"Success\");", "});", "", "", "" ], "type": "text/javascript" } } ], "request": { "method": "DELETE", "header": [], "body": { "mode": "raw", "raw": "{\n\"computer\":\"IIS\",\n\"spn\":\"HTTP/{{DNS1_NAME}}\"\n}" }, "url": { "raw": "http://10.1.20.6:81/computer", "protocol": "http", "host": [ "10", "1", "20", "6" ], "port": "81", "path": [ "computer" ] } }, "response": [] }, { "name": "iis-delete website", "event": [ { "listen": "test", "script": { "id": "45412d6d-5a34-4c12-89e7-c99d0aaab865", "exec": [ "", "", "var jsonData = pm.response.json();", "pm.test(\"Website Deleted\", function () {", "", " pm.expect(jsonData.status).to.eql(\"Success\");", "});", "", "", "" ], "type": "text/javascript" } } ], "request": { "method": "DELETE", "header": [], "body": { "mode": "raw", "raw": "{\n\"site_name\":\"{{DNS1_NAME}}\" \n}" }, "url": { "raw": "http://10.1.20.6:81/website", "protocol": "http", "host": [ "10", "1", "20", "6" ], "port": "81", "path": [ "website" ] } }, "response": [] }, { "name": "iis-checkin address", "event": [ { "listen": "test", "script": { "id": "3dc3fe3d-e1e6-4694-917d-94e3e7cb0f21", "exec": [ " ", " var jsonData = pm.response.json();", "\t", " if (jsonData.status === \"nonexistent\") {", " pm.test(\"nonexistent\", function () {", " pm.expect(jsonData.status).to.eql(\"nonexistent\");", " });", " } else {", " pm.test(\"Success\", function () {", " pm.expect(jsonData.status).to.eql(\"Success\");", " });", " }", "", "pm.collectionVariables.set(\"COUNTER\", \"1\" );", "", " ", "", "", "", "", "" ], "type": "text/javascript" } } ], "request": { "method": "DELETE", "header": [], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "http://10.1.20.6:81/addr/checkin?address={{IIS_ADDRESS1}}", "protocol": "http", "host": [ "10", "1", "20", "6" ], "port": "81", "path": [ "addr", "checkin" ], "query": [ { "key": "address", "value": "{{IIS_ADDRESS1}}" } ] } }, "response": [] } ], "event": [ { "listen": "prerequest", "script": { "id": "249c2168-7c06-4a36-a39b-4e7e5aa08ae1", "type": "text/javascript", "exec": [ "" ] } }, { "listen": "test", "script": { "id": "a7d333a9-8742-4101-b166-4428b1bc184a", "type": "text/javascript", "exec": [ "" ] } } ], "variable": [ { "id": "999f4d25-9902-49f3-8069-4c96b1d403f1", "key": "BIGIP_MGMT", "value": "" }, { "id": "e0de8b8e-1233-46a5-b9eb-822a5b3f3e0d", "key": "BIGIP_NUMBER", "value": "" }, { "id": "e61b0db6-7af3-4377-a71b-bdfad366ad58", "key": "BIGIP_SCOPE", "value": "" }, { "id": "19df4fe3-c7c4-4d58-92c7-0eb155ac27b5", "key": "COUNTER", "value": "" }, { "id": "6d3249c3-6cec-4809-86da-220efefae92c", "key": "CUSTOM_TYPE", "value": "" }, { "id": "78a1d6ae-595e-4b52-97f1-516c21e830a1", "key": "DNS1_NAME", "value": "" }, { "id": "1c74ae3e-1abd-4837-917a-4affaea20b53", "key": "DNS2_NAME", "value": "" }, { "id": "a3a9cd45-7dd6-4dc2-85f6-b2a90f00fe13", "key": "PARTITION_NAME", "value": "" }, { "id": "c3d44627-605c-46a4-98c4-d6cf4f557b7f", "key": "PATH_NAME", "value": "" }, { "id": "dbaeb025-3a05-4ba4-82a8-4a98b527c39b", "key": "VS1_NAME", "value": "" }, { "id": "4ae67b4e-c0a8-417c-8b8f-e41e49c6b46a", "key": "PRIOR_RESPONSE", "value": "" }, { "id": "774ab888-ecbc-4a67-aabe-f7a81fda81b2", "key": "BIGIP_ADDRESS1", "value": "" }, { "id": "4d10e528-eb70-40e3-9d82-c2621db4042e", "key": "DNS_DEST", "value": "" }, { "id": "dd4fc5d4-d1e7-4856-a91f-290c8b9e5118", "key": "TRANSID", "value": "" }, { "id": "eb7b6045-4826-4ca3-9e70-622a8289c382", "key": "IIS_ADDRESS1", "value": "" } ], "protocolProfileBehavior": {} }