SetLoadBalancerListenerSSLCertificate
Description
Sets the certificate that terminates the specified listener's SSL connections.
The specified certificate replaces any prior certificate that was being used on the specified load balancer and port.
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 of the listener that uses the specified SSL certificate.
- Type: Integer
- Required: Yes
- SSLCertificateId
Resource ID of the SSL certificate registered for the Key Management service.
- Type: String
- 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
- CertificateNotFound
The specified SSL ID does not refer to a valid SSL certificate in the Key Management Service.
- 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
Examples
Sample Request
The example below sets the SSL certificate with ID 5c349f63-a874-47ed-b09e-9da913cbbbde for port 443 and the load balancer named MyLB01.
https://loadbalancing.(regionName).cloud.global.fujitsu.com/?LoadBalancerName=MyLB01
&SSLCertificateId=5c349f63-a874-47ed-b09e-9da913cbbbde
&LoadBalancerPort=443
&Version=2014-11-01
&Action=SetLoadBalancerListenerSSLCertificate
Sample Response (XML)
<SetLoadBalancerListenerSSLCertificateResponse xmlns=" http://docs.cloudcommunity.global.fujitsu.com/loadbalancing/api/v1.0">
<SetLoadBalancerListenerSSLCertificateResult/>
<ResponseMetadata>
<RequestId>83c88b9d-12b7-11e3-8b82-87b12EXAMPLE</RequestId>
</ResponseMetadata>
</SetLoadBalancerListenerSSLCertificateResponse>
Sample Response (JSON)
{
"SetLoadBalancerListenerSSLCertificateResponse": {
"SetLoadBalancerListenerSSLCertificateResult": {
},
"ResponseMetadata": {
"RequestId": "83c88b9d-12b7-11e3-8b82-87b12EXAMPLE"
}
}
}