KVM -Management API - Unusual behaviour

Hi,

I am on on-prem -4.17.05.

I am trying to create the Create KeyValueMap in an environment. As part of the request i have built the URI with org and env details .

http://<<MS_IP>:8080/v1/o/test/e/dv/keyvaluemaps and JSON payload with required authentication and headers.

In the success scenario i was able to create the kvm successfully and the status code returned is 201 .

I tried to create same kvm in other non-existing environment. The returned status code is still 201, there is no exception that environment doesn't exist. Its same behavior even with non-existing org.

http://<<MS_IP>:8080/v1/o/test/e/dev/keyvaluemaps

I am not sure if this bug has been reported or resolved??

Thanks,

Latheef D

0 2 171
2 REPLIES 2

I tried to create same kvm in other non-existing environment. The returned status code is still 201,

Show me the curl commands, please.

@Dino-at-Google Below is the results from the curl command for the kvm's available in the non-existing environments getting retrieved and list of environments available in the Org.

curl -X GET http://<<MS_IP>>:8080/v1/o/test/e/dev/keyvaluemaps

[ "test", "test1" ]

curl -X GET http://<<MS_IP>>:8080/v1/o/test/e

[ "qa", "pq", "dv" ]

For some reason its not displaying it as code so copying as plain text and image

8322-apigee-curl.jpg