Discover API endpoints
-
Virtual servers - The VServer tab displays the virtual servers from your NetScaler instances. The virtual servers appear in this tab when they receive the API requests for the specified period.
-
API deployments - This tab displays the API deployments that are deployed from NetScaler Console using an API definition. This tab discovers the API endpoints when API deployments receive the API requests for the specified period. To add and deploy an API definition, see Add an API definition and Deploy API definitions.
-
Ensure to configure analytics and enable Web Insights on virtual servers. See, Enable Web Insight on API instances.
-
You can only add policies to the API endpoints that are discovered under the API deployments tab.
View API endpoints
-
Method - It displays the method used in an API endpoint. For example,
GETandPOSTmethods. -
Total requests - It displays the count of API requests on the API endpoint.
-
Response statuses - It displays the count for each response status. For example,
2xx,3xx,4xx, and5xx. -
Found in Spec - This column appears only for API deployments. Sometimes, the internal APIs that 's not part of the API definition might receive traffic from outside. This column helps you identify whether the API endpoint and observed method are part of the API definition.
Create API definitions from discovered API endpoints
-
Navigate to Security > API Security > API Discovery to view the list of virtual servers and API deployments.
-
Click any virtual server in the VServers tab.
-
The virtual server page displays the list of discovered endpoints. Select any endpoint and click Create API Definition.
-
In Create API Definition, specify the following:
-
Name - A name for the API definition.
-
API Definition - A definition must include title, version, base path, and host. You can specify a domain name or IP address in the Host field.
-
API Resources - Add multiple API resources to your definition. Each resource has a path and supported method.
-
-
Click Create Definition to create the API definition.
Update an existing API definition with discovered API endpoints
-
Navigate to Security > API Security > API Discovery to view the list of virtual servers and API deployments.
-
Click any virtual server in the VServers tab.
-
The virtual server page displays the list of discovered endpoints. Select the endpoint which you want to add to an existing API definition. Click Update existing API Definition.

-
From the Select existing API Definition drop-down list, select the API definition you want to update. Click Update Definition.
-
The Update existing API definition page appears. The API Resources section displays the following tables:
-
Added Resources - The API endpoints you selected
-
Existing Resources - The API endpoints already available in the API definition
Note:If the same API endpoint is available in Added Resources and Existing Resources, the endpoint is added only once to the API definition. -
-
Click Update Definition.