Description Syntax Examples purgeMetadataLabels

Metadata Services MDS Custom WLST Commands 8-17

8.4.4 promoteMetadataLabel

Command Category: Application Label Management Use with WLST: Online

8.4.4.1 Description

Promotes documents associated with a label to the tip version in the repository. This command is useful to achieve rollback capability. This command is applicable only for repositories that support versioning.

8.4.4.2 Syntax

promoteMetadataLabelapplication, server, name [, applicationVersion]

8.4.4.3 Example

The following example promotes the metadata label label1 to tip in the application mdsapp deployed in the server server1: wls:weblogicserverConfig promoteMetadataLabelmdsapp, server1,label1 Executing operation: promoteMetadataLabel. Promoted metadata label label1 to tip.

8.4.5 purgeMetadataLabels

Command Category: Application Label Management Use with WLST: Online

8.4.5.1 Description

Purges or lists the metadata labels that match the given pattern or age, but does not delete the metadata documents that were part of the label. You can delete the documents by executing the purgeMetadata command.

8.4.5.2 Syntax

purgeMetadataLabelsrepository, partition [, namePattern] [, olderThanInMin] [, infoOnly] Argument Definition application The name of the application in whose associated repository the metadata is to be promoted to tip. server The target server on which this application is deployed. If the application is deployed to multiple Managed Servers in a cluster, you can use the name of any of the server names. You cannot specify multiple server names. name The name of the label to promote in the repository partition. applicationVersion Optional. The application version, if multiple versions of the same application are deployed. Argument Definition repository The name of the MDS repository that contains the partition whose metadata labels will be purged or listed. partition The name of the partition whose metadata labels will be purged or listed. 8-18 Oracle Fusion Middleware WebLogic Scripting Tool Command Reference

8.4.5.3 Examples

The following example lists the labels that match the specified namePattern, but does not delete them: wls:weblogicserverConfig purgeMetadataLabelsrepository=mds-myRepos, partition=partition1, namePattern=mylabel, infoOnly=true