Merge "catalog module for onap-dublin cli product"
[cli.git] / products / onap-dublin / features / aai / src / main / resources / open-cli-schema / business / subscription / subscription-create-schema-dublin.yaml
1 # Copyright © Intel Corporation 2019
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 #     http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 open_cli_schema_version: 1.0
16 name: subscription-create
17 description: Create a subscription of a customer for given service in specific cloud region in Onap
18
19 info:
20   product: onap-dublin
21   service: aai
22   author: ONAP CLI Team onap-discuss@lists.onap.org
23
24 parameters:
25   - name: customer-name
26     description: Onap customer name
27     type: string
28     short_option: x
29     long_option: customer-name
30     is_optional: false
31   - name: cloud-name
32     description: Onap cloud name
33     type: string
34     short_option: z
35     long_option: cloud-name
36     is_optional: true
37   - name: cloud-region
38     description: Onap cloud region
39     type: string
40     short_option: r
41     long_option: cloud-region
42     is_optional: true
43   - name: cloud-tenant-id
44     description: Onap cloud tenant id
45     type: string
46     short_option: c
47     long_option: cloud-tenant-id
48     is_optional: true
49   - name: service-type
50     description: Onap service type
51     type: string
52     short_option: e
53     long_option: service-type
54     is_optional: false
55
56 http:
57   service:
58     auth: basic
59     mode: direct
60   request:
61     uri: /aai/v13/business/customers/customer/${customer-name}/service-subscriptions/service-subscription/${service-type}
62     method: PUT
63     context:
64       remove_empty_node: true    
65     body: '{"service-type":"${service-type}"}'
66   success_codes:
67     - 200
68     - 201
69   sample_response:
70     body: ''