Infoblox::Grid::X509Certificate - An X509Certificate object.
An X509Certificate object.
This section describes all the methods in an Infoblox::Session module that you can apply to an X509Certificate object.
Use this method to retrieve all the matching objects from the Infoblox appliance. See Infoblox::Session->get() for parameters and return values.
Apply the following attributes to get for an X509Certificate object:
serial - Optional. The certificate serial number in hex format. issuer - Optional. The name of the issuer. distinguished_name - Optional. The certificate subject name. valid_not_after - Optional. String that contains a desired value of the certificate expiration date in ISO 8601 format. valid_not_before - Optional. String that contains a desired value of the certificate start date in ISO 8601 format.
# Retrieve X509Certificate objects with specify certificate subject name my @retrieved_objs = $session->get( object => 'Infoblox::Grid::X509Certificate', distinguished_name => 'CN="10.34.1.106",OU="Engineering",O="Infoblox Inc",L="Santa Clara",ST="California",C="US"', );
Use this method to remove an object from the Infoblox appliance. See Infoblox::Session->remove() for parameters and return values.
To remove a specific object, first use get()
or search()
to retrieve the specific object, and then submit this object for removal.
# Get X509Certificate object my @retrieved_objs = $session->get( object => 'Infoblox::Grid::X509Certificate', distinguished_name => 'CN="10.34.1.106",OU="Engineering",O="Infoblox Inc",L="Santa Clara",ST="California",C="US"', );
# Find the desired object from the retrieved list my $x509cert = $retrieved_objs[0];
# Submit for removal my $response = $session->remove( $x509cert );
Use this method to search for objects in the Infoblox appliance. See Infoblox::Session->search() for parameters and return values.
Apply the following attributes to search for an X509Certificate object:
serial - Optional. The certificate serial number in hex format. issuer - Optional. The name of the issuer. distinguished_name - Optional. The certificate subject name. valid_not_after - Optional. String that contains a desired value of the certificate expiration date in ISO 8601 format. valid_not_before - Optional. String that contains a desired value of the certificate start date in ISO 8601 format.
# Retrieve X509Certificate objects with specify certificate subject name my @retrieved_objs = $session->search( object => 'Infoblox::Grid::X509Certificate', distinguished_name => 'CN="10.34.1.106",OU="Engineering",O="Infoblox Inc",L="Santa Clara",ST="California",C="US"', );
This section describes all the methods that you can use to configure and retrieve the attribute values of a X509Certificate object.
Use this method to retrieve the issuer subject name. This method does not support any argument because the attribute is read-only and is set by the server.
None
The method returns the attribute value.
# Get attribute value my $issuer = $x509cert->issuer();
Use this method to retrieve the certificate serial number in hex format. This method does not support any argument because the attribute is read-only and is set by the server.
None
The method returns the attribute value.
# Get attribute value my $serial = $x509cert->serial();
Use this method to retrieve the certificate subject name. This method does not support any argument because the attribute is read-only and is set by the server.
None
The method returns the attribute value.
# Get attribute value my $distinguished_name = $x509cert->distinguished_name();
Use this method to retrieve the date before the certificate becomes invalid in ISO 8601 format. This method does not support any argument because the attribute is read-only and is set by the server.
None
The method returns the attribute value.
# Get attribute value my $valid_not_before = $x509cert->valid_not_before();
Use this method to retrieve the date after the certificate becomes invalid in ISO 8601 format. This method does not support any argument because the attribute is read-only and is set by the server.
None
The method returns the attribute value.
# Get attribute value my $valid_not_after = $x509cert->valid_not_after();
Infoblox Inc. http://www.infoblox.com/
Copyright (c) 2017 Infoblox Inc.