You need to pass the resource version to URL
/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/{}/RegionThree?resource-version=1522253345752
Thanks,
Kranthi
From: <[email protected]> on behalf of Ganesh Kaila
<[email protected]>
Date: Wednesday, March 28, 2018 at 1:15 PM
To: "[email protected]" <[email protected]>
Subject: [onap-discuss] How to delete AAI Cloud Region and Complex Objects via
REST API
Hi all,
How do I delete Cloud Region and Complex Objects via REST API calls?
I have tried the following,
Method: DELETE
URI: /aai/v11/cloud-infrastructure/cloud-regions/cloud-region/{}/RegionThree
Headers:
accept:application/json
authorization:Basic QUFJOkFBSQ==
cache-control:no-cache
content-type:application/json
postman-token:f7c57ec5-ac01-7672-2014-d8dfad883cea
real-time:true
x-fromappid:jimmy-postman
x-transactionid:9999
Request body:
{
"cloud-owner": "CloudOwner",
"cloud-region-id": "RegionThree",
"resource-version": "1522253345752"
}
but it is ending up with the following error:
{
"requestError": {
"serviceException": {
"messageId": "SVC3000",
"text": "Invalid input performing %1 on %2 (msg=%3) (ec=%4)",
"variables": [
"DELETE",
"cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionThree",
"Precondition Required:resource-version not passed for delete
of cloud-region",
"ERR.5.4.6130"
]
}
}
}
I have found the above API call in the following link:
https://wiki.onap.org/download/attachments/1015849/openecomp_aai_api_index.html?api=v2#operation--cloud-infrastructure-cloud-regions-cloud-region--cloud-owner---cloud-region-id--delete
In the link, I didn't find the DELETE call for Complex to delete.
Please point me to the appropriate instructions to achieve this.
Thanks in advance.!
​Regards
,
Ganesh
_______________________________________________
onap-discuss mailing list
[email protected]
https://lists.onap.org/mailman/listinfo/onap-discuss