Description Syntax Example createResourceType

4-74 Oracle Fusion Middleware WebLogic Scripting Tool Command Reference

4.6.19.3 Examples

The following invocation migrates 10.1.3 file-based identities to an 11 file-based identity store: wls:mydomainserverConfig upgradeSecurityStoretype=xmlIdStore, jpsConfigFile=jps-config.xml, srcJaznDataFile=jazn-data.xml, srcRealm=jazn.com The following invocation migrates a 10.1.3 OID-based policy store to an 11 file-based policy store: wls:mydomainserverConfig upgradeSecurityStoretype=oidPolicyStore, jpsConfigFile=jps-config.xml, srcJaznDataFile=jazn-data.xml, dst=destinationContext

4.6.20 createResourceType

Online command that creates a new resource type in the domain policy store within a given application stripe.

4.6.20.1 Description

Creates a new resource type element in the domain policy store within a given application stripe and with specified name, display name, description, and actions. Optional arguments are enclosed in between square brackets; all other arguments are required. In the event of an error, the command returns a WLSTException.

4.6.20.2 Syntax

Optional arguments are enclosed in square brackets. createResourceTypeappStripe, resourceTypeName, displayName, description [, provider] [, matcher], actions [, delimeter] jpsConfigFile Specifies the location of a configuration file jps-config.xml relative to the directory where the command is run. The target store of the upgrading is read from the context specified with the argument dst. srcJaznDataFile Specifies the location of a 10.1.x jazn data file relative to the directory where the command is run. This argument is required if the specified type is xmlIdStore, xmlPolicyStore, or xmlCredStore. srcJaznConfigFile Specifies the location of a 10.1.x jazn configuration file relative to the directory where the command is run. This argument is required if the specified type is oidPolicyStore. srcRealm Specifies the name of the realm from which identities need be migrated. This argument is required if the specified type is xmlIdStore. users Specifies a comma-separated list of users each formatted as realmNameuserName. This argument is required if the specified type is xmlCredStore. dst Specifies the name of the jpsContext in the file passed to the argument jpsConfigFile where the destination store is configured. Optional. If unspecified, it defaults to the default context in the file passed in the argument jpsConfigFile. Argument Definition Infrastructure Security Custom WLST Commands 4-75

4.6.20.3 Example

The following invocation creates a resource type in the stripe myApplication with actions BWPrint and ColorPrint delimited by a semicolon: wls:mydomainserverConfig createResourceTypeappStripe=myApplication, resourceTypeName=resTypeName, displayName=displName, description=A resource type, provider=Printer, matcher=com.printer.Printer, actions=BWPrint;ColorPrint [, delimeter=;]

4.6.21 getResourceType