WAS v8.5 > Script 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

List policy sets available for attachment using wsadmin

Use wsadmin to list the supported policy sets available to attach to a web services resource. We can attach policy sets to an application, web service, endpoint, or specific operation.

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

Administrative roles. The administrative role determines if we can create policy set attachments.

Administrative role Authorization
Administrator The Administrator role must have cell-wide access to create policy set attachments. If we have access to a specific resource only, we can create policy set attachments for the resource for which we have access.
Configurator The Configurator role must have cell-wide access to create policy set attachments. If we have access to a specific resource only, we can create policy set attachments for the resource for which we have access.
Deployer The Deployer role with cell-wide or resource specific access can create policy set attachments for application resources only.
Operator The Operator role cannot create policy set attachments.
Monitor The Monitor role cannot create policy set attachments.
To use a new policy set to manage policies for the Web services application, attach the policy set to an asset or resource. When the application restarts, the application uses the policies from the newly attached policy set. The listSupportedPolicySets command lists the policy sets which are supported and can be attached to an application or other web services resource.

  1. Launch a scripting command.

  2. Run the command to list supported policy sets. The following example demonstrates how to use the -assetProps parameter to display policy sets that can be attached to a specific type of resource.

    List policy sets that can be attached to an application:

      AdminTask.listSupportedPolicySets ('[-assetProps [[application myApplication]]]')

    List policy sets that can be attached to a WS-Notification service client:

      AdminTask.listSupportedPolicySets ('[-assetProps [[bus bus1] [WSNService service1]]]')

    List policy sets that can be attached to a trust service resource:

      AdminTask.listSupportedPolicySets ('[-assetProps [[systemType trustService]]]')

    List policy sets that can be attached to a business-level application resource. Specify the business-level application (BLA) name and composition unit (CU) name. Two other properties, BLA edition and CU edition, are optional.

    AdminTask.listSupportedPolicySets ('[-assetProps [[blaName myBLA] [cuName
     compositionUnit1]]]')
    This example uses the optional properties:
    AdminTask.listSupportedPolicySets ('[-assetProps [[blaName myBLA] [cuName
     compositionUnit1] [blaEdition BASE] [cuEdition 1.0]]]')


Results

The command output is a list of policy set names. Use this list to determine which policy sets to attach to the web services resources.

Manage and update your policy set attachments. For more information, read about managing policy set attachments using wsadmin.


Related


Manage policy set attachments using wsadmin
Create policy sets using wsadmin.sh
Add and remove policies using wsadmin.sh


Reference:

PolicySetManagement command group for AdminTask


+

Search Tips   |   Advanced Search