diff options
author | 2017-12-11 20:34:44 +0530 | |
---|---|---|
committer | 2017-12-12 15:48:55 +0530 | |
commit | 0d97a835fa2052ded5a31e8921baf641c8e9bb57 (patch) | |
tree | 800584529f77c8ff26f05a73abd3fa71205a69a7 /products/onap-amsterdam/features/sdc/src/main/resources/open-cli-schema/vf | |
parent | 03c54a40daf75644ec0bcbc73636e3eb427c1604 (diff) |
Make Http as separate plugin
Issue-ID: CLI-66
Change-Id: I8ad78f417f6dbb00e29effdd3ed8ec1939aee81d
Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'products/onap-amsterdam/features/sdc/src/main/resources/open-cli-schema/vf')
7 files changed, 321 insertions, 0 deletions
diff --git a/products/onap-amsterdam/features/sdc/src/main/resources/open-cli-schema/vf/vf-model-certify-complete-schema-1.1.yaml b/products/onap-amsterdam/features/sdc/src/main/resources/open-cli-schema/vf/vf-model-certify-complete-schema-1.1.yaml new file mode 100644 index 00000000..06ac254c --- /dev/null +++ b/products/onap-amsterdam/features/sdc/src/main/resources/open-cli-schema/vf/vf-model-certify-complete-schema-1.1.yaml @@ -0,0 +1,31 @@ +open_cli_schema_version: 1.0 +name: vf-model-certify-complete +description: Complete certifying Virtual function + +info: + product: onap-amsterdam + service: sdc + author: ONAP CLI Team onap-discuss@lists.onap.org + + +parameters: + - name: vf-id + description: VF ID + type: string + long_option: vf-id + short_option: b + is_optional: true + +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": "Completing certification via CLI"}' + success_codes: + - 200 + diff --git a/products/onap-amsterdam/features/sdc/src/main/resources/open-cli-schema/vf/vf-model-certify-request-schema-1.1.yaml b/products/onap-amsterdam/features/sdc/src/main/resources/open-cli-schema/vf/vf-model-certify-request-schema-1.1.yaml new file mode 100644 index 00000000..5af2098e --- /dev/null +++ b/products/onap-amsterdam/features/sdc/src/main/resources/open-cli-schema/vf/vf-model-certify-request-schema-1.1.yaml @@ -0,0 +1,31 @@ +open_cli_schema_version: 1.0 +name: vf-model-certify-request +description: Request for certifying Virtual function + +info: + product: onap-amsterdam + service: sdc + author: ONAP CLI Team onap-discuss@lists.onap.org + + +parameters: + - name: vf-id + description: VF ID + type: string + long_option: vf-id + short_option: b + is_optional: true + +http: + service: + name: sdc + version: v1.0 + auth: basic + mode: direct + request: + uri: /sdc2/rest/v1/catalog/resources/${vf-id}/lifecycleState/certificationRequest + method: POST + body: '{"userRemarks": "Requesting certification via CLI"}' + success_codes: + - 200 + diff --git a/products/onap-amsterdam/features/sdc/src/main/resources/open-cli-schema/vf/vf-model-certify-start-schema-1.1.yaml b/products/onap-amsterdam/features/sdc/src/main/resources/open-cli-schema/vf/vf-model-certify-start-schema-1.1.yaml new file mode 100644 index 00000000..e7944133 --- /dev/null +++ b/products/onap-amsterdam/features/sdc/src/main/resources/open-cli-schema/vf/vf-model-certify-start-schema-1.1.yaml @@ -0,0 +1,31 @@ +open_cli_schema_version: 1.0 +name: vf-model-certify-start +description: Start certifying Virtual function + +info: + product: onap-amsterdam + service: sdc + author: ONAP CLI Team onap-discuss@lists.onap.org + + +parameters: + - name: vf-id + description: VF ID + type: string + long_option: vf-id + short_option: b + is_optional: true + +http: + service: + name: sdc + version: v1.0 + auth: basic + mode: direct + request: + uri: /sdc2/rest/v1/catalog/resources/${vf-id}/lifecycleState/startCertification + method: POST + body: '{}' + success_codes: + - 200 + diff --git a/products/onap-amsterdam/features/sdc/src/main/resources/open-cli-schema/vf/vf-model-checkin-schema-1.1.yaml b/products/onap-amsterdam/features/sdc/src/main/resources/open-cli-schema/vf/vf-model-checkin-schema-1.1.yaml new file mode 100644 index 00000000..019cab00 --- /dev/null +++ b/products/onap-amsterdam/features/sdc/src/main/resources/open-cli-schema/vf/vf-model-checkin-schema-1.1.yaml @@ -0,0 +1,31 @@ +open_cli_schema_version: 1.0 +name: vf-model-checkin +description: Checkin Virtual function + +info: + product: onap-amsterdam + service: sdc + author: ONAP CLI Team onap-discuss@lists.onap.org + + +parameters: + - name: vf-id + description: VF ID + type: string + long_option: vf-id + short_option: b + is_optional: true + +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": "Checked in via CLI"}' + success_codes: + - 200 + diff --git a/products/onap-amsterdam/features/sdc/src/main/resources/open-cli-schema/vf/vf-model-create-schema-1.1.yaml b/products/onap-amsterdam/features/sdc/src/main/resources/open-cli-schema/vf/vf-model-create-schema-1.1.yaml new file mode 100644 index 00000000..44b706d0 --- /dev/null +++ b/products/onap-amsterdam/features/sdc/src/main/resources/open-cli-schema/vf/vf-model-create-schema-1.1.yaml @@ -0,0 +1,63 @@ +open_cli_schema_version: 1.0 +name: vf-model-create +description: Create Virtual function from Vendor Software Product + +info: + product: onap-amsterdam + service: sdc + author: ONAP CLI 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: true + - 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 +http: + service: + name: sdc + version: v1.0 + auth: basic + mode: direct + request: + uri: /sdc2/rest/v1/catalog/resources + method: POST + body: '{"contactId": "${onap-username}", "vendorRelease": "1.0", "requirements": {}, "artifacts": {}, "capabilities": {}, "componentInstancesProperties": {}, "deploymentArtifacts": {}, "icon": "defaulticon", "vendorName": "${vendor-name}", "description": "${description}", "tags": ["CLI", "${name}"], "groups": [], "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": []}' + success_codes: + - 201 + result_map: + ID: $b{$.uniqueId} + diff --git a/products/onap-amsterdam/features/sdc/src/main/resources/open-cli-schema/vf/vf-model-list-schema-1.1.yaml b/products/onap-amsterdam/features/sdc/src/main/resources/open-cli-schema/vf/vf-model-list-schema-1.1.yaml new file mode 100644 index 00000000..48619c87 --- /dev/null +++ b/products/onap-amsterdam/features/sdc/src/main/resources/open-cli-schema/vf/vf-model-list-schema-1.1.yaml @@ -0,0 +1,70 @@ +open_cli_schema_version: 1.0 +name: vf-model-list +description: List the VF resource model in SDC + +info: + product: onap-amsterdam + service: sdc + author: ONAP CLI Team onap-discuss@lists.onap.org + + +results: + direction: landscape + attributes: + - name: uuid + description: UUID + type: string + scope: short + - name: uniqueid + 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: 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} + uniqueid: $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} diff --git a/products/onap-amsterdam/features/sdc/src/main/resources/open-cli-schema/vf/vf2vfmodule-model-list-schema-1.1.yaml b/products/onap-amsterdam/features/sdc/src/main/resources/open-cli-schema/vf/vf2vfmodule-model-list-schema-1.1.yaml new file mode 100644 index 00000000..ae151279 --- /dev/null +++ b/products/onap-amsterdam/features/sdc/src/main/resources/open-cli-schema/vf/vf2vfmodule-model-list-schema-1.1.yaml @@ -0,0 +1,64 @@ +open_cli_schema_version: 1.0 +name: vf2vfmodule-model-list +description: List the VF modules in a given VF model in SDC + +info: + product: onap-amsterdam + service: sdc + author: ONAP CLI Team onap-discuss@lists.onap.org + + +parameters: + - name: vf-id + description: VF uuid + type: string + short_option: z + long_option: vf-id + is_optional: false + +results: + direction: landscape + attributes: + - name: vsp-uuid + description: VSP uuid + type: string + scope: short + - name: vsp-version + description: VSP version + type: string + scope: short + - 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: + service: + name: sdc + version: v1.0 + auth: basic + mode: direct + 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} + vsp-uuid: $b{$.csarUUID} + vsp-version: $b{$.csarVersion}
\ No newline at end of file |