Virtual Host creation maven config plugin getting 403 Forbidden error

Hi,

I am trying to create virtual host using maven config. I added virtual host configuration in edge.json as shown below.

"virtualHosts": [
            {
                "name": "EnterpriseHost",
                "hostAliases": ["example.com", "api.example.com"],
                "isEnabled": true,
                "port": 80
            }
        ]

But when run the mvn to create virtual host I am getting 403 Forbidden error.

Below is the log

Request prepared for the server 

 **************************

POST  https://api.enterprise.apigee.com/v1/organizations/sjorg-eval/environments/test/virtualhosts

accept: application/json

accept-encoding: gzip

authorization: Basic [Not shown in log]

content-type: application/json

 [Request body]

{"port":21,"isEnabled":false,"name":"EnterpriseHost"}

[ERROR] Apigee call failed 403 Forbidden

Anyone has idea what is going wrong here?

Regards,

Siva

1 1 243
1 REPLY 1

I dont think the configuration you have is correct. In the request body, I see different configuration compared to the edge.json entry shown above. Please confirm that you have the correct configuration and try