diff options
author | 2017-12-11 20:34:44 +0530 | |
---|---|---|
committer | 2017-12-12 15:48:55 +0530 | |
commit | 0d97a835fa2052ded5a31e8921baf641c8e9bb57 (patch) | |
tree | 800584529f77c8ff26f05a73abd3fa71205a69a7 /products/onap-amsterdam/features/so/src/main/resources/open-cli-schema/services/service-create-schema-1.1.yaml | |
parent | 03c54a40daf75644ec0bcbc73636e3eb427c1604 (diff) |
Make Http as separate plugin
Issue-ID: CLI-66
Change-Id: I8ad78f417f6dbb00e29effdd3ed8ec1939aee81d
Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'products/onap-amsterdam/features/so/src/main/resources/open-cli-schema/services/service-create-schema-1.1.yaml')
-rw-r--r-- | products/onap-amsterdam/features/so/src/main/resources/open-cli-schema/services/service-create-schema-1.1.yaml | 97 |
1 files changed, 97 insertions, 0 deletions
diff --git a/products/onap-amsterdam/features/so/src/main/resources/open-cli-schema/services/service-create-schema-1.1.yaml b/products/onap-amsterdam/features/so/src/main/resources/open-cli-schema/services/service-create-schema-1.1.yaml new file mode 100644 index 00000000..8073f07e --- /dev/null +++ b/products/onap-amsterdam/features/so/src/main/resources/open-cli-schema/services/service-create-schema-1.1.yaml @@ -0,0 +1,97 @@ +open_cli_schema_version: 1.0 +name: service-create +description: Create a service instance using MSO + +info: + product: onap-amsterdam + service: so + author: ONAP CLI Team onap-discuss@lists.onap.org + +parameters: + - name: cloud-region + description: cloud region identifier + type: string + short_option: l + 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 + short_option: w + 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: + service: + name: so + version: v3 + auth: basic + mode: direct + 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"}}' |