Forum Discussion
mfreeman451_606
Nimbostratus
Apr 15, 2009Question on KeyCertificate / Perl API (SOAP)
I'm trying to do stuff with KeyCertificate, specifically certificate_delete. It is supposed to take two options, mode and cert_ids
I'm getting this error:
$VAR1 = 'cert_ids';
$VAR2 = 'www.mfreeman.com';
$VAR3 = 'mode';
$VAR4 = 'MANAGEMENT_MODE_DEFAULT';
Error: SOAP-ENV:Server - SOAP response Could not find element by name: mode
Bad SOAP response! at /mnt/netapp/scripts/NTW-Dev-Tools/Lib/BB/F5/iControl/SSL.pm line 154.
I'm calling it like this:
my $soapResponse = $keyCert->certificate_delete(
SOAP::Data->name( %args )
);
where %args =
mode => MANAGEMENT_MODE_DEFAULT
cert_ids => www.mfreeman.com
Any idea what I'm doing wrong here?
- mfreeman451_606
Nimbostratus
my $soapResponse = $keyCert->certificate_delete( - mfreeman451_606
Nimbostratus
now after I delete www.mfreeman.com it still shows up when I do get_certificate_list, I thought these operations were all atomic? - mfreeman451_606
Nimbostratus
my $soapResponse = $keyCert->certificate_delete( - The prototype for the certificate_delete method is the following:
Management::KeyCertificate::certificate_delete(
my $soapResponse = $keyCert->certificate_delete( SOAP::Data->name( mode => $args{'mode'} ), SOAP::Data->name( cert_ids => [$args{'cert_ids'}] ) );
- Oh well, looks like you found the solution as I was typing. Glad you've got things working...
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects