Adding and removing policies using wsadmin scripting

You can use the Jython or Jacl scripting language and the wsadmin tool to query, add, and remove policies for your policy sets.

Before you begin

在使用這個主題中的指令之前,請確認您使用 wsadmin 工具的最新版本。 在舊版的 wsadmin 工具中,不支援接受內容物件作為 attributesbindingLocation 參數值的原則集管理指令。 例如,在 6.1.0.x 版節點上,不執行這些指令。

Additionally, if administrative security is enabled, verify that you use the correct administrative role, as the following table describes:
Table 1. Administrative roles. This table describes the administrative roles and associated authorization when administrative security is enabled.
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.

About this task

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, you can add the following policies:
  • WSSecurity
  • WSReliableMessaging
  • WSAddressing
  • HTTPTransport
  • SSLTransport
  • WSTransaction
  • JMSTransport
  • CustomProperties
For system policy sets, you can add the following policies:
  • WSSecurity
  • WSAddressing
  • HTTPTransport
  • SSLTransport
  • WS-MetadataExchange
  • JMSTransport
  • CustomProperties

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

Procedure

What to do next

Use the validatePolicySet command to validate your policy set configurations after modifying attributes for policies. For example, enter the following command to validate the PolicySet1 policy set:
AdminTask.validatePolicySet('-policySet PolicySet1')

指出主題類型的圖示 作業主題



時間戳記圖示 前次更新: July 9, 2016 11:19
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=cord&product=was-nd-mp&topic=txml_wsfppolicytypes
檔名:txml_wsfppolicytypes.html