delete_server_certificate ( $server_certificate_name, $opt )

Deletes the specified server certificate.

If you are using a server certificate with Elastic Load Balancing, deleting the certificate could have implications for your application. If Elastic Load Balancing doesn’t detect the deletion of bound certificates, it may continue to use the certificates. This could cause Elastic Load Balancing to stop accepting traffic. We recommend that you remove the reference to the certificate from Elastic Load Balancing before using this command to delete the certificate. For more information, go to DeleteLoadBalancerListeners in the Elastic Load Balancing API Reference.

Access

public

Parameters

Parameter

Type

Required

Description

$server_certificate_name

string

Required

The name of the server certificate you want to delete. [Constraints: The value must be between 1 and 128 characters, and must match the following regular expression pattern: [\w+=,.@-]*]

$opt

array

Optional

An associative array of parameters that can have the following keys:

  • curlopts - array - Optional - A set of values to pass directly into curl_setopt(), where the key is a pre-defined CURLOPT_* constant.
  • returnCurlHandle - boolean - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.

Returns

Type

Description

CFResponse

A CFResponse object containing a parsed HTTP response.

Examples

Delete a server certificate.

// Instantiate the class
$iam = new AmazonIAM();

$response = $iam->delete_server_certificate('my-server-cert');

// Success?
var_dump($response->isOK());
Result:
bool(true)

Source

Method defined in services/iam.class.php | Toggle source view (7 lines) | View on GitHub

public function delete_server_certificate($server_certificate_name, $opt = null)
{
    if (!$opt) $opt = array();
    $opt['ServerCertificateName'] = $server_certificate_name;
    
    return $this->authenticate('DeleteServerCertificate', $opt);
}

Copyright © 2010–2013 Amazon Web Services, LLC


Feedback