Add Host Command
Description
Adds a new resource host to the configuration.
Transit uses artifact uris to identify a resource. These identifiers are in turn mapped internally to a repository url (i.e. mapping identity to a location). Locations are defined relative to one or more hosts. Each Transit host declares a base url, layout strategy (dealing with uri to url mapping), and policies concerning authentication.
Commandline
$ transit add host <id> -url <url> [-username <username>] [-password <password>] [-priority <int>] [-index <resource>] [-disabled] [-trusted] [-layout <id>] [-scheme <scheme>] [-prompt <prompt>]
Options
url | Remote resource host url (required). |
username | Resource host login username. |
password | Resource host password. |
priority | Priority setting. |
index | A URL pointing to a file containing a line-separated list of groups that are known to be installed on the remote host repository. |
disabled | Marks the host as disabled. |
trusted | If true Transit shall assume that the host connection is trusted. When set to "true" in conjunction with an https:// connection, the certificate chain of the host will be accepted unconditionally. |
layout | ID of the host layout scheme (system layouts include 'classic' and 'eclipse'). |
scheme | Host authentication scheme. |
prompt | Host authentication prompt. |
Example
The following example demonstrates the addition of a new resource host to the transit configuration.
$ transit add host demo -url http://localhost:8080 -priority 60
Adding resource host: demo Saving to: local:xml:dpml/transit/config