Removing policy set attachments using the wsadmin tool
You can use the Jython or Jacl scripting language to remove and transfer policy sets from application artifacts. You can also remove resources that apply to a policy set attachment without deleting the policy set attachment.
Before you begin
When administrative security is enabled, verify that you
use the correct administrative role, as the following table describes:
Administrative role | Authorization |
---|---|
Administrator | The Administrator role must have cell-wide access to remove policy set attachments. If you have access to a specific resource only, you can remove policy set attachments for the resource for which you have access. |
Configurator | The Configurator role must have cell-wide access to remove policy set attachments. If you have access to a specific resource only, you can remove policy set attachments for the resource for which you 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 application_name]')
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. You can also use the listAttachmentsForPolicySet and getPolicySetAttachments
administrative commands to view existing configuration data. For additional information about these
commands, use the topic about the PolicySetManagement group of commands for the AdminTask
object.About this task
There are four ways to remove policy set attachments,
including:
- Remove a policy set attachment from an application.
- Remove resources that apply to a policy set attachment.
- Remove all attachments for a specific policy set and application.
- Transfer attachments between policy sets for a specific application.