From 856f003e49a0644917f15071de8335f77a6461dd Mon Sep 17 00:00:00 2001 From: "stark, steven" Date: Wed, 17 Jun 2020 14:09:08 -0700 Subject: [VV] Add CSAR download Issue-ID: VVP-422 Signed-off-by: stark, steven Change-Id: I08a2106911939fb25b221fa9cbd1193537f4849b --- .../onap_client/sdc/catalog/service_catalog.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'onap-client/onap_client/sdc/catalog') diff --git a/onap-client/onap_client/sdc/catalog/service_catalog.py b/onap-client/onap_client/sdc/catalog/service_catalog.py index aeaa3da..c40306f 100644 --- a/onap-client/onap_client/sdc/catalog/service_catalog.py +++ b/onap-client/onap_client/sdc/catalog/service_catalog.py @@ -495,4 +495,26 @@ CATALOG_RESOURCES = { sdc_properties.GLOBAL_SDC_PASSWORD, ), }, + "GET_SDC_CSAR": { + "verb": "GET", + "description": "Returns the CSAR for a service.", + "uri": partial( + "{endpoint}{service_path}/{catalog_service_id}/artifacts/{csar_artifact_id}".format, + endpoint=sdc_properties.SDC_BE_ENDPOINT, + service_path=sdc_properties.SDC_CATALOG_SERVICES_PATH, + ), + "uri-parameters": ["catalog_service_id", "csar_artifact_id"], + "success_code": 200, + "headers": { + "Accept": "application/json", + "Content-Type": "application/json", + "USER_ID": sdc_properties.SDC_DESIGNER_USER_ID, + "X-TransactionId": str(uuid.uuid4()), + "X-FromAppId": application_id, + }, + "auth": ( + sdc_properties.GLOBAL_SDC_USERNAME, + sdc_properties.GLOBAL_SDC_PASSWORD, + ), + }, } -- cgit 1.2.3-korg