GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
RundeckAPI(3) User Contributed Perl Documentation RundeckAPI(3)

RundeckAPI - simplifies authenticate, connect, queries to a Rundeck instance via REST API

        # 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);

"new"
Returns an object authenticated and connected to a Rundeck Instance. The field 'login' is not stricto sensu required, but it is a good security mesure to check if login/token match
"get"
Sends a GET query. Request one argument, the enpoint to the API. Returns a hash reference
"post"
Sends a POST query. Request two arguments, the enpoint to the API an the data in json format. Returns a hash reference
"put"
Sends a PUT query. Similar to post
"delete"
Sends a DELETE query. Similar to get
"postData"
POST some data. Request three arguments : endpoint, mime-type and the appropriate data. Returns a hash reference.
"putData"
PUT some data. Similar to postData
"postFile"
Alias for compatibility for postData
"putFile"
Alias for compatibility for putData

Returns 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 documentation for Rundeck's API https://docs.rundeck.com/docs/api/rundeck-api.html and returned data

2024-09-16 perl v5.40.2

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.