Error while creating collection using create collection api

Proxy is deployed in prod env still I'm getting the following error while trying to create a collection using API.

I could create collection with same information using UI.

Request:

{

'name': 'test collection name',

'environment': 'prod',

'members': ['proxy-service'],

'organization': 'org',

'type': 'proxy',

'description': 'test collection service'

}

Error:

{"error":"Proxy <proxy-name> is not deployed in org <org> and env prod"}

0 4 174
4 REPLIES 4

This...

{"error":"Proxy <proxy-name> is not deployed in org <org> and env prod"}

... tells me that you need to deploy your API Proxy.

I don't know what you mean by "Collection", but if you have an API Proxy, and you want it to handle inbound messages, then you first need to deploy it to an environment.

Hi Dino,

Thanks for replying.

I don't know what you mean by "Collection",

>> it's a collection of Proxy, Target or Developer App used to create an alert.

(Analyze > API Monitoring > Collections)

tells me that you need to deploy your API Proxy.

>> Proxy is already deployed test and prod env.

I'm able to create a collection using UI, it only throws an error while creating collection using API.

(https://apimonitoring.enterprise.apigee.com/collections)

Ahhhhh, I see... A collection for the Monitoring feature. Let me see if I can get some help for you.

Thanks Dino