diff options
Diffstat (limited to 'products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/nslcm')
7 files changed, 52 insertions, 42 deletions
diff --git a/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-get-jobid.yaml b/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-get-jobid.yaml index a35c508d..d15cd5cb 100644 --- a/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-get-jobid.yaml +++ b/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-get-jobid.yaml @@ -18,19 +18,29 @@ info: service: vfc author: ONAP VFC Team (yangyanyj@chinamobile.com) +parameters: + - name: ns-job-id + description: ns job id + type: string + short_option: i + long_option: ns-job-id + is_optional: false + results: direction: portrait attributes: - name: ns-job-id - description: ns-job-id + description: ns job id scope: short type: string - - name: ns-name - description: ns-name + + - name: job-status + description: job status scope: short type: string - - name: description - description: description + + - name: job-progress + description: job progress scope: short type: string @@ -39,7 +49,7 @@ http: auth: none mode: direct request: - uri: /api/nsd/v1/ns_descriptors + uri: /api/nslcm/v1/jobs/${ns-job-id} method: GET context: remove_empty_node: true @@ -49,7 +59,8 @@ http: Accept: application/json success_codes: - 200 + result_map: - ns-job-id: $b{$.ns-job-id} - ns-name: $b{$.nsName} - description: $b{$.description} + ns-job-id: $b{$.jobId} + job-status: $b{$.responseDescriptor.status} + job-progress: $b{$.responseDescriptor.progress}
\ No newline at end of file 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..f913d7b1 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 @@ -28,8 +28,8 @@ parameters: short_option: c long_option: ns-csar-uuid is_optional: false - - name: ns-csar-name - description: ns's name of csar + - name: ns-name + description: ns's name of create type: string short_option: n long_option: ns-csar-name @@ -60,20 +60,20 @@ 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 body: '{ "nsdId": "${ns-csar-uuid}", - "nsName": "${ns-csar-name}", + "nsName": "${ns-name}", "nsDescription": "description" }' headers: Content-Type: application/json Accept: application/json - HTTP_GLOBALCUSTOMERID: '${customer-name}' - HTTP_SERVICETYPE: '${service-type}' + GLOBALCUSTOMERID: '${customer-name}' + SERVICETYPE: '${service-type}' success_codes: - 201 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 |