NAME

WebService::OPNsense::IPsec::ManualSpd - IPsec manual SPD (Security Policy Database) controller

VERSION

version 0.002

SYNOPSIS

my $mspd = $opn->ipsec_manual_spd;

my $results = $mspd->search;
$mspd->add({ spd => { ... } });

DESCRIPTION

Manages manual IPsec Security Policy Database entries.

PROVIDED METHODS

The following methods are inherited from consumed roles.

my $results = $ctrl->search( %params );

Searches for manual SPD entries.

get

my $spd = $ctrl->get( $uuid );

Returns a single manual SPD entry by UUID. Throws if $uuid is not a valid UUID.

set

my $result = $ctrl->set( $uuid, $spd_data );

Updates manual SPD entry by UUID. Throws if $uuid is not a valid UUID.

add

my $result = $ctrl->add( $spd_data );

Creates manual SPD entry.

del

my $result = $ctrl->del( $uuid );

Deletes a manual SPD entry by UUID. Throws if $uuid is not a valid UUID.

toggle

my $result = $ctrl->toggle( $uuid, $enabled );

Enables or disables a manual SPD entry. Throws if $uuid is not a valid UUID.

client

my $http_client = $ctrl->client;

Returns the underlying HTTP client object used for API requests.

SEE ALSO

WebService::OPNsense::Role::Crud

AUTHOR

Dean Hamstead <dean@fragfest.com.au>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2026 by Dean Hamstead.

This is free software, licensed under:

The MIT (X11) License