diff options
Diffstat (limited to 'products/onap-dublin/features/vfc/src/main/resources/open-cli-schema')
7 files changed, 44 insertions, 40 deletions
diff --git a/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-get-ns-descriptors-schema.yaml b/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-get-ns-descriptors-schema.yaml index e0036a8f..dbb14e4f 100644 --- a/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-get-ns-descriptors-schema.yaml +++ b/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/catalog/vfc-catalog-get-ns-descriptors-schema.yaml @@ -32,6 +32,10 @@ parameters: results: direction: landscape attributes: + - name: id + description: ns package id + scope: short + type: string - name: nsd-info-id description: nsd-info-id scope: short @@ -40,25 +44,25 @@ results: description: nsd-name scope: short type: string - - name: nsd-description - description: nsd-description + - name: nsd-onboarding-state + description: nsd-onboarding-state scope: short type: string - - name: ns-package-id - description: ns-package-id + - name: vnf-package-ids + description: vnf-package-ids scope: short - type: string - - name: sdc-csar-id - description: sdc-csar-id + type: array + - name: pnf-package-ids + description: pnf-package-ids scope: short - type: string + type: array http: service: auth: none mode: direct request: - uri: api/nsd/v1/ns_descriptors/${nsd-info-id} + uri: /api/nsd/v1/ns_descriptors/${nsd-info-id} method: GET context: remove_empty_node: true @@ -69,8 +73,9 @@ http: success_codes: - 200 result_map: + id: $b{$.id} nsd-info-id: $b{$.nsdId} nsd-name: $b{$.nsdName} - nsd-description: $b{$.nsdDescription} - ns-package-id: $b{$.nsPackageId} - sdc-csar-id: $b{$.sdcCsarId } + nsd-onboarding-state: $b{$.nsdOnboardingState} + vnf-package-ids: $b{$.vnfPkgIds} + pnf-package-ids: $b{$.pnfdInfoIds} diff --git a/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-get-schema.yaml b/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-get-schema.yaml index 984a1dc7..b17a45fa 100644 --- a/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-get-schema.yaml +++ b/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-get-schema.yaml @@ -22,7 +22,7 @@ info: author: ONAP HPA Integration Team (haibin.huang@intel.com) results: - direction: portrait + direction: landscape attributes: - name: ns-instance-id description: ns-instance-id @@ -57,7 +57,7 @@ http: success_codes: - 200 result_map: - ns-instance-id: $b{$.nsInstanceId} - ns-name: $b{$.nsName} - description: $b{$.description} - nsd-id: $b{$.nsdId} + ns-instance-id: $b{$.[*].nsInstanceId} + ns-name: $b{$.[*].nsName} + description: $b{$.[*].description} + nsd-id: $b{$.[*].nsdId}
\ No newline at end of file diff --git a/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-query-multinslcmopoccs.yaml b/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-query-multinslcmopoccs.yaml index 3634a714..ccf3ed62 100644 --- a/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-query-multinslcmopoccs.yaml +++ b/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-query-multinslcmopoccs.yaml @@ -19,14 +19,14 @@ info: author: ONAP VFC Team (yangyanyj@chinamobile.com) results: - direction: portrait + direction: landscape attributes: - name: nslcm-opocc-id description: nslcm-opocc-id scope: short type: string - - name: operation-state - description: operation-state + - name: ns-operation-state + description: ns-operation-state scope: short type: string - name: ns-instance-id @@ -37,8 +37,8 @@ results: description: lcm-operation-type scope: short type: string - - name: status-entered-time - description: status-entered-time + - name: state-entered-time + description: state-entered-time scope: short type: string @@ -47,19 +47,18 @@ http: auth: none mode: direct request: - uri: api/nslcm/v1/ns_lcm_op_occs + uri: /api/nslcm/v1/ns_lcm_op_occs method: GET - context: - remove_empty_node: true - body: '{}' headers: Content-Type: application/json Accept: application/json + success_codes: - 200 + result_map: - nslcm-opocc-id: $b{$.nslcmOpoccId} - ns-operation-state: $b{$.operationState} - ns-instance-id: $b{$.nsInstanceId} - lcm-operation-type-id: $b{$.lcmOperationType} - status-entered-time: $b{$.statusEnteredTime} + nslcm-opocc-id: $b{$.[*].id} + ns-operation-state: $b{$.[*].operationState} + ns-instance-id: $b{$.[*].nsInstanceId} + lcm-operation-type: $b{$.[*].operation} + state-entered-time: $b{$.[*].stateEnteredTime} diff --git a/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-sol005-create-schema.yaml b/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-sol005-create-schema.yaml index fde5fc17..0b6dd99f 100644 --- a/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-sol005-create-schema.yaml +++ b/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-sol005-create-schema.yaml @@ -60,7 +60,7 @@ http: auth: none mode: direct request: - uri: api/nslcm/v1/ns_instances + uri: /api/nslcm/v1/ns_instances method: POST context: remove_empty_node: true diff --git a/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-sol005-delete-schema.yaml b/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-sol005-delete-schema.yaml index 1d131cd0..7ede7160 100644 --- a/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-sol005-delete-schema.yaml +++ b/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-sol005-delete-schema.yaml @@ -33,7 +33,7 @@ http: auth: none mode: direct request: - uri: api/nslcm/v1/ns_instances/${ns-instance-id} + uri: /api/nslcm/v1/ns_instances/${ns-instance-id} method: DELETE context: remove_empty_node: true diff --git a/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-sol005-get-schema.yaml b/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-sol005-get-schema.yaml index 00cb8f5e..bb83ed85 100644 --- a/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-sol005-get-schema.yaml +++ b/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-sol005-get-schema.yaml @@ -22,7 +22,7 @@ info: author: ONAP VFC Team (yangyanyj@chinamobile.com) results: - direction: portrait + direction: landscape attributes: - name: ns-instance-id description: ns-instance-id @@ -46,7 +46,7 @@ http: auth: none mode: direct request: - uri: api/nslcm/v1/ns_instances + uri: /api/nslcm/v1/ns_instances method: GET context: remove_empty_node: true @@ -57,7 +57,7 @@ http: success_codes: - 200 result_map: - ns-instance-id: $b{$.nsInstanceId} - ns-name: $b{$.nsName} - description: $b{$.description} - nsd-id: $b{$.nsdId} + ns-instance-id: $b{$.[*].id} + ns-name: $b{$.[*].nsInstanceName} + description: $b{$.[*].nsInstanceDescription} + nsd-id: $b{$.[*].nsdId} diff --git a/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-sol005-instantiate-schema.yaml b/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-sol005-instantiate-schema.yaml index d6738186..43eb7755 100644 --- a/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-sol005-instantiate-schema.yaml +++ b/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-sol005-instantiate-schema.yaml @@ -54,7 +54,7 @@ http: auth: none mode: direct request: - uri: api/nslcm/v1/ns_instances/${ns-instance-id}/instantiate + uri: /api/nslcm/v1/ns_instances/${ns-instance-id}/instantiate method: POST context: remove_empty_node: true |