diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/so/src/main/resources/onap-cli-schema/services/service-delete-schema-1.1.yaml | 25 | ||||
-rw-r--r-- | plugins/so/src/test/resources/onap-cli-sample/services/service-delete-sample-1.1.yaml | 8 |
2 files changed, 33 insertions, 0 deletions
diff --git a/plugins/so/src/main/resources/onap-cli-schema/services/service-delete-schema-1.1.yaml b/plugins/so/src/main/resources/onap-cli-schema/services/service-delete-schema-1.1.yaml new file mode 100644 index 00000000..e7791d56 --- /dev/null +++ b/plugins/so/src/main/resources/onap-cli-schema/services/service-delete-schema-1.1.yaml @@ -0,0 +1,25 @@ +open_cli_schema_version: 1.0 +name: service-delete +description: Delete a service instance +version: onap-1.1 +service: + name: so + version: v2 + auth: basic + mode: direct + +parameters: + - name: service-instance-id + description: unique id for service instance + type: string + short_option: x + long_option: service-instace-id + is_optional: false + +http: + request: + uri: /ecomp/mso/infra/serviceInstances/v2/${service-instance-id} + method: DELETE + body: '{"requestDetails": {"modelInfo": {"modelType": "service", "modelInvariantId": "ff3514e3-5a33-55df-13ab-12abad84e7ff", "modelName": "Test","modelVersion": "1.0"}, "requestInfo":{"source": "VID"}}}' + success_codes: + - 204
\ No newline at end of file diff --git a/plugins/so/src/test/resources/onap-cli-sample/services/service-delete-sample-1.1.yaml b/plugins/so/src/test/resources/onap-cli-sample/services/service-delete-sample-1.1.yaml new file mode 100644 index 00000000..cc114ac0 --- /dev/null +++ b/plugins/so/src/test/resources/onap-cli-sample/services/service-delete-sample-1.1.yaml @@ -0,0 +1,8 @@ +onap_cli_sample_version: 1.0 + +name: service-delete +version: onap-1.1 +samples: + sample1: + name: delete a service instance + input: -h https://locahost:8080 -u InfraPortalClient -p password1$ -s 56AA445
\ No newline at end of file |