cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Uploading Proxy to API Management via Rest API

Mattias
Active Participant
0 Kudos
363

Hello,

I'm trying to upload an API proxy to our API Management portal using the rest api. I have downloaded a zip file from our development subaccount, and verified that the zip file works by uploading it to our test subaccount via the web interface.

However when I tro to upload via the transport endpoint I get the following error

{
    "error": {
        "code": "VIRTUALHOST_NOT_FOUND_ERROR",
        "message": {
            "value": "Missing configurations; Please contact support team to configure virtual host."
        }
    }
}

The URL I'm posting to looks like:

https://prodeu2apiportalapimgmtpeu2-<consumeraccountname>.eu2.hana.ondemand.com/apiportal/api/1.0/Transport.svc/APIProxies?virtualhost=<our_virtual_host>.apimanagement.eu2.hana.ondemand.com

I've verified that the consumer account name and virtual host are the same as when I upload the zipfile via the web interface.

How come I get the error?

Regards

Mattias

View Entire Topic
Mattias
Active Participant
0 Kudos

It seems I didn't have to post the name of the virtual host, even though the documentation stated that I should do it.

CMERLUZZ
Discoverer
0 Kudos
Wow I just came into the same problem and ended up in this post. Thanks a lot, my friend, because you just solved my problem. But it's sad to see your post from FIVE YEARS AGO and see that the documentation in SAP Business Accelerator Hub IS STILL WRONG!