+

Search Tips   |   Advanced Search

Add and remove policies using wsadmin.sh

Use the Jython or Jacl scripting language and the wsadmin tool to query, add, and remove policies for our policy sets.

Before using the commands in this topic, verify that we are using the most recent version of the wsadmin tool. The policy set management commands that accept a properties object as the value for the attributes or bindingLocation parameters are not supported on previous versions of the wsadmin tool. For example, the commands do not run on a v6.1.0.x node.

Additionally, if administrative security is enabled, verify that we use the correct administrative role, as the following table describes:

Administrative role Authorization
Administrator The Administrator role must have cell-wide access to create and remove policies.
Configurator The Configurator role cannot create or remove policies.
Deployer The Deployer role cannot create or remove policies.
Operator The Operator role cannot create or remove policies.
Monitor The Monitor role cannot create or remove policies.

Policies define which Qualities of Service (QoS) to manage within a policy set. Policy definitions are based on the standards set by the Organization for the Advancement of Structured Information (OASIS) and Web Services Security specifications.

For application policy sets, we can add the following policies:

For system policy sets, we can add the following policies:

Use the following steps to add or remove policy types from your policy set configurations:


Tasks


What to do next

Use the validatePolicySet command to validate your policy set configurations after modifying attributes for policies. For example, enter to validate the PolicySet1 policy set:

AdminTask.validatePolicySet('-policySet PolicySet1')


Related:

  • Web services policies
  • Editing policy configurations
  • Start the wsadmin scripting client
  • Manage policy sets
  • Enable policies for policy sets
  • Create policy sets
  • Add policies to policy sets
  • Manage policies in a policy set
  • Policy configuration properties for all policies
  • PolicySetManagement