Hi Ankit,

Sorry for the late response;
I verified this is correct, as I replied in SDC weekly.

Thanks
Ofir

From: Ankit Bhatt [mailto:[email protected]]
Sent: Wednesday, May 22, 2019 2:22 PM
To: Sonsino, Ofir <[email protected]>
Cc: [email protected]; [email protected]; Amit Sinha 
<[email protected]>
Subject: SDC API Related Query | How to Identify Associated VSP and VSP Version 
based on Resource Details fetched from Service Data

Hi,

Working on copy services from one environment to another for Casablanca 
release. I am using rest calls, GET calls from Source and POST/PUT Calls to 
Target, to perform this operation.


  *   Have a query about finding the associated VSP (VSP ID & VSP Version) with 
Resource (Added in Service Composition):
     *   In my source system, I have performed following steps and created 
service: (Created from UI)
        *   Created VSP named VSP1 and Version 1.0 (Certified)
        *   Created Resource R1 from VSP VSP1 - Version 1.0 (Certified)
        *   Created Service S1 and added Resource R1 in composition
        *   Certified Service S1 and Distributed
        *   Now I have updated VSP VSP1 and created multiple versions of it and 
certified all of them. Let's say now VSP1 is having versions named 1.0, 2.0, 
3.0, 4.0, 5.0
        *   But my Service S1 is having Resource R1, which is created from VSP 
VSP1 - Version named 1.0
     *   Now I want to get all data(VSP, Resource, Service) related to this 
Service S1:
        *   I am having data only related to Service S1: Service Name and 
Version
        *   I am fetching service details using above data (by get call - 
/sdc2/rest/v1/catalog/services/serviceName/{svcNormalizedName}/serviceVersion/{svcVersion})
        *   From above get call response, I can get all the associated 
resources, by iterating each of them I can get particular resource details (by 
get call - 
/sdc2/rest/v1/catalog/services/serviceName/{svcNormalizedName}/serviceVersion/{svcVersion})
        *   Resource Details (GET 
/sdc2/rest/v1/catalog/services/serviceName/{svcNormalizedName}/serviceVersion/{svcVersion})
 response holds below two fields and values:
           *   csarUUID: "b7e8040c22604a8d90320ab81e8c9cbf" - verified this id 
- it looks similar to the associated VSP ID, could you please confirm if my 
understanding is right?
           *   csarVersion: "1.0" -  verified this - it looks similar to the 
associated VSP's version name, could you please confirm if my understanding is 
right?
        *   If above is not related to associated VSP and VSP Version, could 
you please guide me how to find associated VSP ID and VSP Version from Resource 
Data?


Ankit Bhatt
Software Development Specialist,
Software Engineering,
Open Network - Amdocs Technology

+91 20 40154762 (office)
+91 8160014292(mobile)

[cid:[email protected]]

Did you know that Amdocs is a Platinum member of 
ONAP<https://urldefense.proofpoint.com/v2/url?u=https-3A__www.amdocs.com_open-2Dnetwork_nfv-2Dpowered-2Dby-2Donap&d=DwMFAg&c=LFYZ-o9_HUMeMTSQicvjIg&r=r9I4HaeTZWnzwEqiRY1_Hv-5a-5rlv9P2qxiDTBCt58&m=TLbz8GsgtbMhScoq-6gQuIKBf5ZG91_fpiFz6pdn5jo&s=eHHnkeU9dYlvhwXVFdNXSonCrxVpJ9uPjF-lfJjgZjI&e=>?

Gartner names Amdocs as a Leader in its Magic Quadrant for IRCM & OSS for the 
8th consecutive year. Read 
why.<https://urldefense.proofpoint.com/v2/url?u=https-3A__www.amdocs.com_gartner-2Dnames-2Damdocs-2Dleader&d=DwMFAg&c=LFYZ-o9_HUMeMTSQicvjIg&r=r9I4HaeTZWnzwEqiRY1_Hv-5a-5rlv9P2qxiDTBCt58&m=TLbz8GsgtbMhScoq-6gQuIKBf5ZG91_fpiFz6pdn5jo&s=3R0ivwcNAAflFQ7l_vRki-14uYY7vnNnGGvpi8rvaQc&e=>

