Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
Nelson_Abreu
Employee
Employee

Why the Quota reply comes with zero "0" values?

Hello,

Does anybody knows why a query to the Threat Prevention API Quota, the reply comes with zero "0" values, but the gateway shows the actual count.

"cloud_monthly_quota_usage_for_this_gw": 0,
"cloud_hourly_quota_usage_for_this_gw": 0,
"cloud_monthly_quota_usage_for_quota_id": 0,
"cloud_hourly_quota_usage_for_quota_id": 0,

Quota Response HTTP Header (Json)

{
    "response": [
        {
            "remain_quota_hour": 5000,
            "remain_quota_month": 100000,
            "assigned_quota_hour": 5000,
            "assigned_quota_month": 100000,
            "hourly_quota_next_reset": "1503932400",
            "monthly_quota_next_reset": "1504224000",
            "quota_id": "AD1xxxx",
            "cloud_monthly_quota_period_start": "1501545600",
            "cloud_monthly_quota_usage_for_this_gw": 0,
            "cloud_hourly_quota_usage_for_this_gw": 0,
            "cloud_monthly_quota_usage_for_quota_id": 0,
            "cloud_hourly_quota_usage_for_quota_id": 0,
            "monthly_exceeded_quota": 0,
            "hourly_exceeded_quota": 0,
            "cloud_quota_max_allow_to_exceed_percentage": 1000,
            "pod_time_gmt": "1503931000",
            "quota_expiration": "1629849600",
            "action": "ALLOW"
        }
    ]
}

Output of command from the gateway

[Expert@FW-01:0]# tecli show clo quo

Quota identifier:                       AD1xxxx
Quota subscription:                     OK (1457 days left)
Assigned:                               5000 Hour / 100000 Month
Usage for gw:                           7 Hour / 3346 Month
Usage for group:                        7 Hour / 3346 Month
License state:                          ALLOW
Remain:                                 4993 Hour / 96654 Month
Exceeded:                               0 Hour / 0 Month
Next reset:                             28 Mins / 4 Days
Last update gw time:                    Mon Aug 28 10:34:30 2017
Last update server time:                Mon Aug 28 10:31:34 2017 GMT
Last update status:                     OK
Has contract:                           Yes
Gateway identifier:                     cc25911fe4f5362a1256c3fc1xxxxxxx-d18e35140adec539ffff900d727xxxxxx
0 Kudos
1 Reply
Nelson_Abreu
Employee
Employee

Mistery resolved thanks to https://community.checkpoint.com/people/jpadieabd926f-b286-336c-9e1c-594205e622c6‌ for his assistance.

Note to self: When you query the Threat Prevention API - Quota - and you use the CK number you will not get these values back, these values are for statistics collected when using an API Key. 😉

0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events