From 66d49f7c0c03cbcdb97f97cf5a3ca9472808ca1f Mon Sep 17 00:00:00 2001 From: Ram Krishna Verma Date: Mon, 20 Sep 2021 15:05:50 -0400 Subject: [PATCH] Update cds actor document Updating the cds actor document to use -u than -H Authorization header with base64 encoded user/password. Issue-ID: POLICY-3157 Change-Id: Id31df5a95b7b4861d05365fbb9c361df773bbf90 Signed-off-by: Ram Krishna Verma --- docs/development/actors/cds/cds.rst | 14 +++++++------- 1 file 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' -- 2.16.6