The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Regru::API::Hosting - REG.API v2 hosting management functions

VERSION

version 0.043

DESCRIPTION

REG.API hosting management. Only two functions are available for now, for Jelastic resellers.

ATTRIBUTES

namespace

Always returns the name of category: hosting. For internal uses only.

REG.API METHODS

nop

For testing purposes. Scope: everyone. Typical usage:

    $resp = $client->hosting->nop;

Returns success response.

More info at Hosting management: nop.

set_jelastic_refill_url

Update Jelastic refill URL for current reseller. That url is used when client hits "Refill" button at his Jelastic account page. Keywords <service_id> and <email> in url will be replaced with service identifier and user email, which was used for Jelastic account registration. Scope partners.

Typical usage:

    $resp = $client->hosting->set_jelastic_refill_url(
        url => 'http://mysite.com?service_id=<service_id>&email=<email>'
    );

Returns success response if URL was set. More info at Hosting management: set_jelastic_refill_url.

get_jelastic_refill_url

Fetch Jelastic refill URL for current reseller.Scope: partners. Typical usage:

    $resp = $client->hosting->get_jelastic_refill_url;

Answer will contain the url field, with reseller refill url.

More info at Hosting management: get_jelastic_refill_url.

SEE ALSO

Regru::API

Regru::API::Role::Client

REG.API Hosting management

REG.API Common error codes.

BUGS

Please report any bugs or feature requests on the bugtracker website https://github.com/regru/regru-api-perl/issues

When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.

AUTHORS

  • Polina Shubina <shubina@reg.ru>

  • Anton Gerasimov <a.gerasimov@reg.ru>

COPYRIGHT AND LICENSE

This software is copyright (c) 2013 by REG.RU LLC.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.