aboutsummaryrefslogtreecommitdiffstats
path: root/products/onap-elalto/features/policy/src/main/resources/open-cli-schema/policy/policy-list-outdated-schema-elalto.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'products/onap-elalto/features/policy/src/main/resources/open-cli-schema/policy/policy-list-outdated-schema-elalto.yaml')
-rw-r--r--products/onap-elalto/features/policy/src/main/resources/open-cli-schema/policy/policy-list-outdated-schema-elalto.yaml69
1 files changed, 25 insertions, 44 deletions
diff --git a/products/onap-elalto/features/policy/src/main/resources/open-cli-schema/policy/policy-list-outdated-schema-elalto.yaml b/products/onap-elalto/features/policy/src/main/resources/open-cli-schema/policy/policy-list-outdated-schema-elalto.yaml
index 4d607f30..0b847b0f 100644
--- a/products/onap-elalto/features/policy/src/main/resources/open-cli-schema/policy/policy-list-outdated-schema-elalto.yaml
+++ b/products/onap-elalto/features/policy/src/main/resources/open-cli-schema/policy/policy-list-outdated-schema-elalto.yaml
@@ -1,4 +1,4 @@
-# Copyright 2019 Intel Corporation.
+# Copyright 2019 Huawei 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.
@@ -13,53 +13,42 @@
# limitations under the License.
open_cli_schema_version: 1.0
-name: policy-list-outdated
-description: List policies
+name: policy-list
+description: Retrieve all version details of a policy created for a particular policy type version
info:
product: onap-elalto
service: policy
- author: ONAP HPA Team onap-discuss@lists.onap.org
+ author: ONAP CLI Team onap-discuss@lists.onap.org
parameters:
- - name: policy-name
- description: ONAP policy name
+ - name: policy-type-id
+ description: Policy type ID
type: string
- long_option: policy-name
+ long_option: policy-type-id
short_option: x
is_optional: false
- default_value: .*
- - name: config-attributes
- description: Configuration Attributes
- type: json
- long_option: config-attributes
- short_option: A
- is_optional: true
- default_value: {}
+ - name: version-id
+ description: Policy type version ID
+ type: string
+ long_option: version-id
+ short_option: y
+ is_optional: false
+ - name: policy-id
+ description: Policy ID
+ type: string
+ long_option: policy-id
+ short_option: z
+ is_optional: false
results:
direction: landscape
attributes:
- - name: name
- description: Policy Name
- scope: short
- type: string
- - name: type
- description: Policy type
+ - name: Policy properties
+ description: Policy properties
scope: short
- type: string
- - name: config
- description: Policy configuration
- scope: short
- type: json
- - name: version
- description: Policy version
- scope: long
- type: string
- - name: rules
- description: Policy rules
- scope: long
type: json
+
http:
service:
name: policy
@@ -67,22 +56,14 @@ http:
auth: basic
mode: direct
request:
- uri: /pdp/api/getConfig
- method: POST
- body: '{"configAttributes": "${config-attributes}", "policyName": "${policy-name}"}'
+ uri: /policy/api/v1/policytypes/${policy-type-id}/versions/${version-id}/policies/${policy-id}
+ method: GET
headers:
Accept: application/json
- ClientAuth: cHl0aG9uOnRlc3Q=
Environment: TEST
-
success_codes:
- 200
result_map:
- name: $b{$.[*].policyName}
- type: $b{$.[*].policyType}
- version: $b{$.[*].policyVersion}
- config: $b{$.[*].config}
- rules: $b{$.[*].matchingConditions}
-
+ Policy properties: $b{$.[*]}