The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

lm-auth-helper - Builds LMv1 token header info for Logicmonitor.

SYNOPSIS

lm-auth-helper --path <path> [--verb <HTTP verb>] [--data <file>] [-c] [-q]

DESCRIPTION

This puts together the auth token header for Logicmonitor.

This requires the following enviromentalvalues to be set.

    Logicmonitor_accessKey
    Logicmonitor_accessID

Those are respectively the access key and access ID for the REST API.

SWITCHES

--verb <HTTP verb>

The HTTP verb in question. Either GET or PUT.

--path <API path>

The API resource path. Such as /device/devices

--data <data file>

If doing a put, this is a path to a file containing the data that the put contains.

-n

Print a newline character at the end.

-c

Print "Authorizion: " with the string for curl.

-q

Print it quoted. This may not always work reliably.

--version

Show the version info.

--help

Print this message.