SSLCertificateListSanNames

List SAN names for certificate.

Input

Parameter Value Example value
id Unique ID identifier for certificate. Retrieve with SSLListCertificates
Parameter is required
1


Output

Parameter Value Example value
success command executed successfully 0 = error
1 = command executed successfully
command_response_message Error
Only sent when value parameter success = 0
incorrect password
total_count Totaal amount san names
Only sent when value parameter success = 0
5
san_domain_x SAN domain.
The X runs from 1 to the value of total_count
Only sent when value parameter success = 1
5


Voorbeeld

<? require("class_versio_api.php"); unset($command); $command = array( "command" => "SSLCertificateListSanNames", "id" => "5" ); $api = new Versio_api(); $versio = $api->api_send( $command ); IF($versio['success']==0) { echo("Fout opgetreden. Fout code: ".$versio['command_response_code'].". Fout text: ".$versio['command_response_message'].""); } else { IF($versio['total_count']>0) { ?> <table> <? $teller = 1; while($versio['total_count']>=$teller) { ?> <tr> <td><? echo $versio['san_domain_'.$teller]; ?></td> </tr> <? $teller++; } ?> </table> <? } else { echo("No SAN names found for this certificate."); } } ?>