Update cds actor document 72/124372/2
authorRam Krishna Verma <ram_krishna.verma@bell.ca>
Mon, 20 Sep 2021 19:05:50 +0000 (15:05 -0400)
committerLiam Fallon <liam.fallon@est.tech>
Wed, 22 Sep 2021 09:27:47 +0000 (09:27 +0000)
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>
docs/development/actors/cds/cds.rst

index eea6247..d991f6c 100644 (file)
@@ -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'