aboutsummaryrefslogtreecommitdiffstats
path: root/docs/development/actors
diff options
context:
space:
mode:
authorRam Krishna Verma <ram_krishna.verma@bell.ca>2021-09-20 15:05:50 -0400
committerLiam Fallon <liam.fallon@est.tech>2021-09-22 09:27:47 +0000
commit66d49f7c0c03cbcdb97f97cf5a3ca9472808ca1f (patch)
tree18472f4fb5df2dc8e65149ee12b09c0691bb4ce1 /docs/development/actors
parentbfdcee1e79065b3e8c2d080aede72941946a8e01 (diff)
Update cds actor document
Updating the cds actor document to use -u <user:password> than -H Authorization header with base64 encoded user/password. Issue-ID: POLICY-3157 Change-Id: Id31df5a95b7b4861d05365fbb9c361df773bbf90 Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
Diffstat (limited to 'docs/development/actors')
-rw-r--r--docs/development/actors/cds/cds.rst14
1 files changed, 7 insertions, 7 deletions
diff --git a/docs/development/actors/cds/cds.rst b/docs/development/actors/cds/cds.rst
index eea6247b..d991f6c5 100644
--- a/docs/development/actors/cds/cds.rst
+++ b/docs/development/actors/cds/cds.rst
@@ -153,7 +153,7 @@ REST equivalent of the gRPC request from Policy to CDS to execute a CBA.
curl -X POST \
'http://{{ip}}:{{port}}/api/v1/execution-service/process' \
- -H 'Authorization: Basic Y2NzZGthcHBzOmNjc2RrYXBwcw==' \
+ -u 'ccsdkapps:ccsdkapps' \
-H 'Content-Type: application/json' \
-H 'cache-control: no-cache' \
-d '{
@@ -193,7 +193,7 @@ Sample CBA execute request generated by Policy for PNF target type when "data" f
curl -X POST \
'http://{{ip}}:{{port}}/api/v1/execution-service/process' \
- -H 'Authorization: Basic Y2NzZGthcHBzOmNjc2RrYXBwcw==' \
+ -u 'ccsdkapps:ccsdkapps' \
-H 'Content-Type: application/json' \
-H 'cache-control: no-cache' \
-d '{
@@ -236,7 +236,7 @@ Sample CBA execute request generated by Policy for VNF target type when "data" f
curl -X POST \
'http://{{ip}}:{{port}}/api/v1/execution-service/process' \
- -H 'Authorization: Basic Y2NzZGthcHBzOmNjc2RrYXBwcw==' \
+ -u 'ccsdkapps:ccsdkapps' \
-H 'Content-Type: application/json' \
-H 'cache-control: no-cache' \
-d '{
@@ -342,7 +342,7 @@ In the below rest endpoint, the hostname points to K8S service "policy-api" and
curl POST 'https://{$POLICY_API_URL}:{$POLICY_API_SERVICE_PORT}/policy/api/v1/policytypes/onap.policies.controlloop.operational.common.Drools/versions/1.0.0/policies/operational.modifyconfig/versions/1.0.0' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
- -H 'Authorization: Basic aGVhbHRoY2hlY2s6ZmlyZWFudHNfZGV2QHBvbGljeSE=' \
+ -u 'healthcheck:zb!XztG34' \
-d '{$vfw-tosca-policy}
Note: In order to create an operational policy when using APEX PDP use the policy-type:
@@ -359,7 +359,7 @@ In the rest endpoint URI, the hostname points to the service "policy-pap" and in
curl POST 'https://{$POLICY_PAP_URL}:{$POLICY_PAP_SERVICE_PORT}/policy/pap/v1/pdps/deployments/batch' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
- -H 'Authorization: Basic {$auth}' \
+ -u 'healthcheck:zb!XztG34' \
-d '{
"groups": [
{
@@ -384,10 +384,10 @@ To view the configured policies use the below REST API.
curl GET 'https://{$POLICY_API_URL}:{$POLICY_API_SERVICE_PORT}/policy/api/v1/policytypes/onap.policies.controlloop.operational.common.Drools/versions/1.0.0/policies/operational.modifyconfig/versions/1.0.0' \
-H 'Accept: application/json' \
- -H 'Authorization: Basic {$auth}'
+ -u 'healthcheck:zb!XztG34'
.. code-block:: bash
curl --location --request GET 'https://{$POLICY_PAP_URL}:{$POLICY_PAP_SERVICE_PORT}/policy/pap/v1/pdps' \
-H 'Accept: application/json' \
- -H 'Authorization: Basic {$auth}'
+ -u 'healthcheck:zb!XztG34'