For example, the policy
set attachment is connected to the operation1 operation, which is a specific
single operation. To attach the 124 attachment to all operations for the endpointA
endpoint, enter the following command:
AdminTask.updatePolicySetAttachment('[-attachmentId 124 -resources
"WebService:/webapp1.war:{http://www.ibm.com}myService/endpointA" -applicationName application1]')
Note: The updatePolicySetAttachment command replaces all existing resources for an attachment with the resources
specified in the command. You can also update your policy set attachments
using the addToPolicySetAttachment command to add resources to an existing
attachment or the createPolicySetAttachment command to create an attachment
for a specific resource. For more information about these commands reference
the commands for the PolicySetManagement group for the AdminTask object.