1. Packages
  2. Netbox Provider
  3. API Docs
  4. ClusterType
netbox 3.10.0 published on Monday, Apr 14, 2025 by e-breuninger

netbox.ClusterType

Explore with Pulumi AI

netbox logo
netbox 3.10.0 published on Monday, Apr 14, 2025 by e-breuninger

    From the official documentation:

    A cluster type represents a technology or mechanism by which a cluster is formed. For example, you might create a cluster type named “VMware vSphere” for a locally hosted cluster or “DigitalOcean NYC3” for one hosted by a cloud provider.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as netbox from "@pulumi/netbox";
    
    const vmwVsphere = new netbox.ClusterType("vmwVsphere", {});
    
    import pulumi
    import pulumi_netbox as netbox
    
    vmw_vsphere = netbox.ClusterType("vmwVsphere")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/netbox/v3/netbox"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := netbox.NewClusterType(ctx, "vmwVsphere", nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Netbox = Pulumi.Netbox;
    
    return await Deployment.RunAsync(() => 
    {
        var vmwVsphere = new Netbox.ClusterType("vmwVsphere");
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.netbox.ClusterType;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var vmwVsphere = new ClusterType("vmwVsphere");
    
        }
    }
    
    resources:
      vmwVsphere:
        type: netbox:ClusterType
    

    Create ClusterType Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ClusterType(name: string, args?: ClusterTypeArgs, opts?: CustomResourceOptions);
    @overload
    def ClusterType(resource_name: str,
                    args: Optional[ClusterTypeArgs] = None,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def ClusterType(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    cluster_type_id: Optional[str] = None,
                    name: Optional[str] = None,
                    slug: Optional[str] = None)
    func NewClusterType(ctx *Context, name string, args *ClusterTypeArgs, opts ...ResourceOption) (*ClusterType, error)
    public ClusterType(string name, ClusterTypeArgs? args = null, CustomResourceOptions? opts = null)
    public ClusterType(String name, ClusterTypeArgs args)
    public ClusterType(String name, ClusterTypeArgs args, CustomResourceOptions options)
    
    type: netbox:ClusterType
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ClusterTypeArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ClusterTypeArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ClusterTypeArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ClusterTypeArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ClusterTypeArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var clusterTypeResource = new Netbox.ClusterType("clusterTypeResource", new()
    {
        ClusterTypeId = "string",
        Name = "string",
        Slug = "string",
    });
    
    example, err := netbox.NewClusterType(ctx, "clusterTypeResource", &netbox.ClusterTypeArgs{
    	ClusterTypeId: pulumi.String("string"),
    	Name:          pulumi.String("string"),
    	Slug:          pulumi.String("string"),
    })
    
    var clusterTypeResource = new ClusterType("clusterTypeResource", ClusterTypeArgs.builder()
        .clusterTypeId("string")
        .name("string")
        .slug("string")
        .build());
    
    cluster_type_resource = netbox.ClusterType("clusterTypeResource",
        cluster_type_id="string",
        name="string",
        slug="string")
    
    const clusterTypeResource = new netbox.ClusterType("clusterTypeResource", {
        clusterTypeId: "string",
        name: "string",
        slug: "string",
    });
    
    type: netbox:ClusterType
    properties:
        clusterTypeId: string
        name: string
        slug: string
    

    ClusterType Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The ClusterType resource accepts the following input properties:

    ClusterTypeId string
    The ID of this resource.
    Name string
    Slug string
    ClusterTypeId string
    The ID of this resource.
    Name string
    Slug string
    clusterTypeId String
    The ID of this resource.
    name String
    slug String
    clusterTypeId string
    The ID of this resource.
    name string
    slug string
    cluster_type_id str
    The ID of this resource.
    name str
    slug str
    clusterTypeId String
    The ID of this resource.
    name String
    slug String

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ClusterType resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing ClusterType Resource

    Get an existing ClusterType resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: ClusterTypeState, opts?: CustomResourceOptions): ClusterType
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            cluster_type_id: Optional[str] = None,
            name: Optional[str] = None,
            slug: Optional[str] = None) -> ClusterType
    func GetClusterType(ctx *Context, name string, id IDInput, state *ClusterTypeState, opts ...ResourceOption) (*ClusterType, error)
    public static ClusterType Get(string name, Input<string> id, ClusterTypeState? state, CustomResourceOptions? opts = null)
    public static ClusterType get(String name, Output<String> id, ClusterTypeState state, CustomResourceOptions options)
    resources:  _:    type: netbox:ClusterType    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    ClusterTypeId string
    The ID of this resource.
    Name string
    Slug string
    ClusterTypeId string
    The ID of this resource.
    Name string
    Slug string
    clusterTypeId String
    The ID of this resource.
    name String
    slug String
    clusterTypeId string
    The ID of this resource.
    name string
    slug string
    cluster_type_id str
    The ID of this resource.
    name str
    slug str
    clusterTypeId String
    The ID of this resource.
    name String
    slug String

    Package Details

    Repository
    netbox e-breuninger/terraform-provider-netbox
    License
    Notes
    This Pulumi package is based on the netbox Terraform Provider.
    netbox logo
    netbox 3.10.0 published on Monday, Apr 14, 2025 by e-breuninger