VMware Cloud Director API - POST-ConfigureEdgeGatewayServices
POST /admin/edgeGateway/{id}/action/configureServices
- Operation:
- POST /admin/edgeGateway/{id}/action/configureServices
- Description:
- Update edgeGateway configuration.
- Since:
- 5.1
- Deprecated:
- 33.0
- Input parameters
-
- Consume media type(s):
-
application/vnd.vmware.admin.edgeGatewayServiceConfiguration+xml
application/vnd.vmware.admin.edgeGatewayServiceConfiguration+json
- Input type:
- GatewayFeaturesType
- Output parameters
-
TaskType
- Produce media type(s):
-
application/vnd.vmware.vcloud.task+xml
application/vnd.vmware.vcloud.task+json
- Output type:
- TaskType
- Examples
-
- Request
-
HTTP 1.1
POST /api/admin/edgeGateway/a5262305-d51d-4664-b380-827137a321f1/action/configureServices
Headers:
Content-Length: 530
Content-Type: application/vnd.vmware.admin.edgeGatewayServiceConfiguration+xml; charset=ISO-8859-1
x-vcloud-authorization: XRNaH2F+r/YvHG81NXAC/2N+smYdsJBcnFdgNt2ATbg=
Body:
<?xml version="1.0" encoding="UTF-8"?><vcloud:EdgeGatewayServiceConfiguration
xmlns:vcloud="http://www.vmware.com/vcloud/v1.5"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<vcloud:NetworkService
xsi:type="vcloud:NatServiceType">
<vcloud:IsEnabled>true</vcloud:IsEnabled>
<vcloud:NatType>ipTranslation</vcloud:NatType>
<vcloud:Policy>allowTraffic</vcloud:Policy>
<vcloud:ExternalIp>10.23.6.20</vcloud:ExternalIp>
</vcloud:NetworkService>
</vcloud:EdgeGatewayServiceConfiguration>
- Response
-
HTTP/1.1 202 Accepted
Headers:
Content-Length: 1374
Content-Type: application/vnd.vmware.vcloud.task+xml;version=5.5
Location: https://vcloud.example.com/api/task/b35f86df-7e47-4067-a363-866686865c2d
Vary: Accept-Encoding
Body:
<?xml version="1.0" encoding="UTF-8"?><Task
xmlns="http://www.vmware.com/vcloud/v1.5"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
cancelRequested="false"
expiryTime="2013-05-14T19:21:31.431+03:00"
href="https://vcloud.example.com/api/task/b35f86df-7e47-4067-a363-866686865c2d"
id="urn:vcloud:task:b35f86df-7e47-4067-a363-866686865c2d"
name="task"
operation="Updating services EdgeGateway gateway(a5262305-d51d-4664-b380-827137a321f1)"
operationName="networkConfigureEdgeGatewayServices"
serviceNamespace="com.vmware.vcloud"
startTime="2013-02-13T19:21:31.431+02:00"
status="running"
type="application/vnd.vmware.vcloud.task+xml"
xsi:schemaLocation="http://www.vmware.com/vcloud/v1.5 http://https://vcloud.example.com/api/v1.5/schema/master.xsd">
<Link
href="https://vcloud.example.com/api/task/b35f86df-7e47-4067-a363-866686865c2d/action/cancel"
rel="task:cancel"/>
<Owner
href="https://vcloud.example.com/api/admin/edgeGateway/a5262305-d51d-4664-b380-827137a321f1"
name="gateway"
type="application/vnd.vmware.admin.edgeGateway+xml"/>
<User
href="https://vcloud.example.com/api/admin/user/1260efee-6915-494c-8afa-84e7e6d8a310"
name="system"
type="application/vnd.vmware.admin.user+xml"/>
<Organization
href="https://vcloud.example.com/api/org/7b832bc5-3d65-45a2-8d35-da28388ab80a"
name="Default"
type="application/vnd.vmware.vcloud.org+xml"/>
<Details/>
</Task>