Update VFC cli command about vfc-nslcm-query-multinslcmopoccs 05/97605/1
authoryangyan <yangyanyj@chinamobile.com>
Fri, 25 Oct 2019 08:26:13 +0000 (16:26 +0800)
committeryangyan <yangyanyj@chinamobile.com>
Fri, 25 Oct 2019 08:26:20 +0000 (16:26 +0800)
Change-Id: Ife284ac1fa5666f189c855b126151a1d4dea86bd
Issue-ID: CLI-241
Signed-off-by: yangyan <yangyanyj@chinamobile.com>
products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-query-multinslcmopoccs.yaml [new file with mode: 0644]

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
new file mode 100644 (file)
index 0000000..7f5f4b0
--- /dev/null
@@ -0,0 +1,65 @@
+# Copyright (c) 2019, CMCC Technologies Co., Ltd.
+# Licensed under the Apache License, Version 2.0 (the "License")
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: vfc-nslcm-query-multinslcmopoccs
+description: Query status information about multiple NS lifecycle management operation occurrences.
+
+info:
+  product: onap-dublin
+  service: vfc
+  author: ONAP VFC Team (yangyanyj@chinamobile.com)
+
+results:
+  direction: portrait
+  attributes:
+    - name: nslcm-opocc-id
+      description: nslcm-opocc-id
+      scope: short
+      type: string
+    - name: operation-state
+      description: operation-state
+      scope: short
+      type: string
+    - name: ns-instance-id
+      description: ns-instance-id
+      scope: short
+      type: string
+    - name: lcm-operation-type
+      description: lcm-operation-type
+      scope: short
+      type: stringstatusEnteredTime
+    - name: status-entered-time
+      description: status-entered-time
+      scope: short
+      type: string
+
+http:
+  service:
+    auth: none
+    mode: direct
+  request:
+    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}