Threefold Grid v0.6.4 published on Tuesday, May 28, 2024 by Threefold
threefold.provider.Network
Explore with Pulumi AI
Threefold Grid v0.6.4 published on Tuesday, May 28, 2024 by Threefold
Create Network Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Network(name: string, args: NetworkArgs, opts?: CustomResourceOptions);
@overload
def Network(resource_name: str,
args: NetworkArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Network(resource_name: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
ip_range: Optional[str] = None,
name: Optional[str] = None,
nodes: Optional[Sequence[Any]] = None,
add_wg_access: Optional[bool] = None,
mycelium_keys: Optional[Mapping[str, str]] = None,
solution_type: Optional[str] = None)
func NewNetwork(ctx *Context, name string, args NetworkArgs, opts ...ResourceOption) (*Network, error)
public Network(string name, NetworkArgs args, CustomResourceOptions? opts = null)
public Network(String name, NetworkArgs args)
public Network(String name, NetworkArgs args, CustomResourceOptions options)
type: threefold:provider:Network
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 NetworkArgs
- 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 NetworkArgs
- 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 NetworkArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NetworkArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args NetworkArgs
- 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 networkResource = new Threefold.Provider.Network("networkResource", new()
{
Description = "string",
Ip_range = "string",
Name = "string",
Nodes = new[]
{
"any",
},
Add_wg_access = false,
Mycelium_keys =
{
{ "string", "string" },
},
Solution_type = "string",
});
example, err := provider.NewNetwork(ctx, "networkResource", &provider.NetworkArgs{
Description: pulumi.String("string"),
Ip_range: pulumi.String("string"),
Name: pulumi.String("string"),
Nodes: pulumi.Array{
pulumi.Any("any"),
},
Add_wg_access: pulumi.Bool(false),
Mycelium_keys: pulumi.StringMap{
"string": pulumi.String("string"),
},
Solution_type: pulumi.String("string"),
})
var networkResource = new Network("networkResource", NetworkArgs.builder()
.description("string")
.ip_range("string")
.name("string")
.nodes("any")
.add_wg_access(false)
.mycelium_keys(Map.of("string", "string"))
.solution_type("string")
.build());
network_resource = threefold.provider.Network("networkResource",
description="string",
ip_range="string",
name="string",
nodes=["any"],
add_wg_access=False,
mycelium_keys={
"string": "string",
},
solution_type="string")
const networkResource = new threefold.provider.Network("networkResource", {
description: "string",
ip_range: "string",
name: "string",
nodes: ["any"],
add_wg_access: false,
mycelium_keys: {
string: "string",
},
solution_type: "string",
});
type: threefold:provider:Network
properties:
add_wg_access: false
description: string
ip_range: string
mycelium_keys:
string: string
name: string
nodes:
- any
solution_type: string
Network Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Network resource accepts the following input properties:
- Description string
- Ip_
range string - Name string
- Nodes List<object>
- Add_
wg_ boolaccess - Mycelium_
keys Dictionary<string, string> - Solution_
type string
- Description string
- Ip_
range string - Name string
- Nodes []interface{}
- Add_
wg_ boolaccess - Mycelium_
keys map[string]string - Solution_
type string
- description String
- ip_
range String - name String
- nodes List<Object>
- add_
wg_ Booleanaccess - mycelium_
keys Map<String,String> - solution_
type String
- description string
- ip_
range string - name string
- nodes any[]
- add_
wg_ booleanaccess - mycelium_
keys {[key: string]: string} - solution_
type string
- description str
- ip_
range str - name str
- nodes Sequence[Any]
- add_
wg_ boolaccess - mycelium_
keys Mapping[str, str] - solution_
type str
- description String
- ip_
range String - name String
- nodes List<Any>
- add_
wg_ Booleanaccess - mycelium_
keys Map<String> - solution_
type String
Outputs
All input properties are implicitly available as output properties. Additionally, the Network resource produces the following output properties:
- Access_
wg_ stringconfig - External_
ip string - External_
sk string - Id string
- The provider-assigned unique ID for this managed resource.
- Node_
deployment_ Dictionary<string, int>id - Nodes_
ip_ Dictionary<string, string>range - Public_
node_ intid
- Access_
wg_ stringconfig - External_
ip string - External_
sk string - Id string
- The provider-assigned unique ID for this managed resource.
- Node_
deployment_ map[string]intid - Nodes_
ip_ map[string]stringrange - Public_
node_ intid
- access_
wg_ Stringconfig - external_
ip String - external_
sk String - id String
- The provider-assigned unique ID for this managed resource.
- node_
deployment_ Map<String,Integer>id - nodes_
ip_ Map<String,String>range - public_
node_ Integerid
- access_
wg_ stringconfig - external_
ip string - external_
sk string - id string
- The provider-assigned unique ID for this managed resource.
- node_
deployment_ {[key: string]: number}id - nodes_
ip_ {[key: string]: string}range - public_
node_ numberid
- access_
wg_ strconfig - external_
ip str - external_
sk str - id str
- The provider-assigned unique ID for this managed resource.
- node_
deployment_ Mapping[str, int]id - nodes_
ip_ Mapping[str, str]range - public_
node_ intid
- access_
wg_ Stringconfig - external_
ip String - external_
sk String - id String
- The provider-assigned unique ID for this managed resource.
- node_
deployment_ Map<Number>id - nodes_
ip_ Map<String>range - public_
node_ Numberid
Package Details
- Repository
- threefold threefoldtech/pulumi-threefold
- License
- Apache-2.0
Threefold Grid v0.6.4 published on Tuesday, May 28, 2024 by Threefold