Network Deployment (Distributed operating systems), v8.0 > Scripting the application serving environment (wsadmin) > Welcome to scripting for web services > Configure web services applications using wsadmin.sh > Configure application and system policy sets for web services using wsadmin.sh


Delete policy sets using wsadmin.sh

Use the Jython or Jacl scripting language to delete policy sets from the configuration with wsadmin.sh. We must remove all policy set attachments before removing the policy set.

To complete this task, use the Administrator role with cell-wide access when administrative security is enabled.

Before deleting a policy set, delete or transfer all attachments to applications. We cannot delete default policy sets.

Use the following steps to delete custom policy sets from the configuration with wsadmin.sh:


Procedure

  1. Launch a scripting command.

    To learn more, see the starting the wsadmin scripting client information.

  2. List all policy sets in the configuration.

    • Enter the following command to list all application policy sets:
      AdminTask.listPolicySets()
      

    • Enter the following command to list all policy sets for the trust service:
      AdminTask.listPolicySets('[-policySetType system/trust]')
      

    • Enter the following command to list all system policy sets:
      AdminTask.listPolicySets('[-policySetType system]')
      

  3. Determine which policy set to delete. Enter the following command to view the description and default indicator for a specific policy set:
    AdminTask.getPolicySet('[-policySet policySet_name]')
    
  4. Delete the policy set.

    Enter the following command to delete a specific policy set.

    AdminTask.deletePolicySet('[-policySet PolicySet1)')
    
    The command returns a success or failure response. If you receive an error message, make sure that we have deleted all policy set attachments before entering the deletePolicySet command.

  5. Save the configuration changes.

    Enter the command to save your changes.

    AdminConfig.save()
    


What to do next

If you deleted a policy set that was previously attached to an application, restart the affected application to update the configuration changes.
Start the wsadmin scripting client using wsadmin.sh
Delete policy sets
Configure application and system policy sets for web services using wsadmin.sh
Create policy sets using wsadmin.sh
Add and remove policies using wsadmin.sh


Related


PolicySetManagement command group

+

Search Tips   |   Advanced Search