@@ -50,7 +50,7 @@ Next tables summaries the resources and the HTTP methods available.
50
50
+-------------+------------------------------------------------------+------------------------------------------------------+
51
51
| **POST ** | | | **Modify** the specified property ``property_name``|
52
52
| | | | associated to the infrastructure ``infId ``. |
53
- | | | | only ``authorization `` property is valid. |
53
+ | | | | only ``authorization `` property is valid. |
54
54
+-------------+------------------------------------------------------+------------------------------------------------------+
55
55
56
56
@@ -421,7 +421,7 @@ GET ``http://imserver.com/clouds/<cloudId>/images``
421
421
The id ``cloudId `` is relative to the id field in the AUTHORIZATION header.
422
422
The result is JSON format has the following format::
423
423
424
- {
424
+ {
425
425
"images":
426
426
[
427
427
{
@@ -433,7 +433,7 @@ GET ``http://imserver.com/clouds/<cloudId>/images``
433
433
"name" : "Image Name2"
434
434
}
435
435
]
436
- }
436
+ }
437
437
438
438
GET ``http://imserver.com/clouds/<cloudId>/quotas ``
439
439
:Response Content-type: application/json
@@ -454,3 +454,29 @@ GET ``http://imserver.com/clouds/<cloudId>/quotas``
454
454
"security_groups": {"used": 1, "limit": 10}
455
455
}
456
456
}
457
+
458
+ GET ``http://imserver.com/stats ``
459
+ :Response Content-type: application/json
460
+ :ok response: 200 OK
461
+ :input fields: ``init_date `` (optional)
462
+ :fail response: 401, 400
463
+
464
+ Return the stats of the current user in the IM service.
465
+ Return all the infrastructures deployed by the user showing some
466
+ aggregated information. In JSON format::
467
+
468
+ {
469
+ "stats": [
470
+ {"creation_date": "2022-03-07 13:16:14",
471
+ "tosca_name": "kubernetes",
472
+ "vm_count": 2,
473
+ "cpu_count": 4,
474
+ "memory_size": 1024,
475
+ "cloud_type": "OSCAR",
476
+ "cloud_host": "sharp-elbakyan5.im.grycap.net",
477
+ "hybrid": false,
478
+ "im_user": "__OPENID__mcaballer",
479
+ "inf_id": "1",
480
+ "last_date": "2022-03-23"}
481
+ ]
482
+ }
0 commit comments