CreateLoadBalancerPolicy

Description

Creates a policy including required attributes according to its type.

Up to 100 policies can be created for each load balancer.

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
  • PolicyAttributes.member.N

    List of attributes related to the policy.

  • PolicyName

    Name of the policy to be created.

    The name must be unique among the policies that can be used by the target load balancer.

    • Type: String
    • Required: Yes
  • PolicyTypeName

    Type name of the policy to be created.

    • Type: String
    • Required: Yes

      The following can be specified.

      SSLNegotiationPolicyType

      An SSL cryptographic protocol policy.

      It is possible to set to Listener, which uses the protocol HTTPS and SSL.

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

    Policy with the same name exists for this load balancer. Please choose another name.

    • HTTP Status Code: 400
  • InvalidConfigurationRequest

    Requested configuration change is invalid.

    • HTTP Status Code: 409
  • PolicyTypeNotFound

    One or more of the specified policy types do not exist.

    • HTTP Status Code: 400
  • PolicyNotFound

    One or more specified policies were not found.

    • HTTP Status Code: 400
  • TooManyPolicies

    Quota for number of policies for this load balancer has already been reached.

    • HTTP Status Code: 400

Examples

Sample request 1

The example below creates a policy named MySSLNegotiationPolicy, which has a valid encryption protocol specified, for the load balancer named MyLB01.


       https://loadbalancing.(regionName).cloud.global.fujitsu.com/
       ?LoadBalancerName=MyLB01
       &PolicyAttributes.member.1.AttributeName=Protocol-SSLv3
       &PolicyAttributes.member.1.AttributeValue=true
       &PolicyAttributes.member.2.AttributeName=Protocol-TLSv1
       &PolicyAttributes.member.2.AttributeValue=true
       &PolicyAttributes.member.3.AttributeName=Protocol-TLSv1.1
       &PolicyAttributes.member.3.AttributeValue=true
       &PolicyAttributes.member.4.AttributeName=Protocol-TLSv1.2
       &PolicyAttributes.member.4.AttributeValue=true
       &PolicyName=MySSLNegotiationPolicy
       &PolicyTypeName=SSLNegotiationPolicyType
       &Version=2014-11-01
       &Action=CreateLoadBalancerPolicy
     

Sample request 2

The example below creates a policy named MySSLNegotiationPolicy, which has the same valid encryption protocol and cipher suite as those in the predefined security policy (LBServiceSecurityPolicy-2017-05), for the load balancer named "MyLB01".


       https://loadbalancing.(regionName).cloud.global.fujitsu.com/
       ?LoadBalancerName=MyLB01
       &PolicyAttributes.member.1.AttributeName=Reference-Security-Policy
       &PolicyAttributes.member.1.AttributeValue=LBServiceSecurityPolicy-2017-05
       &PolicyName=MySSLNegotiationPolicy
       &PolicyTypeName=SSLNegotiationPolicyType
       &Version=2014-11-01
       &Action=CreateLoadBalancerPolicy
     

Sample request 3

The example below creates a policy named MySSLNegotiationPolicy, which has a valid encryption protocol and cipher suite specified, for the load balancer named "MyLB01".


       https://loadbalancing.(regionName).cloud.global.fujitsu.com/
       ?LoadBalancerName=MyLB01
       &PolicyAttributes.member.1.AttributeName=Protocol-TLSv1.2
       &PolicyAttributes.member.1.AttributeValue=true
       &PolicyAttributes.member.2.AttributeName=ECDHE-RSA-AES256-GCM-SHA384
       &PolicyAttributes.member.2.AttributeValue=true
       &PolicyAttributes.member.3.AttributeName=ECDHE-ECDSA-AES256-GCM-SHA384
       &PolicyAttributes.member.3.AttributeValue=true
       &PolicyAttributes.member.4.AttributeName=DHE-RSA-AES256-GCM-SHA384
       &PolicyAttributes.member.4.AttributeValue=true
       &PolicyAttributes.member.5.AttributeName=ECDHE-RSA-AES128-GCM-SHA256
       &PolicyAttributes.member.5.AttributeValue=true
       &PolicyAttributes.member.6.AttributeName=ECDHE-ECDSA-AES128-GCM-SHA256
       &PolicyAttributes.member.6.AttributeValue=true
       &PolicyAttributes.member.7.AttributeName=DHE-RSA-AES128-GCM-SHA256
       &PolicyAttributes.member.7.AttributeValue=true
       &PolicyName=MySSLNegotiationPolicy
       &PolicyTypeName=SSLNegotiationPolicyType
       &Version=2014-11-01
       &Action=CreateLoadBalancerPolicy
     

Sample Response (XML)


       <CreateLoadBalancerPolicyResponse xmlns="http://docs.cloudcommunity.global.fujitsu.com/loadbalancing/api/v1.0">
       <CreateLoadBalancerPolicyResult/>
       <ResponseMetadata>
         <RequestId>99a693e9-12b8-11e3-9ad6-bf3e4EXAMPLE</RequestId>
       </ResponseMetadata>
       </CreateLoadBalancerPolicyResponse>
       

Sample Response (JSON)


       {
        "CreateLoadBalancerPolicyResponse": {
         "CreateLoadBalancerPolicyResult": {
         },
         "ResponseMetadata": {
          "RequestId": "99a693e9-12b8-11e3-9ad6-bf3e4EXAMPLE"
         }
        }
       }