noderings.cloud.marketplace_offer_info module – Find NodeRings marketplace offers for a plan code in a city
Note
This module is part of the noderings.cloud collection (version 0.2.0).
It is not included in ansible-core.
To check whether it is installed, run ansible-galaxy collection list.
To install it, use: ansible-galaxy collection install noderings.cloud.
You need further requirements to be able to use this module,
see Requirements for details.
To use it in a playbook, specify: noderings.cloud.marketplace_offer_info.
New in noderings.cloud 0.1.0
Synopsis
NodeRings is a marketplace. The same plan code is usually sold by several hosting providers, in several cities, at different prices. This module lists the offers for one plan code in one city, best first, and returns the best one as
offer.Use
offer.plan_idandoffer.region_idwith noderings.cloud.virtual_machine or noderings.cloud.game_server to order exactly that offer.
Requirements
The below requirements are needed on the host that executes this module.
python >= 3.9
Parameters
Parameter |
Comments |
|---|---|
How many times a request is retried after rate limiting (HTTP 429) or a gateway error (HTTP 502, 503 or 504). Orders (virtual machines, game servers, snapshots) are never retried blindly. Default: |
|
Timeout in seconds for a single HTTP request. Default: |
|
A NodeRings service-account token. Create one in the NodeRings console under If not set, the value of the |
|
Base URL of the NodeRings API. If not set, the value of the Default: |
|
What is ordered. Only checked when the provider is known ( Choices:
|
|
Strongly recommended; without it each provider offers one plan of its choice for the code. Choices:
|
|
City, for example |
|
Country, for example |
|
Organization to act in, sent as the Defaults to the organization the token belongs to. If not set, the value of the |
|
Platform plan code, for example |
|
Only offers from this hosting provider, given by its provider ID, its storefront slug (for example A name that more than one provider uses fails; give the provider ID or storefront slug then. Mutually exclusive with |
|
Only offers from this provider. |
|
Only providers whose platform supports all of these, for example Default: |
|
Only offers with IPv6 in the city. Choices:
|
|
Choices:
|
|
Only offers from the provider with this public storefront, for example |
|
Whether to validate the API’s TLS certificate. Choices:
|
Attributes
Attribute |
Support |
Description |
|---|---|---|
Support: full |
Can run in check_mode and return changed status prediction without modifying the target. |
|
Support: none |
Will return details on what has changed (or possibly needs changing in check_mode), when in diff mode. |
Notes
Note
All modules in this collection belong to the
noderings.cloud.noderingsaction group, so connection options can be set once withmodule_defaults.
Examples
- name: Cheapest hourly 1 vCPU / 1 GB server in Ashburn with a firewall
noderings.cloud.marketplace_offer_info:
plan_code: SC-GC-1C-1G-20
country: United States
city: Ashburn
billing_type: usage
require_capabilities: [guest_firewall]
register: found
- name: Offers from one provider, by name
noderings.cloud.marketplace_offer_info:
plan_code: SC-GC-1C-1G-20
country: United States
city: Ashburn
billing_type: usage
provider: Acme Hosting
register: acme
- name: Order exactly that offer
noderings.cloud.virtual_machine:
hostname: web-1
plan_id: "{{ found.offer.plan_id }}"
region_id: "{{ found.offer.region_id }}"
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
|---|---|
The best offer. Empty when none matched and Returned: always |
|
Returned: success |
|
What the provider’s platform supports. Returned: success |
|
ID of the provider’s plan for the code. Returned: success |
|
Price lines of the plan. Returned: success |
|
ID of the hosting provider. Returned: success |
|
Name of the hosting provider. Returned: success |
|
Provider rating. Returned: success |
|
ID of the city at that provider. Returned: success |
|
Every matching offer, best first. Returned: always |