summaryrefslogtreecommitdiffstats
path: root/plugins/so/src/main/resources/onap-cli-schema/services/service-create-schema-1.1.yaml
blob: 31fca411427b4f48bb6b91d169ac498dcfe8ff2e (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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
open_cli_schema_version: 1.0
name: service-create
description: Create a service instance using MSO
version: onap-1.1
service:
  name: mso
  version: v3
  auth: basic
  mode: direct

parameters:
  - name: cloud-region
    description: cloud region identifier
    type: string
    short_option: k
    long_option: cloud-region
    is_optional: false
  - name: tenant-id
    description: tenant id
    type: string
    short_option: b
    long_option: tenant-id
    is_optional: false
  - name: model-invariant-id
    description: model invariant id generated by ASDC.
    type: string
    short_option: e
    long_option: model-invariant-id
    is_optional: false
  - name: model-uuid
    description: model uuid generated by ASDC.
    type: string
    short_option: g
    long_option: model-uuid
    is_optional: false
  - name: model-name
    description: model name as provided in ASDC design time.
    type: string
    short_option: i
    long_option: model-name
    is_optional: false
  - name: model-version
    description: model-version
    type: string
    short_option: j
    long_option: model-version
    is_optional: false
  - name: customer
    description: unique id for customer
    type: string
    short_option: c
    long_option: customer
    is_optional: false
  - name: instance-name
    description: service instance name
    type: string
    short_option: k
    long_option: instance-name
    is_optional: false
  - name: supress-rollback
    description: rollback changes if instantiation fails.
    type: bool
    short_option: r
    long_option: supress-rollback
    is_optional: true
  - name: service-type
    description: subscription service type
    type: string
    long_option: service-type
    is_optional: false

results:
  direction: portrait
  attributes:
    - name: service-id
      description: instance id for the created service.
      type: string
      scope: short


http:
  request:
    uri: /ecomp/mso/infra/serviceInstances/v3
    method: POST
    body: '{"requestDetails": {"cloudConfiguration" : {"lcpCloudRegionId": "${cloud-region}","tenantId": "${tenant-id}"},"modelInfo": {"modelType": "service","modelInvariantId": "${model-invariant-id}","modelNameVersionId": "${model-uuid}","modelName": "${model-name}","modelVersion": "${model-version}"},"subscriberInfo": {"globalSubscriberId": "${customer}"},"requestInfo": {"instanceName": "${instance-name}","source": "VID","suppressRollback": "${supress-rollback}"},"requestParameters": {"subscriptionServiceType": "${service-type}"}}}'

  success_codes:
    - 202
  result_map:
    service-id: $b{$.requestReferences.instanceId}
  sample_response:
    body: '{"requestReferences":{"instanceId":"${instance-id}","requestId":"375ba428-65e7-4f2b-afb9-74735ac6bfd0"}}'