Add customer & subscription management commands
[cli.git] / plugins / aai / src / main / resources / onap-cli-schema / customer / customer-create-schema.yaml
1 onap_cmd_schema_version: 1.0
2 name: customer-create
3 description: Create a customer in Onap
4 service:
5   name: aai
6   version: v8
7   auth: basic
8   mode: direct
9
10 parameters:
11   - name: customer-name
12     description: Onap customer name
13     type: string
14     short_option: x
15     long_option: customer-name
16     is_optional: false
17   - name: subscriber-name
18     description: Onap subscriber name
19     type: string
20     short_option: y
21     long_option: subscriber-name
22     is_optional: false
23
24 http:
25   request:
26     uri: /aai/v8/business/customers/customer/${customer-name}
27     method: PUT
28     body: '{"global-customer-id": "${customer-name}", "subscriber-name": "${subscriber-name}", "subscriber-type": "INFRA"}'
29   success_codes:
30     - 201
31   sample_response:
32     body: ''