|
| 1 | +## The Model Help Tool |
| 2 | + |
| 3 | +The Model Help Tool provides information about the folders and attributes that are valid for sections and folders of a domain model. This is useful when creating a new domain model, or expanding an existing model, including discovered models. |
| 4 | + |
| 5 | +**NOTE:** The Model Help Tool is new in WebLogic Deploy Tooling 1.8. |
| 6 | + |
| 7 | +Here is a simple example using the Model Help Tool: |
| 8 | +```yaml |
| 9 | +<wls-deploy-home>/bin/modelHelp.sh -oracle_home /tmp/oracle resources:/JDBCSystemResource |
| 10 | +``` |
| 11 | +This will result in the following output: |
| 12 | +```yaml |
| 13 | +Path: resources:/JDBCSystemResource |
| 14 | + |
| 15 | + Valid Attributes: |
| 16 | + CompatibilityName string |
| 17 | + DeploymentOrder integer |
| 18 | + DeploymentPrincipalName string |
| 19 | + DescriptorFileName string |
| 20 | + ModuleType string |
| 21 | + Notes string |
| 22 | + SourcePath string |
| 23 | + Target delimited_string |
| 24 | + |
| 25 | + Valid Folders: |
| 26 | + JdbcResource |
| 27 | + SubDeployment |
| 28 | +``` |
| 29 | +This result lists the attributes and folders available for the `JDBCSystemResource` folder in the `resources` section of the model. You can use this information to construct this model section: |
| 30 | +```yaml |
| 31 | +resources: |
| 32 | + JDBCSystemResource: |
| 33 | + CompatibilityName: 'myName' |
| 34 | + DeploymentOrder: 5 |
| 35 | + Target: 'ms1,ms2' |
| 36 | + JdbcSystemResource: |
| 37 | + # JdbcSystemResource attributes and folders |
| 38 | + SubDeployment: |
| 39 | + # SubDeployment attributes and folders |
| 40 | +``` |
| 41 | + |
| 42 | +### Path Patterns |
| 43 | +There are a number of ways to specify model location in the path argument. Here are some examples: |
| 44 | + |
| 45 | +List all the top-level model sections, such as `topology`, `resources`, and such: |
| 46 | +```yaml |
| 47 | +top |
| 48 | +``` |
| 49 | + |
| 50 | +List the attributes and folders within a section, such as `topology`, `resources`, and such: |
| 51 | +```yaml |
| 52 | +topology |
| 53 | +``` |
| 54 | + |
| 55 | +List all the attributes and folders within a folder: |
| 56 | +```yaml |
| 57 | +resources:/JDBCSystemResource/JdbcResource |
| 58 | +``` |
| 59 | + |
| 60 | +If the section is not provided for a folder, then it will be derived and included in the output text: |
| 61 | +```yaml |
| 62 | +/JDBCSystemResource/JdbcResource |
| 63 | +``` |
| 64 | + |
| 65 | +### Output Options |
| 66 | +There are several command-line options that you can use to control the output text for the model path. Use only one of these options at a time. If no output options are specified, then the attributes and immediate sub-folders for the specified path are listed. |
| 67 | + |
| 68 | +**NOTE:** |
| 69 | +When the top sections are listed using the path ```top```, any output options are ignored. |
| 70 | + |
| 71 | +#### ```-attributes_only``` |
| 72 | +This option will list only the attributes for the specified path. If there are no attributes, then the section heading will appear with an empty list. |
| 73 | + |
| 74 | +#### ```-folders_only``` |
| 75 | +This option will list only the immediate sub-folders for the specified path. If there are no sub-folders, then the section heading will appear with an empty list. |
| 76 | + |
| 77 | +#### ```-recursive``` |
| 78 | +This option will recursively list all the sub-folders within the specified path. No attributes are listed. If there are no sub-folders, then the section heading will appear with an empty list. |
| 79 | + |
| 80 | +Here is an example using the `-recursive` option: |
| 81 | +```yaml |
| 82 | +<wls-deploy-home>/bin/modelHelp.sh -oracle_home /tmp/oracle -recursive resources:/JDBCSystemResource |
| 83 | +``` |
| 84 | +The output is: |
| 85 | +```yaml |
| 86 | +Filtering output to recursively display the sub-folders of the specified model section or path |
| 87 | +
|
| 88 | +Path: resources:/JDBCSystemResource |
| 89 | +
|
| 90 | + Valid Folders: |
| 91 | + JdbcResource |
| 92 | + JDBCConnectionPoolParams |
| 93 | + JDBCDataSourceParams |
| 94 | + JDBCDriverParams |
| 95 | + Properties |
| 96 | + JDBCOracleParams |
| 97 | + JDBCXAParams |
| 98 | + SubDeployment |
| 99 | +``` |
0 commit comments