Read the latest on 
Amdocs.com<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.amdocs.com_&d=DwMFAg&c=LFYZ-o9_HUMeMTSQicvjIg&r=r9I4HaeTZWnzwEqiRY1_Hv-5a-5rlv9P2qxiDTBCt58&m=TLbz8GsgtbMhScoq-6gQuIKBf5ZG91_fpiFz6pdn5jo&s=Gkk5hbyS0-UPk9mS0S7uYJhQiaStdZLLEJc-LhVI2WQ&e=>
 and the Amdocs blog 
network<https://urldefense.proofpoint.com/v2/url?u=http-3A__blogs.amdocs.com_&d=DwMFAg&c=LFYZ-o9_HUMeMTSQicvjIg&r=r9I4HaeTZWnzwEqiRY1_Hv-5a-5rlv9P2qxiDTBCt58&m=TLbz8GsgtbMhScoq-6gQuIKBf5ZG91_fpiFz6pdn5jo&s=MBpIZ4_ktGm7RaVTf8wT7gzYieg3bNo-ZeDG4u65TII&e=>
 - and follow us on 
Facebook<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.facebook.com_Amdocs&d=DwMFAg&c=LFYZ-o9_HUMeMTSQicvjIg&r=r9I4HaeTZWnzwEqiRY1_Hv-5a-5rlv9P2qxiDTBCt58&m=TLbz8GsgtbMhScoq-6gQuIKBf5ZG91_fpiFz6pdn5jo&s=_IjScD8w8iDza1TH-YOUFDgPJvKxgr4ykyuou0MCDdc&e=>,
 
Twitter<https://urldefense.proofpoint.com/v2/url?u=http-3A__twitter.com_Amdocs&d=DwMFAg&c=LFYZ-o9_HUMeMTSQicvjIg&r=r9I4HaeTZWnzwEqiRY1_Hv-5a-5rlv9P2qxiDTBCt58&m=TLbz8GsgtbMhScoq-6gQuIKBf5ZG91_fpiFz6pdn5jo&s=gjwKXHWSvrWBLEzaiEogzSGp-B3Km6E8rR5jknU2WgA&e=>,
 
LinkedIn<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.linkedin.com_company_amdocs&d=DwMFAg&c=LFYZ-o9_HUMeMTSQicvjIg&r=r9I4HaeTZWnzwEqiRY1_Hv-5a-5rlv9P2qxiDTBCt58&m=TLbz8GsgtbMhScoq-6gQuIKBf5ZG91_fpiFz6pdn5jo&s=JBAubLzMIFnRSh6OUqRZjlChnxRt9SURuMBF-yZwr3M&e=>
 and 
YouTube<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.youtube.com_amdocs&d=DwMFAg&c=LFYZ-o9_HUMeMTSQicvjIg&r=r9I4HaeTZWnzwEqiRY1_Hv-5a-5rlv9P2qxiDTBCt58&m=TLbz8GsgtbMhScoq-6gQuIKBf5ZG91_fpiFz6pdn5jo&s=lG4eEZwpGLv_qQKnvWmQ2VKNwKarELGSxjZt0nwiqLo&e=>.


This email and the information contained herein is proprietary and confidential 
and subject to the Amdocs Email Terms of Service, which you may review at 
https://www.amdocs.com/about/email-terms-of-service<https://urldefense.proofpoint.com/v2/url?u=https-3A__www.amdocs.com_about_email-2Dterms-2Dof-2Dservice&d=DwMFAg&c=LFYZ-o9_HUMeMTSQicvjIg&r=r9I4HaeTZWnzwEqiRY1_Hv-5a-5rlv9P2qxiDTBCt58&m=TLbz8GsgtbMhScoq-6gQuIKBf5ZG91_fpiFz6pdn5jo&s=y8ZktFLpNThWCdf9deej5Cn5mqjn8ByAzVIz9ViNWH0&e=>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#17381): https://lists.onap.org/g/onap-discuss/message/17381
Mute This Topic: https://lists.onap.org/mt/31718726/21656
Group Owner: [email protected]
Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to