Hi Adrian,

Regarding this little snippet about updating AAI:

> SDN-C could use something like the REST request below ( I just made up the 
> dummy aai response so maybe not totally accurate…. ) to A&AI and
> then returned “service-instance” “related-link”  can be used to obtain the 
> URL to be used to update/PATCH the orchestration-status.
>
> i.e. can the orchestration-status state could be updated with something like
> PATCH  
> https://aaihostip:8443/aai/v14/business/customers/customer/Swisscom/service-subscriptions/service-subscription/BBS/service-instances/service-instance/176d9eba-1662-4289-8396-0097b50fd485";
> { 
>       “service-instance-id”: “176d9eba-1662-4289-8396-0097b50fd485",
>       “orchestration-status”: “assigned”
> }

I would like to refer you to this section of documentation about Concurrency 
Control:

https://onap.readthedocs.io/en/casablanca/submodules/aai/aai-common.git/docs/AAI%20REST%20API%20Documentation/AAIRESTAPI_CASABLANCA.html#concurrency-control

{quote}
• The PATCH REST verb is not subject to concurrency control, because it is only 
intended to be used by clients who are the definitive source of truth for the 
attributes they are changing. An update through the PATCH API will however 
reset the resource-version so clients using PUT and DELETE will not risk 
updating with stale data. If a client would like us to do concurrency control 
for PATCH, we will need a feature request. PATCH is recommended for clients who 
know they are the definitive source of data, as there is less risk of 
destroying other data.
{quote}

Since the BBS use case is asking SDNC instead of SO to update the 
“orchestration-status” parameter, I would suggest that PATCH might be an unsafe 
way to fiddle with those values.


Keong



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

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

Reply via email to