Description Syntax Example exportRepository

Web Services Custom WLST Commands 14-51

14.5.2.2 Syntax

resetWSMPolicyRepository[clearStore=false]

14.5.2.3 Example

The following example deletes all the policies in the repository, including user policies, and adds the predefined policies provided in the current product installation: wls:wls-domainserverConfigresetWSMPolicyRepositorytrue

14.5.3 exportRepository

Command Category: Policy Repository Management Use with WLST: Online

14.5.3.1 Description

Export a set of documents from the Oracle WSM Repository into a supported ZIP archive. If the specified archive already exists, the following options are presented: The specified archive already exists. Update existing archive? Enter yes to merge documents into existing archive, no to overwrite, or cancel to cancel the operation. You can also specify a list of the documents to be exported, or use a search expression to find specific documents in the repository.

14.5.3.2 Syntax

exportRepositoryarchive,[documents=None],[expandReferences=false]

14.5.3.3 Example

The following examples describe repository export sessions. The first example exports all Oracle WSM documents to the policies.zip file. Argument Definition clearStore=false Policies to be deleted. Valid values are: ■ true—All policies in the repository, including custom user policies, are deleted. ■ false—Only the predefined policies supplied by Oracle are deleted. The default is false. Argument Definition archive Name of the archive file. If the specified archive already exists, you can choose whether to overwrite the archive or merge the documents into the existing archive. During override, the original archive is backed up and a message describes the location of the backup archive. documents=None Optional. The documents to be exported to the archive. If no documents are specified, then all assertion templates, intents, policies, and policy sets will be exported. You can specify a list of the documents to be exported, or use a search expression to find specific documents in the repository. expandReferences =false Optional. Specifies whether the policy references should be expanded during export. 14-52 Oracle Fusion Middleware WebLogic Scripting Tool Command Reference wls:wls-domainserverConfigexportRepositorytmppolicies.zip This example exports only the sca-component, sca-reference, and sca-service policy sets to the policies.jar file, and also expands the all policy references output during the export process. wls:wls-domainserverConfigexportRepositorytmppolicies.jar, [policysetssca_component,policysetssca_reference,policysetssca_service], true This example exports policy sets using wildcards to the some_global_with_ noreference_2 file. wls:wls-domainserverConfigexportRepository.exportsome_global_with_ noreference_2, [policysets:globalweb_,policysets:globalweb_ref, policysets:globalweb_ call], false

14.5.4 importRepository