-
Feature Request
-
Resolution: Done
-
Minor
-
None
From kibana monitoring, we get provider_key or service_token as identifiers of requests.
Sometimes we need to identify the developer account running those requests. This functionality is available from UI (search account). But this information cannot be fetched using 3scale API which is the gateway used by 3scale CLI.
One endpoint of the 3scale API doing similar search is
admin/api/accounts/find.xml
But this endpoint only works with username, user_id and email.
The requested lookup based on provider_key or service_token can be implemented extending the mentioned endpoint or exposing new endpoint. Implementation details up to you
The information required can be the same returned by
admin/api/accounts/find.xml
<?xml version="1.0" encoding="UTF-8"?>
<account>
<id>some id</id>
<created_at>2018-10-30T22:56:29+01:00</created_at>
<updated_at>2018-10-30T22:56:29+01:00</updated_at>
<state>created</state>
<org_name>BLA</org_name>
<extra_fields></extra_fields>
<monthly_billing_enabled>true</monthly_billing_enabled>
<monthly_charging_enabled>true</monthly_charging_enabled>
<credit_card_stored>false</credit_card_stored>
<plans> ... </plans>
<users> ... </users>
</account>