X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=genericparser%2Fpub%2Fmsapi%2Fsdc.py;h=e95c1cab59b79f79be968cb24bb30e1c4bffc556;hb=444b802beadb9a7f1f5b03551b67f35cce1d6179;hp=f7b927195c3a2d26ca87b4fa4219c00e148146e6;hpb=affcd0828f0dd0941ba546aca5bce05e8ee1a598;p=modeling%2Fetsicatalog.git diff --git a/genericparser/pub/msapi/sdc.py b/genericparser/pub/msapi/sdc.py index f7b9271..e95c1ca 100644 --- a/genericparser/pub/msapi/sdc.py +++ b/genericparser/pub/msapi/sdc.py @@ -30,7 +30,7 @@ DISTRIBUTED = "DISTRIBUTED" def call_sdc(resource, method, content=''): additional_headers = { - 'X-ECOMP-InstanceID': 'VFC', + 'X-ECOMP-InstanceID': 'Modeling', } return restcall.call_req(base_url=SDC_BASE_URL, user=SDC_USER, @@ -50,7 +50,7 @@ sample of return value "invariantUUID": "63eaec39-ffbe-411c-a838-448f2c73f7eb", "name": "underlayvpn", "version": "2.0", - "toscaModelURL": "/sdc/v1/genericparser/resources/c94490a0-f7ef-48be-b3f8-8d8662a37236/toscaModel", + "toscaModelURL": "/sdc/v1/catalog/resources/c94490a0-f7ef-48be-b3f8-8d8662a37236/toscaModel", "category": "Volte", "subCategory": "VolteVF", "resourceType": "VF", @@ -62,7 +62,7 @@ sample of return value def get_artifacts(asset_type): - resource = "/sdc/v1/genericparser/{assetType}" + resource = "/sdc/v1/catalog/{assetType}" resource = resource.format(assetType=asset_type) ret = call_sdc(resource, "GET") if ret[0] != 0: @@ -84,7 +84,7 @@ def get_artifact(asset_type, csar_id): def delete_artifact(asset_type, asset_id, artifact_id): - resource = "/sdc/v1/genericparser/{assetType}/{uuid}/artifacts/{artifactUUID}" + resource = "/sdc/v1/catalog/{assetType}/{uuid}/artifacts/{artifactUUID}" resource = resource.format(assetType=asset_type, uuid=asset_id, artifactUUID=artifact_id) ret = call_sdc(resource, "DELETE") if ret[0] != 0: @@ -95,7 +95,7 @@ def delete_artifact(asset_type, asset_id, artifact_id): def download_artifacts(download_url, local_path, file_name): additional_headers = { - 'X-ECOMP-InstanceID': 'VFC', + 'X-ECOMP-InstanceID': 'Modeling', 'accept': 'application/octet-stream' } ret = restcall.call_req(base_url=SDC_BASE_URL,