Add docs for cli microservice-create 31/50631/1
authorKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Wed, 6 Jun 2018 09:17:43 +0000 (14:47 +0530)
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Wed, 6 Jun 2018 09:19:38 +0000 (14:49 +0530)
Issue-ID: CLI-115

Change-Id: Icf26cc0e669539ced886a98cccc8dfdefd5fec65
Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
docs/cmd_help_onap_beijing.rst

index 550422d..e1a4780 100644 (file)
@@ -1749,6 +1749,87 @@ Error::
 
  On error, it prints <STATUS CODE>::<ERROR CODE>::<ERROR MESSAGE>
 
+microservice-create
+-----------------------------------------------
+
+
+usage: oclip microservice-create
+
+Register microservice into Onap
+
+Product: onap-beijing
+Service: msb
+Author: ONAP CLI Team onap-discuss@lists.onap.org
+
+Options::
+
+ [-m | --host-url] [-C | --no-catalog] [-h | --help]
+ [-f | --format] [-t | --no-title] [-V | --verify]
+ <create-or-update> [-v | --version] [-d | --debug]
+ [-c | --path] [-y | --service-version] <node-ip>
+ [-s | --long] [-D | --context] <node-port>
+ [-x | --service-name] [-r | --service-url] [-b | --enable-ssl]
+
+where::
+
+ -m | --host-url          host url in http(s). It is of type URL. By
+                          default, it is read from environment variable
+                          OPEN_CLI_HOST_URL.
+ -C | --no-catalog        Whether to use given host-url directly or
+                          discover it from catalog, it will override the
+                          service->mode. It is of type BOOL. It is
+                          optional.
+ -h | --help              print help message. It is of type BOOL.
+ -f | --format            Output formats, supported formats such as table,
+                          csv, json, yaml. It is of type STRING.
+ -t | --no-title          whether to print title or not. It is of type BOOL.
+ -V | --verify            Helps to verify the command using samples
+                          provides under open-cli-samples directory. By
+                          default, it goes with mock.To enable the
+                          verification of samples in real time, set
+                          DISABLE_MOCKING=true in the context parameter. It
+                          is of type BOOL. It is optional.
+ create-or-update         Onap service create or update. It is of type BOOL.
+ -v | --version           print service version. It is of type BOOL.
+ -d | --debug             Enable debug output. It is of type BOOL.
+ -c | --path              Onap service path. It is of type STRING. It is
+                          optional. By default, it is .
+ -y | --service-version   Onap service version. It is of type STRING. By
+                          default, it is .
+ node-ip                  Onap service running node IP. It is of type
+                          STRING. By default, it is .
+ -s | --long              whether to print all attributes or only short
+                          attributes. It is of type BOOL.
+ -D | --context           command context. It is of type MAP. It is
+                          optional.
+ node-port                Onap service running node port. It is of type
+                          STRING. By default, it is .
+ -x | --service-name      Onap service name. It is of type STRING. By
+                          default, it is .
+ -r | --service-url       Onap service base url. It is of type URL. By
+                          default, it is .
+ -b | --enable-ssl        Onap service is enabled with https or not. It is
+                          of type STRING. It is optional. By default, it is
+                          .
+
+
+Results::
+
+ name         Onap service name and is of type STRING.
+ version      Onap service version and is of type STRING.
+ url          Onap service base url and is of type URL.
+ status       Onap service status and is of type DIGIT.
+ nodes        Onap service running nodes and is of type STRING.
+ enable-ssl   Onap service is enabled with https or not and is
+              of type STRING.
+ path         Onap service path and is of type STRING.
+
+
+Error::
+
+ On error, it prints <STATUS CODE>::<ERROR CODE>::<ERROR MESSAGE>
+
+
 tenant-create
 ----------------------------------------------------