API Gateway: Change Active Version of a Service Using Restman

book

Article ID: 140762

calendar_today

Updated On:

Products

CA API Gateway API SECURITY STARTER PACK-7

Issue/Introduction

When in Policy Manager, we can look at the revision history of a Service and set the active version in there. How can we accomplish the same thing using Restman?

Environment

API Gateway 9.3+

Resolution

From the gateway, run the following command: 


curl -X POST --user USERNAME:PASSWORD -k --data ' ' https://<GATEWAY_HOST>:8443/restman/1.0/services/<SERVICE_ID>/versions/<VERSION>/activate


The username and password are the same credentials used to login to the Policy Manager.