Description Syntax Examples importSandboxMetadata

Metadata Services MDS Custom WLST Commands 8-13

8.3.1.3 Example

The following example exports a sandbox from the MDS repository for the application myapp: wls:weblogicserverConfigexportSandboxMetadatamyapp, server1, tmpsandbox1.jar, sandbox1

8.3.2 importSandboxMetadata

Command Category: Sandbox Metadata Management Use with WLST: Online

8.3.2.1 Description

Imports the contents of a sandbox archive to another sandbox in the MDS repository partition of the specified application. It can also update the contents of a given archive to a sandbox in the MDS repository partition of a given application. All customizations are imported, whether or not they are declared in the cust-config element of adf-config.xml. You can only use this command with a database-based MDS repository.

8.3.2.2 Syntax

importSandboxMetadataapplication, server, fromArchive [, forceSBCreation] [, useExistingSandbox] [, sandboxName] [, applicationVersion] [, remote] restrictCustTo Optional. Valid values are percent or a list of comma-separated customization layer names used to restrict the export operation to export only customization documents that match the specified customization layers. If you do not specify this argument or if you specify percent as the value of this argument, all customizations are exported, whether or not they are declared in the cust-config element of adf-config.xml. Each customization layer name can contain, within a pair of brackets, optional customization layer values and value patterns separated by commas. Use this option to export all customizations or a subset of declared customizations. You can also use this option to export customizations from customization classes that are not declared in the cust-config element of adf-config.xml. This argument is ignored if the excludeAllCust argument is also specified. applicationVersion Optional. The application version, if multiple versions of the same application are deployed. remote Optional. A Boolean value true or false that specifies whether the archive file will be written to a location where the application is deployed false or to the system on which you are executing the command true. The default is false. Argument Definition 8-14 Oracle Fusion Middleware WebLogic Scripting Tool Command Reference

8.3.2.3 Examples

The following example imports the contents of the sandbox sandbox1.jar: wls:weblogicserverConfig importSandboxMetadataapplication=myapp, server1, tmpsandbox1.jar