summaryrefslogtreecommitdiffstats
path: root/plugins/so/src/main/resources/open-cli-schema/services/service-create-schema-1.1.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/so/src/main/resources/open-cli-schema/services/service-create-schema-1.1.yaml')
-rw-r--r--plugins/so/src/main/resources/open-cli-schema/services/service-create-schema-1.1.yaml93
1 files changed, 93 insertions, 0 deletions
diff --git a/plugins/so/src/main/resources/open-cli-schema/services/service-create-schema-1.1.yaml b/plugins/so/src/main/resources/open-cli-schema/services/service-create-schema-1.1.yaml
new file mode 100644
index 00000000..96b7e036
--- /dev/null
+++ b/plugins/so/src/main/resources/open-cli-schema/services/service-create-schema-1.1.yaml
@@ -0,0 +1,93 @@
+open_cli_schema_version: 1.0
+name: service-create
+description: Create a service instance using MSO
+version: onap-1.1
+service:
+ name: so
+ version: v3
+ auth: basic
+ mode: direct
+
+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:
+ 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"}}'