PAPI: How to change proxy deployment type for APIs: Auto, On Demand, Scripted
search cancel

PAPI: How to change proxy deployment type for APIs: Auto, On Demand, Scripted

book

Article ID: 260643

calendar_today

Updated On:

Products

CA API Developer Portal

Issue/Introduction

I'm trying to follow the instructions to set the proxy deployment type for APIs, programmatically to scripted by means of:

PUT /deployments/0.1/proxies/{proxy-uuid}/deployment-type/{entity}

the examples are unclear.

Environment

Release : 5.1.2

Resolution

If you need to set the  proxy to "scripted:  the trick is to use "MANUAL" as keyword.

The following examples should work 

 curl --include   --header "Authorization:Bearer xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"  --header "Content-Type:application/json" \   --data '{   "type": "ON_DEMAND" }' \   --request PUT "https://apim-ssg.portaldomain:9443/tenantid/deployments/0.1/proxies/a60d871f-4acb-4a46-8ece-b84ae4cc7909/deployment-type/api"
 curl --include   --header "Authorization:Bearer xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"  --header "Content-Type:application/json" \   --data '{   "type": "AUTOMATIC" }' \   --request PUT "https://apim-ssg.portaldomain:9443/tenantid/deployments/0.1/proxies/a60d871f-4acb-4a46-8ece-b84ae4cc7909/deployment-type/api"
  curl --include   --header "Authorization:Bearer xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"  --header "Content-Type:application/json" \   --data '{   "type": "MANUAL" }' \   --request PUT "https://apim-ssg.portaldomain:9443/tenantid/deployments/0.1/proxies/a60d871f-4acb-4a46-8ece-b84ae4cc7909/deployment-type/api"