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",
});
}
}
Inherited Members
Namespace: Pulumi.Consul
Assembly: Pulumi.Consul.dll
Syntax
public class Node : CustomResource
Constructors
View SourceNode(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 SourceAddress
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> |
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> |
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>> |
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> |
Token
Declaration
public Output<string> Token { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(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 |