Hi,
I am trying to create a KeyvalueMap using postman tool.
Below is the URL i am using :
https://enterprise.apigee.com/platform/{org-name}/environments/test/target-servers
content-type : application/json
Body :
{ “host”:“http://services.groupkt.com”, “isEnabled”:true, “name”:“Country_Target”, “port”: 8080, “sSLInfo”: { “ciphers”: , “clientAuthEnabled”: false, “enabled”: false, “ignoreValidationErrors”: false, “protocols”: } }
But i am unable to create it. getting following error description. Please do help me ASAP.
Apigee
Oops, something went wrong!
404
Sorry, but the page you're looking for can't be found.
Try checking the URL for errors and refresh your browser.
Keep getting this page? Report this to our
support team.
© Apigee Corp. All rights reserved. Version 170802
robinm
2
Hey @Saidulu
The URL and content you posted indicates you are not trying to create a KeyValueMap …
… rather that you are trying to create a new TargetServer.
Remember to set your authorization header (easy via postman - Authorization tab, type=Basic Auth).
'Authorization' : 'Basic {base64-username-colon-password'
I managed to create a target server via Postman using the following body:-
{
"host": "http://services.groupkt.com",
"isEnabled": true,
"name": "Country_Target",
"port": 8080,
"sSLInfo": {
"ciphers": [],
"clientAuthEnabled": "false",
"enabled": "false",
"ignoreValidationErrors": false,
"protocols": []
}
}
Result was “201 Created” and I can see the target server via the Edge UI.
Hope this helps.
Robin
As Robin pointed, you are actually attempting to create a target server.
Your URL is also pointing to the wrong location as all management APIs on cloud will go to
[https://api.enterprise.apigee.com/v1/o/{org}/](https://api.enterprise.apigee.com/v1/o/{org}/).
For more details on the target server APIs http://docs.apigee.com/management/apis/post/organizations/%7Borg_name%7D/environments/%7Benv_name%7D/targetservers
And KVM: http://docs.apigee.com/api-reference/content/keyvalue-maps-management-api