|
NAMERundeckAPI - simplifies authenticate, connect, queries to a Rundeck instance via REST API SYNOPSIS use RundeckAPI; # create an object of type RundeckAPI :
my $api = RundeckAPI->new(
'url' => "https://my.rundeck.instance:4440",
'login' => "admin",
'token' => <token as generated with GUI, as an admin>
'debug' => 1,
'apivers' => '42',
'proxy' => "http://proxy.mycompany.com/",
);
my $hashRef = $api->get("system/info");
my $json = '{some: value}';
$hashRef = $api->put(endpoint_for_put, $json);
METHODS
RETURN VALUEReturns a hash reference containing the data sent by Rundeck. The returned value is structured like the following : the fields `httpstatus` (200, 403, etc) and `requstatus` (OK, CRIT) are always present. the field `content` is a hash (if the mime-type of the result is JSON), text or binary SEE ALSOSee documentation for Rundeck's API https://docs.rundeck.com/docs/api/rundeck-api.html and returned data AUTHOR Xavier Humbert <xavier.humbert-at-ac-nancy-metz-dot-fr>
|