1. Packages
  2. Linode
Linode v4.21.0 published on Friday, Jun 7, 2024 by Pulumi

Linode

linode logo
Linode v4.21.0 published on Friday, Jun 7, 2024 by Pulumi

    The Linode provider for Pulumi can be used to provision any of the cloud resources available in Linode. The Linode provider must be configured with credentials to deploy and update resources in Linode.

    Example

    const linode = require("@pulumi/linode")
    const domain = new linode.Domain("my-domain", {
      domain: "foobar.example",
      soaEmail: "example@foobar.example",
      type: "master",
    });
    
    import * as linode from "@pulumi/linode";
    const domain = new linode.Domain("my-domain", {
      domain: "foobar.example",
      soaEmail: "example@foobar.example",
      type: "master",
    });
    
    import pulumi_linode as linode
    domain = linode.Domain("my-domain",
      domain='foobar.example',
      soa_email='example@foobar.example',
      type='master',
    )
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	linode "github.com/pulumi/pulumi-linode/sdk/v3/go/linode"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		domain, err := linode.NewDomain(ctx, "test", &linode.DomainArgs{
    			Domain:   pulumi.String("foobar.example"),
    			SoaEmail: pulumi.String("example@foobar.example"),
    			Type:     pulumi.String("master"),
    		})
    		if err != nil {
    			return err
    		}
    
    		return nil
    	})
    }
    
    using System.Threading.Tasks;
    using Pulumi;
    using Pulumi.Linode;
    
    class Program
    {
        static Task Main() =>
            Deployment.Run(() => {
                var domain = new Linode.Domain("my-domain", new Linode.DomainArgs
                {
                    Domain = "foobar.example",
                    SoaEmail = "example@foobar.example",
                    Type = "master",
                });
            });
    }
    
    linode logo
    Linode v4.21.0 published on Friday, Jun 7, 2024 by Pulumi