create_jeeappcom

Creates a Java EE Application Component in the software library. On successful creation, the entity revision is displayed under the specified folder in the software library.

This entity has not been uploaded yet, use the verb upload_jeeappcomp_file to upload it to the software library.

Format

emcli create_jeeappcomp 
        -name="entity_name" 
        -folder_id="folder_id" 
        [-desc="entity_desc"] 
        [-attr="<attr name>:<attr value>"] 
        [-prop="<prop name>:<prop value>"] 
        [-secret_prop="<secret prop name>:<secret prop value>"] 
        [-note="note text"] 

[ ]  indicates that the parameter is optional

Options

  • name

    Name of the entity.

  • folder_id

    ID of the folder where the entity will be created. The Software Library Home page exposes the identifier for folders and entities as a custom column called Internal ID. By default, this column is hidden.

  • desc

    A short description about the entity. The new description is visible to all existing revisions.

  • attr

    A name:value pair for specifying the attributes of an entity. It is represented as "attr_name:attr_value". For specifying values for multiple attributes, repeat the -attr option.

  • prop

    A name:value pair for specifying the configuration properties of an entity. It is represented as prop_name:prop_value. For specifying values for multiple properties, repeat the option.

  • secret_prop

    A name:value pair for specifying the configuration property and its secret value. Do not provide the secret value on the command line. Instead, enter the property name and press the Enter key. Provide the secret value when you are prompted for it.

  • note

    Information related to the entity such as changes being made to the entity or modification history that you want to track.

Examples

Example 1

Creates a Java EE Application component called "myJeeAppComp' in the folder identified by folder_id. You can find the folder ID using the custom column called Internal ID available on the Software Library home page. Note that this column is hidden by default.

emcli create_jeeappcomp 
      -name="myJeeAppComp"
       folder_  id="oracle:defaultService:em:provisioning:1:cat:B13B3B7B086458CFE040E80A19AA560C"  
+E34

Example 2

Creates entity named 'myJeeAppComp' in the folder identified by folder_id with a short description about the entity. Entity attributes such as PRODUCT, PRODUCT_VERSION, and VENDOR are specified. Value for the DEFAULT_HOME configuration property is also specified. A note that includes information related to the entity is included.

The identifier of the newly created entity revision will be printed on the standard output.

emcli upload_jeeappcomp_file
emcli create_jeeappcomp 
        -name="myJeeAppComp"
folder_id="oracle:defaultService:em:provisioning:1:cat:B13B3B7B086458CFE040E80A19AA560C"  
        -desc="myJeeAppComp description" 
        -attr="PRODUCT:JEEApp" 
        -attr="PRODUCT_VERSION:3.0" 
        -attr="VENDOR:Vendor" 
        -prop="DEFAULT_HOME:/u01/myJeeAppComp3/" 
        -note="myJeeAppComp for test servers"