+

Search Tips   |   Advanced Search

Remove policy set attachments using wsadmin


Use the Jython or Jacl scripting language to remove and transfer policy sets from application artifacts. We can also remove resources that apply to a policy set attachment without deleting the policy set attachment.

When admin security is enabled, verify that you use the correct admin role, as the following table describes:


Table 1. Administrative roles

Administrative role Authorization
Administrator The Administrator role must have cell-wide access to remove policy set attachments. If we have access to a specific resource only, we can remove policy set attachments for the resource for which we have access.
Configurator The Configurator role must have cell-wide access to remove policy set attachments. If we have access to a specific resource only, we can remove policy set attachments for the resource for which we have access.
Deployer The Deployer role with cell-wide or resource specific access can remove policy set attachments for application resources only.
Operator The Operator role cannot remove policy set attachments.
Monitor The Monitor role cannot remove policy set attachments.

Determine which applications and policy sets to remove, detach, or transfer. Use the listWebServices command to list all Web services and for the application to edit. Enter the command to list all Web services and attributes for a specific application.

AdminTask.listWebServices('[–application myapp]')
To view a list of all Web services and associated applications, do not provide the -application parameter. For each Web service, the command returns the associated application name, module name, service name, and service type. We can also use the listAttachmentsForPolicySet and getPolicySetAttachments admin commands to view existing configuration data. For additional information about these commands, use the information center topic for the PolicySetManagement group of commands for AdminTask.

There are four ways to remove policy set attachments, including:

Choose the appropriate procedure to remove the policy set attachments.

 

 

Related tasks


Set attachments for the trust service
Set application and system policy sets for Web services using scripting
Create policy sets using wsadmin
Add and remove policies using wsadmin
Create policy set attachments using wsadmin
Manage policy set attachments using wsadmin
Remove policy set attachments using wsadmin
Manage policy sets

 

Related


PolicySetManagement