Use a Restman call to get the service objects from the folder, then use that XPath to determine the verbs that are enabled for each to see if OPTION is on of them.
If you want to do this in policy, you can make direct Restman calls using the REST Manage Gateway assertion so long as the identity making the call to the policy has been authenticated as an admin user. The uri and action for calling it are described in the documentation for the assertion.
------------------------------
Jay MacDonald - Adoption Architect - Broadcom API Management (Layer 7)
------------------------------
Original Message:
Sent: 02-06-2021 02:39 PM
From: Sanjeev Yadav
Subject: Policy for check which method is enabled for an API
Hi Jay ,
I am not able to find the path as you mentioned. Suppose I deploy 10 services in different folder, now I want to check & display that in the services the OPTION method is enable or not then how to do that or how to implement a policy to achieve that ?
Regards,
Sanjeev
Original Message:
Sent: 01-29-2021 10:24 PM
From: Jay MacDonald
Subject: Policy for check which method is enabled for an API
That information can be found in //l7:Service/l7:ServiceDetail/l7:ServiceMapping/l7:HttpMapping/l7:Verbs element of the Service object in Restman.
------------------------------
Jay MacDonald - Adoption Architect - Broadcom API Management (Layer 7)
Original Message:
Sent: 01-29-2021 10:15 PM
From: Sanjeev Yadav
Subject: Policy for check which method is enabled for an API
Is there any one who can help on this.
Regards,
Snajeev
Original Message:
Sent: 01-24-2021 03:32 PM
From: Sanjeev Yadav
Subject: Policy for check which method is enabled for an API
How to write a policy to check which method is enabled like (GET,POST,DELETE,OPTION etc.) for an API in CA API Gateway Layer 7 .?
Regards,
Sanjeev