blob: d248e6af62876766a37719f9183d0bd4811f5c33 (
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
|
onap_cmd_schema_version: 1.0
name: tenant-list
description: Lists the tenants under given cloud region in Onap
version: onap-1.1
service:
name: aai
version: v11
auth: basic
mode: direct
parameters:
- name: cloud
description: Onap cloud
type: string
short_option: x
long_option: cloud
is_optional: false
- name: region
description: Onap cloud region
type: string
short_option: y
long_option: region
is_optional: false
results:
direction: landscape
attributes:
- name: tenant-id
description: Onap tenant-id
scope: short
type: string
- name: tenant-name
description: Onap tenant name
scope: short
type: string
- name: resource-version
description: Onap tenant resource version
scope: short
type: string
http:
request:
uri: /aai/v11/cloud-infrastructure/cloud-regions/cloud-region/${cloud}/${region}/tenants
method: GET
success_codes:
- 200
result_map:
tenant-id: $b{$.tenant.[*].tenant-id}
tenant-name: $b{$.tenant.[*].tenant-name}
resource-version: $b{$.tenant.[*].resource-version}
sample_response:
body: '{"tenant":[{"tenant-id":"26ab7af6-96cc-4c4e-814a-e533af4ef9f6","tenant-name":"test","resource-version":"1504091074807","relationship-list":{"relationship":[{"related-to":"service-subscription","related-link":"/aai/v11/business/customers/customer/customer-2/service-subscriptions/service-subscription/vTest","relationship-data":[{"relationship-key":"customer.global-customer-id","relationship-value":"customer-2"},{"relationship-key":"service-subscription.service-type","relationship-value":"vTest"}]}]}}]}'
|