NodeRings.Pulumi 0.1.5

dotnet add package NodeRings.Pulumi --version 0.1.5
                    
NuGet\Install-Package NodeRings.Pulumi -Version 0.1.5
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="NodeRings.Pulumi" Version="0.1.5" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="NodeRings.Pulumi" Version="0.1.5" />
                    
Directory.Packages.props
<PackageReference Include="NodeRings.Pulumi" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add NodeRings.Pulumi --version 0.1.5
                    
#r "nuget: NodeRings.Pulumi, 0.1.5"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package NodeRings.Pulumi@0.1.5
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=NodeRings.Pulumi&version=0.1.5
                    
Install as a Cake Addin
#tool nuget:?package=NodeRings.Pulumi&version=0.1.5
                    
Install as a Cake Tool

NodeRings.Pulumi

The NodeRings provider for Pulumi lets you manage NodeRings resources as part of your Pulumi programs. NodeRings is an infrastructure marketplace where independent hosting providers sell compute, GPU, storage, network and more through one account and one API.

With this package you can order a virtual machine by size and city, keep DNS zones, records, GeoDNS answers and DNSSEC in code, put firewalls in front of your servers, and manage SSH keys, roles, groups and secrets.

Install

dotnet add package NodeRings.Pulumi

Pulumi downloads the provider plugin from this repository's releases the first time a program uses it.

Configuration

Create a service account in the NodeRings console (Organization, then Access Control, then Service accounts), give it a role, and generate a token. Then either export it:

export NODERINGS_TOKEN=<your token>

or store it encrypted in your stack:

pulumi config set noderings:token --secret
Option Environment variable Description
noderings:token NODERINGS_TOKEN Service account token. Required. NODERINGS_API_TOKEN and NR_API_TOKEN also work.
noderings:organizationId NODERINGS_ORGANIZATION_ID Organization to act in. Defaults to the token's organization.
noderings:endpoint NODERINGS_API_URL API base URL. Defaults to the public API.
noderings:maxRetries Retries for rate-limited and transient failures. Defaults to 25.
noderings:requestsPerSecond Client-side limit per API operation. Defaults to 2.
noderings:httpTimeout Timeout for one HTTP request. Defaults to 60s.
noderings:skipOrganizationCheck Skip the token check at startup. Defaults to false.

Example

Order the cheapest hourly 1 vCPU, 1 GB server in Ashburn and point a DNS name at it.

using System.Collections.Generic;
using Pulumi;
using NodeRings.Pulumi;

return await Deployment.RunAsync(() =>
{
    var offer = GetMarketplaceOffer.Invoke(new()
    {
        PlanCode = "SC-GC-1C-1G-20",
        Country = "United States",
        City = "Ashburn",
        BillingType = "usage",
    });

    var key = new SshKey("laptop", new()
    {
        Name = "laptop",
        PublicKey = "ssh-ed25519 AAAA... you@laptop",
    });

    var web = new VirtualMachine("web", new()
    {
        Hostname = "web-1",
        PlanId = offer.Apply(o => o.PlanId),
        RegionId = offer.Apply(o => o.RegionId),
        Distro = "ubuntu_24_04",
        SshKeyIds = new[] { key.Id },
    });

    var zone = new DnsZone("site", new() { Name = "example.com" });

    new DnsRecord("www", new()
    {
        ZoneId = zone.Id,
        Name = "www",
        Type = "A",
        Ttl = 300,
        Records = new[] { web.Ipv4 },
    });

    return new Dictionary<string, object?>
    {
        ["ip"] = web.Ipv4,
        ["nameservers"] = zone.Nameservers,
    };
});

License

Apache License 2.0. See LICENSE.

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.5 0 11/26/2026
0.1.4 0 11/26/2026
0.1.3 0 11/26/2026