Updating policy set attributes using the wsadmin tool

Use policy sets to centrally manage policies that are customized for your Web services. Use the Jython or Jacl scripting language with the wsadmin tool to update policy set attributes. You can also query for an existing policy set and respective attributes.

Before you begin

Review information for Starting the wsadmin scripting client.

About this task

After creating a new policy set, you can update your policy set configuration with the updatePolicySet command. The command utilizes a properties object to update all attributes or a subset of attributes for the specified policy set.

Procedure

  1. View the current attribute values for the policy set of interest.

    Enter the following command to display the attribute values of the policySet1 policy set:

    AdminTask.getPolicySet('[-policySet policySet1]')
  2. Modify attributes for the policy set of interest.
    Enter the following command to modify the type and description attributes for the policySet1 policy set.
    AdminTask.updatePolicySet('-policySet policySet1 
    -attributes "[ [type application] [description [my custom policy set to manage WSSecurity]] ]"')
    You can also use the -interactive option to update a policy set. To start -interactive mode, enter this command:
    AdminTask.updatePolicySet('[-interactive]')
  3. Save the configuration changes.
    Enter the following command to save your changes:
    AdminConfig.save()

Results

If you received a success message after entering the commands, manage and customize the policy set for your Web services applications.

What to do next

After updating policy set attributes, you can further configure policies and policy set attachments using the commands and parameters for the PolicySetManagement group of the AdminTask object.



In this information ...


Related concepts

IBM Redbooks, demos, education, and more

(Index)

Use IBM Suggests to retrieve related content from ibm.com and beyond, identified for your convenience.

This feature requires Internet access.

Task topic Task topic    

Terms and conditions for information centers | Feedback

Last updatedLast updated: Aug 31, 2013 1:23:07 AM CDT
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=pix&product=was-nd-dist&topic=txml_wsfpupdatepolicysets
File name: txml_wsfpupdatepolicysets.html