Description Syntax Example clonePolicySet

14-42 Oracle Fusion Middleware WebLogic Scripting Tool Command Reference

14.4.6.3 Example

The first two examples list policy sets by either the sca-reference or ws-client resource types. Whereas, the third example lists all the policy sets stored in the repository. wls:wls-domainserverConfiglistPolicySetssca-reference wls:wls-domainserverConfiglistPolicySetsws-client wls:wls-domainserverConfiglistPolicySets

14.4.7 clonePolicySet

Command Category: Policy Set Management Use with WLST: Online

14.4.7.1 Description

Within a repository session, clone a new policy set from an existing policy set. When cloning an existing policy set, all values and attachments in the source policy set are copied into the new policy set, although you can supply a different expression identifying the resource scope. The expression must define a valid resource scope in a supported format. Issuing this command outside of a repository session will result in an error.

14.4.7.2 Syntax

clonePolicySetname, source,[attachTo=None],[description=None],[enable=true] Argument Definition type=None Optional. Specifies the type of policy sets to be displayed. The policy subject resource type must be one of the following values: ■ sca-component—SOA Component ■ sca-reference—SOA Reference ■ sca-service—SOA Service ■ ws-service—Web Service Endpoint ■ ws-client—Web Service Client ■ ws-connection—Web Service Connection ■ ws-callback—Asynchronous Callback Client If this argument is set to None, then all the policy sets stored in the repository will be listed. Argument Definition name Name of the new policy set clone. source Name of the source policy set that will be cloned. attachTo=None Optional. Expression that attaches the policy set to the specified resource scope. If this argument is set to None, then the expression used in the source policy set to identify the scope of resources is retained. description=None Optional. Description for the new policy set. If this argument is set to None, then the description used in the source policy set is retained. Web Services Custom WLST Commands 14-43

14.4.7.3 Example

The first example creates a policy set by cloning the existing myPolicySet policy set to create a new mynewPolicySet. The second example also creates a policy set, but narrows the resource scope to policy subjects in the specified soa_server1 server in the domain. wls:wls-domainserverConfigclonePolicySetmyNewPolicySet,myPolicySet wls:wls-domainserverConfigclonePolicySetmyNewPolicySet,myPolicySet,Server soa_server1

14.4.8 displayPolicySet