Quantcast
Channel: VMware Communities : Discussion List - VMware {code}
Viewing all articles
Browse latest Browse all 2738

(400) Bad Request - Edge GW

$
0
0

Hello,

 

I'm trying to create an Edge GW using RestAPI into the vCloud. I have read the documentation on VMware's website and did exactly how they are describing but still, I'm getting the error (400) Bad Request.

 

Content Type: application/vnd.vmware.admin.edgeGateway+xml

Method: Post

URL:https://cloud.domain.local/api/admin/vdc/e1107fe27806-f429-6654-827a-312337d7/edgeGateways

Body:      <?xml version="1.0" encoding="UTF-8"?>

<EdgeGateway xmlns="http://www.vmware.com/vcloud/v1.5" name="EdgeRestAPI">

    <Description>EdgeRestAPI</Description>

    <Configuration>

        <GatewayBackingConfig>compact</GatewayBackingConfig>

        <HaEnabled>false</HaEnabled>

        <UseDefaultRouteForDnsRelay>false</UseDefaultRouteForDnsRelay>

        <GatewayInterfaces>

            <GatewayInterface>

                <Name>WAN-INT</Name>

                <DisplayName>WAN-INT</DisplayName>

                <Network href="https://cloud.domain.local/api/admin/network/ab625039a278-aa00-4e16-bb32-fed9f2b8" />

                <InterfaceType>uplink</InterfaceType>

                <SubnetParticipation>

                    <Gateway>1.1.1.1</Gateway>

                    <Netmask>255.255.255.0</Netmask>

                    <IpRanges>

                        <IpRange>

                            <StartAddress>1.1.1.2</StartAddress>

                            <EndAddress>1.1.1.2</EndAddress>

                        </IpRange>

                    </IpRanges>

                </SubnetParticipation>

                <ApplyRateLimit>false</ApplyRateLimit>

                <UseForDefaultRoute>true</UseForDefaultRoute>

            </GatewayInterface>

        </GatewayInterfaces>

    </Configuration>

</EdgeGateway>

 

I would really appreciate if someone had the same issue and how you fixed it.

 

Regards,

Fannol


Viewing all articles
Browse latest Browse all 2738

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>