For portal and psconsole to be accessed through gateway, the related URLs must be added to the Non-Authenticated URLs of the gateway profile and certain entries should be added to the Map URIs to Rulesets of the gateway profile. Also portal url should be added to the URLs to which User Session Cookie is forwarded. Cookie management should be enabled if psconsole is to be accessed through the gateway. The psadmin provision-sra command provides a simpler way to perform these steps. It uses the abstraction provided by the framework in terms of portal-Id and instance-Id for generating the URLs.