lib/akamai_cloudlet_manager/policy_version.rb
def activate(network)
      request  = Net::HTTP::Post.new(
        URI.join(
          @base_uri.to_s,
          "/cloudlets/api/v2/policies/#{@policy_id}/versions/#{@version_id}/activations"
        ).to_s,
        { 'Content-Type' => 'application/json'}
      )
      request.body = {
        "network": network
      }.to_json
      response = @http_host.request(request)
      response.body
    end
def activate(network)
      request  = Net::HTTP::Post.new(
        URI.join(
          @base_uri.to_s,
          "/cloudlets/api/v2/policies/#{@policy_id}/versions/#{@version_id}/activations"
        ).to_s,
        { 'Content-Type' => 'application/json'}
      )
      request.body = {
        "network": network
      }.to_json
      response = @http_host.request(request)
      response.body
    end
def activate ( network ) request = Net :: HTTP :: Post . new ( URI . join ( @base_uri . to_s , "/cloudlets/api/v2/policies/#{@policy_id}/versions/#{@version_id}/activations" ) . to_s , { 'Content-Type' => 'application/json' } ) request . body = { "network" : network } . to_json response = @http_host . request ( request ) response . body end
Activate a policy version
Activate a policy version