Show / Hide Table of Contents

Class Node

Provides access to Node data in Consul. This can be used to define a node. Currently, defining health checks is not supported.

Example Usage

using Pulumi;
using Consul = Pulumi.Consul;

class MyStack : Stack
{
public MyStack()
{
    var foobar = new Consul.Node("foobar", new Consul.NodeArgs
    {
        Address = "192.168.10.10",
    });
}

}
Inheritance
System.Object
Resource
CustomResource
Node
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Consul
Assembly: Pulumi.Consul.dll
Syntax
public class Node : CustomResource

Constructors

View Source

Node(String, NodeArgs, CustomResourceOptions)

Create a Node resource with the given unique name, arguments, and options.

Declaration
public Node(string name, NodeArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

NodeArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

Address

The address of the node being added to, or referenced in the catalog.

Declaration
public Output<string> Address { get; }
Property Value
Type Description
Output<System.String>
View Source

Datacenter

The datacenter to use. This overrides the agent's default datacenter and the datacenter in the provider setup.

Declaration
public Output<string> Datacenter { get; }
Property Value
Type Description
Output<System.String>
View Source

Meta

Key/value pairs that are associated with the node.

Declaration
public Output<ImmutableDictionary<string, string>> Meta { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.String>>
View Source

Name

The name of the node being added to, or referenced in the catalog.

Declaration
public Output<string> Name { get; }
Property Value
Type Description
Output<System.String>
View Source

Token

Declaration
public Output<string> Token { get; }
Property Value
Type Description
Output<System.String>

Methods

View Source

Get(String, Input<String>, NodeState, CustomResourceOptions)

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

Declaration
public static Node Get(string name, Input<string> id, NodeState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

NodeState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
Node
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.