9bc22853338d495a61590cae300d2babb9713d2d
[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 version: onap-1.1
5 service:
6   name: aai
7   version: v11
8   auth: basic
9   mode: direct
10
11 parameters:
12   - name: cloud
13     description: Onap cloud
14     type: string
15     short_option: x
16     long_option: cloud
17     is_optional: false
18   - name: region
19     description: Onap cloud region
20     type: string
21     short_option: y
22     long_option: region
23     is_optional: false
24   - name: tenant-id
25     description: Onap cloud tenant id
26     type: string
27     short_option: z
28     long_option: tenant-id
29     is_optional: false
30   - name: tenant-name
31     description: Onap cloud tenant name
32     type: string
33     short_option: r
34     long_option: tenant-name
35     is_optional: false
36
37 http:
38   request:
39     uri: /aai/v11/cloud-infrastructure/cloud-regions/cloud-region/${cloud}/${region}/tenants/tenant/${tenant-id}
40     method: PUT
41     body: '{"tenant-id": "${tenant-id}", "tenant-name": "${tenant-name}"}'
42   success_codes:
43     - 200
44     - 201
45   sample_response:
46     body: ''