Hi Kavitha,

Thanks for response. Unfortunately it doesn't work:

curl -X GET   https://xxxxx:30233/aai/v23/cloud-infrastructure/complexes   -H 
'Accept: application/json'   -H 'Authorization: Basic QUFJOkFBSQ=='   -H 
'X-FromAppId: AAI'   -H 'X-TransactionId: 808b54e3-e563-4144-a1b9-e24e2ed93d4f' 
-H 'timeout: 2700000'  -H 'cache-control: no-cache' -k
{"requestError":{"serviceException":{"messageId":"SVC7406","text":"Request 
Timed Out (msg=%1) (ec=%2)","variables":["Request Timed Out:Timeout limit of 
100 seconds 
reached.","ERR.5.4.7406","GET","v23/cloud-infrastructure/complexes"]}}}

BR,
Michal

From: Kavitha Papanna <[email protected]>
Sent: Tuesday, March 29, 2022 12:29 PM
To: [email protected]; Jagiełło, Michał <[email protected]>
Subject: Re: [onap-discuss] [AAI] Timeout error on request to get count of the 
objects

Hi Michal,

Try increasing the timeout value . Below is the sample.


curl --location --request GET 
'https://xxxxxxxxxxxx:30233/aai/v23/cloud-infrastructure/complexes?format=count'
 \
--header 'X-FromAppId: AAI' \
--header 'X-TransactionId: test-001' \
--header 'Accept: application/json' \
--header 'timeout: 2700000' \
--header 'Authorization: Basic QUFJOkFBSQ==' \
--header 'Content-Type: text/plain'

Regards,
Kavitha

On Mon, Mar 28, 2022 at 3:54 PM Jagiełło, Michał 
<[email protected]<mailto:[email protected]>> wrote:
Hi,

I've populated A&AI with c.a. 100k complex objects and when I try to get the 
number of existing objects I got an error response:

$ curl -X GET  
"https://10.211.2.203:30233/aai/v23/cloud-infrastructure/complexes?format=count";
   -H 'Accept: application/json'   -H 'Authorization: Basic QUFJOkFBSQ=='   -H 
'X-FromAppId: AAI'
   -H 'X-TransactionId: 808b54e3-e563-4144-a1b9-e24e2ed93d4f'   -H 
'cache-control: no-cache' -k
{"requestError":{"serviceException":{"messageId":"SVC7406","text":"Request 
Timed Out (msg=%1) (ec=%2)","variables":["Request Timed Out:Timeout limit of 
100 seconds 
reached.","ERR.5.4.7406","GET","v23/cloud-infrastructure/complexes"]}}}

Is there a way to get that count number if there are many objects in A&AI? 
Should I use different call? Or is there an option to increase the time per one 
request?

Thanks,
Michal

T-MOBILE POLSKA S.A. z siedzibą w Warszawie
Adres: ul. Marynarska 12, 02-674 Warszawa
Zarząd Spółki:
Andreas Maierhofer - Prezes Zarządu;
Juraj Andráš - Członek Zarządu, Dyrektor ds. Finansowych;
Dorota Kuprianowicz-Legutko - Członek Zarządu, Dyrektor ds. Polityki 
Personalnej;
Goran Marković - Członek Zarządu, Dyrektor ds. Rynku Prywatnego;
Petri Pehkonen - Członek Zarządu, Dyrektor ds. Technologii i Innowacji;
Agnieszka Rynkowska - Członek Zarządu, Dyrektor ds. Rynku Biznesowego.

Spółka zarejestrowana w Sądzie Rejonowym dla m.st<http://m.st>. Warszawy w 
Warszawie,
XIII Wydział Gospodarczy Krajowego Rejestru Sądowego.
KRS 0000391193 | NIP 526-10-40-567 | Regon 011417295
Kapitał zakładowy 711.210.000 złotych, kapitał wpłacony w całości.

DUŻE ZMIANY ZACZYNAJĄ SIĘ OD MAŁYCH - CHROŃ PLANETĘ, NIE DRUKUJ TEGO E-MAILA, 
JEŻELI NIE MUSISZ.

Ta wiadomość i jej treść są zastrzeżone w szczegółowym zakresie dostępnym na 
http://www.t-mobile.pl/stopka
This e-mail and its contents are subject to a DISCLAIMER with important 
RESERVATIONS: see http://www.t-mobile.pl/stopka



T-MOBILE POLSKA S.A. z siedzibą w Warszawie
Adres: ul. Marynarska 12, 02-674 Warszawa
Zarząd Spółki:
Andreas Maierhofer - Prezes Zarządu;
Juraj Andráš - Członek Zarządu, Dyrektor ds. Finansowych;
Dorota Kuprianowicz-Legutko - Członek Zarządu, Dyrektor ds. Polityki 
Personalnej;
Goran Marković - Członek Zarządu, Dyrektor ds. Rynku Prywatnego;
Petri Pehkonen - Członek Zarządu, Dyrektor ds. Technologii i Innowacji;
Agnieszka Rynkowska - Członek Zarządu, Dyrektor ds. Rynku Biznesowego.

Spółka zarejestrowana w Sądzie Rejonowym dla m.st. Warszawy w Warszawie,
XIII Wydział Gospodarczy Krajowego Rejestru Sądowego.
KRS 0000391193 | NIP 526-10-40-567 | Regon 011417295
Kapitał zakładowy 711.210.000 złotych, kapitał wpłacony w całości.

DUŻE ZMIANY ZACZYNAJĄ SIĘ OD MAŁYCH - CHROŃ PLANETĘ, NIE DRUKUJ TEGO E-MAILA, 
JEŻELI NIE MUSISZ.

Ta wiadomość i jej treść są zastrzeżone w szczegółowym zakresie dostępnym na 
http://www.t-mobile.pl/stopka
This e-mail and its contents are subject to a DISCLAIMER with important 
RESERVATIONS: see http://www.t-mobile.pl/stopka




-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#23960): https://lists.onap.org/g/onap-discuss/message/23960
Mute This Topic: https://lists.onap.org/mt/90081171/21656
Group Owner: [email protected]
Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-


Reply via email to