diff options
author | 2017-08-17 18:55:41 +0530 | |
---|---|---|
committer | 2017-08-17 18:56:13 +0530 | |
commit | 99998dd49663f4bc73e65e79a34fdbcc2dff1252 (patch) | |
tree | 2bcbe3308f4718aa744f72301c3786402016a05c /plugins/aai/src/main/resources/onap-cli-schema/service-type | |
parent | 29ede3adb4aedb3810b19d7a6c2ad1f60bcdc79d (diff) |
Add DELETE for customer and service
CLI-13
Change-Id: Ie7276ddc4c7607c28c67f68d5f057e8bde3c8a5f
Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'plugins/aai/src/main/resources/onap-cli-schema/service-type')
2 files changed, 38 insertions, 0 deletions
diff --git a/plugins/aai/src/main/resources/onap-cli-schema/service-type/service-type-delete-schema.yaml b/plugins/aai/src/main/resources/onap-cli-schema/service-type/service-type-delete-schema.yaml new file mode 100644 index 00000000..a2eecd93 --- /dev/null +++ b/plugins/aai/src/main/resources/onap-cli-schema/service-type/service-type-delete-schema.yaml @@ -0,0 +1,33 @@ +onap_cmd_schema_version: 1.0 +name: service-type-delete +description: Delete a service type from Onap +service: + name: aai + version: v8 + auth: basic + mode: direct + +parameters: + - name: service-type-id + description: Onap service type uuid + type: uuid + short_option: x + long_option: service-type-id + is_optional: true + - name: resource-version + description: Onap service resource version + type: uuid + short_option: y + long_option: resource-version + is_optional: true +http: + request: + uri: /aai/v8/service-design-and-creation/services/service/${service-type-id}?resource-version=${resource-version} + queries: + resource-version: ${resource-version} + method: DELETE + success_codes: + - 204 + - 404 + sample_response: + body: '' diff --git a/plugins/aai/src/main/resources/onap-cli-schema/service-type/service-type-list-schema.yaml b/plugins/aai/src/main/resources/onap-cli-schema/service-type/service-type-list-schema.yaml index fbf34291..7be38f1c 100644 --- a/plugins/aai/src/main/resources/onap-cli-schema/service-type/service-type-list-schema.yaml +++ b/plugins/aai/src/main/resources/onap-cli-schema/service-type/service-type-list-schema.yaml @@ -18,6 +18,10 @@ results: description: Onap cloud service scope: short type: string + - name: resource-version + description: Onap cloud service resource version + scope: short + type: string http: request: uri: /aai/v8/service-design-and-creation/services @@ -27,5 +31,6 @@ http: result_map: service-type: $b{service.[*].service-description} service-type-id: $b{service.[*].service-id} + resource-version: $b{service.[*].resource-version} sample_response: body: '{"service":[{"service-id":"db3403eb-5c94-4295-bb00-a9dba8964ab3","service-description":"vFW","resource-version":"1500729865"},{"service-id":"33737156-ff09-4b3d-884a-fe9a372afa4e","service-description":"vLB","resource-version":"1500729866"}]}' |