f10dde931cd97ba5cf13cbc07760f38fc4efcfc4
[cli.git] /
1 open_cli_schema_version: 1.0
2 name: tenant-create
3 description: Create a tenant under given cloud region in Onap
4
5 info:
6   product: onap-amsterdam
7   service: aai
8   author: ONAP CLI Team onap-discuss@lists.onap.org
9
10 parameters:
11   - name: cloud
12     description: Onap cloud
13     type: string
14     short_option: x
15     long_option: cloud
16     is_optional: false
17   - name: region
18     description: Onap cloud region
19     type: string
20     short_option: y
21     long_option: region
22     is_optional: false
23   - name: tenant-id
24     description: Onap cloud tenant id
25     type: string
26     short_option: z
27     long_option: tenant-id
28     is_optional: false
29   - name: tenant-name
30     description: Onap cloud tenant name
31     type: string
32     short_option: r
33     long_option: tenant-name
34     is_optional: false
35
36 http:
37   service:
38     auth: basic
39     mode: direct
40   request:
41     uri: /aai/v11/cloud-infrastructure/cloud-regions/cloud-region/${cloud}/${region}/tenants/tenant/${tenant-id}
42     method: PUT
43     body: '{"tenant-id": "${tenant-id}", "tenant-name": "${tenant-name}"}'
44   success_codes:
45     - 200
46     - 201
47   sample_response:
48     body: ''