From 030532ce832fa340d3dc051aac8b0eecf85b4e10 Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Tue, 31 Oct 2017 15:48:24 +0530 Subject: Add support for listing service models CLI-57 Change-Id: I6c402ab319d65d558f83c60c173c14b33d3034bd Signed-off-by: Kanagaraj Manickam k00365106 --- .../service-model-list-schema-1.1.yaml | 57 ++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 plugins/sdc/src/main/resources/onap-cli-schema/service-model/service-model-list-schema-1.1.yaml (limited to 'plugins/sdc/src/main/resources/onap-cli-schema/service-model') diff --git a/plugins/sdc/src/main/resources/onap-cli-schema/service-model/service-model-list-schema-1.1.yaml b/plugins/sdc/src/main/resources/onap-cli-schema/service-model/service-model-list-schema-1.1.yaml new file mode 100644 index 00000000..315f800f --- /dev/null +++ b/plugins/sdc/src/main/resources/onap-cli-schema/service-model/service-model-list-schema-1.1.yaml @@ -0,0 +1,57 @@ +open_cli_schema_version: 1.0 +name: service-model-list +description: List the service model in SDC +version: onap-1.1 +service: + name: sdc + version: v1.0 + auth: basic + mode: direct + +results: + direction: landscape + attributes: + - name: uuid + description: UUID + 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: + request: + uri: /sdc2/rest/v1/followed + method: GET + success_codes: + - 200 + result_map: + uuid: $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} + -- cgit 1.2.3-korg