{
"related-to": "tenant",
"relationship-label": "org.onap.relationships.inventory.Uses",
- "related-link": "/aai/v14/cloud-infrastructure/cloud-regions/cloud-region/${cloud-owner}/${cloud-region}/tenants/tenant/${cloud-tenant-id}",
+ "related-link": "/aai/v16/cloud-infrastructure/cloud-regions/cloud-region/${cloud-owner}/${cloud-region}/tenants/tenant/${cloud-tenant-id}",
"relationship-data": [
{
"relationship-key": "cloud-region.cloud-owner",
-# Copyright 2019 Huawei Technologies Co., Ltd.
+# Copyright 2019 Huawei Technologies Co., Ltd.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
short_option: q
long_option: cloud-type
is_optional: false
- - name: owner-defined-type
+ - name: owner-type
description: owner defined type
type: string
short_option: r
short_option: S
long_option: sriov-automation
is_optional: true
- default: false
+ default_value: false
- name: identity-url
description: Onap identity-url, updated by multicloud if multicloud is used
type: string
short_option: i
long_option: identity-url
is_optional: false
- - name: esr-system-info-id
+ - name: esr-id
description: id for esr system (arbitrary UUID e.g 5c85ce1f-aa78-4ebf-8d6f-4b62773e9bc8)
type: uuid
short_option: e
short_option: url
long_option: service-url
is_optional: false
- - name: user-name
+ - name: username
description: cloud user name
type: string
short_option: b
- long_option: user-name
+ long_option: username
is_optional: false
- name: password
description: cloud password
short_option: k
long_option: system-status
is_optional: false
- - name: cloud-extra-info
- description: extra info to register cloud , generally string with region id e.g {\"openstack-region-id\":\"region-id\"}, enter as {\\"openstack-region-id\\":\\"ONAP-POD-01-Rail-07\\"} with CLI
- type: string
- short_option: I
- long_option: extra-info
- is_optional: false
http:
service:
"cloud-owner": "${cloud-owner}",
"cloud-region-id": "${region-name}",
"cloud-type": "${cloud-type}",
- "owner-defined-type": "${owner-defined-type}",
+ "owner-defined-type": "${owner-type}",
"cloud-region-version": "${cloud-region-version}",
"complex-name":"${complex-name}",
"cloud-zone": "${cloud-zone}",
"sriov-automation": "${sriov-automation}",
"identity-url": "${identity-url}",
- "cloud-extra-info":"${cloud-extra-info}",
+ "cloud-extra-info":"{\"openstack-region-id\":\"${region-name}\"}",
"esr-system-info-list": {
"esr-system-info":[
{
- "esr-system-info-id":"${esr-system-info-id}",
+ "esr-system-info-id":"${esr-id}",
"service-url": "${service-url}",
- "user-name":"${user-name}",
+ "user-name":"${username}",
"password":"${password}",
"system-type": "${system-type}",
"ssl-insecure": "${ssl-insecure}",
info:
product: onap-elalto
service: aai
- author: Intel ONAP HPA integration team (itohan.ukponmwan@intel.com)
+ author: Intel ONAP HPA integration team (onap-discuss@lists.onap.org)
parameters:
- name: complex-name
info:
product: onap-elalto
service: aai
- author: Intel ONAP HPA integration team (itohan.ukponmwan@intel.com)
+ author: Intel ONAP HPA integration team (onap-discuss@lists.onap.org)
parameters:
- name: physical-location-id
info:
product: onap-elalto
service: aai
- author: ONAP HPA Integration Team (itohan.ukponmwan@intel.com)
+ author: ONAP HPA Integration Team (onap-discuss@lists.onap.org)
parameters:
- name: complex-name
info:
product: onap-elalto
service: aai
- author: ONAP HPA Integration Team (itohan.ukponmwan@intel.com)
+ author: ONAP HPA Integration Team (onap-discuss@lists.onap.org)
results:
direction: landscape
info:
product: onap-elalto
service: aai
- author: Intel ONAP HPA integration team (itohan.ukponmwan@intel.com)
+ author: Intel ONAP HPA integration team (onap-discuss@lists.onap.org)
parameters:
- name: physical-location-id
--- /dev/null
+# Copyright © Intel Corporation 2019
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: microservice-create
+description: Register microservice into Onap
+
+info:
+ product: onap-elalto
+ service: msb
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+parameters:
+ - name: service-name
+ description: Onap service name
+ type: string
+ short_option: x
+ long_option: service-name
+ is_optional: false
+ - name: service-version
+ description: Onap service version
+ type: string
+ short_option: y
+ long_option: service-version
+ is_optional: false
+ - name: service-url
+ description: Onap service base url
+ type: url
+ short_option: r
+ long_option: service-url
+ is_optional: false
+ - name: enable-ssl
+ description: Onap service is enabled with https or not
+ type: string
+ short_option: b
+ long_option: enable-ssl
+ is_optional: true
+ default_value: false
+ - name: path
+ description: Onap service path
+ type: string
+ short_option: c
+ long_option: path
+ is_optional: true
+ - name: node-ip
+ description: Onap service running node IP
+ type: string
+ long_option: node-ip
+ short_option: X
+ is_optional: false
+ - name: node-port
+ description: Onap service running node port
+ type: string
+ long_option: node-port
+ short_option: Y
+ is_optional: false
+ - name: create-or-update
+ description: Onap service create or update
+ type: bool
+ long_option: create-or-update
+ short_option: Z
+ is_optional: true
+ default_value: true
+results:
+ direction: portrait
+ attributes:
+ - name: name
+ description: Onap service name
+ scope: short
+ type: string
+ - name: version
+ description: Onap service version
+ scope: short
+ type: string
+ - name: url
+ description: Onap service base url
+ scope: short
+ type: url
+ - name: status
+ description: Onap service status
+ scope: short
+ type: digit
+ - name: nodes
+ description: Onap service running nodes
+ scope: long
+ type: string
+ - name: enable-ssl
+ description: Onap service is enabled with https or not
+ scope: long
+ type: string
+ - name: path
+ description: Onap service path
+ scope: long
+ type: string
+http:
+ service:
+ auth: none
+ mode: direct
+ request:
+ uri: /api/microservices/v1/services
+ method: POST
+ body: '{"serviceName":"${service-name}","version":"${service-version}","path":"${path}","url":"${service-url}","protocol":"REST", "enable_ssl":"${enable-ssl}", "visualRange":"1","lb_policy":"ip_hash","nodes":[{"ip":"${node-ip}","port":"${node-port}","ttl":0}]}'
+ headers:
+ queries:
+ createOrUpdate: ${create-or-update}
+ success_codes:
+ - 201
+ - 200
+ result_map:
+ name: $b{$.serviceName}
+ version: $b{$.version}
+ url: $b{$.url}
+ status: $b{$.status}
+ enable-ssl: $b{$.enable_ssl}
+ path: $b{$.path}
+ nodes: $b{$.nodes[*].ip}:$b{$.nodes[*].port}
--- /dev/null
+# Copyright © Intel Corporation 2019
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: microservice-delete
+description: Deletes the micro service from Onap
+
+info:
+ product: onap-elalto
+ service: msb
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+parameters:
+ - name: service-name
+ description: Onap service name
+ type: string
+ short_option: x
+ long_option: service-name
+ is_optional: false
+ - name: service-version
+ description: Onap service version
+ type: string
+ short_option: y
+ long_option: service-version
+ is_optional: false
+ - name: node-ip
+ description: Onap service running node IP
+ type: string
+ short_option: i
+ long_option: node-ip
+ is_optional: false
+ - name: node-port
+ description: Onap service running node port
+ type: string
+ short_option: r
+ long_option: node-port
+ is_optional: false
+http:
+ service:
+ auth: none
+ mode: direct
+ request:
+ uri: /api/microservices/v1/services/${service-name}/version/${service-version}/nodes/${node-ip}/${node-port}
+ method: DELETE
+ success_codes:
+ - 201
+ - 200
+ - 204
+ - 500
+
+
+
--- /dev/null
+# Copyright © Intel Corporation 2019
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: microservice-list
+description: Lists the registetred micro services in Onap
+
+
+info:
+ product: onap-elalto
+ service: msb
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+results:
+ direction: landscape
+ attributes:
+ - name: name
+ description: Onap service name
+ scope: short
+ type: string
+ - name: version
+ description: Onap service version
+ scope: short
+ type: string
+ - name: url
+ description: Onap service base url
+ scope: short
+ type: url
+ - name: status
+ description: Onap service status
+ scope: short
+ type: digit
+ - name: nodes
+ description: Onap service running nodes
+ scope: long
+ type: json
+ - name: enable-ssl
+ description: Onap service is enabled with https or not
+ scope: long
+ type: string
+ - name: path
+ description: Onap service path
+ scope: long
+ type: string
+http:
+ service:
+ auth: none
+ mode: direct
+ request:
+ uri: /api/microservices/v1/services
+ method: GET
+ success_codes:
+ - 201
+ - 200
+ result_map:
+ name: $b{$.[*].serviceName}
+ version: $b{$.[*].version}
+ url: $b{$.[*].url}
+ status: $b{$.[*].status}
+ enable-ssl: $b{$.[*].enable_ssl}
+ path: $b{$.[*].path}
+ nodes: $b{$.[*].nodes[*].ip}:$b{$.[*].nodes[*].port}
--- /dev/null
+# Copyright © Intel Corporation 2019
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: microservice-show
+description: Details the registered microservice in Onap
+
+info:
+ product: onap-elalto
+ service: msb
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+parameters:
+ - name: service-name
+ description: Onap service name
+ type: string
+ short_option: x
+ long_option: service-name
+ is_optional: false
+ - name: service-version
+ description: Onap service version
+ type: string
+ short_option: y
+ long_option: service-version
+ is_optional: false
+results:
+ direction: portrait
+ attributes:
+ - name: name
+ description: Onap service name
+ scope: short
+ type: string
+ - name: version
+ description: Onap service version
+ scope: short
+ type: string
+ - name: url
+ description: Onap service base url
+ scope: short
+ type: url
+ - name: status
+ description: Onap service status
+ scope: short
+ type: digit
+ - name: nodes
+ description: Onap service running nodes
+ scope: long
+ type: json
+ - name: enable-ssl
+ description: Onap service is enabled with https or not
+ scope: long
+ type: string
+ - name: path
+ description: Onap service path
+ scope: long
+ type: string
+http:
+ service:
+ auth: none
+ mode: direct
+ request:
+ uri: /api/microservices/v1/services/${service-name}/version/${service-version}
+ method: GET
+ success_codes:
+ - 201
+ - 200
+ result_map:
+ name: $b{$.serviceName}
+ version: $b{$.version}
+ url: $b{$.url}
+ status: $b{$.status}
+ enable-ssl: $b{$.enable_ssl}
+ path: $b{$.path}
+ nodes: $b{$.nodes[*].ip}:$b{$.nodes[*].port}
--- /dev/null
+# Copyright 2019 Huawei Technologies Co., Ltd.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: sdc-consumer-create
+description: Create SDC consumer
+
+info:
+ product: onap-elalto
+ service: sdc.catalog
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+parameters:
+ - name: consumer-name
+ description: Consumer Name
+ type: string
+ short_option: x
+ long_option: consumer-name
+ is_optional: false
+ - name: consumer-password
+ description: Consumer password
+ type: string
+ short_option: y
+ long_option: consumer-password
+ is_optional: true
+ default_value: 7fa005e6e478ee677053a2c4a5c2f11190e2aa8be227a037291ea4cbc074ecb6
+ - name: salt
+ description: Salt
+ type: string
+ long_option: salt
+ short_option: c
+ is_optional: true
+ default_value: ab2987754f0c6293174865e86c47035d
+ - name: user-id
+ description: Designer user id
+ type: string
+ long_option: user-id
+ short_option: e
+ default_value: jh0003
+ is_optional: true
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: none
+ mode: direct
+ request:
+ uri: /sdc2/rest/v1/consumers
+ method: POST
+ headers:
+ USER_ID: ${user-id}
+ body: '{
+ "consumerName": "${consumer-name}",
+ "consumerSalt": "${salt}",
+ "consumerPassword": "${consumer-password}"
+ }'
+ success_codes:
+ - 200
+ - 201
--- /dev/null
+# Copyright 2019 Huawei Technologies Co., Ltd.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: sdc-consumer-show
+description: Retrieve SDC consumer
+
+info:
+ product: onap-elalto
+ service: sdc.catalog
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+parameters:
+ - name: consumer-name
+ description: Consumer Name
+ type: string
+ short_option: x
+ long_option: consumer-name
+ is_optional: false
+ - name: user-id
+ description: Designer user id
+ type: string
+ long_option: user-id
+ short_option: e
+ default_value: jh0003
+ is_optional: true
+results:
+ direction: portrait
+ attributes:
+ - name: consumer-password
+ description: Consumer password
+ type: string
+ scope: short
+ - name: salt
+ description: Salt
+ type: string
+ scope: short
+
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: none
+ mode: direct
+ request:
+ uri: /sdc2/rest/v1/consumers/${consumer-name}
+ method: GET
+ headers:
+ USER_ID: ${user-id}
+ success_codes:
+ - 200
+ - 201
+ result_map:
+ consumer-password: $b{$.consumerPassword}
+ salt: $b{$.consumerSalt}
\ No newline at end of file
--- /dev/null
+# Copyright © Intel Corporation 2019
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: get-resource-module-name
+description: Get resource module name
+
+info:
+ product: onap-elalto
+ service: sdc.catalog
+ author: ONAP HPA Team onap-discuss@lists.onap.org
+
+
+results:
+ direction: landscape
+ attributes:
+ - name: vf-model-name
+ description: name of vf model in service model
+ type: string
+ scope: short
+ - name: resource-module-name
+ description: system name of vf-model
+ type: string
+ scope: short
+
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /sdc2/rest/v1/followed
+ method: GET
+ success_codes:
+ - 200
+ result_map:
+ vf-model-name: $b{resources.[*].name}
+ resource-module-name: $b{resources.[*].systemName}
--- /dev/null
+# Copyright 2019 Huawei Technologies Co., Ltd.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: service-model-add-artifact
+description: Add a artifact to a Service model
+
+info:
+ product: onap-elalto
+ service: sdc.catalog
+ author: ONAP HPA Team onap-discuss@lists.onap.org
+
+
+parameters:
+ - name: service-id
+ description: Service Unique Id
+ type: string
+ long_option: service-id
+ short_option: x
+ is_optional: false
+ - name: remarks
+ description: certification remarks
+ type: string
+ long_option: remarks
+ short_option: y
+ default_value: Uploaded from ONAP CLI
+ is_optional: true
+ - name: artifact
+ description: NS CSAR file
+ type: byte
+ long_option: artifact
+ short_option: z
+ is_optional: false
+ - name: artifact-name
+ description: NS CSAR name
+ type: string
+ long_option: artifact-name
+ short_option: b
+ is_optional: false
+ - name: user-id
+ description: Designer user id
+ type: string
+ long_option: user-id
+ short_option: e
+ default_value: cs0008
+ is_optional: true
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /sdc2/rest/v1/catalog/services/${service-id}/artifacts
+ method: POST
+ headers:
+ Content-MD5: $s{md5:__body__}
+ USER_ID: ${user-id}
+ body: '{"payloadData":"${artifact}","artifactDisplayName":"${artifact-name}","artifactType":"OTHER","description":"${remarks}","artifactName":"${artifact-name}", "artifactLabel":"${artifact-name}","artifactGroupType":"INFORMATIONAL", artifactChecksum="$s{md5:artifact}"}'
+ success_codes:
+ - 200
--- /dev/null
+# Copyright © Intel Corporation 2019
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: service-model-add-vf
+description: Helps to add VF into service models in SDC
+
+info:
+ product: onap-elalto
+ service: sdc.catalog
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+
+parameters:
+ - name: service-id
+ description: Onap Service Name
+ type: string
+ short_option: x
+ long_option: service-id
+ is_optional: false
+ - name: vf-id
+ description: VF Unique ID
+ type: string
+ short_option: y
+ long_option: vf-id
+ is_optional: true
+ - name: vf-name
+ description: VF Name
+ type: string
+ short_option: z
+ long_option: vf-name
+ is_optional: true
+ - name: vf-version
+ description: VF version
+ type: string
+ long_option: vf-version
+ short_option: b
+ is_optional: true
+
+results:
+ direction: portrait
+ attributes:
+ - name: id
+ description: Service ID
+ scope: short
+ type: string
+ - name: uuid
+ description: Service UUID
+ scope: short
+ type: string
+ - name: inputs
+ description: VNF Input ids
+ scope: short
+ type: string
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /sdc2/rest/v1/catalog/services/${service-id}/resourceInstance
+ method: POST
+ body: '{"name": "${vf-name}", "componentVersion": "${vf-version}", "posY": 248, "posX": 406, "uniqueId": "${service-id}-${vf-id}", "originType": "VF", "componentUid": "${vf-id}", "icon": "defaulticon"}'
+ success_codes:
+ - 201
+ result_map:
+ id: $b{$.uniqueId}
+ uuid: $b{$.componentUid}
+ inputs: $b{$.inputs.[*].uniqueId}
\ No newline at end of file
--- /dev/null
+# Copyright © Intel Corporation 2019
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: service-model-approve
+description: Approves the Service model in SDC
+
+info:
+ product: onap-elalto
+ service: sdc.catalog
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+
+parameters:
+ - name: service-id
+ description: Service model UniqueId
+ type: string
+ long_option: service-id
+ short_option: b
+ is_optional: false
+ - name: remarks
+ description: approval remarks
+ type: string
+ long_option: remarks
+ short_option: r
+ is_optional: false
+
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /sdc2/rest/v1/catalog/services/${service-id}/distribution-state/approve
+ method: POST
+ body: '{"userRemarks": "${remarks}"}'
+ success_codes:
+ - 200
--- /dev/null
+# Copyright © Intel Corporation 2019
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: service-model-archive
+description: Archive the Service model in SDC
+
+info:
+ product: onap-elalto
+ service: sdc.catalog
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+
+parameters:
+ - name: service-id
+ description: Service model UniqueId
+ type: string
+ long_option: service-id
+ short_option: b
+ is_optional: false
+
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /sdc2/rest/v1/catalog/services/${service-id}/archive
+ method: POST
+ body: '{}'
+ success_codes:
+ - 200
+ - 417
\ No newline at end of file
--- /dev/null
+# Copyright © Intel Corporation 2019
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: service-model-checkin
+description: Checkin Service model in SDC
+
+info:
+ product: onap-elalto
+ service: sdc.catalog
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+parameters:
+ - name: service-id
+ description: Service model ID
+ type: string
+ long_option: service-id
+ short_option: b
+ is_optional: false
+ - name: remarks
+ description: checkin remarks
+ type: string
+ long_option: remarks
+ short_option: r
+ is_optional: false
+results:
+ direction: portrait
+ attributes:
+ - name: id
+ description: NS checked out version unique ID
+ scope: short
+ type: string
+ - name: uuid
+ description: NS checked out version unique ID
+ scope: short
+ type: string
+ - name: version
+ description: VF version
+ scope: short
+ type: string
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /sdc2/rest/v1/catalog/services/${service-id}/lifecycleState/CHECKIN
+ method: POST
+ body: '{"userRemarks": "${remarks}"}'
+ success_codes:
+ - 200
+ result_map:
+ id: $b{$.uniqueId}
+ version: $b{$.version}
+ uuid: $b{$.unid}
\ No newline at end of file
--- /dev/null
+# Copyright © Intel Corporation 2019
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: service-model-checkout
+description: Checkout Service model in SDC
+
+info:
+ product: onap-elalto
+ service: sdc.catalog
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+
+parameters:
+ - name: service-id
+ description: Service model ID
+ type: string
+ long_option: service-id
+ short_option: b
+ is_optional: true
+
+results:
+ direction: portrait
+ attributes:
+ - name: id
+ description: NS checked out version unique ID
+ scope: short
+ type: string
+ - name: version
+ description: VF version
+ scope: short
+ type: string
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /sdc2/rest/v1/catalog/services/${service-id}/lifecycleState/CHECKOUT
+ method: POST
+ body: '{}'
+ success_codes:
+ - 200
+ result_map:
+ id: $b{$.uniqueId}
+ version: $b{$.version}
\ No newline at end of file
--- /dev/null
+# Copyright © Intel Corporation 2019
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: service-model-create
+description: Create Service model in SDC
+
+info:
+ product: onap-elalto
+ service: sdc.catalog
+ author: ONAP HPA Team onap-discuss@lists.onap.org
+
+
+parameters:
+ - name: service-name
+ description: Onap Service Name
+ type: string
+ short_option: x
+ long_option: service-name
+ is_optional: false
+ - name: description
+ description: Description for Service
+ type: string
+ short_option: y
+ long_option: description
+ is_optional: true
+ - name: project-code
+ description: Project code
+ type: string
+ long_option: project-code
+ short_option: z
+ is_optional: true
+ - name: category
+ description: Service category (options are "network l4+","network l1-3","e2e service","mobility","network service","voip call control")
+ type: string
+ short_option: b
+ long_option: category
+ is_optional: true
+ default_value: network l1-3
+ - name: category-display-name
+ description: Service category display name (Options are "Network L4+","Network L1-3","E2E Service","Network Service","Mobility","VoIP Call Control")
+ type: string
+ short_option: c
+ long_option: category-display-name
+ is_optional: true
+ default_value: Network L1-3
+ - name: icon-id
+ description: Service Icon id (options are "network_l_4","network_l_1-3"[use this icon for "Network L1-3","E2E Service","Network Service"],"mobility","call_controll")
+ type: string
+ short_option: e
+ long_option: icon-id
+ default_value: defaulticon
+ is_optional: true
+
+results:
+ direction: portrait
+ attributes:
+ - name: id
+ description: Service ID
+ scope: short
+ type: string
+ - name: uuid
+ description: Service UUID
+ scope: short
+ type: string
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /sdc2/rest/v1/catalog/services
+ method: POST
+ body: '{
+ "artifacts":{},
+ "toscaArtifacts":{},
+ "contactId":"${host-username}",
+ "categories":[{
+ "name":"${category-display-name}",
+ "normalizedName":"${category}",
+ "uniqueId":"serviceNewCategory.${category}",
+ "icons":["${icon-id}"],
+ "subcategories":null,
+ "version":null,
+ "ownerId":null,
+ "empty":false,
+ "type":null }],
+ "description":"${description}",
+ "icon":"defaulticon",
+ "componentInstancesProperties":{},
+ "componentInstancesAttributes":{},
+ "name":"${service-name}",
+ "tags":["${service-name}"],
+ "capabilities":{},
+ "requirements":{},
+ "deploymentArtifacts":{},
+ "componentType":"SERVICE",
+ "projectCode":"${project-code}",
+ "componentInstances":[],
+ "properties":[],
+ "attributes":[],
+ "forwardingPaths":{},
+ "ecompGeneratedNaming":true,
+ "serviceApiArtifacts":{},
+ "instantiationType":"A-la-carte",
+ "environmentContext":"General_Revenue-Bearing"
+ }'
+ success_codes:
+ - 200
+ - 201
+ result_map:
+ id: $b{$.uniqueId}
+ uuid: $b{$.uuid}
--- /dev/null
+# Copyright © Intel Corporation 2019
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: service-model-distribute
+description: Distributes the Service model in SDC
+
+info:
+ product: onap-elalto
+ service: sdc.catalog
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+
+parameters:
+ - name: service-id
+ description: Service model UUID (can be found from service-model-list)
+ type: string
+ long_option: service-id
+ short_option: b
+ is_optional: true
+
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /sdc2/rest/v1/catalog/services/${service-id}/distribution/PROD/activate
+ method: POST
+ body: '{}'
+ success_codes:
+ - 200
--- /dev/null
+# Copyright © Intel Corporation 2019
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: service-model-list
+description: List the service model in SDC
+
+info:
+ product: onap-elalto
+ service: sdc.catalog
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+
+results:
+ direction: landscape
+ attributes:
+ - name: uuid
+ description: UUID
+ type: string
+ scope: short
+ - name: id
+ description: uniqueId
+ type: string
+ scope: short
+ - name: invariant-uuid
+ description: Invariant UUID
+ type: string
+ scope: short
+ - name: name
+ description: Name
+ type: string
+ scope: short
+ - name: version
+ description: version
+ type: string
+ scope: short
+ - name: status
+ description: status
+ type: string
+ scope: short
+ - name: distribution-status
+ description: status
+ type: string
+ scope: short
+ - name: description
+ description: description
+ type: string
+ scope: long
+
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /sdc2/rest/v1/followed
+ method: GET
+ success_codes:
+ - 200
+ result_map:
+ uuid: $b{services.[*].uuid}
+ id: $b{services.[*].uniqueId}
+ invariant-uuid: $b{services.[*].invariantUUID}
+ version: $b{services.[*].version}
+ name: $b{services.[*].name}
+ status: $b{services.[*].lifecycleState}
+ description: $b{services.[*].description}
+ distribution-status: $b{services.[*].distributionStatus}
--- /dev/null
+# Copyright 2019 Huawei Technologies Co., Ltd.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: service-model-set-property
+description: Set property to a service model
+
+info:
+ product: onap-elalto
+ service: sdc.catalog
+ author: ONAP HPA Team onap-discuss@lists.onap.org
+
+
+parameters:
+ - name: service-id
+ description: service UniqueId
+ type: string
+ long_option: service-id
+ short_option: x
+ is_optional: false
+ - name: vf-resource-id
+ description: resource id provided by service ns_id.vf_id.vf_name
+ type: string
+ long_option: vf-resource-id
+ short_option: y
+ is_optional: false
+ - name: vf-id
+ description: resource id
+ type: string
+ long_option: vf-id
+ short_option: z
+ is_optional: false
+ - name: property-name
+ description: property name
+ type: string
+ long_option: property-name
+ short_option: b
+ is_optional: false
+ - name: property-value
+ description: property value
+ type: string
+ long_option: property-value
+ short_option: r
+ is_optional: false
+ - name: input-uuid
+ description: VF Model Input uuid
+ type: string
+ long_option: input-uuid
+ short_option: R
+ is_optional: false
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /sdc2/rest/v1/catalog/services/${service-id}/resourceInstance/${vf-resource-id}/inputs
+ method: POST
+ body: '[{"constraints":[],"definition":false,"name":"${property-name}","parentUniqueId":"${input-uuid}","password":false,"required":false,"schema":{"property":{}},"toscaPresentation":{"ownerId":"${input-uuid}"},"type":"string","uniqueId":"${input-uuid}.${property-name}","value":"${property-value}"}]'
+ success_codes:
+ - 200
--- /dev/null
+# Copyright © Intel Corporation 2019
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: service-model-test-accept
+description: Accepts the Service model test in SDC
+
+info:
+ product: onap-elalto
+ service: sdc.catalog
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+
+parameters:
+ - name: service-id
+ description: Service model ID
+ type: string
+ long_option: service-id
+ short_option: b
+ is_optional: false
+ - name: remarks
+ description: Remarks when accepting test
+ type: string
+ long_option: remarks
+ short_option: r
+ is_optional: false
+results:
+ direction: portrait
+ attributes:
+ - name: id
+ description: NS checked out version unique ID
+ scope: short
+ type: string
+ - name: uuid
+ description: NS checked out version unique ID
+ scope: short
+ type: string
+ - name: version
+ description: VF version
+ scope: short
+ type: string
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /sdc2/rest/v1/catalog/services/${service-id}/lifecycleState/certify
+ method: POST
+ body: '{"userRemarks": "${remarks}"}'
+ success_codes:
+ - 200
+ result_map:
+ id: $b{$.uniqueId}
+ version: $b{$.version}
+ uuid: $b{$.unid}
\ No newline at end of file
--- /dev/null
+# Copyright © Intel Corporation 2019
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: service-model-test-reject
+description: Rejects the Service model test in SDC
+
+info:
+ product: onap-elalto
+ service: sdc.catalog
+ author: ONAP HPA Team onap-discuss@lists.onap.org
+
+
+parameters:
+ - name: service-id
+ description: Service model ID
+ type: string
+ long_option: service-id
+ short_option: b
+ is_optional: false
+ - name: test-remark
+ description: Remarks when rejecting test
+ type: string
+ long_option: test-remark
+ short_option: r
+ is_optional: false
+
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /sdc2/rest/v1/catalog/services/${service-id}/lifecycleState/failCertification
+ method: POST
+ body: '{"userRemarks": "${test-remark}"}'
+ success_codes:
+ - 200
--- /dev/null
+# Copyright © Intel Corporation 2019
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: service-model-test-request
+description: Request the certification of Service model in SDC
+
+info:
+ product: onap-elalto
+ service: sdc.catalog
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+
+parameters:
+ - name: service-id
+ description: Service model ID
+ type: string
+ long_option: service-id
+ short_option: b
+ is_optional: true
+ - name: remarks
+ description: Remarks when submitting for testing
+ type: string
+ long_option: remarks
+ short_option: r
+
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /sdc2/rest/v1/catalog/services/${service-id}/lifecycleState/certificationRequest
+ method: POST
+ body: '{"userRemarks": "${remarks}"}'
+ success_codes:
+ - 200
+
--- /dev/null
+# Copyright © Intel Corporation 2019
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: service-model-test-start
+description: Starts the testing of a Service model in SDC
+
+info:
+ product: onap-elalto
+ service: sdc.catalog
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+
+parameters:
+ - name: service-id
+ description: Service model ID
+ type: string
+ long_option: service-id
+ short_option: b
+ is_optional: true
+
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /sdc2/rest/v1/catalog/services/${service-id}/lifecycleState/startCertification
+ method: POST
+ body: '{}'
+ success_codes:
+ - 200
--- /dev/null
+# Copyright © Intel Corporation 2019
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: service-model-undocheckout
+description: Undo Checkout of Service model in SDC
+
+info:
+ product: onap-elalto
+ service: sdc.catalog
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+
+parameters:
+ - name: service-uuid
+ description: Service model UUIID (check service-model-list)
+ type: string
+ long_option: service-uuid
+ short_option: b
+ is_optional: true
+
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /sdc2/rest/v1/catalog/services/${service-uuid}/lifecycleState/UNDOCHECKOUT
+ method: POST
+ body: '{"userRemarks": null}'
+ success_codes:
+ - 200
--- /dev/null
+# Copyright © Intel Corporation 2019
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: service2vf-model-list
+description: List the VF in a given service model in SDC
+
+info:
+ product: onap-elalto
+ service: sdc.catalog
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+
+parameters:
+ - name: service-id
+ description: Service model uuid
+ type: string
+ short_option: z
+ long_option: service-id
+ is_optional: false
+
+results:
+ direction: landscape
+ attributes:
+ - name: vf-uuid
+ description: UUID
+ type: string
+ scope: short
+ - name: vf-name
+ description: name
+ type: string
+ scope: short
+ - name: vf-customization-uuid
+ description: customization UUID
+ type: string
+ scope: short
+ - name: vf-version
+ description: version
+ type: string
+ scope: short
+ - name: vf-id
+ description: customization UUID
+ type: string
+ scope: short
+
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /sdc2/rest/v1/catalog/services/${service-id}
+ method: GET
+ success_codes:
+ - 200
+ result_map:
+ vf-id: $b{componentInstances.[*].uniqueId}
+ vf-uuid: $b{componentInstances.[*].componentUid}
+ vf-name: $b{componentInstances.[*].componentName}
+ vf-version: $b{componentInstances.[*].componentVersion}
+ vf-customization-uuid: $b{componentInstances.[*].customizationUUID}
--- /dev/null
+# Copyright 2019 Huawei Technologies Co., Ltd.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: vf-model-add-artifact
+description: Add a artifact to a Virtual function
+
+info:
+ product: onap-elalto
+ service: sdc.catalog
+ author: ONAP HPA Team onap-discuss@lists.onap.org
+
+
+parameters:
+ - name: vf-id
+ description: VF UniqueId
+ type: string
+ long_option: vf-id
+ short_option: x
+ is_optional: false
+ - name: remarks
+ description: certification remarks
+ type: string
+ long_option: remarks
+ short_option: y
+ default_value: Uploaded from ONAP CLI
+ is_optional: true
+ - name: artifact
+ description: VNF CSAR file
+ type: byte
+ long_option: artifact
+ short_option: z
+ is_optional: false
+ - name: artifact-name
+ description: VNF CSAR name
+ type: string
+ long_option: artifact-name
+ short_option: b
+ is_optional: false
+ - name: user-id
+ description: Designer user id
+ type: string
+ long_option: user-id
+ short_option: e
+ default_value: cs0008
+ is_optional: true
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /sdc2/rest/v1/catalog/resources/${vf-id}/artifacts
+ method: POST
+ headers:
+ Content-MD5: $s{md5:__body__}
+ USER_ID: ${user-id}
+ body: '{"payloadData":"${artifact}","artifactDisplayName":"${artifact-name}","artifactType":"OTHER","description":"${remarks}","artifactName":"${artifact-name}", "artifactLabel":"${artifact-name}","artifactGroupType":"DEPLOYMENT", artifactChecksum="$s{md5:artifact}"}'
+ success_codes:
+ - 200
--- /dev/null
+# Copyright © Intel Corporation 2019
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: vf-model-archive
+description: Archive VF model in SDC
+
+info:
+ product: onap-elalto
+ service: sdc.catalog
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+parameters:
+ - name: vf-id
+ description: VF model ID
+ type: string
+ long_option: vf-id
+ short_option: b
+ is_optional: false
+
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /sdc2/rest/v1/catalog/resources/${vf-id}/archive
+ method: POST
+ body: '{}'
+ success_codes:
+ - 200
+ - 417
\ No newline at end of file
--- /dev/null
+# Copyright © Intel Corporation 2019
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: vf-model-certify
+description: Certify a Virtual function
+
+info:
+ product: onap-elalto
+ service: sdc.catalog
+ author: ONAP HPA Team onap-discuss@lists.onap.org
+
+
+parameters:
+ - name: vf-id
+ description: VF UniqueId
+ type: string
+ long_option: vf-id
+ short_option: b
+ is_optional: false
+ - name: remarks
+ description: certification remarks
+ type: string
+ long_option: remarks
+ short_option: r
+ is_optional: true
+
+results:
+ direction: portrait
+ attributes:
+ - name: id
+ description: VF version unique ID
+ scope: short
+ type: string
+ - name: uuid
+ description: VF UUID
+ scope: short
+ type: uuid
+ - name: version
+ description: VF version
+ scope: short
+ type: string
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /sdc2/rest/v1/catalog/resources/${vf-id}/lifecycleState/certify
+ method: POST
+ body: '{"userRemarks":"${remarks}"}'
+ success_codes:
+ - 200
+ result_map:
+ id: $b{$.uniqueId}
+ uuid: $b{$.uuid}
+ version: $b{$.version}
--- /dev/null
+# Copyright © Intel Corporation 2019
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: vf-model-checkin
+description: Checkin VF model in SDC
+
+info:
+ product: onap-elalto
+ service: sdc.catalog
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+parameters:
+ - name: vf-id
+ description: VF model ID
+ type: string
+ long_option: vf-id
+ short_option: b
+ is_optional: false
+ - name: remarks
+ description: checkin remarks
+ type: string
+ long_option: remarks
+ short_option: r
+ default_value: Checked in by ONAP CLI
+ is_optional: false
+results:
+ direction: portrait
+ attributes:
+ - name: id
+ description: VF version unique ID
+ scope: short
+ type: string
+ - name: version
+ description: VF version
+ scope: short
+ type: string
+ - name: uuid
+ description: VF uuid
+ scope: short
+ type: string
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /sdc2/rest/v1/catalog/resources/${vf-id}/lifecycleState/CHECKIN
+ method: POST
+ body: '{"userRemarks": "${remarks}"}'
+ success_codes:
+ - 200
+ result_map:
+ id: $b{$.uniqueId}
+ version: $b{$.version}
+ uuid: $b{$.uuid}
\ No newline at end of file
--- /dev/null
+# Copyright © Intel Corporation 2019
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: vf-model-checkout
+description: Checkout VF model in SDC
+
+info:
+ product: onap-elalto
+ service: sdc.catalog
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+
+parameters:
+ - name: vf-id
+ description: VF model ID
+ type: string
+ long_option: vf-id
+ short_option: b
+ is_optional: false
+
+results:
+ direction: portrait
+ attributes:
+ - name: id
+ description: VF checked out version unique ID
+ scope: short
+ type: string
+ - name: version
+ description: VF version
+ scope: short
+ type: string
+
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /sdc2/rest/v1/catalog/resources/${vf-id}/lifecycleState/CHECKOUT
+ method: POST
+ body: '{}'
+ success_codes:
+ - 200
+ result_map:
+ id: $b{$.uniqueId}
+ version: $b{$.version}
\ No newline at end of file
--- /dev/null
+# Copyright © Intel Corporation 2019
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: vf-model-create
+description: Create Virtual function from Vendor Software Product
+
+info:
+ product: onap-elalto
+ service: sdc.catalog
+ author: ONAP HPA Team onap-discuss@lists.onap.org
+
+
+parameters:
+ - name: name
+ description: Onap VF Name
+ type: string
+ short_option: x
+ long_option: name
+ is_optional: false
+ - name: description
+ description: Description for VF
+ type: string
+ short_option: y
+ long_option: description
+ is_optional: true
+ - name: vendor-name
+ description: Vendor name
+ type: string
+ long_option: vendor-name
+ short_option: z
+ is_optional: false
+ - name: vsp-id
+ description: VSP ID
+ type: string
+ long_option: vsp-id
+ short_option: b
+ is_optional: true
+ - name: vsp-version
+ description: VSP version
+ type: string
+ long_option: vsp-version
+ short_option: g
+ is_optional: true
+
+results:
+ direction: portrait
+ attributes:
+ - name: id
+ description: VF ID
+ scope: short
+ type: string
+ - name: uuid
+ description: VF UUID
+ scope: short
+ type: string
+ - name: inputs
+ description: VNF Input ids
+ scope: short
+ type: string
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /sdc2/rest/v1/catalog/resources
+ method: POST
+ body: '{"contactId": "${host-username}", "vendorRelease": "1.0", "requirements": {}, "artifacts": {}, "capabilities": {}, "componentInstancesProperties": {}, "deploymentArtifacts": {}, "icon": "defaulticon", "vendorName": "${vendor-name}", "description": "${description}", "tags": ["CLI", "${name}"], "properties": [], "categories": [{"subcategories": [{"normalizedName": "abstract", "name": "Abstract", "uniqueId": "resourceNewCategory.generic.abstract", "icons": ["database"]}], "normalizedName": "generic", "name": "Generic", "uniqueId": "resourceNewCategory.generic"}], "name": "${name}", "toscaArtifacts": {}, "csarUUID": "${vsp-id}", "resourceType": "VF", "csarVersion": "${vsp-version}", "componentType": "RESOURCE", "componentInstancesAttributes": {}, "attributes": [], "componentInstances": []}'
+ context:
+ remove_empty_node: true
+ success_codes:
+ - 201
+ result_map:
+ id: $b{$.uniqueId}
+ uuid: $b{$.uuid}
+ inputs: $b{$.inputs.[*].uniqueId}
\ No newline at end of file
--- /dev/null
+# Copyright © Intel Corporation 2019
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: vf-model-list
+description: List the VF resource model in SDC
+
+info:
+ product: onap-elalto
+ service: sdc.catalog
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+
+results:
+ direction: landscape
+ attributes:
+ - name: uuid
+ description: UUID
+ type: string
+ scope: short
+ - name: id
+ description: id
+ type: string
+ scope: short
+ - name: invariant-uuid
+ description: Invariant UUID
+ type: string
+ scope: short
+ - name: name
+ description: Name
+ type: string
+ scope: short
+ - name: version
+ description: version
+ type: string
+ scope: short
+ - name: status
+ description: status
+ type: string
+ scope: short
+ - name: description
+ description: description
+ type: string
+ scope: long
+ - name: vsp-uuid
+ description: VSP uuid
+ type: string
+ scope: long
+ - name: vsp-version
+ description: VSP version
+ type: string
+ scope: long
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /sdc2/rest/v1/followed
+ method: GET
+ success_codes:
+ - 200
+ result_map:
+ uuid: $b{resources.[*].uuid}
+ id: $b{resources.[*].uniqueId}
+ invariant-uuid: $b{resources.[*].invariantUUID}
+ version: $b{resources.[*].version}
+ name: $b{resources.[*].name}
+ status: $b{resources.[*].lifecycleState}
+ description: $b{resources.[*].description}
+ vsp-uuid: $b{resources.[*].csarUUID}
+ vsp-version: $b{resources.[*].csarVersion}
--- /dev/null
+# Copyright © Intel Corporation 2019
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: vlm-aggreement-create
+description: Create license aggreement
+
+info:
+ product: onap-elalto
+ service: sdc.onboarding
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+parameters:
+ - name: name
+ description: aggreement name
+ type: string
+ short_option: x
+ long_option: name
+ is_optional: false
+ - name: vlm-id
+ description: License Model ID
+ type: string
+ short_option: y
+ long_option: vlm-id
+ is_optional: false
+ - name: vlm-version
+ description: License Model version
+ type: string
+ short_option: e
+ long_option: vlm-version
+ is_optional: false
+ - name: vlm-feature-group-id
+ description: VLM feature group
+ type: string
+ short_option: g
+ long_option: vlm-feature-group-id
+ is_optional: false
+
+results:
+ direction: portrait
+ attributes:
+ - name: id
+ description: aggreement ID
+ scope: short
+ type: string
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /onboarding-api/v1.0/vendor-license-models/${vlm-id}/versions/${vlm-version}/license-agreements
+ method: POST
+ body: '{"addedFeatureGroupsIds": ["${vlm-feature-group-id}"], "licenseTerm": {"choice": "Fixed_Term", "other": ""}, "name": "${name}"}'
+ success_codes:
+ - 200
+ result_map:
+ id: $b{$.value}
--- /dev/null
+# Copyright © Intel Corporation 2019
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: vlm-archive
+description: Archive Vendor License Model
+
+info:
+ product: onap-elalto
+ service: sdc.onboarding
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+parameters:
+ - name: vlm-id
+ description: Onap VLM ID
+ type: string
+ short_option: x
+ long_option: vlm-id
+ is_optional: false
+
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /onboarding-api/v1.0/items/${vlm-id}/actions
+ method: PUT
+ body: '{"action": "ARCHIVE"}'
+ success_codes:
+ - 201
+ - 200
+ - 417
\ No newline at end of file
--- /dev/null
+# Copyright © Intel Corporation 2019
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: vlm-create
+description: Create License Model
+
+info:
+ product: onap-elalto
+ service: sdc.onboarding
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+
+parameters:
+ - name: vendor-name
+ description: vendor name
+ type: string
+ short_option: x
+ long_option: vendor-name
+ is_optional: false
+ - name: description
+ description: Description for License Model
+ type: string
+ short_option: y
+ long_option: description
+ is_optional: true
+results:
+ direction: portrait
+ attributes:
+ - name: id
+ description: License Model ID
+ scope: short
+ type: uuid
+ - name: version
+ description: License Model version
+ scope: short
+ type: uuid
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /onboarding-api/v1.0/vendor-license-models
+ method: POST
+ body: '{"vendorName": "${vendor-name}", "description": "${description}", "iconRef": "icon"}'
+ success_codes:
+ - 200
+ result_map:
+ id: $b{$.itemId}
+ version: $b{$.version.id}
\ No newline at end of file
--- /dev/null
+# Copyright © Intel Corporation 2019
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: vlm-delete
+description: Delete License Model (certified vlms cannot be deleted)
+
+info:
+ product: onap-elalto
+ service: sdc.onboarding
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+
+parameters:
+ - name: vendor-name
+ description: vendor name
+ type: string
+ short_option: x
+ long_option: vendor-name
+ is_optional: false
+ - name: vlm-id
+ description: vlm id
+ type: string
+ short_option: y
+ long_option: vlm-id
+ is_optional: false
+
+
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /onboarding-api/v1.0/vendor-license-models/${vlm-id}
+ method: DELETE
+ body: '{"vendorName": "${vendor-name}", "description": "vendor license model", "iconRef": "icon"}'
+ success_codes:
+ - 200
--- /dev/null
+# Copyright © Intel Corporation 2019
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: vlm-entitlement-pool-create
+description: Create Entitlement Pool
+
+info:
+ product: onap-elalto
+ service: sdc.onboarding
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+
+parameters:
+ - name: name
+ description: Entitlement Pool name
+ type: string
+ short_option: x
+ long_option: name
+ is_optional: false
+ - name: vlm-id
+ description: License Model ID
+ type: string
+ short_option: y
+ long_option: vlm-id
+ is_optional: false
+ - name: vlm-version
+ description: License Model version
+ type: string
+ short_option: e
+ long_option: vlm-version
+ is_optional: false
+ - name: manufacture-reference-number
+ description: Manufature Reference Number
+ type: string
+ short_option: k
+ long_option: manufacture-reference-number
+ is_optional: false
+ - name: start-date
+ description: License start date (MM/DD/YYYY)
+ type: string
+ short_option: l
+ long_option: start-date
+ is_optional: false
+ - name: expiry-date
+ description: License end date (MM/DD/YYYY)
+ type: string
+ short_option: g
+ long_option: expiry-date
+ is_optional: false
+
+results:
+ direction: portrait
+ attributes:
+ - name: id
+ description: Entitlement Pool ID
+ scope: short
+ type: string
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /onboarding-api/v1.0/vendor-license-models/${vlm-id}/versions/${vlm-version}/entitlement-pools
+ method: POST
+ body: '{"name":"${name}","time":{"choice":"","other":""},"startDate":"${start-date}","expiryDate":"${expiry-date}","manufacturerReferenceNumber":"${manufacture-reference-number}"}'
+ success_codes:
+ - 200
+ result_map:
+ id: $b{$.value}
--- /dev/null
+# Copyright © Intel Corporation 2019
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: vlm-feature-group-create
+description: Create feature group Pool
+
+info:
+ product: onap-elalto
+ service: sdc.onboarding
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+
+parameters:
+ - name: name
+ description: Feature group name
+ type: string
+ short_option: x
+ long_option: name
+ is_optional: false
+ - name: vlm-id
+ description: License Model ID
+ type: string
+ short_option: y
+ long_option: vlm-id
+ is_optional: false
+ - name: vlm-version
+ description: License Model version
+ type: string
+ short_option: e
+ long_option: vlm-version
+ is_optional: false
+ - name: vlm-key-group-id
+ description: VLM keygroup
+ type: string
+ short_option: g
+ long_option: vlm-key-group-id
+ is_optional: false
+ - name: vlm-entitle-pool-id
+ description: VLM Entitlement pool
+ type: string
+ short_option: b
+ long_option: vlm-entitle-pool-id
+ is_optional: false
+ - name: part-number
+ description: Part number
+ type: string
+ short_option: c
+ long_option: part-number
+ is_optional: false
+
+results:
+ direction: portrait
+ attributes:
+ - name: id
+ description: Feature group ID
+ scope: short
+ type: string
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /onboarding-api/v1.0/vendor-license-models/${vlm-id}/versions/${vlm-version}/feature-groups
+ method: POST
+ body: '{"name": "${name}", "addedLicenseKeyGroupsIds": ["${vlm-key-group-id}"], "addedEntitlementPoolsIds": ["${vlm-entitle-pool-id}"], "partNumber": "${part-number}"}'
+ success_codes:
+ - 200
+ result_map:
+ id: $b{$.value}
--- /dev/null
+# Copyright © Intel Corporation 2019
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: vlm-key-group-create
+description: Create License Key Group
+
+info:
+ product: onap-elalto
+ service: sdc.onboarding
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+
+parameters:
+ - name: vlm-id
+ description: License Model Id
+ type: string
+ short_option: c
+ long_option: vlm-id
+ is_optional: false
+ - name: vlm-version
+ description: License Model version
+ type: string
+ short_option: e
+ long_option: vlm-version
+ is_optional: false
+ - name: name
+ description: name
+ type: string
+ short_option: x
+ long_option: name
+ is_optional: false
+ - name: type
+ description: type of group (Universal, unique, one-time)
+ type: string
+ short_option: y
+ long_option: type
+ is_optional: false
+ default_value: Universal
+
+results:
+ direction: portrait
+ attributes:
+ - name: id
+ description: License Model ID
+ scope: short
+ type: string
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /onboarding-api/v1.0/vendor-license-models/${vlm-id}/versions/${vlm-version}/license-key-groups
+ method: POST
+ body: '{"name": "${name}", "type": "${type}"}'
+ success_codes:
+ - 200
+ result_map:
+ id: $b{$.value}
\ No newline at end of file
--- /dev/null
+# Copyright © Intel Corporation 2019
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: vlm-list
+description: List the vendor license models in ONAP
+
+info:
+ product: onap-elalto
+ service: sdc.onboarding
+ author: ONAP HPA Integration Team (onap-discuss@lists.onap.org)
+
+results:
+ direction: landscape
+ attributes:
+ - name: vlm-name
+ description: name of the vendor license model
+ scope: short
+ type: string
+ - name: vlm-id
+ description: ID of the vendor license model
+ scope: short
+ type: string
+http:
+ service:
+ auth: basic
+ mode: direct
+ request:
+ uri: /onboarding-api/v1.0/vendor-license-models
+ method: GET
+ success_codes:
+ - 200
+ result_map:
+ vlm-name: $b{results.[*].name}
+ vlm-id: $b{results.[*].id}
--- /dev/null
+# Copyright © Intel Corporation 2019
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: vlm-submit
+description: Submit Vendor License Model
+
+info:
+ product: onap-elalto
+ service: sdc.onboarding
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+
+parameters:
+ - name: vlm-id
+ description: Onap VLM ID
+ type: string
+ short_option: x
+ long_option: vlm-id
+ is_optional: false
+ - name: vlm-version
+ description: VLM version
+ type: string
+ short_option: y
+ long_option: vlm-version
+ is_optional: false
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /onboarding-api/v1.0/vendor-license-models/${vlm-id}/versions/${vlm-version}/actions
+ method: PUT
+ body: '{"action": "Submit"}'
+ success_codes:
+ - 201
+ - 200
--- /dev/null
+# Copyright © Intel Corporation 2019
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: vsp-add-artifact
+description: Upload the CSAR/ZIP file to VSP
+
+info:
+ product: onap-elalto
+ service: sdc.onboarding
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+parameters:
+ - name: vsp-id
+ description: Onap VSP ID
+ type: string
+ short_option: x
+ long_option: vsp-id
+ is_optional: false
+ - name: vsp-version
+ description: Onap VSP version
+ type: string
+ short_option: y
+ long_option: vsp-version
+ is_optional: false
+ - name: vsp-file
+ description: CSAR File path
+ type: binary
+ short_option: z
+ long_option: vsp-file
+ is_optional: false
+http:
+ request:
+ uri: /onboarding-api/v1.0/vendor-software-products/${vsp-id}/versions/${vsp-version}/orchestration-template-candidate
+ method: POST
+ body: '${vsp-file}'
+ multipart_entity_name: 'upload'
+ headers:
+ Content-type: 'multipart/form-data'
+ Accept: '*/*'
+ USER_ID: "${host-username}"
+ success_codes:
+ - 200
--- /dev/null
+# Copyright © Intel Corporation 2019
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: vsp-archive
+description: Archive Vendor Software Product
+
+info:
+ product: onap-elalto
+ service: sdc.onboarding
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+parameters:
+ - name: vsp-id
+ description: Onap VSP ID
+ type: string
+ short_option: x
+ long_option: vsp-id
+ is_optional: false
+
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /onboarding-api/v1.0/items/${vsp-id}/actions
+ method: PUT
+ body: '{"action": "ARCHIVE"}'
+ success_codes:
+ - 201
+ - 200
+ - 417
--- /dev/null
+# Copyright 2019 Huawei Technologies Co., Ltd.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: vsp-commit
+description: Commit Vendor Software Product
+
+info:
+ product: onap-elalto
+ service: sdc.onboarding
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+parameters:
+ - name: vsp-id
+ description: Onap VSP ID
+ type: string
+ short_option: x
+ long_option: vsp-id
+ is_optional: false
+ - name: vsp-version
+ description: VSP version
+ type: string
+ short_option: y
+ long_option: vsp-version
+ is_optional: false
+ - name: remarks
+ description: VSP remarks
+ type: string
+ short_option: z
+ long_option: remarks
+ is_optional: true
+ default_value: Created by OCOMP
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /onboarding-api/v1.0/items/${vsp-id}/versions/${vsp-version}/actions
+ method: PUT
+ body: '{"action":"Commit","commitRequest":{"message":"${remarks}"}}'
+ success_codes:
+ - 201
+ - 200
--- /dev/null
+# Copyright © Intel Corporation 2019
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: vsp-create
+description: Create Vendor Software Product
+
+info:
+ product: onap-elalto
+ service: sdc.onboarding
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+parameters:
+ - name: vsp-name
+ description: Onap VSP Name
+ type: string
+ short_option: x
+ long_option: vsp-name
+ is_optional: false
+ - name: vsp-description
+ description: Description for VSP
+ type: string
+ short_option: y
+ long_option: vsp-description
+ is_optional: true
+ - name: vlm-version
+ description: License version
+ type: string
+ long_option: vlm-version
+ short_option: c
+ is_optional: true
+ default_value: 1.0
+ - name: vlm-vendor
+ description: License Model vendor
+ type: string
+ long_option: vlm-vendor
+ short_option: e
+ is_optional: false
+ - name: vlm-id
+ description: License Model ID
+ type: string
+ long_option: vlm-id
+ short_option: g
+ is_optional: false
+ - name: vlm-agreement-id
+ description: License Agreement ID
+ type: string
+ long_option: vlm-agreement-id
+ short_option: i
+ is_optional: false
+ - name: vlm-feature-group-id
+ description: Feature Group ID
+ type: string
+ long_option: vlm-feature-group-id
+ short_option: j
+ is_optional: false
+ - name: onboarding-method
+ description: Method to be used for onboarding (Manual or NetworkPackage)
+ type: string
+ long_option: onboarding-method
+ short_option: o
+ is_optional: false
+ default_value: NetworkPackage
+
+results:
+ direction: portrait
+ attributes:
+ - name: id
+ description: VSP ID
+ scope: short
+ type: string
+ - name: version
+ description: VSP Model version
+ scope: short
+ type: string
+ - name: version-id
+ description: VSP Model version id
+ scope: short
+ type: uuid
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /onboarding-api/v1.0/vendor-software-products
+ method: POST
+ body: '{
+ "category": "resourceNewCategory.generic",
+ "vendorId": "${vlm-id}",
+ "subCategory": "resourceNewCategory.generic.network elements",
+ "description": "${vsp-description}",
+ "licensingVersion": "${vlm-version}",
+ "licensingData": {"featureGroups": ["${vlm-feature-group-id}"], "licenseAgreement": "${vlm-agreement-id}"},
+ "icon": "icon",
+ "onboardingMethod": "${onboarding-method}",
+ "vendorName": "${vlm-vendor}",
+ "name": "${vsp-name}"
+ }'
+ success_codes:
+ - 200
+ result_map:
+ id: $b{$.itemId}
+ version: $b{$.version.name}
+ version-id: $b{$.version.id}
--- /dev/null
+# Copyright © Intel Corporation 2019
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: vsp-list
+description: List of the Vendor Software Products
+
+info:
+ product: onap-elalto
+ service: sdc.onboarding
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+results:
+ direction: landscape
+ attributes:
+ - name: ID
+ description: VSP ID
+ scope: short
+ type: string
+ - name: name
+ description: VSP Name
+ scope: short
+ type: string
+ - name: vendor-name
+ description: Vendor name
+ scope: long
+ type: string
+ - name: version
+ description: Version
+ scope: short
+ type: string
+ - name: status
+ description: status
+ scope: short
+ type: string
+ - name: license-id
+ description: license aggreement
+ scope: long
+ type: string
+ - name: license-version
+ description: license version
+ scope: long
+ type: string
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /onboarding-api/v1.0/vendor-software-products
+ method: GET
+ success_codes:
+ - 200
+ result_map:
+ ID: $b{results.[*].id}
+ name: $b{results.[*].name}
+ vendor-name: $b{results.[*].vendorName}
+ version: $b{results.[*].version.id}
+ status: $b{results.[*].status}
+ license-id: $b{results.[*].licensingData.licenseAgreement}
+ license-version: $b{results.[*].licensingVersion.id}
--- /dev/null
+# Copyright © Intel Corporation 2019
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: vsp-package
+description: Package Vendor Software Product
+
+info:
+ product: onap-elalto
+ service: sdc.onboarding
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+parameters:
+ - name: vsp-id
+ description: Onap VSP ID
+ type: string
+ short_option: x
+ long_option: vsp-id
+ is_optional: false
+ - name: vsp-version
+ description: VSP version
+ type: string
+ short_option: y
+ long_option: vsp-version
+ is_optional: false
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /onboarding-api/v1.0/vendor-software-products/${vsp-id}/versions/${vsp-version}/actions
+ method: PUT
+ body: '{"action": "Create_Package"}'
+ success_codes:
+ - 201
+ - 200
+ sample_response:
+ body: ''
--- /dev/null
+# Copyright © Intel Corporation 2019
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: vsp-submit
+description: Submit Vendor Software Product
+
+info:
+ product: onap-elalto
+ service: sdc.onboarding
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+parameters:
+ - name: vsp-id
+ description: Onap VSP ID
+ type: string
+ short_option: x
+ long_option: vsp-id
+ is_optional: false
+ - name: vsp-version
+ description: VSP version
+ type: string
+ short_option: y
+ long_option: vsp-version
+ is_optional: false
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /onboarding-api/v1.0/vendor-software-products/${vsp-id}/versions/${vsp-version}/actions
+ method: PUT
+ body: '{"action": "Submit"}'
+ success_codes:
+ - 201
+ - 200
--- /dev/null
+# Copyright © Intel Corporation 2019
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: vsp-validate
+description: Validate the uploaded Vendor Software Product
+
+info:
+ product: onap-elalto
+ service: sdc.onboarding
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+parameters:
+ - name: vsp-id
+ description: Onap VSP ID
+ type: string
+ short_option: x
+ long_option: vsp-id
+ is_optional: false
+ - name: vsp-version
+ description: VSP version
+ type: string
+ short_option: y
+ long_option: vsp-version
+ is_optional: false
+
+results:
+ direction: portrait
+ attributes:
+ - name: status
+ description: Validation status
+ scope: short
+ type: string
+ - name: errors
+ description: Validation messages
+ scope: short
+ type: json
+
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /onboarding-api/v1.0/vendor-software-products/${vsp-id}/versions/${vsp-version}/orchestration-template-candidate/process
+ method: PUT
+ body: '{}'
+ success_codes:
+ - 201
+ - 200
+ result_map:
+ status: $b{$.status}
+ errors: $b{$.errors}
--- /dev/null
+# Copyright © Intel Corporation 2019
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: vf-preload
+description: Preload SDNC with parameter values for a VF module in ONAP
+
+info:
+ product: onap-elalto
+ service: sdnc
+ author: Intel ONAP HPA integration team (onap-discuss@lists.onap.org)
+
+
+parameters:
+ - name: preload-file
+ description: File containing preload values
+ type: text
+ short_option: y
+ long_option: preload-file
+ is_optional: false
+
+http:
+ service:
+ auth: basic
+ mode: direct
+ request:
+ uri: /restconf/operations/VNF-API:preload-vnf-topology-operation
+ method: POST
+ body: '${preload-file}'
+ success_codes:
+ - 200
--- /dev/null
+# Copyright © Intel Corporation 2019\r
+#\r
+# Licensed under the Apache License, Version 2.0 (the "License");\r
+# you may not use this file except in compliance with the License.\r
+# You may obtain a copy of the License at\r
+#\r
+# http://www.apache.org/licenses/LICENSE-2.0\r
+#\r
+# Unless required by applicable law or agreed to in writing, software\r
+# distributed under the License is distributed on an "AS IS" BASIS,\r
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+# See the License for the specific language governing permissions and\r
+# limitations under the License.\r
+\r
+open_cli_schema_version: 1.0\r
+name: service-create\r
+description: Create a service instance using SO\r
+\r
+info:\r
+ product: onap-elalto\r
+ service: so\r
+ author: ONAP CLI Team onap-discuss@lists.onap.org\r
+\r
+parameters:\r
+ - name: model-invariant-id\r
+ description: model invariant id generated by ASDC.\r
+ type: string\r
+ short_option: e\r
+ long_option: model-invariant-id\r
+ is_optional: false\r
+ - name: model-uuid\r
+ description: model uuid generated by ASDC.\r
+ type: string\r
+ short_option: g\r
+ long_option: model-uuid\r
+ is_optional: false\r
+ - name: model-name\r
+ description: model name as provided in ASDC design time.\r
+ type: string\r
+ short_option: i\r
+ long_option: model-name\r
+ is_optional: false\r
+ - name: model-version\r
+ description: model-version\r
+ type: string\r
+ short_option: j\r
+ long_option: model-version\r
+ is_optional: false\r
+ - name: model-version-id\r
+ description: model-version-id\r
+ type: string\r
+ short_option: n\r
+ long_option: model-version-id\r
+ is_optional: false\r
+ - name: customer\r
+ description: unique id for customer\r
+ type: string\r
+ short_option: c\r
+ long_option: customer\r
+ is_optional: false\r
+ - name: requestor-id\r
+ description: requestor ID\r
+ type: string\r
+ short_option: q\r
+ long_option: requestor-id\r
+ is_optional: false\r
+ - name: instance-name\r
+ description: service instance name\r
+ type: string\r
+ short_option: k\r
+ long_option: instance-name\r
+ is_optional: false\r
+ - name: supress-rollback\r
+ description: rollback changes if instantiation fails.\r
+ type: bool\r
+ short_option: r\r
+ long_option: supress-rollback\r
+ is_optional: true\r
+ - name: service-type\r
+ description: subscription service type\r
+ type: string\r
+ short_option: w\r
+ long_option: service-type\r
+ is_optional: false\r
+ - name: ala-carte\r
+ description: ala carte flag, defaults to true\r
+ type: string\r
+ short_option: A\r
+ long_option: ala-carte\r
+ is_optional: true\r
+ default_value: true\r
+ - name: customer-latitude\r
+ description: customer latitude, part of customer location\r
+ type: string\r
+ short_option: la\r
+ long_option: customer-latitude\r
+ is_optional: true\r
+ - name: customer-longitude\r
+ description: customer longitude, part of customer location\r
+ type: string\r
+ short_option: lo\r
+ long_option: customer-longitude\r
+ is_optional: true\r
+ - name: customer-name\r
+ description: customer name, part of customer location\r
+ type: string\r
+ short_option: y\r
+ long_option: customer-name\r
+ is_optional: true\r
+ - name: homing-solution\r
+ description: homing solution to use [oof|sniro]\r
+ type: string\r
+ short_option: H\r
+ long_option: homing-solution\r
+ is_optional: true\r
+ - name: orchestrator\r
+ description: orchestrator to use [multicloud|openstack(default)]\r
+ type: string\r
+ short_option: o\r
+ long_option: orchestrator\r
+ is_optional: true\r
+ - name: api\r
+ description: api to use [GR_API|VNF_API]\r
+ type: string\r
+ short_option: P\r
+ long_option: api\r
+ is_optional: true\r
+ default_value: GR_API\r
+ - name: subscriber-name\r
+ description: subscriber name\r
+ type: string\r
+ short_option: S\r
+ long_option: subscriber-name\r
+ is_optional: true\r
+ - name: project-name\r
+ description: project name\r
+ type: string\r
+ short_option: x\r
+ long_option: project-name\r
+ is_optional: true\r
+ - name: owning-entity-id\r
+ description: owning entity id\r
+ type: string\r
+ short_option: z\r
+ long_option: owning-entity-id\r
+ is_optional: true\r
+ - name: owning-entity-name\r
+ description: owning entity name\r
+ type: string\r
+ short_option: O\r
+ long_option: owning-entity-name\r
+ is_optional: true\r
+\r
+results:\r
+ direction: portrait\r
+ attributes:\r
+ - name: service-id\r
+ description: instance id for the created service.\r
+ type: string\r
+ scope: short\r
+http:\r
+ service:\r
+ name: so\r
+ version: v6\r
+ auth: basic\r
+ mode: direct\r
+ request:\r
+ uri: /onap/so/infra/serviceInstantiation/v7/serviceInstances\r
+ method: POST\r
+ body: '{\r
+ "requestDetails":{\r
+ "modelInfo":{\r
+ "modelType":"service",\r
+ "modelInvariantId":"${model-invariant-id}",\r
+ "modelUuid":"${model-uuid}",\r
+ "modelName":"${model-name}",\r
+ "modelVersion":"${model-version}",\r
+ "modelVersionId":"${model-version-id}",\r
+ "modelInvariantUuid" : "${model-invariant-id}"\r
+ },\r
+ "subscriberInfo":{\r
+ "globalSubscriberId":"${customer}",\r
+ "subscriberName":"${subscriber-name}"\r
+ },\r
+ "requestInfo":{\r
+ "requestorId":"${requestor-id}",\r
+ "instanceName":"${instance-name}",\r
+ "source":"CLI",\r
+ "suppressRollback":"${supress-rollback}"\r
+ },\r
+ "requestParameters":{\r
+ "subscriptionServiceType":"${service-type}",\r
+ "aLaCarte":"${ala-carte}",\r
+ "testApi":"${api}",\r
+ "userParams":[\r
+ {\r
+ "name":"Customer_Location",\r
+ "value":{\r
+ "customerLatitude":"${customer-latitude}",\r
+ "customerLongitude":"${customer-longitude}",\r
+ "customerName":"${customer-name}"\r
+ }\r
+ },\r
+ {\r
+ "name":"Homing_Solution",\r
+ "value":"${homing-solution}"\r
+ },\r
+ {\r
+ "name":"orchestrator",\r
+ "value":"${orchestrator}"\r
+ }\r
+ ]\r
+ },\r
+ "project":{\r
+ "projectName":"${project-name}"\r
+ },\r
+ "owningEntity":{\r
+ "owningEntityId":"${owning-entity-id}",\r
+ "owningEntityName":"${owning-entity-name}"\r
+ }\r
+ }\r
+ }'\r
+\r
+ success_codes:\r
+ - 202\r
+ result_map:\r
+ service-id: $b{$.requestReferences.instanceId}\r
+ sample_response:\r
+ body: '{\r
+ "requestReferences":{\r
+ "instanceId":"${instance-id}",\r
+ "requestId":"375ba428-65e7-4f2b-afb9-74735ac6bfd0"\r
+ }\r
+ }'\r
--- /dev/null
+# Copyright © Intel Corporation 2019\r
+#\r
+# Licensed under the Apache License, Version 2.0 (the "License");\r
+# you may not use this file except in compliance with the License.\r
+# You may obtain a copy of the License at\r
+#\r
+# http://www.apache.org/licenses/LICENSE-2.0\r
+#\r
+# Unless required by applicable law or agreed to in writing, software\r
+# distributed under the License is distributed on an "AS IS" BASIS,\r
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+# See the License for the specific language governing permissions and\r
+# limitations under the License.\r
+\r
+open_cli_schema_version: 1.0\r
+name: service-update\r
+description: Update a service instance using SO\r
+\r
+info:\r
+ product: onap-elalto\r
+ service: so\r
+ author: ONAP CLI Team onap-discuss@lists.onap.org\r
+\r
+parameters:\r
+ - name: service-id\r
+ description: unique id for service instance\r
+ type: string\r
+ short_option: x\r
+ long_option: service-instace-id\r
+ is_optional: false\r
+ - name: cloud-region\r
+ description: cloud region identifier\r
+ type: string\r
+ short_option: l\r
+ long_option: cloud-region\r
+ is_optional: false\r
+ - name: tenant-id\r
+ description: tenant id\r
+ type: string\r
+ short_option: b\r
+ long_option: tenant-id\r
+ is_optional: false\r
+ - name: model-invariant-id\r
+ description: model invariant id generated by ASDC.\r
+ type: string\r
+ short_option: e\r
+ long_option: model-invariant-id\r
+ is_optional: false\r
+ - name: model-uuid\r
+ description: model uuid generated by ASDC.\r
+ type: string\r
+ short_option: g\r
+ long_option: model-uuid\r
+ is_optional: false\r
+ - name: model-name\r
+ description: model name as provided in ASDC design time.\r
+ type: string\r
+ short_option: i\r
+ long_option: model-name\r
+ is_optional: false\r
+ - name: model-version\r
+ description: model-version\r
+ type: string\r
+ short_option: j\r
+ long_option: model-version\r
+ is_optional: false\r
+ - name: model-version-id\r
+ description: model-version-id\r
+ type: string\r
+ short_option: n\r
+ long_option: model-version-id\r
+ is_optional: false\r
+ - name: customer\r
+ description: unique id for customer\r
+ type: string\r
+ short_option: c\r
+ long_option: customer\r
+ is_optional: false\r
+ - name: requestor-id\r
+ description: requestor ID\r
+ type: string\r
+ short_option: q\r
+ long_option: requestor-id\r
+ is_optional: false\r
+ - name: instance-name\r
+ description: service instance name\r
+ type: string\r
+ short_option: k\r
+ long_option: instance-name\r
+ is_optional: false\r
+ - name: supress-rollback\r
+ description: rollback changes if instantiation fails.\r
+ type: bool\r
+ short_option: r\r
+ long_option: supress-rollback\r
+ is_optional: true\r
+ - name: service-type\r
+ description: subscription service type\r
+ type: string\r
+ short_option: w\r
+ long_option: service-type\r
+ is_optional: false\r
+\r
+results:\r
+ direction: portrait\r
+ attributes:\r
+ - name: service-id\r
+ description: instance id for the created service.\r
+ type: string\r
+ scope: short\r
+\r
+\r
+http:\r
+ service:\r
+ name: so\r
+ version: v6\r
+ auth: basic\r
+ mode: direct\r
+ request:\r
+ uri: /onap/so/infra/serviceInstantiation/v7/serviceInstances/${service-id}\r
+ method: PUT\r
+ body: '{\r
+ "requestDetails":{\r
+ "cloudConfiguration":{\r
+ "lcpCloudRegionId":"${cloud-region}",\r
+ "tenantId":"${tenant-id}"\r
+ },\r
+ "modelInfo":{\r
+ "modelType":"service",\r
+ "modelInvariantId":"${model-invariant-id}",\r
+ "modelNameVersionId":"${model-uuid}",\r
+ "modelName":"${model-name}",\r
+ "modelVersion":"${model-version}",\r
+ "modelVersionId":"${model-version-id}"\r
+ },\r
+ "subscriberInfo":{\r
+ "globalSubscriberId":"${customer}"\r
+ },\r
+ "requestInfo":{\r
+ "requestorId":"${requestor-id}",\r
+ "instanceName":"${instance-name}",\r
+ "source":"VID",\r
+ "suppressRollback":"${supress-rollback}"\r
+ },\r
+ "requestParameters":{\r
+ "subscriptionServiceType":"${service-type}",\r
+ "aLaCarte":true\r
+ }\r
+ }\r
+ }'\r
+\r
+ success_codes:\r
+ - 202\r
+ result_map:\r
+ service-id: $b{$.requestReferences.instanceId}\r
+ sample_response:\r
+ body: '{\r
+ "requestReferences":{\r
+ "instanceId":"${instance-id}",\r
+ "requestId":"375ba428-65e7-4f2b-afb9-74735ac6bfd0"\r
+ }\r
+ }'\r
--- /dev/null
+# Copyright © Intel Corporation 2019\r
+#\r
+# Licensed under the Apache License, Version 2.0 (the "License");\r
+# you may not use this file except in compliance with the License.\r
+# You may obtain a copy of the License at\r
+#\r
+# http://www.apache.org/licenses/LICENSE-2.0\r
+#\r
+# Unless required by applicable law or agreed to in writing, software\r
+# distributed under the License is distributed on an "AS IS" BASIS,\r
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+# See the License for the specific language governing permissions and\r
+# limitations under the License.\r
+\r
+open_cli_schema_version: 1.0\r
+name: vf-module-create\r
+description: Create a VF Module\r
+\r
+info:\r
+ product: onap-elalto\r
+ service: so\r
+ author: ONAP CLI Team onap-discuss@lists.onap.org\r
+\r
+parameters:\r
+ - name: lcp-cloudregion-id\r
+ description: AIC LCP node location identifier\r
+ type: string\r
+ short_option: l\r
+ long_option: lcp-cloudregion-id\r
+ is_optional: false\r
+ - name: cloud-owner\r
+ description: cloud region cloud owner\r
+ type: string\r
+ short_option: co\r
+ long_option: cloud-owner\r
+ is_optional: false\r
+ - name: tenant-id\r
+ description: openstack tenant id (uuid)\r
+ type: string\r
+ short_option: w\r
+ long_option: tenant-id\r
+ is_optional: false\r
+ - name: vnf-instance-id\r
+ description: vnf instance id\r
+ type: string\r
+ short_option: y\r
+ long_option: vnf-instance-id\r
+ is_optional: false\r
+ - name: service-instance-id\r
+ description: unique id for service instance\r
+ type: string\r
+ short_option: x\r
+ long_option: service-instace-id\r
+ is_optional: false\r
+ - name: parent-service-model\r
+ description: parent service model name\r
+ type: string\r
+ short_option: z\r
+ long_option: parent-service-model\r
+ is_optional: false\r
+ - name: service-model-id\r
+ description: service model id\r
+ type: string\r
+ short_option: si\r
+ long_option: service-model-id\r
+ is_optional: false\r
+ - name: service-model-invariant-id\r
+ description: service model invariant id\r
+ type: string\r
+ short_option: sd\r
+ long_option: service-model-invariant-id\r
+ is_optional: false\r
+ - name: service-model-version\r
+ description: service model version\r
+ type: string\r
+ short_option: sv\r
+ long_option: service-model-version\r
+ is_optional: false\r
+ - name: supress-rollback\r
+ description: rollback changes if instantiation fails.\r
+ type: bool\r
+ short_option: r\r
+ long_option: supress-rollback\r
+ is_optional: false\r
+ - name: instance-name\r
+ description: service instance name\r
+ type: string\r
+ short_option: i\r
+ long_option: instance-name\r
+ is_optional: false\r
+ - name: vf-module-model-invariant-id\r
+ description: Invariant Id of vf module model in SO catalogdb\r
+ type: string\r
+ short_option: vi\r
+ long_option: vf-module-model-invariant-id\r
+ is_optional: false\r
+ - name: vf-module-model-version-id\r
+ description: version Id of vf module model in SO catalogdb\r
+ type: string\r
+ short_option: vv\r
+ long_option: vf-module-model-version-id\r
+ is_optional: false\r
+ - name: vf-module-model-name\r
+ description: Model Name of vf module model in SO catalogdb\r
+ type: string\r
+ short_option: vn\r
+ long_option: vf-module-model-name\r
+ is_optional: false\r
+ - name: vf-module-model-customization-id\r
+ description: Customization Id of vf module model in SO catalogdb\r
+ type: string\r
+ short_option: vc\r
+ long_option: vf-module-model-customization-id\r
+ is_optional: false\r
+ - name: vf-module-model-version\r
+ description: version of vf module model in SO catalogdb\r
+ type: string\r
+ short_option: vm\r
+ long_option: vf-module-model-version\r
+ is_optional: false\r
+ - name: requestor-id\r
+ description: Id of requestor\r
+ type: string\r
+ short_option: R\r
+ long_option: requestor-id\r
+ is_optional: false\r
+ - name: vf-model-name\r
+ description: name of vf model used in service model\r
+ type: string\r
+ short_option: vf\r
+ long_option: vf-model-name\r
+ is_optional: false\r
+ - name: vf-model-invariant-id\r
+ description: vf model invariant id\r
+ type: string\r
+ short_option: mi\r
+ long_option: vf-model-invariant-id\r
+ is_optional: false\r
+ - name: vf-model-version\r
+ description: vf model version\r
+ type: string\r
+ short_option: mv\r
+ long_option: vf-model-version\r
+ is_optional: false\r
+ - name: vf-model-id\r
+ description: vf model id\r
+ type: string\r
+ short_option: vid\r
+ long_option: vf-model-id\r
+ is_optional: false\r
+ - name: vf-model-customization-id\r
+ description: vf model customization id\r
+ type: string\r
+ short_option: mc\r
+ long_option: vf-model-customization-id\r
+ is_optional: false\r
+ - name: vf-model-customization-name\r
+ description: vf model customization name\r
+ type: string\r
+ short_option: mn\r
+ long_option: vf-model-customization-name\r
+ is_optional: false\r
+ - name: test-api\r
+ description: api for testing (VNF_API|GR_API)\r
+ type: string\r
+ short_option: api\r
+ long_option: test-api\r
+ is_optional: false\r
+ - name: use-preload\r
+ description: To use preloaded values or not\r
+ type: bool\r
+ short_option: up\r
+ long_option: use-preload\r
+ is_optional: false\r
+\r
+results:\r
+ direction: portrait\r
+ attribute:\r
+ - name: vf-instance-id\r
+ description: id for the created vf\r
+ type: string\r
+ scope: short\r
+\r
+http:\r
+ service:\r
+ name: so\r
+ version: v6\r
+ mode: direct\r
+ auth: basic\r
+ request:\r
+ uri: /onap/so/infra/serviceInstantiation/v7/serviceInstances/${service-instance-id}/vnfs/${vnf-instance-id}/vfModules\r
+ method: POST\r
+ body: '{\r
+ "requestDetails":{\r
+ "modelInfo":{\r
+ "modelType":"vfModule",\r
+ "modelInvariantId":"${vf-module-model-invariant-id}",\r
+ "modelVersionId":"${vf-module-model-version-id}",\r
+ "modelName":"${vf-module-model-name}",\r
+ "modelVersion":"${vf-module-model-version}",\r
+ "modelCustomizationId": "${vf-module-model-customization-id}",\r
+ "modelCustomizationName": "${vf-module-model-name}"\r
+ },\r
+ "cloudConfiguration":{\r
+ "lcpCloudRegionId":"${lcp-cloudregion-id}",\r
+ "tenantId":"${tenant-id}",\r
+ "cloudOwner":"${cloud-owner}"\r
+ },\r
+ "requestInfo":{\r
+ "instanceName":"${instance-name}",\r
+ "source":"VID",\r
+ "suppressRollback":"${supress-rollback}",\r
+ "requestorId" : "${requestor-id}"\r
+ },\r
+ "relatedInstanceList":[\r
+ {\r
+ "relatedInstance":{\r
+ "instanceId":"${service-instance-id}",\r
+ "modelInfo":{\r
+ "modelType":"service",\r
+ "modelInvariantId":"${service-model-invariant-id}",\r
+ "modelVersionId":"${service-model-id}",\r
+ "modelName":"${parent-service-model}",\r
+ "modelVersion":"${service-model-version}"\r
+ }\r
+ }\r
+ },\r
+ {\r
+ "relatedInstance":{\r
+ "instanceId":"${vnf-instance-id}",\r
+ "modelInfo":{\r
+ "modelType":"vnf",\r
+ "modelInvariantId":"${vf-model-invariant-id}",\r
+ "modelVersionId":"${vf-model-id}",\r
+ "modelName":"${vf-model-name}",\r
+ "modelVersion":"${vf-model-version}",\r
+ "modelCustomizationId": "${vf-model-customization-id}",\r
+ "modelCustomizationName":"${vf-model-customization-name}"\r
+ }\r
+ }\r
+ }\r
+ ],\r
+ "requestParameters":{\r
+ "userParams":[],\r
+ "testApi": "${test-api}",\r
+ "usePreload": true\r
+ }\r
+ }\r
+ }'\r
+\r
+ success_codes:\r
+ - 202\r
+ result_map:\r
+ vf-instance-id: $b{$.vfInstanceId}\r
+ sample_response:\r
+ body: '{ "vfInstanceId" : "234567AB" }'\r
--- /dev/null
+# Copyright © Intel Corporation 2019\r
+#\r
+# Licensed under the Apache License, Version 2.0 (the "License");\r
+# you may not use this file except in compliance with the License.\r
+# You may obtain a copy of the License at\r
+#\r
+# http://www.apache.org/licenses/LICENSE-2.0\r
+#\r
+# Unless required by applicable law or agreed to in writing, software\r
+# distributed under the License is distributed on an "AS IS" BASIS,\r
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+# See the License for the specific language governing permissions and\r
+# limitations under the License.\r
+\r
+open_cli_schema_version: 1.0\r
+name: vf-module-show\r
+description: Show a VF Module\r
+\r
+info:\r
+ product: onap-elalto\r
+ service: so\r
+ author: ONAP CLI Team onap-discuss@lists.onap.org\r
+\r
+results:\r
+ direction: landscape\r
+ attributes:\r
+ - name: name\r
+ description: Onap service name\r
+ scope: short\r
+ type: string\r
+ - name: version\r
+ description: Onap service version\r
+ scope: short\r
+ type: string\r
+ - name: url\r
+ description: Onap service base url\r
+ scope: short\r
+ type: url\r
+ - name: status\r
+ description: Onap service status\r
+ scope: short\r
+ type: digit\r
+ - name: nodes\r
+ description: Onap service running nodes\r
+ scope: long\r
+ type: json\r
+ - name: enable-ssl\r
+ description: Onap service is enabled with https or not\r
+ scope: long\r
+ type: string\r
+ - name: path\r
+ description: Onap service path\r
+ scope: long\r
+ type: string\r
+\r
+\r
+http:\r
+ service:\r
+ name: so\r
+ version: v6\r
+ auth: basic\r
+ mode: direct\r
+ request:\r
+ uri: /onap/so/infra/serviceInstantiation/v7/serviceInstances\r
+ method: GET\r
+ success_codes:\r
+ - 201\r
+ - 200\r
+ result_map:\r
+ name: $b{$.[*].serviceName}\r
+ version: $b{$.[*].version}\r
+ url: $b{$.[*].url}\r
+ status: $b{$.[*].status}\r
+ enable-ssl: $b{$.[*].enable_ssl}\r
+ path: $b{$.[*].path}\r
+ nodes: $b{$.[*].nodes[*].ip}:$b{$.[*].nodes[*].port}\r
+ sample_response:\r
+ body: '{\r
+ "requestReferences":{\r
+ "instanceId":"${instance-id}",\r
+ "requestId":"375ba428-65e7-4f2b-afb9-74735ac6bfd0"\r
+ }\r
+ }'\r
--- /dev/null
+# Copyright © Intel Corporation 2019\r
+#\r
+# Licensed under the Apache License, Version 2.0 (the "License");\r
+# you may not use this file except in compliance with the License.\r
+# You may obtain a copy of the License at\r
+#\r
+# http://www.apache.org/licenses/LICENSE-2.0\r
+#\r
+# Unless required by applicable law or agreed to in writing, software\r
+# distributed under the License is distributed on an "AS IS" BASIS,\r
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+# See the License for the specific language governing permissions and\r
+# limitations under the License.\r
+\r
+open_cli_schema_version: 1.0\r
+name: vf-module-update\r
+description: Update a VF Module\r
+\r
+info:\r
+ product: onap-elalto\r
+ service: so\r
+ author: ONAP CLI Team onap-discuss@lists.onap.org\r
+\r
+parameters:\r
+ - name: lcp-cloudregion-id\r
+ description: AIC LCP node location identifier\r
+ type: string\r
+ short_option: l\r
+ long_option: lcp-cloudregion-id\r
+ is_optional: false\r
+ - name: tenant-id\r
+ description: openstack tenant id (uuid)\r
+ type: string\r
+ short_option: w\r
+ long_option: tenant-id\r
+ is_optional: false\r
+ - name: vnf-instance-id\r
+ description: vnf instance id\r
+ type: string\r
+ short_option: y\r
+ long_option: vnf-instace-id\r
+ is_optional: false\r
+ - name: service-instance-id\r
+ description: unique id for service instance\r
+ type: string\r
+ short_option: x\r
+ long_option: service-instace-id\r
+ is_optional: false\r
+ - name: parenet-service-model\r
+ description: parent service model name\r
+ type: string\r
+ short_option: z\r
+ long_option: parenet-service-model\r
+ is_optional: false\r
+ - name: supress-rollback\r
+ description: rollback changes if instantiation fails.\r
+ type: bool\r
+ short_option: r\r
+ long_option: supress-rollback\r
+ is_optional: true\r
+ - name: instance-name\r
+ description: service instance name\r
+ type: string\r
+ short_option: i\r
+ long_option: instance-name\r
+ is_optional: false\r
+\r
+results:\r
+ direction: portrait\r
+ attribute:\r
+ - name: vf-instance-id\r
+ description: id for the created vf\r
+ type: string\r
+ scope: short\r
+\r
+http:\r
+ service:\r
+ name: so\r
+ version: v6\r
+ auth: basic\r
+ mode: direct\r
+ request:\r
+ uri: /onap/so/infra/serviceInstantiation/v7/serviceInstances/${service-instance-id}/vnfs/${vnf-instance-id}/vfModules\r
+ method: PUT\r
+ body: '{\r
+ "requestDetails":{\r
+ "modelInfo":{\r
+ "modelType":"vfModule",\r
+ "modelInvariantId":"ff5256d2-5a33-55df-13ab-12abad84e7ff",\r
+ "modelNameVersionId":"fe6478e5-ea33-3346-ac12-ab121484a3fe",\r
+ "modelName":"vSAMP12..base..module-0",\r
+ "modelVersion":"1"\r
+ },\r
+ "cloudConfiguration":{\r
+ "lcpCloudRegionId":"${lcp-cloudregion-id}",\r
+ "tenantId":"${tenant-id}"\r
+ },\r
+ "requestInfo":{\r
+ "instanceName":"${instance-name}",\r
+ "source":"VID",\r
+ "suppressRollback":"${supress-rollback}"\r
+ },\r
+ "relatedInstanceList":[\r
+ {\r
+ "relatedInstance":{\r
+ "instanceId":"${service-instance-id}",\r
+ "modelInfo":{\r
+ "modelType":"service",\r
+ "modelInvariantId":"ff3514e3-5a33-55df-13ab-12abad84e7ff",\r
+ "modelNameVersionId":"fe6985cd-ea33-3346-ac12-ab121484a3fe",\r
+ "modelName":"${parenet-service-model}",\r
+ "modelVersion":"1.0"\r
+ }\r
+ }\r
+ },\r
+ {\r
+ "relatedInstance":{\r
+ "instanceId":"${vnf-instance-id}",\r
+ "modelInfo":{\r
+ "modelType":"vnf",\r
+ "modelInvariantId":"ff5256d1-5a33-55df-13ab-12abad84e7ff",\r
+ "modelNameVersionId":"fe6478e4-ea33-3346-ac12-ab121484a3fe",\r
+ "modelName":"vSAMP12",\r
+ "modelVersion":"1.0",\r
+ "modelCustomizationName":"vSAMP12 1"\r
+ }\r
+ }\r
+ }\r
+ ],\r
+ "requestParameters":{\r
+ "userParams":[\r
+\r
+ ]\r
+ }\r
+ }\r
+ }'\r
+\r
+ success_codes:\r
+ - 202\r
+ result_mpa:\r
+ vf-instance-id: $b{$.vfInstanceId}\r
+ sample_response:\r
+ body: '{"vfInstanceId":"234567AB"}'\r
--- /dev/null
+# Copyright © Intel Corporation 2019\r
+#\r
+# Licensed under the Apache License, Version 2.0 (the "License");\r
+# you may not use this file except in compliance with the License.\r
+# You may obtain a copy of the License at\r
+#\r
+# http://www.apache.org/licenses/LICENSE-2.0\r
+#\r
+# Unless required by applicable law or agreed to in writing, software\r
+# distributed under the License is distributed on an "AS IS" BASIS,\r
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+# See the License for the specific language governing permissions and\r
+# limitations under the License.\r
+\r
+open_cli_schema_version: 1.0\r
+name: vnf-create\r
+description: Create a VNF\r
+\r
+info:\r
+ product: onap-elalto\r
+ service: so\r
+ author: ONAP CLI Team onap-discuss@lists.onap.org\r
+\r
+\r
+parameters:\r
+ - name: cloud-region\r
+ description: cloud region identifier\r
+ type: string\r
+ short_option: l\r
+ long_option: cloud-region\r
+ is_optional: false\r
+ - name: tenant-id\r
+ description: openstack tenant id\r
+ type: string\r
+ short_option: z\r
+ long_option: tenant-id\r
+ is_optional: false\r
+ - name: product-family\r
+ description: service type for serivce (e.g. vLB)\r
+ type: string\r
+ short_option: w\r
+ long_option: product-family\r
+ is_optional: false\r
+ - name: instance-name\r
+ description: name of vnf instance to be created\r
+ type: string\r
+ short_option: o\r
+ long_option: instance-name\r
+ is_optional: false\r
+ - name: service-instance-id\r
+ description: unique id for service instance\r
+ type: string\r
+ short_option: y\r
+ long_option: service-instance-id\r
+ is_optional: false\r
+ - name: vf-model-invariant-id\r
+ description: vf model invariant id\r
+ type: string\r
+ short_option: b\r
+ long_option: vf-model-invariant-id\r
+ is_optional: false\r
+ - name: vf-model-uuid\r
+ description: model uuid for vf\r
+ type: string\r
+ short_option: c\r
+ long_option: vf-model-uuid\r
+ is_optional: false\r
+ - name: vf-model-name\r
+ description: vf model name\r
+ type: string\r
+ short_option: e\r
+ long_option: vf-model-name\r
+ is_optional: false\r
+ - name: vf-model-version\r
+ description: vf model version\r
+ type: string\r
+ short_option: g\r
+ long_option: vf-model-version\r
+ is_optional: false\r
+ - name: vf-model-customization-id\r
+ description: vf model customization id\r
+ type: string\r
+ short_option: i\r
+ long_option: vf-model-customization-id\r
+ is_optional: false\r
+ - name: vf-model-customization-name\r
+ description: vf model customization name\r
+ type: string\r
+ short_option: vn\r
+ long_option: vf-model-customization-name\r
+ is_optional: false\r
+ - name: service-model-invariant-id\r
+ description: model invariant id\r
+ type: string\r
+ short_option: j\r
+ long_option: service-model-invariant-id\r
+ is_optional: false\r
+ - name: service-model-uuid\r
+ description: model name version id\r
+ type: string\r
+ short_option: k\r
+ long_option: service-model-uuid\r
+ is_optional: false\r
+ - name: service-model-name\r
+ description: service model name\r
+ type: string\r
+ short_option: q\r
+ long_option: service-model-name\r
+ is_optional: false\r
+ - name: service-model-version\r
+ description: service model version\r
+ type: string\r
+ short_option: n\r
+ long_option: service-model-version\r
+ is_optional: false\r
+ - name: requestor-id\r
+ description: requestor ID\r
+ type: string\r
+ short_option: r\r
+ long_option: requestor-id\r
+ is_optional: false\r
+ - name: platform-name\r
+ description: platform name\r
+ type: string\r
+ short_option: pn\r
+ long_option: platform-name\r
+ is_optional: false\r
+ - name: lob-name\r
+ description: libe of business name\r
+ type: string\r
+ short_option: lob\r
+ long_option: lob-name\r
+ is_optional: false\r
+\r
+\r
+\r
+\r
+results:\r
+ direction: portrait\r
+ attributes:\r
+ - name: vf-id\r
+ description: id for the created vnf\r
+ type: string\r
+ scope: short\r
+\r
+http:\r
+ service:\r
+ name: so\r
+ version: v6\r
+ mode: direct\r
+ auth: basic\r
+ request:\r
+ uri: /onap/so/infra/serviceInstantiation/v7/serviceInstances/${service-instance-id}/vnfs\r
+ method: POST\r
+ body: '{\r
+ "requestDetails":{\r
+ "modelInfo":{\r
+ "modelType":"vnf",\r
+ "modelInvariantId":"${vf-model-invariant-id}",\r
+ "modelVersionId":"${vf-model-uuid}",\r
+ "modelName":"${vf-model-name}",\r
+ "modelVersion":"${vf-model-version}",\r
+ "modelCustomizationId": "${vf-model-customization-id}",\r
+ "modelCustomizationName": "${vf-model-customization-name}"\r
+ },\r
+ "cloudConfiguration":{\r
+ "lcpCloudRegionId":"${cloud-region}",\r
+ "tenantId":"${tenant-id}"\r
+ },\r
+ "requestInfo":{\r
+ "requestorId":"${requestor-id}",\r
+ "instanceName":"${instance-name}",\r
+ "source":"VID",\r
+ "productFamilyId":"${product-family}"\r
+ },\r
+ "platform": {\r
+ "platformName": "${platform-name}"\r
+ },\r
+ "lineOfBusiness": {\r
+ "lineOfBusinessName": "${lob-name}"\r
+ },\r
+ "relatedInstanceList":[\r
+ {\r
+ "relatedInstance":{\r
+ "instanceId":"${service-instance-id}",\r
+ "modelInfo":{\r
+ "modelType":"service",\r
+ "modelInvariantId":"${service-model-invariant-id}",\r
+ "modelVersionId":"${service-model-uuid}",\r
+ "modelName":"${service-model-name}",\r
+ "modelVersion":"${service-model-version}"\r
+ }\r
+ }\r
+ }\r
+ ],\r
+ "requestParameters":{\r
+\r
+ }\r
+ }\r
+ }'\r
+\r
+ success_codes:\r
+ - 202\r
+ result_map:\r
+ vf-id: $b{$.requestReferences.instanceId}\r
+ sample_response:\r
+ body: '{\r
+ "requestReferences":{\r
+ "instanceId":"2a152730-f6eb-4dc6-9b81-7a6f6f263d71",\r
+ "requestId":"6402628f-7f67-4605-9e60-0d8632616d02"\r
+ }\r
+ }'\r
--- /dev/null
+# Copyright © Intel Corporation 2019\r
+#\r
+# Licensed under the Apache License, Version 2.0 (the "License");\r
+# you may not use this file except in compliance with the License.\r
+# You may obtain a copy of the License at\r
+#\r
+# http://www.apache.org/licenses/LICENSE-2.0\r
+#\r
+# Unless required by applicable law or agreed to in writing, software\r
+# distributed under the License is distributed on an "AS IS" BASIS,\r
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+# See the License for the specific language governing permissions and\r
+# limitations under the License.\r
+\r
+open_cli_schema_version: 1.0\r
+name: vnf-show\r
+description: Show a VNF\r
+\r
+info:\r
+ product: onap-elalto\r
+ service: so\r
+ author: ONAP CLI Team onap-discuss@lists.onap.org\r
+\r
+\r
+parameters:\r
+ - name: cloud-region\r
+ description: cloud region identifier\r
+ type: string\r
+ short_option: l\r
+ long_option: cloud-region\r
+ is_optional: false\r
+ - name: tenant-id\r
+ description: openstack tenant id\r
+ type: string\r
+ short_option: z\r
+ long_option: tenant-id\r
+ is_optional: false\r
+ - name: product-family\r
+ description: service type for serivce (e.g. vLB)\r
+ type: string\r
+ short_option: w\r
+ long_option: product-family\r
+ is_optional: false\r
+ - name: instance-name\r
+ description: service instance name\r
+ type: string\r
+ short_option: o\r
+ long_option: instance-name\r
+ is_optional: false\r
+ - name: service-instance-id\r
+ description: unique id for service instance\r
+ type: string\r
+ short_option: y\r
+ long_option: service-instance-id\r
+ is_optional: false\r
+ - name: vf-model-invariant-id\r
+ description: vf model invariant id\r
+ type: string\r
+ short_option: b\r
+ long_option: vf-model-invariant-id\r
+ is_optional: false\r
+ - name: vf-model-uuid\r
+ description: model uuid for vf\r
+ type: string\r
+ short_option: c\r
+ long_option: vf-model-uuid\r
+ is_optional: false\r
+ - name: vf-model-name\r
+ description: vf model name\r
+ type: string\r
+ short_option: e\r
+ long_option: vf-model-name\r
+ is_optional: false\r
+ - name: vf-model-version\r
+ description: vf model version\r
+ type: string\r
+ short_option: g\r
+ long_option: vf-model-version\r
+ is_optional: false\r
+ - name: vf-model-customization-id\r
+ description: vf model customization id\r
+ type: string\r
+ short_option: i\r
+ long_option: vf-model-customization-id\r
+ is_optional: false\r
+ - name: service-model-invariant-id\r
+ description: model invariant id\r
+ type: string\r
+ short_option: j\r
+ long_option: service-model-invariant-id\r
+ is_optional: false\r
+ - name: service-model-uuid\r
+ description: model name version id\r
+ type: string\r
+ short_option: k\r
+ long_option: service-model-uuid\r
+ is_optional: false\r
+ - name: service-model-name\r
+ description: service model name\r
+ type: string\r
+ short_option: q\r
+ long_option: service-model-name\r
+ is_optional: false\r
+ - name: service-model-version\r
+ description: service model version\r
+ type: string\r
+ short_option: n\r
+ long_option: service-model-version\r
+ is_optional: false\r
+ - name: requestor-id\r
+ description: requestor ID\r
+ type: string\r
+ short_option: r\r
+ long_option: requestor-id\r
+ is_optional: false\r
+\r
+\r
+results:\r
+ direction: portrait\r
+ attributes:\r
+ - name: vf-id\r
+ description: id for the created vnf\r
+ type: string\r
+ scope: short\r
+\r
+http:\r
+ service:\r
+ name: so\r
+ version: v6\r
+ auth: basic\r
+ mode: direct\r
+ request:\r
+ uri: /onap/so/infra/serviceInstantiation/v7/serviceInstances/${service-instance-id}/vnfs\r
+ method: POST\r
+ body: '{\r
+ "requestDetails":{\r
+ "modelInfo":{\r
+ "modelType":"vnf",\r
+ "modelInvariantId":"${vf-model-invariant-id}",\r
+ "modelVersionId":"${vf-model-uuid}",\r
+ "modelName":"${vf-model-name}",\r
+ "modelVersion":"${vf-model-version}",\r
+ "modelCustomizationId":"${vf-model-customization-id}"\r
+ },\r
+ "cloudConfiguration":{\r
+ "lcpCloudRegionId":"${cloud-region}",\r
+ "tenantId":"${tenant-id}"\r
+ },\r
+ "requestInfo":{\r
+ "requestorId":"${requestor-id}",\r
+ "instanceName":"${instance-name}",\r
+ "source":"VID",\r
+ "productFamilyId":"${product-family}"\r
+ },\r
+ "relatedInstanceList":[\r
+ {\r
+ "relatedInstance":{\r
+ "instanceId":"${service-instance-id}",\r
+ "modelInfo":{\r
+ "modelType":"service",\r
+ "modelInvariantId":"${service-model-invariant-id}",\r
+ "modelVersionId":"${service-model-uuid}",\r
+ "modelName":"${service-model-name}",\r
+ "modelVersion":"${service-model-version}"\r
+ }\r
+ }\r
+ }\r
+ ],\r
+ "requestParameters":{\r
+\r
+ }\r
+ }\r
+ }'\r
+\r
+ success_codes:\r
+ - 202\r
+ result_map:\r
+ vf-id: $b{$.requestReferences.instanceId}\r
+ sample_response:\r
+ body: '{\r
+ "requestReferences":{\r
+ "instanceId":"2a152730-f6eb-4dc6-9b81-7a6f6f263d71",\r
+ "requestId":"6402628f-7f67-4605-9e60-0d8632616d02"\r
+ }\r
+ }'\r
--- /dev/null
+# Copyright © Intel Corporation 2019\r
+#\r
+# Licensed under the Apache License, Version 2.0 (the "License");\r
+# you may not use this file except in compliance with the License.\r
+# You may obtain a copy of the License at\r
+#\r
+# http://www.apache.org/licenses/LICENSE-2.0\r
+#\r
+# Unless required by applicable law or agreed to in writing, software\r
+# distributed under the License is distributed on an "AS IS" BASIS,\r
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+# See the License for the specific language governing permissions and\r
+# limitations under the License.\r
+\r
+open_cli_schema_version: 1.0\r
+name: vnf-update\r
+description: Update a VNF\r
+\r
+info:\r
+ product: onap-elalto\r
+ service: so\r
+ author: ONAP CLI Team onap-discuss@lists.onap.org\r
+\r
+\r
+parameters:\r
+ - name: cloud-region\r
+ description: cloud region identifier\r
+ type: string\r
+ short_option: l\r
+ long_option: cloud-region\r
+ is_optional: false\r
+ - name: tenant-id\r
+ description: openstack tenant id\r
+ type: string\r
+ short_option: z\r
+ long_option: tenant-id\r
+ is_optional: false\r
+ - name: product-family\r
+ description: service type for serivce (e.g. vLB)\r
+ type: string\r
+ short_option: w\r
+ long_option: product-family\r
+ is_optional: false\r
+ - name: instance-name\r
+ description: service instance name\r
+ type: string\r
+ short_option: o\r
+ long_option: instance-name\r
+ is_optional: false\r
+ - name: service-instance-id\r
+ description: unique id for service instance\r
+ type: string\r
+ short_option: y\r
+ long_option: service-instance-id\r
+ is_optional: false\r
+ - name: vf-model-invariant-id\r
+ description: vf model invariant id\r
+ type: string\r
+ short_option: b\r
+ long_option: vf-model-invariant-id\r
+ is_optional: false\r
+ - name: vf-model-uuid\r
+ description: model uuid for vf\r
+ type: string\r
+ short_option: c\r
+ long_option: vf-model-uuid\r
+ is_optional: false\r
+ - name: vf-model-name\r
+ description: vf model name\r
+ type: string\r
+ short_option: e\r
+ long_option: vf-model-name\r
+ is_optional: false\r
+ - name: vf-model-version\r
+ description: vf model version\r
+ type: string\r
+ short_option: g\r
+ long_option: vf-model-version\r
+ is_optional: false\r
+ - name: vf-model-customization-id\r
+ description: vf model customization id\r
+ type: string\r
+ short_option: i\r
+ long_option: vf-model-customization-id\r
+ is_optional: false\r
+ - name: service-model-invariant-id\r
+ description: model invariant id\r
+ type: string\r
+ short_option: j\r
+ long_option: service-model-invariant-id\r
+ is_optional: false\r
+ - name: service-model-uuid\r
+ description: model name version id\r
+ type: string\r
+ short_option: k\r
+ long_option: service-model-uuid\r
+ is_optional: false\r
+ - name: service-model-name\r
+ description: service model name\r
+ type: string\r
+ short_option: q\r
+ long_option: service-model-name\r
+ is_optional: false\r
+ - name: service-model-version\r
+ description: service model version\r
+ type: string\r
+ short_option: n\r
+ long_option: service-model-version\r
+ is_optional: false\r
+ - name: requestor-id\r
+ description: requestor ID\r
+ type: string\r
+ short_option: r\r
+ long_option: requestor-id\r
+ is_optional: false\r
+\r
+\r
+results:\r
+ direction: portrait\r
+ attributes:\r
+ - name: vf-id\r
+ description: id for the created vnf\r
+ type: string\r
+ scope: short\r
+\r
+http:\r
+ service:\r
+ name: so\r
+ version: v6\r
+ auth: basic\r
+ mode: direct\r
+ request:\r
+ uri: /onap/so/infra/serviceInstantiation/v7/serviceInstances/${service-instance-id}/vnfs\r
+ method: PUT\r
+ body: '{\r
+ "requestDetails":{\r
+ "modelInfo":{\r
+ "modelType":"vnf",\r
+ "modelInvariantId":"${vf-model-invariant-id}",\r
+ "modelVersionId":"${vf-model-uuid}",\r
+ "modelName":"${vf-model-name}",\r
+ "modelVersion":"${vf-model-version}",\r
+ "modelCustomizationId":"${vf-model-customization-id}"\r
+ },\r
+ "cloudConfiguration":{\r
+ "lcpCloudRegionId":"${cloud-region}",\r
+ "tenantId":"${tenant-id}"\r
+ },\r
+ "requestInfo":{\r
+ "requestorId":"${requestor-id}",\r
+ "instanceName":"${instance-name}",\r
+ "source":"VID",\r
+ "productFamilyId":"${product-family}"\r
+ },\r
+ "relatedInstanceList":[\r
+ {\r
+ "relatedInstance":{\r
+ "instanceId":"${service-instance-id}",\r
+ "modelInfo":{\r
+ "modelType":"service",\r
+ "modelInvariantId":"${service-model-invariant-id}",\r
+ "modelVersionId":"${service-model-uuid}",\r
+ "modelName":"${service-model-name}",\r
+ "modelVersion":"${service-model-version}"\r
+ }\r
+ }\r
+ }\r
+ ],\r
+ "requestParameters":{\r
+\r
+ }\r
+ }\r
+ }'\r
+\r
+ success_codes:\r
+ - 202\r
+ result_map:\r
+ vf-id: $b{$.requestReferences.instanceId}\r
+ sample_response:\r
+ body: '{\r
+ "requestReferences":{\r
+ "instanceId":"2a152730-f6eb-4dc6-9b81-7a6f6f263d71",\r
+ "requestId":"6402628f-7f67-4605-9e60-0d8632616d02"\r
+ }\r
+ }'\r
--- /dev/null
+# Copyright © Intel Corporation 2019
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: vfc-catalog-create-ns
+description: vfc create ns
+
+info:
+ product: onap-elalto
+ service: vfc
+ author: ONAP HPA Integration Team (haibin.huang@intel.com)
+
+parameters:
+ - name: user-key
+ description: user defined data key eg:"key1"
+ type: string
+ short_option: c
+ long_option: user-key
+ is_optional: false
+ - name: user-value
+ description: user defined data value eg:"value1"
+ type: string
+ short_option: e
+ long_option: user-value
+ is_optional: false
+
+
+results:
+ direction: landscape
+ attributes:
+ - name: id
+ description: id
+ scope: short
+ type: string
+ - name: state
+ description: state
+ scope: short
+ type: string
+
+http:
+ service:
+ auth: none
+ mode: direct
+ request:
+ uri: /api/nsd/v1/ns_descriptors
+ method: POST
+ context:
+ remove_empty_node: true
+ body: '{
+ "userDefinedData": {"${user-key}": "${user-value}"}
+ }'
+ headers:
+ Content-Type: application/json
+ Accept: application/json
+ success_codes:
+ - 201
+ result_map:
+ id: $b{$.id}
+ state: $b{$.nsdOnboardingState}
--- /dev/null
+# Copyright © Intel Corporation 2019
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: vfc-catalog-create-vnf
+description: vfc create vnf
+
+info:
+ product: onap-elalto
+ service: vfc
+ author: ONAP HPA Integration Team (haibin.huang@intel.com)
+
+parameters:
+ - name: user-key
+ description: user defined data key eg:"key2"
+ type: string
+ short_option: c
+ long_option: user-key
+ is_optional: false
+ - name: user-value
+ description: user defined data value eg:"value2"
+ type: string
+ short_option: e
+ long_option: user-value
+ is_optional: false
+
+results:
+ direction: landscape
+ attributes:
+ - name: id
+ description: id
+ scope: short
+ type: string
+ - name: state
+ description: state
+ scope: short
+ type: string
+
+http:
+ service:
+ auth: none
+ mode: direct
+ request:
+ uri: /api/vnfpkgm/v1/vnf_packages
+ method: POST
+ context:
+ remove_empty_node: true
+ body: '{
+ "userDefinedData": {"${user-key}": "${user-value}"}
+ }'
+ headers:
+ Content-Type: application/json
+ Accept: application/json
+ success_codes:
+ - 201
+ result_map:
+ id: $b{$.id}
+ state: $b{$.onboardingState}
--- /dev/null
+# Copyright © Intel Corporation 2019
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: vfc-catalog-delete-ns
+description: vfc delete onboard ns from catalog of vfc
+
+info:
+ product: onap-elalto
+ service: vfc
+ author: ONAP HPA Integration Team (haibin.huang@intel.com)
+
+parameters:
+ - name: ns-csar-uuid
+ description: ns's uuid of csar file
+ type: string
+ short_option: c
+ long_option: ns-csar-uuid
+ is_optional: false
+
+results:
+ direction: landscape
+ attributes:
+ - name: job-id
+ description: job-id
+ scope: short
+ type: string
+
+http:
+ service:
+ auth: none
+ mode: direct
+ request:
+ uri: /api/catalog/v1/nspackages/${ns-csar-uuid}
+ method: DELETE
+ context:
+ remove_empty_node: true
+ body: '{}'
+ headers:
+ Content-Type: application/json
+ Accept: application/json
+ success_codes:
+ - 200
+ result_map:
+ job-id: $b{$.jobId}
--- /dev/null
+# Copyright © Intel Corporation 2019
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: vfc-catalog-delete-vnf
+description: vfc delete onboard vnf to catalog of vfc
+
+info:
+ product: onap-elalto
+ service: vfc
+ author: ONAP HPA Integration Team (haibin.huang@intel.com)
+
+parameters:
+ - name: vnf-csar-uuid
+ description: vnf's uuid of csar file
+ type: string
+ short_option: c
+ long_option: vnf-csar-uuid
+ is_optional: false
+
+results:
+ direction: landscape
+ attributes:
+ - name: job-id
+ description: job-id
+ scope: short
+ type: string
+
+http:
+ service:
+ auth: none
+ mode: direct
+ request:
+ uri: /api/catalog/v1/vnfpackages/${vnf-csar-uuid}
+ method: DELETE
+ context:
+ remove_empty_node: true
+ body: '{}'
+ headers:
+ Content-Type: application/json
+ Accept: application/json
+ success_codes:
+ - 202
+ result_map:
+ job-id: $b{$.jobId}
--- /dev/null
+# Copyright © Intel Corporation 2019
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: vfc-catalog-get-ns
+description: vfc get onboard ns status
+
+info:
+ product: onap-elalto
+ service: vfc
+ author: ONAP HPA Integration Team (haibin.huang@intel.com)
+
+results:
+ direction: landscape
+ attributes:
+ - name: csar-id
+ description: csar-id
+ scope: short
+ type: string
+ - name: package-info
+ description: package-info
+ scope: short
+ type: string
+
+http:
+ service:
+ auth: none
+ mode: direct
+ request:
+ uri: /api/catalog/v1/nspackages
+ method: GET
+ context:
+ remove_empty_node: true
+ body: '{}'
+ headers:
+ Content-Type: application/json
+ Accept: application/json
+ success_codes:
+ - 200
+ result_map:
+ csar-id: $b{$.[*].csarId}
+ package-info: $b{$.[*].packageInfo}
--- /dev/null
+# Copyright © Intel Corporation 2019
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: vfc-catalog-get-vnf
+description: vfc get onboard vnf status
+
+info:
+ product: onap-elalto
+ service: vfc
+ author: ONAP HPA Integration Team (haibin.huang@intel.com)
+
+results:
+ direction: landscape
+ attributes:
+ - name: csar-id
+ description: csar-id
+ scope: short
+ type: string
+
+http:
+ service:
+ auth: none
+ mode: direct
+ request:
+ uri: /api/catalog/v1/vnfpackages
+ method: GET
+ context:
+ remove_empty_node: true
+ body: '{}'
+ headers:
+ Content-Type: application/json
+ Accept: application/json
+ success_codes:
+ - 200
+ result_map:
+ csar-id: $b{$.[*].csarId}
--- /dev/null
+# Copyright © Intel Corporation 2019
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: vfc-catalog-onboard-ns
+description: vfc onboard ns to catalog of vfc
+
+info:
+ product: onap-elalto
+ service: vfc
+ author: ONAP HPA Integration Team (haibin.huang@intel.com)
+
+parameters:
+ - name: ns-csar-uuid
+ description: ns's uuid of csar file
+ type: string
+ short_option: c
+ long_option: ns-csar-uuid
+ is_optional: false
+
+results:
+ direction: landscape
+ attributes:
+ - name: status
+ description: status
+ scope: short
+ type: string
+ - name: status-desc
+ description: status-desc
+ scope: short
+ type: string
+
+http:
+ service:
+ auth: none
+ mode: direct
+ request:
+ uri: /api/catalog/v1/nspackages
+ method: POST
+ context:
+ remove_empty_node: true
+ body: '{"csarId": "${ns-csar-uuid}"}'
+ headers:
+ Content-Type: application/json
+ Accept: application/json
+ success_codes:
+ - 202
+ result_map:
+ status: $b{$.status}
+ status-desc: $b{$.statusDescription}
--- /dev/null
+# Copyright © Intel Corporation 2019
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: vfc-catalog-onboard-vnf
+description: vfc onboard vnf to catalog of vfc
+
+info:
+ product: onap-elalto
+ service: vfc
+ author: ONAP HPA Integration Team (haibin.huang@intel.com)
+
+parameters:
+ - name: vnf-csar-uuid
+ description: vnf's uuid of csar file
+ type: string
+ short_option: c
+ long_option: vnf-csar-uuid
+ is_optional: false
+
+results:
+ direction: landscape
+ attributes:
+ - name: job-id
+ description: job-id
+ scope: short
+ type: string
+
+http:
+ service:
+ auth: none
+ mode: direct
+ request:
+ uri: /api/catalog/v1/vnfpackages
+ method: POST
+ context:
+ remove_empty_node: true
+ body: '{"csarId": "${vnf-csar-uuid}"}'
+ headers:
+ Content-Type: application/json
+ Accept: application/json
+ success_codes:
+ - 202
+ result_map:
+ job-id: $b{$.jobId}
--- /dev/null
+# Copyright 2019 Huawei Technologies Co., Ltd.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: vfc-catalog-upload-ns-package
+description: Upload NS package into VFC
+
+info:
+ product: onap-elalto
+ service: vfc
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+parameters:
+ - name: ns-id
+ description: NS id created in VFC
+ type: string
+ short_option: c
+ long_option: ns-id
+ is_optional: false
+ - name: ns-package
+ description: NS package
+ type: binary
+ short_option: e
+ long_option: ns-package
+ is_optional: false
+
+http:
+ service:
+ auth: none
+ mode: direct
+ request:
+ uri: /api/nsd/v1/ns_descriptors/${ns-id}/nsd_content
+ method: PUT
+ body:
+ multipart:
+ - name: file
+ content: ${ns-package}
+ type: file
+ success_codes:
+ - 201
--- /dev/null
+# Copyright 2019 Huawei Technologies Co., Ltd.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: vfc-catalog-upload-vnf-package
+description: Upload VNF package into VFC
+
+info:
+ product: onap-elalto
+ service: vfc
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+parameters:
+ - name: vnf-id
+ description: VNF id created in VFC
+ type: string
+ short_option: c
+ long_option: vnf-id
+ is_optional: false
+ - name: vnf-package
+ description: VNF package
+ type: binary
+ short_option: e
+ long_option: vnf-package
+ is_optional: false
+
+http:
+ service:
+ auth: none
+ mode: direct
+ request:
+ uri: /api/vnfpkgm/v1/vnf_packages/${vnf-id}/package_content
+ method: PUT
+ body:
+ body:
+ multipart:
+ - name: file
+ content: ${vnf-package}
+ type: file
+ multipart_entity_name: file
+ success_codes:
+ - 201
--- /dev/null
+# Copyright © Intel Corporation 2019
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: vfc-nslcm-create
+description: vfc nslcm create ns
+
+info:
+ product: onap-elalto
+ service: vfc
+ author: ONAP HPA Integration Team (haibin.huang@intel.com)
+
+parameters:
+ - name: ns-csar-uuid
+ description: ns's uuid of csar file
+ type: string
+ short_option: c
+ long_option: ns-csar-uuid
+ is_optional: false
+ - name: ns-csar-name
+ description: ns's name of csar
+ type: string
+ short_option: n
+ long_option: ns-csar-name
+ is_optional: false
+ - name: customer-name
+ description: customer name
+ type: string
+ short_option: q
+ long_option: customer-name
+ is_optional: false
+ - name: service-type
+ description: service type
+ type: string
+ short_option: S
+ long_option: service-type
+ is_optional: false
+
+results:
+ direction: landscape
+ attributes:
+ - name: ns-instance-id
+ description: ns-instance-id
+ scope: short
+ type: string
+
+http:
+ service:
+ auth: none
+ mode: direct
+ request:
+ uri: /api/nslcm/v1/ns
+ method: POST
+ context:
+ remove_empty_node: true
+ body: '{
+ "context": {
+ "globalCustomerId": "${customer-name}",
+ "serviceType": "${service-type}"
+ },
+ "csarId": "${ns-csar-uuid}",
+ "nsName": "${ns-csar-name}",
+ "description": "description"
+ }'
+ headers:
+ Content-Type: application/json
+ Accept: application/json
+ success_codes:
+ - 201
+ result_map:
+ ns-instance-id: $b{$.nsInstanceId}
--- /dev/null
+# Copyright © Intel Corporation 2019
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: vfc-nslcm-delete
+description: vfc nslcm delete ns
+
+info:
+ product: onap-elalto
+ service: vfc
+ author: ONAP HPA Integration Team (haibin.huang@intel.com)
+
+parameters:
+ - name: ns-instance-id
+ description: ns's instance id
+ type: string
+ short_option: c
+ long_option: ns-instance-id
+ is_optional: false
+
+results:
+ direction: landscape
+ attributes:
+ - name: status
+ description: status
+ scope: short
+ type: string
+
+http:
+ service:
+ auth: none
+ mode: direct
+ request:
+ uri: /api/nslcm/v1/ns/${ns-instance-id}
+ method: DELETE
+ context:
+ remove_empty_node: true
+ body: '{}'
+ headers:
+ Content-Type: application/json
+ Accept: application/json
+ success_codes:
+ - 204
+ result_map:
+ status: ${success_codes}
--- /dev/null
+# Copyright © Intel Corporation 2019
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: vfc-nslcm-get
+description: vfc nsclm get the status of creating ns
+
+info:
+ product: onap-elalto
+ service: vfc
+ author: ONAP HPA Integration Team (haibin.huang@intel.com)
+
+results:
+ direction: landscape
+ attributes:
+ - name: ns-instance-id
+ description: ns-instance-id
+ scope: short
+ type: string
+ - name: ns-name
+ description: ns-name
+ scope: short
+ type: string
+ - name: description
+ description: description
+ scope: short
+ type: string
+ - name: nsd-id
+ description: nsd-id
+ scope: short
+ type: string
+
+http:
+ service:
+ auth: none
+ mode: direct
+ request:
+ uri: /api/nslcm/v1/ns
+ method: GET
+ context:
+ remove_empty_node: true
+ body: '{}'
+ headers:
+ Content-Type: application/json
+ Accept: application/json
+ success_codes:
+ - 200
+ result_map:
+ ns-instance-id: $b{$.nsInstanceId}
+ ns-name: $b{$.nsName}
+ description: $b{$.description}
+ nsd-id: $b{$.nsdId}
--- /dev/null
+# Copyright © Intel Corporation 2019
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: vfc-nslcm-instantiate
+description: vfc nslcm instantiate ns
+
+info:
+ product: onap-elalto
+ service: vfc
+ author: ONAP HPA Integration Team (haibin.huang@intel.com)
+
+parameters:
+ - name: ns-instance-id
+ description: ns's instance id
+ type: string
+ short_option: i
+ long_option: ns-instance-id
+ is_optional: false
+ - name: location
+ description: localtion(vimid)
+ type: string
+ short_option: c
+ long_option: location
+ is_optional: false
+ - name: sdn-controller-id
+ description: sdn controller id
+ type: string
+ short_option: n
+ long_option: sdn-controller-id
+ is_optional: false
+
+results:
+ direction: landscape
+ attributes:
+ - name: job-id
+ description: job id
+ scope: short
+ type: string
+
+http:
+ service:
+ auth: none
+ mode: direct
+ request:
+ uri: /api/nslcm/v1/ns/${ns-instance-id}/instantiate
+ method: POST
+ context:
+ remove_empty_node: true
+ body: '{
+ "additionalParamForNs":
+ {
+ "sdncontroller": "${sdn-controller-id}",
+ "location": "${location}"
+ }
+ }'
+ headers:
+ Content-Type: application/json
+ Accept: application/json
+ success_codes:
+ - 200
+ result_map:
+ job-id: $b{$.jobId}
--- /dev/null
+# Copyright © Intel Corporation 2019
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: vfc-nslcm-terminate
+description: vfc nslcm terminate ns
+
+info:
+ product: onap-elalto
+ service: vfc
+ author: ONAP HPA Integration Team (haibin.huang@intel.com)
+
+parameters:
+ - name: ns-instance-id
+ description: ns's instance id
+ type: string
+ short_option: i
+ long_option: ns-instance-id
+ is_optional: false
+
+results:
+ direction: landscape
+ attributes:
+ - name: job-id
+ description: job id
+ scope: short
+ type: string
+
+http:
+ service:
+ auth: none
+ mode: direct
+ request:
+ uri: /api/nslcm/v1/ns/${ns-instance-id}/terminate
+ method: POST
+ context:
+ remove_empty_node: true
+ body: '{}'
+ headers:
+ Content-Type: application/json
+ Accept: application/json
+ success_codes:
+ - 202
+ result_map:
+ job-id: $b{$.jobId}
--- /dev/null
+# Copyright 2018 Huawei Technologies Co., Ltd.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: csar-create
+description: Uploads the CSARs in marketplace
+
+
+info:
+ product: onap-elalto
+ service: marketplace
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+parameters:
+ - name: csar-file
+ description: CSAR File path
+ type: binary
+ short_option: x
+ long_option: csar-file
+ is_optional: false
+
+results:
+ direction: landscape
+ attributes:
+ - name: csarId
+ description: CSAR id
+ scope: short
+ type: string
+http:
+ service:
+ auth: none
+ mode: direct
+ request:
+ uri: /onapapi/vnfsdk-marketplace/v1/PackageResource/csars
+ method: POST
+ body: ${csar-file}
+ multipart_entity_name: file
+ success_codes:
+ - 200
+ result_map:
+ csarId: $b{$.csarId}
\ No newline at end of file
--- /dev/null
+# Copyright 2018 Huawei Technologies Co., Ltd.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: csar-delete
+description: Delete CSARs in marketplace
+
+info:
+ product: onap-elalto
+ service: marketplace
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+parameters:
+ - name: csar-id
+ description: Onap CSAR id
+ type: string
+ short_option: x
+ long_option: csar-id
+ is_optional: false
+
+http:
+ service:
+ auth: none
+ mode: direct
+ request:
+ uri: /onapapi/vnfsdk-marketplace/v1/PackageResource/csars/${csar-id}
+ method: DELETE
+ success_codes:
+ - 201
+ - 200
\ No newline at end of file
--- /dev/null
+# Copyright 2018 Huawei Technologies Co., Ltd.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: csar-list
+description: Lists the CSARs in marketplace
+
+
+info:
+ product: onap-elalto
+ service: marketplace
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+results:
+ direction: landscape
+ attributes:
+ - name: csarId
+ description: CSAR Id
+ scope: short
+ type: string
+ - name: name
+ description: CSAR Name
+ scope: short
+ type: string
+ - name: size
+ description: CSAR size
+ scope: short
+ type: url
+ - name: downloadUri
+ description: CSAR download URL
+ scope: short
+ type: url
+ - name: provider
+ description: CSAR Provider
+ scope: short
+ type: string
+http:
+ service:
+ auth: none
+ mode: direct
+ request:
+ uri: /onapapi/vnfsdk-marketplace/v1/PackageResource/csars
+ method: GET
+ success_codes:
+ - 201
+ - 200
+ result_map:
+ csarId: $b{$.[*].csarId}
+ name: $b{$.[*].name}
+ size: $b{$.[*].size}
+ downloadUri: $b{$.[*].downloadUri}
+ provider: $b{$.[*].provider}
\ No newline at end of file
--- /dev/null
+# Copyright 2018 Huawei Technologies Co., Ltd.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: csar-show
+description: Show details of the CSARs in marketplace
+
+
+info:
+ product: onap-elalto
+ service: marketplace
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+parameters:
+ - name: csar-id
+ description: Onap CSAR id
+ type: string
+ short_option: x
+ long_option: csar-id
+ is_optional: false
+
+results:
+ direction: portrait
+ attributes:
+ - name: name
+ description: CSAR Name
+ scope: short
+ type: string
+ - name: size
+ description: CSAR size
+ scope: short
+ type: url
+ - name: downloadUri
+ description: CSAR download URL
+ scope: short
+ type: url
+ - name: provider
+ description: CSAR Provider
+ scope: short
+ type: string
+http:
+ service:
+ auth: none
+ mode: direct
+ request:
+ uri: /onapapi/vnfsdk-marketplace/v1/PackageResource/csars/${csar-id}
+ method: GET
+ success_codes:
+ - 201
+ - 200
+ result_map:
+ name: $b{$.name}
+ size: $b{$.size}
+ downloadUri: $b{$.downloadUri}
+ provider: $b{$.provider}
\ No newline at end of file
--- /dev/null
+# Copyright 2018 Huawei Technologies Co., Ltd.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: vnftest-list
+description: Lists the VNF test cases in VNF Test Platform (VTP)
+
+info:
+ product: onap-elalto
+ service: vtp
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+results:
+ direction: landscape
+ attributes:
+ - name: tescase
+ description: Testcase name
+ scope: short
+ type: string
+ - name: testsuite
+ description: Test suite name
+ scope: short
+ type: string
+http:
+ service:
+ auth: none
+ mode: direct
+ request:
+ uri: /onapapi/vnfsdk-marketplace/v1/vtp/scenarios/onap-vtp/testcases
+ method: GET
+ success_codes:
+ - 201
+ - 200
+ result_map:
+ tescase: $b{$.[*].testCaseName}
+ testsuite: $b{$.[*].testSuiteName}
\ No newline at end of file
--- /dev/null
+# Copyright 2018 Huawei Technologies Co., Ltd.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: vnftest-run
+description: Runs the VNF test cases in VNF Test Platform (VTP)
+
+info:
+ product: onap-elalto
+ service: vtp
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+parameters:
+ - name: testcase-name
+ description: VNF test case name
+ type: string
+ short_option: x
+ long_option: testcase-name
+ is_optional: false
+ - name: param
+ description: VNF test case name params, and can be repeated.
+ type: map
+ short_option: y
+ long_option: param
+ is_optional: true
+ - name: testsuite-name
+ description: VNF test suite name
+ type: string
+ short_option: z
+ long_option: testsuite-name
+ is_optional: false
+results:
+ direction: portrait
+ attributes:
+ - name: executionId
+ description: Testcase execution Id
+ scope: short
+ type: string
+ - name: status
+ description: Test status
+ scope: short
+ type: string
+ default_value: $s{env:BUILD_TAG}
+ - name: startTime
+ description: Testcase startTime
+ scope: short
+ type: string
+ - name: endTime
+ description: Testcase endTime
+ scope: short
+ type: string
+http:
+ service:
+ auth: none
+ mode: direct
+ request:
+ uri: /onapapi/vnfsdk-marketplace/v1/vtp/executions
+ method: POST
+ body:
+ multipart:
+ - name: executions
+ content: '[{
+ "scenario": "onap-vtp",
+ "testSuiteName": "${testsuite-name}",
+ "testCaseName": "${testcase-name}",
+ "parameters": ${param}}]'
+ success_codes:
+ - 201
+ - 200
+ result_map:
+ executionId: $b{$.[0].executionId}
+ status: $b{$.[0].status}
+ startTime: $b{$.[0].startTime}
+ endTime: $b{$.[0].endTime}
\ No newline at end of file