diff options
author | Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com> | 2017-10-31 15:53:22 +0530 |
---|---|---|
committer | Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com> | 2017-10-31 15:53:22 +0530 |
commit | d8ba74eb2bd02e87ce7083a6f2cc21a9991abfed (patch) | |
tree | 1340488cce5eac5fde7b1b23edbfe0399f0e758b /plugins/sdc/src/main/resources/onap-cli-schema/vf | |
parent | bc5cb763d06f656530c7661f747a874b36d81d62 (diff) |
Add support to list modules in VF
CLI-57
Change-Id: Ia65a642f66e5a56f7249146f1e96b6e82d6a0e18
Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'plugins/sdc/src/main/resources/onap-cli-schema/vf')
-rw-r--r-- | plugins/sdc/src/main/resources/onap-cli-schema/vf/vf2vfmodule-model-list-schema-1.1.yaml | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/plugins/sdc/src/main/resources/onap-cli-schema/vf/vf2vfmodule-model-list-schema-1.1.yaml b/plugins/sdc/src/main/resources/onap-cli-schema/vf/vf2vfmodule-model-list-schema-1.1.yaml new file mode 100644 index 00000000..a4092d41 --- /dev/null +++ b/plugins/sdc/src/main/resources/onap-cli-schema/vf/vf2vfmodule-model-list-schema-1.1.yaml @@ -0,0 +1,49 @@ +open_cli_schema_version: 1.0 +name: vf2vfmodule-model-list +description: List the VF modules in a given VF model in SDC +version: onap-1.1 +service: + name: sdc + version: v1.0 + auth: basic + mode: direct + +parameters: + - name: vf-id + description: VF uuid + type: string + short_option: z + long_option: vf-id + is_optional: false + +results: + direction: landscape + attributes: + - name: module-uuid + description: UUID + type: string + scope: short + - name: module-invariant-uuid + description: Invariant UUID + type: string + scope: short + - name: module-name + description: name + type: string + scope: short + - name: module-version + description: version + type: string + scope: short + +http: + request: + uri: /sdc2/rest/v1/catalog/resources/${vf-id} + method: GET + success_codes: + - 200 + result_map: + module-uuid: $b{groups.[?(@.type == 'org.openecomp.groups.VfModule')].groupUUID} + module-name: $b{groups.[?(@.type == 'org.openecomp.groups.VfModule')].name} + module-version: $b{groups.[?(@.type == 'org.openecomp.groups.VfModule')].version} + module-invariant-uuid: $b{groups.[?(@.type == 'org.openecomp.groups.VfModule')].invariantUUID} |