aboutsummaryrefslogtreecommitdiffstats
path: root/docs/platform/cli-userguide/create_service_customer/index.rst
blob: 042239ecbb2ba07413c326127dd5c4292833f646 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
Cli Create Service and Customer Command Guide
=============================================

1. create-service-type
-----------------------

::

    usage: oclip service-type-create
    Add a service type in Onap
    Options:
    [-m | --host-url] [-C | --no-catalog] [-x | --service-type]
    [-f | --format] [-h | --help] [-V | --verify]
    [-t | --no-title] [-d | --debug] [-v | --version]
    [-y | --service-type-id] [-s | --long] [-D | --context]
    [-u | --host-username] [-a | --no-auth] [-p | --host-password]
    Error:
    On error, it prints <STATUS CODE>::<ERROR CODE>::<ERROR MESSAGE>
    For example:
    "oclip service-type-create -x {} -m {} -u {} -p {}".format( parameters["service_name"], \
      parameters["aai_url"], parameters["aai_username"], parameters["aai_password"])

2. create-customer
------------------

::

    usage: oclip customer-create
    Create a customer in Onap
    Options:
    [-m | --host-url] [-y | --subscriber-name] [-C | --no-catalog]
    [-f | --format] [-h | --help] [-V | --verify]
    [-t | --no-title] [-d | --debug] [-v | --version]
    [-x | --customer-name] [-s | --long] [-D | --context]
    [-u | --host-username] [-a | --no-auth] [-p | --host-password]
    Error:
    On error, it prints <STATUS CODE>::<ERROR CODE>::<ERROR MESSAGE>
    For example:
    "oclip customer-create -x {} -y {} -m {} -u {} -p {}".format( parameters["customer_name"], \
    parameters["subscriber_name"], parameters["aai_url"], parameters["aai_username"], parameters["aai_password"])


3. add-customer-subscription(subscription not exist)
----------------------------------------------------

::

    usage: oclip customer-create
    Create a customer in Onap
    Options:
    [-m | --host-url] [-y | --subscriber-name] [-C | --no-catalog]
    [-f | --format] [-h | --help] [-V | --verify]
    [-t | --no-title] [-d | --debug] [-v | --version]
    [-x | --customer-name] [-s | --long] [-D | --context]
    [-u | --host-username] [-a | --no-auth] [-p | --host-password]
    Error:
    On error, it prints <STATUS CODE>::<ERROR CODE>::<ERROR MESSAGE>
    For example:
    "oclip subscription-create -x {} -c {} -z {} -e {} -y {} -r {} -m {} -u {} -p {}".format(\
          parameters["customer_name"], cloud_region_values.get("tenant-id"), parameters["cloud-owner"], parameters["service_name"],\
          cloud_region_values.get("default-tenant"), cloud_region, parameters["aai_url"], parameters["aai_username"], parameters["aai_password"] )

4. add-customer-subscription(subscription existed)
--------------------------------------------------

::

    usage: oclip subscription-cloud-add
    Add a new cloud region to a customer subscription
    Options:
    [-m | --host-url] [-C | --no-catalog] [-f | --format]
    [-h | --help] [-V | --verify] [-t | --no-title]
    [-d | --debug] [-v | --version] [-x | --customer-name]
    [-c | --cloud-tenant-id] [-s | --long] [-D | --context]
    [-z | --cloud-owner] [-e | --service-type] [-u | --host-username]
    [-a | --no-auth] [-y | --tenant-name] [-r | --cloud-region]
    [-p | --host-password]
    Error:
    On error, it prints <STATUS CODE>::<ERROR CODE>::<ERROR MESSAGE>
    For example:
    "oclip subscription-cloud-add -x {} -c {} -z {} -e {} -y {} -r {} -m {} -u {} -p {}".format(\
          parameters["customer_name"], cloud_region_values.get("tenant-id"), parameters["cloud-owner"], parameters["service_name"],\
          cloud_region_values.get("default-tenant"), cloud_region, parameters["aai_url"], parameters["aai_username"], parameters["aai_password"] )

5. service type list
--------------------

::

    usage: oclip service-type-list
    List the service types configured in Onap
    Options:
    [-m | --host-url] [-C | --no-catalog] [-f | --format]
    [-h | --help] [-V | --verify] [-t | --no-title]
    [-d | --debug] [-v | --version] [-s | --long]
    [-D | --context] [-u | --host-username] [-a | --no-auth]
    [-p | --host-password]
    For example:
    "oclip service-type-list -m {} -u {} -p {}".format(parameters["aai_url"], parameters["aai_username"], \
                          parameters["aai_password"])

6. service type delete
----------------------

::

    usage: oclip service-type-delete
    usage: oclip service-type-delete
    Delete a service type from Onap
    Options:
    [-m | --host-url] [-C | --no-catalog] [-f | --format]
    [-h | --help] [-V | --verify] [-t | --no-title]
    [-d | --debug] [-v | --version] [-y | --resource-version]
    [-x | --service-type-id] [-s | --long] [-D | --context]
    [-u | --host-username] [-a | --no-auth] [-p | --host-password]
    For example:
    oclip service-type-delete -m https://159.138.61.203:30233 -u AAI -p AAI -x baf23ae9-f890-4b92-b568-2a70f5c86993 -y 1568444204387
    Note:
    service-type-id and resource-version is the result returned after executing the service-type-list command(command 5)

7. customer list
----------------

::

    usage: oclip customer-list
    Lists the registered customers in Onap
    Options:
    [-m | --host-url] [-C | --no-catalog] [-f | --format]
    [-h | --help] [-V | --verify] [-t | --no-title]
    [-d | --debug] [-v | --version] [-s | --long]
    [-D | --context] [-u | --host-username] [-a | --no-auth]
    [-p | --host-password]
    For example:
    oclip customer-list -m {} -u {} -p {}".format(parameters["aai_url"], parameters["aai_username"], \
                          parameters["aai_password"])

8. customer delete
------------------

::

    usage: oclip customer-delete
    Delete a customer from Onap
    Options:
    [-m | --host-url] [-C | --no-catalog] [-f | --format]
    [-h | --help] [-V | --verify] [-t | --no-title]
    [-d | --debug] [-v | --version] [-y | --resource-version]
    [-s | --long] [-D | --context] [-x | --customer-id]
    [-u | --host-username] [-a | --no-auth] [-p | --host-password]
    For example:
    oclip customer-delete -m https://159.138.61.203:30233 -u AAI -p AAI -x customer2 -y 1568615567019
 Note:
    customer-id and resource-version is the result returned after executing the customer-list command(command 7)