IBM Support

How to use the IBM Security Access Manager RESTful Web Services to import a ZIP file to the Web Proxy management root pages

Question & Answer


Question

How can a ZIP file containing the Web Reverse Proxy management root pages be imported using the RESTful Web Services via cURL

Answer

Use the following curl command to import the ZIP file to update the management pages; it is assumed here that a file (for example called newpages_root.zip) has already been exported from the Web Reverse Proxy and had its contents modified appropriately.

curl -k --user admin:<Password> -H Accept:application/json -i -X POST --form file=@newpages_root.zip https://<Appliance_hostname>/wga/reverseproxy/<Reverse_proxy_instance>/management_root

Where:
<Password> is the appliance administrator password.
<Appliance_hostname> is the management address of the appliance.
<Reverse_proxy_instance> is the name of the Reverse Proxy Instance.

Once this command successfully completes, then check the new pending changes with the command:

curl -k --user admin:<Password> -H "Accept:application/json" -X GET https://<Appliance_hostname>/isam/pending_changes

This will return something similar to the following for this specific change:

{"changes":[{"policyName":"webseal_web_document_root","displayKey":"webseal_web_document_root","dateString":"2014/02/07 06:32:00","owner":"admin","ui_page":"../wga/reverseproxy"}]}

To deploy the change, run this command:

curl -k --user admin:<Password> -H Accept:application/json -X GET https://<Appliance_hostname>/isam/pending_changes/deploy

To restart the Proxy instance after the changes are deployed run the command:

curl -k --user admin:<Password> -i -H Accept:application/json -X PUT -d {"operation":"restart"} https://<Appliance_hostname>/wga/reverseproxy/<Reverse_Proxy_Instance>

[{"Product":{"code":"SSPREK","label":"Tivoli Access Manager for e-business"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"WebSeal AMP Appliance","Platform":[{"code":"PF004","label":"Appliance"}],"Version":"8.0;9.0","Edition":"","Line of Business":{"code":"LOB24","label":"Security Software"}}]

Document Information

Modified date:
16 June 2018

UID

swg21701037