Layer7 API Management

Expand all | Collapse all

RESTMan bundle parameters

Jump to Best Answer
  • 1.  RESTMan bundle parameters

    Posted 06-20-2017 05:59 AM



    Could you confirm arguments shown below in RESTman documentation for "bundle" operation do not exist (anymore) ?


    GET 1.0/bundle/{resourceType}/{id}

    GET 1.0/bundle


    includeOnlyServicePolicybooleanfalse1.0.3True to export only service policy. False by default.
    includeOnlyDependenciesbooleanfalse1.0.3True to export only dependencies. False by default.


    In fact goal was to use "bundle" to export a policy *without* any dependencies, e.g. mimic what does the "export policy" in the Policy Manager.


    Using WSMan works through "" but we would rather stick continuing to use restman to avoir embedded java program (read:dead slow).


    ./ export -type policy -username xxxxx -password 'xxxxxxxx' -id e001cfd0c1c1ffaa18e187b5e72fd96f -outFile /var/tmp/foo -skipVerifyCertificate -skipVerifyHostname



  • 2.  Re: RESTMan bundle parameters
    Best Answer

    Posted 06-20-2017 11:59 AM




    The options you reference were added I believe in 9.2 to specifically support your objective to export a service with no dependencies. This can be done using bundle as such. 



  • 3.  Re: RESTMan bundle parameters

    Posted 06-21-2017 04:29 AM


    Confirmed, this option, although documented in 9.1, only works in 9.2. As most of our appliances are still in 9.1, we have to stick with WSMan.


    But doing it with RESTman is does not in fact mimic exactly the policy manager "export policy", what does is using WSMan (e.g: no mappings, etc).

    We modified our framework and now being able to:


          # exportPolicy -n "/OTK/Policy Fragments/authentication/OTK User Authentication"


    Generated command:


    /usr/bin/curl -k -X POST -H "Accept: application/soap+xml;charset=utf-8, application/soap+xml;charset=utf-16" -H "Content-Type: application/soap+xml;charset=utf-8;action=" -u "******:xxxxxxxxxxx" --cacert /etc/pki/tls/private/CA_chain.pem "" -d "@/var/tmp/soapFile4331"


    argument soapFile4331:


    <env:Envelope xmlns:env="" xmlns:wsa="" xmlns:wse="" xmlns:wsen="" xmlns:wsman="" xmlns:wxf="" xmlns:xs="">
    <wsa:Action env:mustUnderstand="true"></wsa:Action>
    <wsa:Address env:mustUnderstand="true"></wsa:Address>
    <wsa:MessageID env:mustUnderstand="true">uuid:df2572ab-b43a-4983-aa67-7542117b6901</wsa:MessageID>
    <wsa:To env:mustUnderstand="true"></wsa:To>
    <wsman:Selector Name="id">e001cfd0c1c1ffaa18e187b5e72fd96f</wsman:Selector>