Announcements
This site is in read only until July 22 as we migrate to a new platform; refer to this community post for more details.
Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Create KVM using management API

Hello,

I want to create a KVM using Kvm management api ,I made a proxy in that want to call management api using service callout policy to create kvm .

management api:-https://api.enterprise.apigee.com/v1/organizations/{org_name}/environments/{env_name}/keyvaluemaps

passing that value :-

{ "name" : "kvmcreate", "encrypted" : "true", "entry" : [ { "name" : "test1", "value" : "11" }, { "name" : "test2", "value" : "12" } ] }

Service callout:-

<ServiceCallout name="SC-Create_KVM">
  <DisplayName>SC-Create_KVM</DisplayName>
  <Properties/>
  <Request clearPayload="false" variable="myRequest"> <IgnoreUnresolvedVariables>false</IgnoreUnresolvedVariables>
  <Add>
    <Header name="Authorization">Basic MASKED==</Header>
  </Add>
  <set>
    <Payload contentType="application/json" variablePrefix="$" variableSuffix="#">$request.content#</Payload>
    <Verb>POST</Verb>
  </set>
  </Request>
  <Response>calloutResponse</Response>
  <HTTPTargetConnection>
    <URL>https://api.enterprise.apigee.com/v1/organizations/{-------------eval}/environments/test/keyvaluemaps</URL>
  </HTTPTargetConnection>
</ServiceCallout>

So any one suggest that how could do this.

Thanks

0 4 946
4 REPLIES 4