You create an application profile to define the behavior of a particular type of network traffic. After configuring a profile, you associate the profile with a virtual server. The virtual server then processes traffic according to the values specified in the profile. Using profiles enhances your control over managing network traffic, and makes traffic-management tasks easier and more efficient.

You can configure an application profile by using the POST method and the /lb/applicationprofile URI. Alternatively, you can configure an application profile as part of the overall load balancer configuration. See Configure Load Balancing.

For more information about Application Profile functionality for Advanced Networking Services, see Create an Application Profile in the vCloud Air Advanced Networking Services Guide.

1

Log in to vCloud Air as an administrator. See Log in to vCloud Air for information.

2

Create a login session with vCloud Director. See Create a Session for a Virtual Data Center in a Service for information.

3

Using the vCloud API, query vCloud Director for the ID of the edge gateway that requires load balancer configuration.

1

Submit a POST request using the following request header:

POST https://vchs.vmware.com/hybridity/api/gateways/gatewayId/lb/applicationprofile

In the request header, include the OATH token and the Accept header that you obtained when creating a login session:

Accept: application/json
Content-Type: application/json
X-Vcloud-Authorization: vcloud-auth-token
2

Include the following elements in the request body:

{
  "applicationProfileId": "applicationProfile-X",
  "persistence" : [ {
      "method" : "string",
      "cookieName" : "string",
      "cookieMode" : "string",
      "expire" : true|false,
    }, ]
  "name" : "string",
  "insertXForwardedFor" : true|false,
  "sslPassthrough" : true|false,
  "serverSslEnabled" : true|false,
  "clientSsl" : [ {
      "ciphers" : "string",
      "clientAuth" : "string",
      "serviceCertificate" : "string",
      "caCertificate" : "string",
      "crlCertificate" : "string",
    }, ]
  "serverSsl" : [ {
      "ciphers" : "string",
      "serviceCertificate" : "string",
      "caCertificate" : "string",
      "crlCertificate" : "string",
    }, ]
  "httpRedirect": [ {
      "to" : "string",
    }, ]
}

For a description of the application profile schema elements, see APPLICATION PROFILE (applicationProfile – Array) for information.

The server returns a 201 Created.