Hello Kanagaraj, It worked.
The onap-cli is really great. I have cleaned up my environment within 5 minutes of time, where I took couple of hours to compose REST API DELETE requests. Thanks a lot your help. Regards , Ganesh On Thu, Mar 29, 2018 at 12:12 PM, Kanagaraj Manickam < [email protected]> wrote: > Hi Ganesh, > > > > Pls run as below: > > > > cloud-list -u AAI -p AAI -m https://<AAI-ip>:<AAI-port> > > > > CLI Documents: > > > > User guide: http://onap.readthedocs.io/en/amsterdam/submodules/cli.git/ > docs/user_guide.html > > Help: http://onap.readthedocs.io/en/amsterdam/submodules/cli.git/ > docs/cmd_help.html > > Samples: http://onap.readthedocs.io/en/amsterdam/submodules/cli.git/ > docs/cmd_sample.html > > > > > > Regards > > Kanagaraj M > > ------------------------------------- > > *Be transparent! Win together !!* > > > > 本邮件及其附件含有华为公司的保密信息,仅限于发送给上面地址中列出的个人或群组。禁止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、 > 复制、或散发)本邮件中的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本邮件! > This e-mail and its attachments contain confidential information from > HUAWEI, which is intended only for the person or entity whose address is > listed above. Any use of the information contained herein in any way > (including, but not limited to, total or partial disclosure, > reproduction, or dissemination) by persons other than the intended > recipient(s) is prohibited. If you receive this e-mail in error, please > notify the sender by phone or email immediately and delete it! > > > > *From:* Ganesh Kaila [mailto:[email protected]] > *Sent:* Thursday, March 29, 2018 12:03 PM > *To:* Kanagaraj Manickam > *Cc:* Kranthi Guttikonda; [email protected] > > *Subject:* Re: [onap-discuss] How to delete AAI Cloud Region and Complex > Objects via REST API > > > > For your information, I am seeing the following error while listing cloud. > > *onap>cloud-list* > > > > *0x3004::Http response body does not have json entry > cloud-region.[*].cloud-owner, Expected to find an object with property > ['cloud-region'] in path $ but found 'java.lang.String'. This is not a json > object according to the JsonProvider: > 'com.jayway.jsonpath.spi.json.JsonSmartJsonProvider'.* > > > > > Thanks, > > Ganesh > > > > On Thu, Mar 29, 2018 at 11:57 AM, Ganesh Kaila <[email protected]> wrote: > > Hi Kanagaraj, > > > > Thanks for your response. > > Now, I am able to see cloud-list, cloud-delete commands of onap-cli. Can > you please give me a example command for listing and deleting? > > > Thanks, > > Ganesh > > > > On Thu, Mar 29, 2018 at 11:42 AM, Kanagaraj Manickam < > [email protected]> wrote: > > You could start to use ONAP CLI to avoid this kind of complexity. > > > > We have given command called cloud-delete. > > > > > > Regards > > Kanagaraj M > > ------------------------------------- > > *Be transparent! Win together !!* > > > > 本邮件及其附件含有华为公司的保密信息,仅限于发送给上面地址中列出的个人或群组。禁止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、 > 复制、或散发)本邮件中的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本邮件! > This e-mail and its attachments contain confidential information from > HUAWEI, which is intended only for the person or entity whose address is > listed above. Any use of the information contained herein in any way > (including, but not limited to, total or partial disclosure, > reproduction, or dissemination) by persons other than the intended > recipient(s) is prohibited. If you receive this e-mail in error, please > notify the sender by phone or email immediately and delete it! > > > > *From:* [email protected] [mailto:onap-discuss-bounces@ > lists.onap.org] *On Behalf Of *Kranthi Guttikonda > *Sent:* Wednesday, March 28, 2018 10:55 PM > *To:* Ganesh Kaila; [email protected] > *Subject:* Re: [onap-discuss] How to delete AAI Cloud Region and Complex > Objects via REST API > > > > 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
