Broadcom API Gateway - List Assertion Security Zones using the Gateway Migration Utility

by
Jeremy Canfield |
Updated: February 23 2022
| Broadcom API Gateway articles
This assumes you are familiar with the basic usage of the Gateway Migration Utility. Following is an example of how to list every Assertion Security Zone in an API Gateway.
/path/to/GatewayMigrationUtility.sh restman
-host apig.example.com
-port 8443
-username john.doe
-password f5VPX0yUJPg.m4BrjdgMv84UgktddJD3xA
-method GET
-path '1.0/assertionSecurityZones'
Or the -argFile option can be used, to reduce the number of options that are used on the command line.
/path/to/GatewayMigrationUtility.sh restman
-argFile example.properties
-method GET
-path '1.0/assertionSecurityZones'
Or, you can return a single Assertion Security Zone by including the ID of the Assertion Security Zone.
/path/to/GatewayMigrationUtility.sh restman
-argFile example.properties
-method GET
-path '1.0/assertionSecurityZones/fa003c1f2478cc407b0a8acbba2aa199'
Or, you can use the -query option to return a single Assertion Security Zone by including the name of the Assertion Security Zone.
/path/to/GatewayMigrationUtility.sh restman
-argFile example.properties
-method GET
-path '1.0/assertionSecurityZones'
-query 'name=com.l7tech.external.assertions.managecookie.ManageCookieAssertion'
The -response option can be used to output the XML to a file.
/path/to/GatewayMigrationUtility.sh restman
-argFile example.properties
-method GET
-path '1.0/assertionSecurityZones'
-response assertionSecurityZones.xml
Here is an example of the output that should be returned.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<l7:List xmlns:l7="http://ns.l7tech.com/2010/04/gateway-management">
<l7:Name>ASSERTION_ACCESS List</l7:Name>
<l7:Type>List</l7:Type>
<l7:TimeStamp>2021-01-29T05:53:44.249-06:00</l7:TimeStamp>
<l7:Link rel="self" uri="https://apig.example.com:8443/restman/1.0/assertionSecurityZones"/>
<l7:Link rel="template" uri="https://apig.example.com:8443/restman/1.0/assertionSecurityZones/template"/>
<l7:Item>
<l7:Name>com.l7tech.external.assertions.managecookie.ManageCookieAssertion</l7:Name>
<l7:Id>com.l7tech.external.assertions.managecookie.ManageCookieAssertion</l7:Id>
<l7:Type>ASSERTION_ACCESS</l7:Type>
<l7:TimeStamp>2021-01-29T05:53:44.248-06:00</l7:TimeStamp>
<l7:Link rel="self" uri="https://apig.example.com:8443/restman/1.0/assertionSecurityZones/com.l7tech.external.assertions.managecookie.ManageCookieAssertion"/>
<l7:Resource>
<l7:AssertionSecurityZone id="0000000000000000ffffffffffffffff" version="0">
<l7:Name>com.l7tech.external.assertions.managecookie.ManageCookieAssertion</l7:Name>
</l7:AssertionSecurityZone>
</l7:Resource>
</l7:Item>
</l7:List>
Did you find this article helpful?
If so, consider buying me a coffee over at