Get list of active gateways, APIs or applications
/apiplatform/analytics/v1/categorical/active/{category}
Returns a list of active gateways, APIs, or applications. Use the category
parameter to specify the type of measures returned.
This operation returns the intersection of all applied query parameter filters.
You can also use subcategory filters to refine the search. The following are the subcategory filters details:
- apis?gatewayIds=100: Returns apiIds that are deployed to gateway 100 even if they are not invoked.
- apis?appIds=100: This subcategory filter parameter is not supported.
- apps?gatewayIds=100: Returns appIds that are deployed to gateway 100 even if they are not invoked.
- apps?apiIds=100: Returns appIds that are registered to api 100 even if they are not invoked.
- apps?gatewayIds=100&apiIds=101: This subcategory filter parameter is not supported.
Any authenticated user can request this resource. The response contains data the requesting user is authorized to view based on their role and the resources they are issued grants to (APIs, applications, and gateways).
Request
-
category: string
Pattern:
(gateways|apis|apps)
Type of active items to return.gateways
shows active gateways,apis
returns apiIds that have been invoked, andapps
returns appIds that have been invoked.
-
apiIds(optional): array
Collection Format:
multi
Filter data by apiIds as repeated query parameters (like?apiIds=2&apiIds=3
) or a single-comma separated query parameter (like?apiIds=2,3
). -
appIds(optional): array
Collection Format:
multi
Filter data by appIds as repeated query parameters (like?appIds=2&appIds=3
) or a single comma separated query parameter (like?appIds=2,3
). -
gatewayIds(optional): array
Collection Format:
multi
Filter data by gatewayIds as repeated query parameters (like?gatewayIds=2&gatewayIds=3
) or a single-comma separated query parameter (like?gatewayIds=2,3
). -
iterations(optional): array
Collection Format:
multi
Filter data by iterationIds as repeated query parameters (like?iterationIds=2&iterationIds=3
) or a single comma separated query parameter (like?iterationIds=2,3
). -
methods(optional): array
Collection Format:
multi
Filter data by methods as repeated query parameters (like?methods=GET&methods=PUT
) or a single comma separated query parameter (like?methods=GET,PUT
). -
planIds(optional): array
Collection Format:
multi
Filter data by planIds as repeated query parameters (like?planIds=2&planIds=3
) or a single comma separated query parameter (like?planIds=2,3
). -
serviceIds(optional): array
Collection Format:
multi
Filter data by serviceIds as repeated query parameters (like?serviceIds=2&serviceIds=3
) or a single comma separated query parameter (like?serviceIds=2,3
). -
timeEnd(optional): string
End time filter as ISO8601 offset date. Example:
2016-01-01T00:00:00-07:00
,2016-01-01T00:00:00Z
,2016-01-01T00:00:00
. The default value is no filtering. You must use this in conjunction with thetimeSetting=custom
query parameter. -
timeOffsetId(optional): string
ISO8601 time offset ID. Example:
Z
. This parameter overrides the time offset oftimeStart
ortimeEnd
. This parameter is also used when calculating the start of time groups. The value of this parameter defaults toZ
. (GMT).Note: Best effort is made to apply this parameter, but its accuracy may be limited by existing data granularity.
-
timeSetting(optional): string
Time setting mode. Defaults to
custom
. Valid values include:custom
,currentHour
,currentWeek
,currentMonth
,last15minutes
,last60minutes
,last24hours
,last7days
,last30days
,last365days
,january
,february
,march
,april
,may
,june
,july
,august
,september
,october
,november
,december
,year-2015
,year-2016
, etc. -
timeStart(optional): string
Start time filter as ISO8601 offset date. Example:
2016-01-01T00:00:00-07:00
,2016-01-01T00:00:00Z
,2016-01-01T00:00:00
. The default value is no filtering. You must use this in conjunction with thetimeSetting=custom
query parameter.
Response
- application/json
200 Response
object
-
count(optional):
integer(int32)
Response item count.
-
hasMore(optional):
boolean
Default Value:
false
Indicates if there are more results after the current batch. -
items:
array items
The actual response items.
-
limit(optional):
integer(int32)
Paging limit.
-
links(optional):
array links
HATEOAS links.
-
offset(optional):
integer(int32)
Paging offset.
-
states(optional):
array states
An optional list for API states. This is null by default.
array
-
Array of:
object IdNameItem
An ID and name pair.
array
-
Array of:
object GenericLink
HATEOAS generic link representation.
array
object
-
id:
integer(int64)
An item's ID.
-
name:
string
An item's name.
object
-
href:
string
Link reference string.
-
method(optional):
string
HTTP method used with the link.
-
rel:
string
Link relation string Value is either
canonical
or a specific string value. -
templated(optional):
string
Allowed Values:
[ "true", "false" ]
Indicates if the link has templated parts.
400 Response
401 Response
500 Response
Examples
The following example shows how to retrieve details of all active applications by submitting a GET request on the REST resource using cURL. For more information about cURL, see Use cURL
curl -i -X GET
-H "Authorization: Bearer access_token
https://example.com/apiplatform/analytics/v1/categorical/active/apps
Example of Response Headers
The following shows an example of the response headers.
HTTP/1.1 200 OK Server: Oracle-Traffic-Director/12.2.1.0.0 Date: Fri, 30 Dec 2016 17:18:50 GMT Content-length: 221 Content-type: application/json X-oracle-dms-ecid: Pdymv09^S00000000 X-oracle-dms-rid: 0:1 Via: 1.1 otd_opc Proxy-agent: Oracle-Traffic-Director/12.2.1.0.0
Example of Response Body
The following example shows the contents of the response body in JSON format, including the name and ID of all active applications.
{ "count": 6, "items": [ { "name": "myAPP_294", "id": 325 }, { "name": "RestE2E_AnalyticsRestAPP1", "id": 380 }, { "name": "weatherapp2", "id": 336 }, { "name": "newAPP", "id": 333 }, { "name": "appTest3", "id": 131 }, { "name": "testwithouttype", "id": 368 } ] }