Hi,
We have been using Apigee Edge On prem and will be migrating to Hybrid. For hybrid, Is there a management API that I can call to deploy KVMs in the proxy revision level? We might have different revisions within a proxy that uses a different pair of KVM entries which stores different credentials.
For Apigee Edge docs, I see that it has an api to deploy kvms on the revision level but restricted to the public cloud.
POST | /organizations/{org_name}/apis/{api_name}/revisions/{revision_number}/keyvaluemaps | Creates a key value map (KVM) scoped to an API proxy revision. Note: Apigee Edge for Public Cloud only. |
If I wanted to accomplish the same thing using a management API for hybrid, how can I do it?It seems that hybrid doesn't have an API for create/updating revision level kvm? from the official Hybrid docs I only see APIs for org, env or proxy level. If there is, where can I find the documentation? If this is not accomplishable in Hybrid, are there any alternatives?
Thanks
Management API
Documentation
- Create
curl -i -X POST https://apigee.googleapis.com/v1/organizations/$ORG/apis/$PROXY/keyvaluemaps \
-H "Authorization: Bearer $TOKEN" \
-H 'content-type:application/json' \
-d '{ "name": "map_name" }'
- Add entry
curl -i -X POST https://apigee.googleapis.com/v1/organizations/$ORG/apis/$PROXY/keyvaluemaps/$map_name/entries \
-H "Authorization: Bearer $TOKEN" \
-H 'content-type:application/json' \
-d '{
"name": "key",
"value" : "value"
}'
I assume you already know how to generate the TOKEN and use the Management API, if you have any doubts, feel free to update this post.
Hope this was helpful!
User | Count |
---|---|
1 | |
1 | |
1 | |
1 | |
1 |