update part of cli command guide about vfc test
[vfc/nfvo/lcm.git] / docs / platform / cli-userguide / create_service_customer / index.rst
1 Cli Create Service and Customer Command Guide
2 =============================================
3
4 1. create-service-type
5 -----------------------
6
7 ::
8
9     usage: oclip service-type-create
10     Add a service type in Onap
11     Options:
12     [-m | --host-url] [-C | --no-catalog] [-x | --service-type]
13     [-f | --format] [-h | --help] [-V | --verify]
14     [-t | --no-title] [-d | --debug] [-v | --version]
15     [-y | --service-type-id] [-s | --long] [-D | --context]
16     [-u | --host-username] [-a | --no-auth] [-p | --host-password]
17     Error:
18     On error, it prints <STATUS CODE>::<ERROR CODE>::<ERROR MESSAGE>
19     For example:
20     "oclip service-type-create -x {} -m {} -u {} -p {}".format( parameters["service_name"], \
21       parameters["aai_url"], parameters["aai_username"], parameters["aai_password"])
22
23 2. create-customer
24 ------------------
25
26 ::
27
28     usage: oclip customer-create
29     Create a customer in Onap
30     Options:
31     [-m | --host-url] [-y | --subscriber-name] [-C | --no-catalog]
32     [-f | --format] [-h | --help] [-V | --verify]
33     [-t | --no-title] [-d | --debug] [-v | --version]
34     [-x | --customer-name] [-s | --long] [-D | --context]
35     [-u | --host-username] [-a | --no-auth] [-p | --host-password]
36     Error:
37     On error, it prints <STATUS CODE>::<ERROR CODE>::<ERROR MESSAGE>
38     For example:
39     "oclip customer-create -x {} -y {} -m {} -u {} -p {}".format( parameters["customer_name"], \
40     parameters["subscriber_name"], parameters["aai_url"], parameters["aai_username"], parameters["aai_password"])
41
42
43 3. add-customer-subscription(subscription not exist)
44 ----------------------------------------------------
45
46 ::
47
48     usage: oclip customer-create
49     Create a customer in Onap
50     Options:
51     [-m | --host-url] [-y | --subscriber-name] [-C | --no-catalog]
52     [-f | --format] [-h | --help] [-V | --verify]
53     [-t | --no-title] [-d | --debug] [-v | --version]
54     [-x | --customer-name] [-s | --long] [-D | --context]
55     [-u | --host-username] [-a | --no-auth] [-p | --host-password]
56     Error:
57     On error, it prints <STATUS CODE>::<ERROR CODE>::<ERROR MESSAGE>
58     For example:
59     "oclip subscription-create -x {} -c {} -z {} -e {} -y {} -r {} -m {} -u {} -p {}".format(\
60           parameters["customer_name"], cloud_region_values.get("tenant-id"), parameters["cloud-owner"], parameters["service_name"],\
61           cloud_region_values.get("default-tenant"), cloud_region, parameters["aai_url"], parameters["aai_username"], parameters["aai_password"] )
62
63 4. add-customer-subscription(subscription existed)
64 --------------------------------------------------
65
66 ::
67
68     usage: oclip subscription-cloud-add
69     Add a new cloud region to a customer subscription
70     Options:
71     [-m | --host-url] [-C | --no-catalog] [-f | --format]
72     [-h | --help] [-V | --verify] [-t | --no-title]
73     [-d | --debug] [-v | --version] [-x | --customer-name]
74     [-c | --cloud-tenant-id] [-s | --long] [-D | --context]
75     [-z | --cloud-owner] [-e | --service-type] [-u | --host-username]
76     [-a | --no-auth] [-y | --tenant-name] [-r | --cloud-region]
77     [-p | --host-password]
78     Error:
79     On error, it prints <STATUS CODE>::<ERROR CODE>::<ERROR MESSAGE>
80     For example:
81     "oclip subscription-cloud-add -x {} -c {} -z {} -e {} -y {} -r {} -m {} -u {} -p {}".format(\
82           parameters["customer_name"], cloud_region_values.get("tenant-id"), parameters["cloud-owner"], parameters["service_name"],\
83           cloud_region_values.get("default-tenant"), cloud_region, parameters["aai_url"], parameters["aai_username"], parameters["aai_password"] )