FreeKB - CA Technologies Gateway Migration Utility - List Service (restman)
CA Technologies Gateway Migration Utility - List Service (restman)

Home > Search


This assumes you are familiar with the basic usage of the Gateway Migration Utility and that you are using an arguments file with an encoded password to connect to your API Gateway.

Following is an example of how to list every service in an API Gateway.

/path/to/GatewayMigrationUtility.sh restman
-argFile example.properties
-method GET
-path '1.0/services'

 

Following is an example of how to list every policy in an API Gateway.

/path/to/GatewayMigrationUtility.sh restman
-argFile example.properties
-method GET
-path '1.0/policies'

 


List a single service or policy

Let's say you want to view the XML for a single service or policy. To do this, you will need to specify the name or ID of the service or policy. If you don't know the name or ID, you can get the name or ID in the API Gateway.

 

Here is how to list the service or policy using the ID. I like this approach better, because every service and policy should have a unique ID.

/path/to/GatewayMigrationUtility.sh restman
-argFile example.properties
-method GET
-path '1.0/services/77f8759353276b5da9bf5f505e5caf31'

 

And here is how to list the service or policy using the name. I'm not that fond of this approach, because there can be two or more services with an identical name.

/path/to/GatewayMigrationUtility.sh restman
-argFile example.properties
-method GET
-path '1.0/services'
-query 'name=example'

 


Here are some other things can be done with restman.

 



Add a Comment




We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.




Please enter 836d8 in the box below so that we can be sure you are a human.




Comments