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](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