AttachLoadBalancerToSubnets

Description

Attaches one or more subnets to the specified load balancer.

The load balancer evenly distributes requests across all registered subnets.

Request Parameters

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

  • LoadBalancerName

    Name of the load balancer.

    The name must be unique among the load balancers in the projects to which the account belongs.

    • Type: String
    • Required: Yes
  • Subnets.member.N

    List of subnet IDs to attach to the load balancer.

    • 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

The following element is returned in a structure called the AttachLoadBalancerToSubnetsResult.

  • Subnets

    List of subnet IDs attached to the load balancer.

    • Type: String list

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
  • InvalidSubnet

    The Virtual system has no Internet gateway.

    • HTTP Status Code: 400
  • SubnetNotFound

    One or more subnets were not found.

    • HTTP Status Code: 400

Examples

Sample Request

The example below attaches the subnet-3561b05e to the load balancer with the name MyLB01.


https://loadbalancing.(regionName).cloud.global.fujitsu.com/?Subnets.member.1=subnet-3561b05e
&LoadBalancerName=MyLB01
&Version=2014-11-01
&Action=AttachLoadBalancerToSubnets  
     

Sample Response (XML)


<AttachLoadBalancerToSubnetsResponse xmlns="http://docs.cloudcommunity.global.fujitsu.com/loadbalancing/api/v1.0">
  <AttachLoadBalancerToSubnetsResult>
    <Subnets>
      <member>subnet-119f0078</member>
      <member>subnet-3561b05e</member>
    </Subnets>
  </AttachLoadBalancerToSubnetsResult>
  <ResponseMetadata>
    <RequestId>07b1ecbc-1100-11e3-acaf-dd7edEXAMPLE</RequestId>
  </ResponseMetadata>
</AttachLoadBalancerToSubnetsResponse>   
     

Sample Response (JSON)


{
  "AttachLoadBalancerToSubnetsResponse": {
    "AttachLoadBalancerToSubnetsResult": {
      "Subnets": {
        "member": [
          "subnet-119f0078",
          "subnet-3561b05e"
        ]
      }
    },
    "ResponseMetadata": {
      "RequestId": "07b1ecbc-1100-11e3-acaf-dd7edEXAMPLE"
    }
  }
}