Cloudflare\Zone\CustomSSL::list_certificates PHP Method

list_certificates() public method

List SSL configurations (permission needed: #ssl:edit) List, search, sort, and filter all of your custom SSL certificates
public list_certificates ( string $zone_identifier, string | null $status = null, integer | null $page = null, integer | null $per_page = null, string | null $order = null, string | null $direction = null, string | null $match = null )
$zone_identifier string API item identifier tag
$status string | null Status of the zone's custom SSL
$page integer | null Page number of paginated results
$per_page integer | null Number of zones per page
$order string | null Field to order certificates by (status, issuer, priority, expires_on)
$direction string | null Direction to order domains (asc, desc)
$match string | null Whether to match all search requirements or at least one (any) (any, all)
    public function list_certificates($zone_identifier, $status = null, $page = null, $per_page = null, $order = null, $direction = null, $match = null)
    {
        $data = ['status' => $status, 'page' => $page, 'per_page' => $per_page, 'order' => $order, 'direction' => $direction, 'match' => $match];
        return $this->get('zones/' . $zone_identifier . '/custom_certificates', $data);
    }