vCO Workflow Script to Add REST Operations to a REST Host for F5 BIG-IP LTM – Part 1

The following script is part 1 and enables the addition of REST Operations to a REST Host for F5 BIG-IP LTM

 

 

var objProperties;
	objProperties = new Properties();
	objProperties.put("GET_get-ltm-auth", "/mgmt/tm/ltm/auth");
	objProperties.put("GET_get-ltm-auth-CRLDP-SERVER", "/mgmt/tm/ltm/auth/crldp-server");
	objProperties.put("GET_get-ltm-auth-KERBEROS-DELEGATION", "/mgmt/tm/ltm/auth/kerberos-delegation");
	objProperties.put("GET_get-ltm-auth-LDAP", "/mgmt/tm/ltm/auth/ldap");
	objProperties.put("GET_get-ltm-auth-OCSP-RESPONDER", "/mgmt/tm/ltm/auth/ocsp-responder");
	objProperties.put("GET_get-ltm-auth-PROFILE", "/mgmt/tm/ltm/auth/profile");
	objProperties.put("GET_get-ltm-auth-RADIUS", "/mgmt/tm/ltm/auth/radius");
	objProperties.put("GET_get-ltm-auth-RADIUS-SERVER", "/mgmt/tm/ltm/auth/radius-server");
	objProperties.put("GET_get-ltm-auth-SSL-CC-LDAP", "/mgmt/tm/ltm/auth/ssl-cc-ldap");
	objProperties.put("GET_get-ltm-auth-SSL-CRLDP", "/mgmt/tm/ltm/auth/ssl-crldp");
	objProperties.put("GET_get-ltm-auth-SSL-OCSP", "/mgmt/tm/ltm/auth/ssl-ocsp");
	objProperties.put("GET_get-ltm-auth-TACACS", "/mgmt/tm/ltm/auth/tacacs");
	objProperties.put("GET_get-ltm-data-group", "/mgmt/tm/ltm/data-group");
	objProperties.put("GET_get-ltm-data-group-EXTERNAL", "/mgmt/tm/ltm/data-group/external");
	objProperties.put("GET_get-ltm-data-group-INTERNAL", "/mgmt/tm/ltm/data-group/internal");
	objProperties.put("GET_get-ltm-dns", "/mgmt/tm/ltm/dns");
	objProperties.put("GET_get-ltm-dns-ANALYTICS", "/mgmt/tm/ltm/dns/analytics");
	objProperties.put("GET_get-ltm-dns-CACHE", "/mgmt/tm/ltm/dns/cache");
	objProperties.put("GET_get-ltm-dns-DNS-EXPRESS", "/mgmt/tm/ltm/dns/dns-express");
	objProperties.put("GET_get-ltm-dns-DNSSEC", "/mgmt/tm/ltm/dns/dnssec");
	objProperties.put("GET_get-ltm-global-settings", "/mgmt/tm/ltm/global-settings");
	objProperties.put("GET_get-ltm-global-settings-CONNECTION", "/mgmt/tm/ltm/global-settings/connection");
	objProperties.put("GET_get-ltm-global-settings-GENERAL", "/mgmt/tm/ltm/global-settings/general");
	objProperties.put("GET_get-ltm-global-settings-TRAFFIC-CONTROL", "/mgmt/tm/ltm/global-settings/traffic-control");
	objProperties.put("GET_get-ltm-html-rule", "/mgmt/tm/ltm/html-rule");
	objProperties.put("GET_get-ltm-html-rule-COMMENT-RAISE-EVENT", "/mgmt/tm/ltm/html-rule/comment-raise-event");
	objProperties.put("GET_get-ltm-html-rule-COMMENT-REMOVE", "/mgmt/tm/ltm/html-rule/comment-remove");
	objProperties.put("GET_get-ltm-html-rule-TAG-APPEND-HTML", "/mgmt/tm/ltm/html-rule/tag-append-html");
	objProperties.put("GET_get-ltm-html-rule-TAG-PREPEND-HTML", "/mgmt/tm/ltm/html-rule/tag-prepend-html");
	objProperties.put("GET_get-ltm-html-rule-TAG-RAISE-EVENT", "/mgmt/tm/ltm/html-rule/tag-raise-event");
	objProperties.put("GET_get-ltm-html-rule-TAG-REMOVE", "/mgmt/tm/ltm/html-rule/tag-remove");
	objProperties.put("GET_get-ltm-html-rule-TAG-REMOVE-ATTRIBUTE", "/mgmt/tm/ltm/html-rule/tag-remove-attribute");
	objProperties.put("GET_get-ltm-monitor", "/mgmt/tm/ltm/monitor");
	objProperties.put("POST_get-ltm-monitor", "/mgmt/tm/ltm/monitor");
	objProperties.put("GET_get-ltm-monitor-DIAMETER", "/mgmt/tm/ltm/monitor/diameter");
	objProperties.put("GET_get-ltm-monitor-DNS", "/mgmt/tm/ltm/monitor/dns");
	objProperties.put("GET_get-ltm-monitor-EXTERNAL", "/mgmt/tm/ltm/monitor/external");
	objProperties.put("GET_get-ltm-monitor-FIREPASS", "/mgmt/tm/ltm/monitor/firepass");
	objProperties.put("GET_get-ltm-monitor-FTP", "/mgmt/tm/ltm/monitor/ftp");
	objProperties.put("GET_get-ltm-monitor-GATEWAY-ICMP", "/mgmt/tm/ltm/monitor/gateway-icmp");
	objProperties.put("GET_get-ltm-monitor-http", "/mgmt/tm/ltm/monitor/http");
	objProperties.put("POST_post-ltm-monitor-http", "/mgmt/tm/ltm/monitor/http");
	objProperties.put("DELETE_delete-ltm-monitor-http", "/mgmt/tm/ltm/monitor/http/{MonitorNameHTTP}");
	objProperties.put("GET_get-ltm-monitor-https", "/mgmt/tm/ltm/monitor/https");
	objProperties.put("POST_post-ltm-monitor-https", "/mgmt/tm/ltm/monitor/https");
        objProperties.put("DELETE_delete-ltm-monitor-https", "/mgmt/tm/ltm/monitor/https/{MonitorNameHTTPS}");
	objProperties.put("GET_get-ltm-monitor-ICMP", "/mgmt/tm/ltm/monitor/icmp");
	objProperties.put("GET_get-ltm-monitor-IMAP", "/mgmt/tm/ltm/monitor/imap");
	objProperties.put("GET_get-ltm-monitor-INBAND", "/mgmt/tm/ltm/monitor/inband");
	objProperties.put("GET_get-ltm-monitor-LDAP", "/mgmt/tm/ltm/monitor/ldap");
	objProperties.put("GET_get-ltm-monitor-MODULE-SCORE", "/mgmt/tm/ltm/monitor/module-score");
	objProperties.put("GET_get-ltm-monitor-MSSQL", "/mgmt/tm/ltm/monitor/mssql");
	objProperties.put("GET_get-ltm-monitor-MYSQL", "/mgmt/tm/ltm/monitor/mysql");
	objProperties.put("GET_get-ltm-monitor-NNTP", "/mgmt/tm/ltm/monitor/nntp");
	objProperties.put("GET_get-ltm-monitor-NONE", "/mgmt/tm/ltm/monitor/none");
	objProperties.put("GET_get-ltm-monitor-ORACLE", "/mgmt/tm/ltm/monitor/oracle");
	objProperties.put("GET_get-ltm-monitor-POP3", "/mgmt/tm/ltm/monitor/pop3");
	objProperties.put("GET_get-ltm-monitor-POSTGRESQL", "/mgmt/tm/ltm/monitor/postgresql");
	objProperties.put("GET_get-ltm-monitor-RADIUS", "/mgmt/tm/ltm/monitor/radius");
	objProperties.put("GET_get-ltm-monitor-RADIUS-ACCOUNTING", "/mgmt/tm/ltm/monitor/radius-accounting");
	objProperties.put("GET_get-ltm-monitor-REAL-SERVER", "/mgmt/tm/ltm/monitor/real-server");
	objProperties.put("GET_get-ltm-monitor-RPC", "/mgmt/tm/ltm/monitor/rpc");
	objProperties.put("GET_get-ltm-monitor-SASP", "/mgmt/tm/ltm/monitor/sasp");
	objProperties.put("GET_get-ltm-monitor-SCRIPTED", "/mgmt/tm/ltm/monitor/scripted");
	objProperties.put("GET_get-ltm-monitor-SIP", "/mgmt/tm/ltm/monitor/sip");
	objProperties.put("GET_get-ltm-monitor-SMB", "/mgmt/tm/ltm/monitor/smb");
	objProperties.put("GET_get-ltm-monitor-SMTP", "/mgmt/tm/ltm/monitor/smtp");
	objProperties.put("GET_get-ltm-monitor-SNMP-DCA", "/mgmt/tm/ltm/monitor/snmp-dca");
	objProperties.put("GET_get-ltm-monitor-SNMP-DCA-BASE", "/mgmt/tm/ltm/monitor/snmp-dca-base");
	objProperties.put("GET_get-ltm-monitor-SOAP", "/mgmt/tm/ltm/monitor/soap");
	objProperties.put("GET_get-ltm-monitor-tcp", "/mgmt/tm/ltm/monitor/tcp");
	objProperties.put("POST_post-ltm-monitor-tcp", "/mgmt/tm/ltm/monitor/tcp");
	objProperties.put("DELETE_delete-ltm-monitor-tcp", "/mgmt/tm/ltm/monitor/tcp/{MonitorName}");	
	objProperties.put("GET_get-ltm-monitor-TCP-ECHO", "/mgmt/tm/ltm/monitor/tcp-echo");
	objProperties.put("GET_get-ltm-monitor-TCP-HALF-OPEN", "/mgmt/tm/ltm/monitor/tcp-half-open");
	objProperties.put("GET_get-ltm-monitor-UDP", "/mgmt/tm/ltm/monitor/udp");
	objProperties.put("GET_get-ltm-monitor-VIRTUAL-LOCATION", "/mgmt/tm/ltm/monitor/virtual-location");
	objProperties.put("GET_get-ltm-monitor-WAP", "/mgmt/tm/ltm/monitor/wap");
	objProperties.put("GET_get-ltm-monitor-WMI", "/mgmt/tm/ltm/monitor/wmi");
	objProperties.put("GET_get-ltm-persistence", "/mgmt/tm/ltm/persistence");
	objProperties.put("GET_get-ltm-persistence-COOKIE", "/mgmt/tm/ltm/persistence/cookie");
	objProperties.put("GET_get-ltm-persistence-DEST-ADDR", "/mgmt/tm/ltm/persistence/dest-addr");
	objProperties.put("GET_get-ltm-persistence-GLOBAL-SETTINGS", "/mgmt/tm/ltm/persistence/global-settings");
	objProperties.put("GET_get-ltm-persistence-HASH", "/mgmt/tm/ltm/persistence/hash");
	objProperties.put("GET_get-ltm-persistence-MSRDP", "/mgmt/tm/ltm/persistence/msrdp");
	objProperties.put("GET_get-ltm-persistence-SIP", "/mgmt/tm/ltm/persistence/sip");
	objProperties.put("GET_get-ltm-persistence-SOURCE-ADDR", "/mgmt/tm/ltm/persistence/source-addr");
	objProperties.put("GET_get-ltm-persistence-SSL", "/mgmt/tm/ltm/persistence/ssl");
	objProperties.put("GET_get-ltm-persistence-UNIVERSAL", "/mgmt/tm/ltm/persistence/universal");
	objProperties.put("GET_get-ltm-profile", "/mgmt/tm/ltm/profile");
	objProperties.put("GET_get-ltm-profile-CERTIFICATE-AUTHORITY", "/mgmt/tm/ltm/profile/certificate-authority");
	objProperties.put("GET_get-ltm-profile-CLASSIFICATION", "/mgmt/tm/ltm/profile/classification");
	objProperties.put("GET_get-ltm-profile-CLIENT-SSL", "/mgmt/tm/ltm/profile/client-ssl");
	objProperties.put("GET_get-ltm-profile-DIAMETER", "/mgmt/tm/ltm/profile/diameter");
	objProperties.put("GET_get-ltm-profile-DNS", "/mgmt/tm/ltm/profile/dns");
	objProperties.put("GET_get-ltm-profile-DNS-LOGGING", "/mgmt/tm/ltm/profile/dns-logging");
	objProperties.put("GET_get-ltm-profile-FASTHTTP", "/mgmt/tm/ltm/profile/fasthttp");
	objProperties.put("GET_get-ltm-profile-FASTL4", "/mgmt/tm/ltm/profile/fastl4");
	objProperties.put("GET_get-ltm-profile-FTP", "/mgmt/tm/ltm/profile/ftp");
	objProperties.put("GET_get-ltm-profile-HTML", "/mgmt/tm/ltm/profile/html");
	objProperties.put("GET_get-ltm-profile-HTTP", "/mgmt/tm/ltm/profile/http");
	objProperties.put("GET_get-ltm-profile-HTTP-COMPRESSION", "/mgmt/tm/ltm/profile/http-compression");
	objProperties.put("GET_get-ltm-profile-ICAP", "/mgmt/tm/ltm/profile/icap");
	objProperties.put("GET_get-ltm-profile-IIOP", "/mgmt/tm/ltm/profile/iiop");
	objProperties.put("GET_get-ltm-profile-MBLB", "/mgmt/tm/ltm/profile/mblb");
	objProperties.put("GET_get-ltm-profile-NTLM", "/mgmt/tm/ltm/profile/ntlm");
	objProperties.put("GET_get-ltm-profile-ONE-CONNECT", "/mgmt/tm/ltm/profile/one-connect");
	objProperties.put("GET_get-ltm-profile-RADIUS", "/mgmt/tm/ltm/profile/radius");
	objProperties.put("GET_get-ltm-profile-REQUEST-ADAPT", "/mgmt/tm/ltm/profile/request-adapt");
	objProperties.put("GET_get-ltm-profile-REQUEST-LOG", "/mgmt/tm/ltm/profile/request-log");
	objProperties.put("GET_get-ltm-profile-RESPONSE-ADAPT", "/mgmt/tm/ltm/profile/response-adapt");
	objProperties.put("GET_get-ltm-profile-REWRITE", "/mgmt/tm/ltm/profile/rewrite");
	objProperties.put("GET_get-ltm-profile-RTSP", "/mgmt/tm/ltm/profile/rtsp");
	objProperties.put("GET_get-ltm-profile-SCTP", "/mgmt/tm/ltm/profile/sctp");
	objProperties.put("GET_get-ltm-profile-server-ssl", "/mgmt/tm/ltm/profile/server-ssl");
	objProperties.put("POST_post-ltm-profile-server-ssl", "/mgmt/tm/ltm/profile/server-ssl");
	objProperties.put("DELETE_delete-ltm-profile-server-ssl", "/mgmt/tm/ltm/profile/server-ssl/{SSLProfileServerName}");
	objProperties.put("GET_get-ltm-profile-SIP", "/mgmt/tm/ltm/profile/sip");
	objProperties.put("GET_get-ltm-profile-SPDY", "/mgmt/tm/ltm/profile/spdy");
	objProperties.put("GET_get-ltm-profile-STATISTICS", "/mgmt/tm/ltm/profile/statistics");
	objProperties.put("GET_get-ltm-profile-STREAM", "/mgmt/tm/ltm/profile/stream");
	objProperties.put("GET_get-ltm-profile-TCP", "/mgmt/tm/ltm/profile/tcp");
	objProperties.put("GET_get-ltm-profile-UDP", "/mgmt/tm/ltm/profile/udp");
	objProperties.put("GET_get-ltm-profile-WEB-ACCELERATION", "/mgmt/tm/ltm/profile/web-acceleration");
	objProperties.put("GET_get-ltm-profile-XML", "/mgmt/tm/ltm/profile/xml");
	objProperties.put("GET_get-ltm-default-node-monitor", "/mgmt/tm/ltm/default-node-monitor");
	objProperties.put("GET_get-ltm-ifile", "/mgmt/tm/ltm/ifile");
	objProperties.put("GET_get-ltm-nat", "/mgmt/tm/ltm/nat");
	objProperties.put("GET_get-ltm-nodes", "/mgmt/tm/ltm/node");
	objProperties.put("POST_post-ltm-nodes", "/mgmt/tm/ltm/node");
	objProperties.put("GET_get-ltm-node", "/mgmt/tm/ltm/node/{NodeName}");
	objProperties.put("DELETE_delete-ltm-node", "/mgmt/tm/ltm/node/{NodeName}");
	objProperties.put("GET_get-ltm-policy", "/mgmt/tm/ltm/policy");
	objProperties.put("GET_get-ltm-policy-_SYS_CEC_VIDEO_POLICY", "/mgmt/tm/ltm/policy/_sys_CEC_video_policy");
	objProperties.put("GET_get-ltm-policy-_SYS_CEC_VIDEO_POLICY-RULES", "/mgmt/tm/ltm/policy/_sys_CEC_video_policy/rules");
	objProperties.put("GET_get-ltm-policy-strategy", "/mgmt/tm/ltm/policy-strategy");
	objProperties.put("GET_get-ltm-policy-strategy-ALL-MATCH", "/mgmt/tm/ltm/policy-strategy/all-match");
	objProperties.put("GET_get-ltm-policy-strategy-BEST-MATCH", "/mgmt/tm/ltm/policy-strategy/best-match");
	objProperties.put("GET_get-ltm-policy-strategy-BEST-MATCH-OPERANDS", "/mgmt/tm/ltm/policy-strategy/best-match/operands");
	objProperties.put("GET_get-ltm-policy-strategy-FIRST-MATCH", "/mgmt/tm/ltm/policy-strategy/first-match");
	objProperties.put("GET_get-ltm-pools", "/mgmt/tm/ltm/pool");
	objProperties.put("POST_post-ltm-pools", "/mgmt/tm/ltm/pool");
	objProperties.put("GET_get-ltm-pool", "/mgmt/tm/ltm/pool/{PoolName}");
	objProperties.put("DELETE_delete-ltm-pool", "/mgmt/tm/ltm/pool/{PoolName}");
	objProperties.put("GET_get-ltm-pool-MEMBERS", "/mgmt/tm/ltm/pool/{PoolName}/members");
	objProperties.put("POST_post-ltm-pool-MEMBERS", "/mgmt/tm/ltm/pool/{PoolName}/members");
	objProperties.put("GET_get-ltm-pool-members-nodes", "/mgmt/tm/ltm/pool/{PoolName}/members/{NodeName}");
	objProperties.put("DELETE_delete-ltm-pool-members-nodes", "/mgmt/tm/ltm/pool/{PoolName}/members/{NodeName}");
	objProperties.put("GET_get-ltm-rules", "/mgmt/tm/ltm/rule");
	objProperties.put("POST_post-ltm-rules", "/mgmt/tm/ltm/rule");
	objProperties.put("DELETE_delete-ltm-rules", "/mgmt/tm/ltm/rule/{IRuleName}");
	objProperties.put("GET_get-ltm-rule-_SYS_AUTH_KRBDELEGATE", "/mgmt/tm/ltm/rule/_sys_auth_krbdelegate");
	objProperties.put("GET_get-ltm-rule-_SYS_HTTPS_REDIRECT", "/mgmt/tm/ltm/rule/_sys_https_redirect");
	objProperties.put("GET_get-ltm-rule-_SYS_AUTH_SSL_CC_LDAP", "/mgmt/tm/ltm/rule/_sys_auth_ssl_cc_ldap");
	objProperties.put("GET_get-ltm-rule-_SYS_AUTH_SSL_OCSP", "/mgmt/tm/ltm/rule/_sys_auth_ssl_ocsp");
	objProperties.put("GET_get-ltm-rule-_SYS_AUTH_SSL_CRLDP", "/mgmt/tm/ltm/rule/_sys_auth_ssl_crldp");
	objProperties.put("GET_get-ltm-snat", "/mgmt/tm/ltm/snat");
	objProperties.put("GET_get-ltm-snat-translation", "/mgmt/tm/ltm/snat-translation");
	objProperties.put("GET_get-ltm-snatpool", "/mgmt/tm/ltm/snatpool");
	objProperties.put("GET_get-ltm-traffic-class", "/mgmt/tm/ltm/traffic-class");
	objProperties.put("GET_get-ltm-virtual-servers", "/mgmt/tm/ltm/virtual");
	objProperties.put("POST_post-ltm-virtual-servers", "/mgmt/tm/ltm/virtual");
	objProperties.put("GET_get-ltm-virtual-server", "/mgmt/tm/ltm/virtual/{VirtualServerName}");
	objProperties.put("DELETE_delete-ltm-virtual-server", "/mgmt/tm/ltm/virtual/{VirtualServerName}");
	objProperties.put("GET_get-ltm-virtual-server-profiles", "/mgmt/tm/ltm/virtual/{VirtualServerName}/profiles");
	objProperties.put("POST_post-ltm-virtual-server-profiles", "/mgmt/tm/ltm/virtual/{VirtualServerName}/profiles");
	objProperties.put("DELETE_delete-ltm-virtual-server-profiles", "/mgmt/tm/ltm/virtual/{VirtualServerName}/profiles/{ProfileName}");
	objProperties.put("GET_get-ltm-virtual-server-rules", "/mgmt/tm/ltm/virtual/{VirtualServerName}/rules");
	objProperties.put("POST_post-ltm-virtual-server-rules", "/mgmt/tm/ltm/virtual/{VirtualServerName}/rules");
	objProperties.put("DELETE_delete-ltm-virtual-server-rules", "/mgmt/tm/ltm/virtual/{VirtualServerName}/rules");
	objProperties.put("GET_get-ltm-virtual-addresses", "/mgmt/tm/ltm/virtual-address");
	objProperties.put("POST_post-ltm-virtual-addresses", "/mgmt/tm/ltm/virtual-address");
	objProperties.put("GET_get-ltm-virtual-address", "/mgmt/tm/ltm/virtual-address/{VirtualAddressName}");
	objProperties.put("DELETE_delete-ltm-virtual-addresses", "/mgmt/tm/ltm/virtual-address/{VirtualAddressName}");

Leave a Reply