API Gateway Search
The webMethods API Gateway search run a search query in webMethods API Gateway and retrieve search results that match the search query.
webMethods API Gateway provides the following REST API resources:
- POST/rest/apigateway/search Runs a search query in webMethods API Gateway and returns the results that match your query. You can search across various objects that include
- APIs,
- Applications, Aliases
- Assertions
- Policies
- Administration Settings
- Policy properties
- Packages
- Plans
- Subscriptions
- Users
- User groups
- Transactional events
- Lifecycle events
- Policy violation events
- Monitor events
- Error events
- Threat protection events
- Performance metrics
To do a search operation, specify the following information in your REST request:
REST Request Section | Description |
---|---|
Types | Objects for which you want to perform the search operation. You can specify
one or more of the listed objects. Note: When you specify Users and User Groups in the Types
section, it returns the list of users and user groups from the Integration Server. In this case, you
do not need to specify any search criteria.
|
Scope | Search Criteria. Specify your search attribute and a keyword (value of the
attribute) or one of the following points as your search criteria:
Note: The search operation is performed based on the
criteria that are specified here. It applies to all objects listed in the Types
section.
|
Condition | One of the following
|
Fields | Fields to be returned in the response. You can specify only the necessary fields, instead of viewing all fields in your response. If you want to view only the API Names and Versions that match your search criteria, you can specify apiName and apiVersion in your REST request. |
- POST/rest/apigateway/search/_count
Retrieves the total number of records for the specified scope and types.
To retrieve the count of records, you can specify the required types and scope similar to the search query. If you do not specify any search criteria in the Scope section, then the query returns the total number of assets for the objects that are specified in the Types section.
- POST/rest/apigateway/search/_aggregations
Executes a search query and groups the results for the specified scope and types.
To perform an aggregations search, specify the following information in your REST request:
REST Request Section | Description |
---|---|
Types | Objects for which you want to perform the search operation. You can specify one or more of the listed objects. |
Scope | Search Criteria. Specify your search attribute and a keyword (value of the
attribute) or one of the following point as your search criteria:
|
Condition | One of the following
|
Aggregations | Values for the following
|
POST http://localhost:5555/rest/apigateway/search
{
"types": [
"TRANSACTION_EVENTS" ],
"scope": [
{ "attributeName": "responseCode",
"keyword": "304"
> },
> ],
"from": "1001"
“size”: “1000”
}