SetLoadBalancerPoliciesOfListener

Description

Registers, deregisters, or changes policies applied to a listener of the load balancer.

If multiple listeners are set to ELB, all listeners apply a session stickiness policy and a SSL cryptographic protocol policy which are last registered.

Request Parameters

Refer to "Common Parameters" for details on standard parameter information used by all actions.

  • LoadBalancerName

    Name of the load balancer.

    • Type: String
    • Required: Yes
  • LoadBalancerPort

    Port number of front-end connections for the listeners using the policies.

    • Type: Integer
    • Required: Yes
  • PolicyNames.member.N

    List of policies to be applied to the listeners.

    If the list is empty, all current policies will be removed from the listener.

    • Type: String list
    • Required: Yes

Response

The following status code is returned.

  • Normal response code

    This operation was accepted normally.

    • HTTP Status Code: 200

Response Elements

None.

Errors

Refer to "Common Errors" for details on error information common to all operations.

  • AccessPointNotFound

    The specified load balancer could not be found.

    • HTTP Status Code: 400
  • InvalidConfigurationRequest

    Requested configuration change is invalid.

    • HTTP Status Code: 409
  • ListenerNotFound

    Load balancer does not have a listener configured at the specified port.

    • HTTP Status Code: 400
  • PolicyNotFound

    One or more of the specified policies were not found.

    • HTTP Status Code: 400

Examples

Sample Request

The example below applies the policy named MyLoadBalancerCookiePolicy to the listener in port 80 of the load balancer named MyLB01.


       https://loadbalancing.(regionName).cloud.global.fujitsu.com/?PolicyNames.member.1=MyLoadBalancerCookiePolicy
       &LoadBalancerName=MyLB01
       &LoadBalancerPort=80
       &Version=2014-11-01
       &Action=SetLoadBalancerPoliciesOfListener
     

Sample Response (XML)


       <SetLoadBalancerPoliciesOfListenerResponse xmlns=" http://docs.cloudcommunity.global.fujitsu.com/loadbalancing/api/v1.0">
  <SetLoadBalancerPoliciesOfListenerResult/>
  <ResponseMetadata>
    <RequestId>07b1ecbc-1100-11e3-acaf-dd7edEXAMPLE</RequestId>
  </ResponseMetadata>
</SetLoadBalancerPoliciesOfListenerResponse>
     

Sample Response (JSON)


       {
  "SetLoadBalancerPoliciesOfListenerResponse": {
    "SetLoadBalancerPoliciesOfListenerResult": {
    },
    "ResponseMetadata": {
      "RequestId": "07b1ecbc-1100-11e3-acaf-dd7edEXAMPLE"
    }
  }
}