Hi Keong,
Thanks for the response.

Do we have any Json to post while calling this Put API?

Or its just get API.. I tried with both getting the error as -

https://{aai-api}:{aai-port}/aai/v14/query?format=count

{
    "requestError": {
        "serviceException": {
            "messageId": "SVC3000",
            "text": "Invalid input performing %1 on %2 (msg=%3) (ec=%4)",
            "variables": [
                "PUT",
                "v14/query",
                "Invalid input performing %1 on %2:Unrecognized AAI object 
query",
                "ERR.5.2.3000"
            ]
        }
    }
}

-----Original Message-----
From: [email protected] [mailto:[email protected]] On 
Behalf Of Keong Lim
Sent: 04 April 2019 05:37
To: Chandrashekhar Thakare <[email protected]>; 
[email protected]
Subject: Re: [onap-discuss] [aai] API to get the count of objects

On Wed, Apr  3, 2019 at 02:47 PM, Chandra wrote:
>
> Hi ,
> Is there any API in AAI which just provides the count of individual objects by

Hi Chandra,

Looking at the ONAP documentation on readthedocs, you can find the "format" 
query parameter value "count":
- 
https://docs.onap.org/en/casablanca/submodules/aai/aai-common.git/docs/AAI%20REST%20API%20Documentation/nodesQuery.html#format
- 
https://docs.onap.org/en/casablanca/submodules/aai/aai-common.git/docs/AAI%20REST%20API%20Documentation/AAIRESTAPI_CASABLANCA.html#count

which produces output like this:

{
  "results": [
    {
      "pnf": 4,
      "p-interface": 5,
      "l-interface": 3,
      "pserver": 1
    }
  ]
}

Keong



============================================================================================================================

Disclaimer:  This message and the information contained herein is proprietary 
and confidential and subject to the Tech Mahindra policy statement, you may 
review the policy at http://www.techmahindra.com/Disclaimer.html 
<http://www.techmahindra.com/Disclaimer.html> externally 
http://tim.techmahindra.com/tim/disclaimer.html 
<http://tim.techmahindra.com/tim/disclaimer.html> internally within 
TechMahindra.

============================================================================================================================

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

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

Reply via email to