1. Packages
  2. Packages
  3. Lxd Provider
  4. API Docs
  5. Network
Viewing docs for lxd 3.0.2
published on Monday, Jun 29, 2026 by terraform-lxd
Viewing docs for lxd 3.0.2
published on Monday, Jun 29, 2026 by terraform-lxd

    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: Optional[NetworkArgs] = None,
                opts: Optional[ResourceOptions] = None)
    
    @overload
    def Network(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                config: Optional[Mapping[str, str]] = None,
                description: Optional[str] = None,
                member_overrides: Optional[Mapping[str, NetworkMemberOverridesArgs]] = None,
                name: Optional[str] = None,
                project: Optional[str] = None,
                remote: Optional[str] = None,
                type: Optional[str] = None)
    func NewNetwork(ctx *Context, name string, args *NetworkArgs, opts ...ResourceOption) (*Network, error)
    public Network(string name, NetworkArgs? args = null, CustomResourceOptions? opts = null)
    public Network(String name, NetworkArgs args)
    public Network(String name, NetworkArgs args, CustomResourceOptions options)
    
    type: lxd:Network
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "lxd_network" "name" {
        # resource properties
    }

    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 Lxd.Network("networkResource", new()
    {
        Config = 
        {
            { "string", "string" },
        },
        Description = "string",
        MemberOverrides = 
        {
            { "string", new Lxd.Inputs.NetworkMemberOverridesArgs
            {
                Config = 
                {
                    { "string", "string" },
                },
            } },
        },
        Name = "string",
        Project = "string",
        Remote = "string",
        Type = "string",
    });
    
    example, err := lxd.NewNetwork(ctx, "networkResource", &lxd.NetworkArgs{
    	Config: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Description: pulumi.String("string"),
    	MemberOverrides: lxd.NetworkMemberOverridesMap{
    		"string": &lxd.NetworkMemberOverridesArgs{
    			Config: pulumi.StringMap{
    				"string": pulumi.String("string"),
    			},
    		},
    	},
    	Name:    pulumi.String("string"),
    	Project: pulumi.String("string"),
    	Remote:  pulumi.String("string"),
    	Type:    pulumi.String("string"),
    })
    
    resource "lxd_network" "networkResource" {
      config = {
        "string" = "string"
      }
      description = "string"
      member_overrides = {
        "string" = {
          config = {
            "string" = "string"
          }
        }
      }
      name    = "string"
      project = "string"
      remote  = "string"
      type    = "string"
    }
    
    var networkResource = new Network("networkResource", NetworkArgs.builder()
        .config(Map.of("string", "string"))
        .description("string")
        .memberOverrides(Map.of("string", NetworkMemberOverridesArgs.builder()
            .config(Map.of("string", "string"))
            .build()))
        .name("string")
        .project("string")
        .remote("string")
        .type("string")
        .build());
    
    network_resource = lxd.Network("networkResource",
        config={
            "string": "string",
        },
        description="string",
        member_overrides={
            "string": {
                "config": {
                    "string": "string",
                },
            },
        },
        name="string",
        project="string",
        remote="string",
        type="string")
    
    const networkResource = new lxd.Network("networkResource", {
        config: {
            string: "string",
        },
        description: "string",
        memberOverrides: {
            string: {
                config: {
                    string: "string",
                },
            },
        },
        name: "string",
        project: "string",
        remote: "string",
        type: "string",
    });
    
    type: lxd:Network
    properties:
        config:
            string: string
        description: string
        memberOverrides:
            string:
                config:
                    string: string
        name: string
        project: string
        remote: string
        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

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

    The Network resource accepts the following input properties:

    Config Dictionary<string, string>
    Optional - Map of key/value pairs of network config settings.
    Description string
    Optional - Description of the network.
    MemberOverrides Dictionary<string, NetworkMemberOverridesArgs>
    Optional - Map of per-member local config overrides for clustered networks. Each key is a cluster member name. Each value is an object with a config map of local-scoped keys to apply for that member. Values in member_overrides take precedence over values from config.
    Name string
    Required - Name of the network. This is usually the device the network will appear as to instances.
    Project string
    Optional - Name of the project where the network will be created.
    Remote string
    Optional - The remote in which the resource will be created. If not provided, the provider's default remote will be used.
    Type string
    Optional - The type of network to create. Can be one of: bridge, macvlan, sriov, ovn, or physical. If no type is specified, a bridge network is created.
    Config map[string]string
    Optional - Map of key/value pairs of network config settings.
    Description string
    Optional - Description of the network.
    MemberOverrides map[string]NetworkMemberOverridesArgs
    Optional - Map of per-member local config overrides for clustered networks. Each key is a cluster member name. Each value is an object with a config map of local-scoped keys to apply for that member. Values in member_overrides take precedence over values from config.
    Name string
    Required - Name of the network. This is usually the device the network will appear as to instances.
    Project string
    Optional - Name of the project where the network will be created.
    Remote string
    Optional - The remote in which the resource will be created. If not provided, the provider's default remote will be used.
    Type string
    Optional - The type of network to create. Can be one of: bridge, macvlan, sriov, ovn, or physical. If no type is specified, a bridge network is created.
    config map(string)
    Optional - Map of key/value pairs of network config settings.
    description string
    Optional - Description of the network.
    member_overrides map(object)
    Optional - Map of per-member local config overrides for clustered networks. Each key is a cluster member name. Each value is an object with a config map of local-scoped keys to apply for that member. Values in member_overrides take precedence over values from config.
    name string
    Required - Name of the network. This is usually the device the network will appear as to instances.
    project string
    Optional - Name of the project where the network will be created.
    remote string
    Optional - The remote in which the resource will be created. If not provided, the provider's default remote will be used.
    type string
    Optional - The type of network to create. Can be one of: bridge, macvlan, sriov, ovn, or physical. If no type is specified, a bridge network is created.
    config Map<String,String>
    Optional - Map of key/value pairs of network config settings.
    description String
    Optional - Description of the network.
    memberOverrides Map<String,NetworkMemberOverridesArgs>
    Optional - Map of per-member local config overrides for clustered networks. Each key is a cluster member name. Each value is an object with a config map of local-scoped keys to apply for that member. Values in member_overrides take precedence over values from config.
    name String
    Required - Name of the network. This is usually the device the network will appear as to instances.
    project String
    Optional - Name of the project where the network will be created.
    remote String
    Optional - The remote in which the resource will be created. If not provided, the provider's default remote will be used.
    type String
    Optional - The type of network to create. Can be one of: bridge, macvlan, sriov, ovn, or physical. If no type is specified, a bridge network is created.
    config {[key: string]: string}
    Optional - Map of key/value pairs of network config settings.
    description string
    Optional - Description of the network.
    memberOverrides {[key: string]: NetworkMemberOverridesArgs}
    Optional - Map of per-member local config overrides for clustered networks. Each key is a cluster member name. Each value is an object with a config map of local-scoped keys to apply for that member. Values in member_overrides take precedence over values from config.
    name string
    Required - Name of the network. This is usually the device the network will appear as to instances.
    project string
    Optional - Name of the project where the network will be created.
    remote string
    Optional - The remote in which the resource will be created. If not provided, the provider's default remote will be used.
    type string
    Optional - The type of network to create. Can be one of: bridge, macvlan, sriov, ovn, or physical. If no type is specified, a bridge network is created.
    config Mapping[str, str]
    Optional - Map of key/value pairs of network config settings.
    description str
    Optional - Description of the network.
    member_overrides Mapping[str, NetworkMemberOverridesArgs]
    Optional - Map of per-member local config overrides for clustered networks. Each key is a cluster member name. Each value is an object with a config map of local-scoped keys to apply for that member. Values in member_overrides take precedence over values from config.
    name str
    Required - Name of the network. This is usually the device the network will appear as to instances.
    project str
    Optional - Name of the project where the network will be created.
    remote str
    Optional - The remote in which the resource will be created. If not provided, the provider's default remote will be used.
    type str
    Optional - The type of network to create. Can be one of: bridge, macvlan, sriov, ovn, or physical. If no type is specified, a bridge network is created.
    config Map<String>
    Optional - Map of key/value pairs of network config settings.
    description String
    Optional - Description of the network.
    memberOverrides Map<Property Map>
    Optional - Map of per-member local config overrides for clustered networks. Each key is a cluster member name. Each value is an object with a config map of local-scoped keys to apply for that member. Values in member_overrides take precedence over values from config.
    name String
    Required - Name of the network. This is usually the device the network will appear as to instances.
    project String
    Optional - Name of the project where the network will be created.
    remote String
    Optional - The remote in which the resource will be created. If not provided, the provider's default remote will be used.
    type String
    Optional - The type of network to create. Can be one of: bridge, macvlan, sriov, ovn, or physical. If no type is specified, a bridge network is created.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Ipv4Address string
    The network's global IPv4 address in CIDR notation. For example 10.0.190.1/24. When no such address exists, an empty string is set.
    Ipv6Address string
    The network's global IPv6 address in CIDR notation. For example fd42:b40e:534a:b208::1/64. When no such address exists, an empty string is set.
    Managed bool
    Whether or not the network is managed.
    Members Dictionary<string, NetworkMembers>
    Computed - Map of resolved local config for every cluster member, populated after apply. Used by the provider to detect out-of-band changes (drift) on individual cluster members.
    Id string
    The provider-assigned unique ID for this managed resource.
    Ipv4Address string
    The network's global IPv4 address in CIDR notation. For example 10.0.190.1/24. When no such address exists, an empty string is set.
    Ipv6Address string
    The network's global IPv6 address in CIDR notation. For example fd42:b40e:534a:b208::1/64. When no such address exists, an empty string is set.
    Managed bool
    Whether or not the network is managed.
    Members map[string]NetworkMembers
    Computed - Map of resolved local config for every cluster member, populated after apply. Used by the provider to detect out-of-band changes (drift) on individual cluster members.
    id string
    The provider-assigned unique ID for this managed resource.
    ipv4_address string
    The network's global IPv4 address in CIDR notation. For example 10.0.190.1/24. When no such address exists, an empty string is set.
    ipv6_address string
    The network's global IPv6 address in CIDR notation. For example fd42:b40e:534a:b208::1/64. When no such address exists, an empty string is set.
    managed bool
    Whether or not the network is managed.
    members map(object)
    Computed - Map of resolved local config for every cluster member, populated after apply. Used by the provider to detect out-of-band changes (drift) on individual cluster members.
    id String
    The provider-assigned unique ID for this managed resource.
    ipv4Address String
    The network's global IPv4 address in CIDR notation. For example 10.0.190.1/24. When no such address exists, an empty string is set.
    ipv6Address String
    The network's global IPv6 address in CIDR notation. For example fd42:b40e:534a:b208::1/64. When no such address exists, an empty string is set.
    managed Boolean
    Whether or not the network is managed.
    members Map<String,NetworkMembers>
    Computed - Map of resolved local config for every cluster member, populated after apply. Used by the provider to detect out-of-band changes (drift) on individual cluster members.
    id string
    The provider-assigned unique ID for this managed resource.
    ipv4Address string
    The network's global IPv4 address in CIDR notation. For example 10.0.190.1/24. When no such address exists, an empty string is set.
    ipv6Address string
    The network's global IPv6 address in CIDR notation. For example fd42:b40e:534a:b208::1/64. When no such address exists, an empty string is set.
    managed boolean
    Whether or not the network is managed.
    members {[key: string]: NetworkMembers}
    Computed - Map of resolved local config for every cluster member, populated after apply. Used by the provider to detect out-of-band changes (drift) on individual cluster members.
    id str
    The provider-assigned unique ID for this managed resource.
    ipv4_address str
    The network's global IPv4 address in CIDR notation. For example 10.0.190.1/24. When no such address exists, an empty string is set.
    ipv6_address str
    The network's global IPv6 address in CIDR notation. For example fd42:b40e:534a:b208::1/64. When no such address exists, an empty string is set.
    managed bool
    Whether or not the network is managed.
    members Mapping[str, NetworkMembers]
    Computed - Map of resolved local config for every cluster member, populated after apply. Used by the provider to detect out-of-band changes (drift) on individual cluster members.
    id String
    The provider-assigned unique ID for this managed resource.
    ipv4Address String
    The network's global IPv4 address in CIDR notation. For example 10.0.190.1/24. When no such address exists, an empty string is set.
    ipv6Address String
    The network's global IPv6 address in CIDR notation. For example fd42:b40e:534a:b208::1/64. When no such address exists, an empty string is set.
    managed Boolean
    Whether or not the network is managed.
    members Map<Property Map>
    Computed - Map of resolved local config for every cluster member, populated after apply. Used by the provider to detect out-of-band changes (drift) on individual cluster members.

    Look up Existing Network Resource

    Get an existing Network 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?: NetworkState, opts?: CustomResourceOptions): Network
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            config: Optional[Mapping[str, str]] = None,
            description: Optional[str] = None,
            ipv4_address: Optional[str] = None,
            ipv6_address: Optional[str] = None,
            managed: Optional[bool] = None,
            member_overrides: Optional[Mapping[str, NetworkMemberOverridesArgs]] = None,
            members: Optional[Mapping[str, NetworkMembersArgs]] = None,
            name: Optional[str] = None,
            project: Optional[str] = None,
            remote: Optional[str] = None,
            type: Optional[str] = None) -> Network
    func GetNetwork(ctx *Context, name string, id IDInput, state *NetworkState, opts ...ResourceOption) (*Network, error)
    public static Network Get(string name, Input<string> id, NetworkState? state, CustomResourceOptions? opts = null)
    public static Network get(String name, Output<String> id, NetworkState state, CustomResourceOptions options)
    resources:  _:    type: lxd:Network    get:      id: ${id}
    import {
      to = lxd_network.example
      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:
    Config Dictionary<string, string>
    Optional - Map of key/value pairs of network config settings.
    Description string
    Optional - Description of the network.
    Ipv4Address string
    The network's global IPv4 address in CIDR notation. For example 10.0.190.1/24. When no such address exists, an empty string is set.
    Ipv6Address string
    The network's global IPv6 address in CIDR notation. For example fd42:b40e:534a:b208::1/64. When no such address exists, an empty string is set.
    Managed bool
    Whether or not the network is managed.
    MemberOverrides Dictionary<string, NetworkMemberOverridesArgs>
    Optional - Map of per-member local config overrides for clustered networks. Each key is a cluster member name. Each value is an object with a config map of local-scoped keys to apply for that member. Values in member_overrides take precedence over values from config.
    Members Dictionary<string, NetworkMembersArgs>
    Computed - Map of resolved local config for every cluster member, populated after apply. Used by the provider to detect out-of-band changes (drift) on individual cluster members.
    Name string
    Required - Name of the network. This is usually the device the network will appear as to instances.
    Project string
    Optional - Name of the project where the network will be created.
    Remote string
    Optional - The remote in which the resource will be created. If not provided, the provider's default remote will be used.
    Type string
    Optional - The type of network to create. Can be one of: bridge, macvlan, sriov, ovn, or physical. If no type is specified, a bridge network is created.
    Config map[string]string
    Optional - Map of key/value pairs of network config settings.
    Description string
    Optional - Description of the network.
    Ipv4Address string
    The network's global IPv4 address in CIDR notation. For example 10.0.190.1/24. When no such address exists, an empty string is set.
    Ipv6Address string
    The network's global IPv6 address in CIDR notation. For example fd42:b40e:534a:b208::1/64. When no such address exists, an empty string is set.
    Managed bool
    Whether or not the network is managed.
    MemberOverrides map[string]NetworkMemberOverridesArgs
    Optional - Map of per-member local config overrides for clustered networks. Each key is a cluster member name. Each value is an object with a config map of local-scoped keys to apply for that member. Values in member_overrides take precedence over values from config.
    Members map[string]NetworkMembersArgs
    Computed - Map of resolved local config for every cluster member, populated after apply. Used by the provider to detect out-of-band changes (drift) on individual cluster members.
    Name string
    Required - Name of the network. This is usually the device the network will appear as to instances.
    Project string
    Optional - Name of the project where the network will be created.
    Remote string
    Optional - The remote in which the resource will be created. If not provided, the provider's default remote will be used.
    Type string
    Optional - The type of network to create. Can be one of: bridge, macvlan, sriov, ovn, or physical. If no type is specified, a bridge network is created.
    config map(string)
    Optional - Map of key/value pairs of network config settings.
    description string
    Optional - Description of the network.
    ipv4_address string
    The network's global IPv4 address in CIDR notation. For example 10.0.190.1/24. When no such address exists, an empty string is set.
    ipv6_address string
    The network's global IPv6 address in CIDR notation. For example fd42:b40e:534a:b208::1/64. When no such address exists, an empty string is set.
    managed bool
    Whether or not the network is managed.
    member_overrides map(object)
    Optional - Map of per-member local config overrides for clustered networks. Each key is a cluster member name. Each value is an object with a config map of local-scoped keys to apply for that member. Values in member_overrides take precedence over values from config.
    members map(object)
    Computed - Map of resolved local config for every cluster member, populated after apply. Used by the provider to detect out-of-band changes (drift) on individual cluster members.
    name string
    Required - Name of the network. This is usually the device the network will appear as to instances.
    project string
    Optional - Name of the project where the network will be created.
    remote string
    Optional - The remote in which the resource will be created. If not provided, the provider's default remote will be used.
    type string
    Optional - The type of network to create. Can be one of: bridge, macvlan, sriov, ovn, or physical. If no type is specified, a bridge network is created.
    config Map<String,String>
    Optional - Map of key/value pairs of network config settings.
    description String
    Optional - Description of the network.
    ipv4Address String
    The network's global IPv4 address in CIDR notation. For example 10.0.190.1/24. When no such address exists, an empty string is set.
    ipv6Address String
    The network's global IPv6 address in CIDR notation. For example fd42:b40e:534a:b208::1/64. When no such address exists, an empty string is set.
    managed Boolean
    Whether or not the network is managed.
    memberOverrides Map<String,NetworkMemberOverridesArgs>
    Optional - Map of per-member local config overrides for clustered networks. Each key is a cluster member name. Each value is an object with a config map of local-scoped keys to apply for that member. Values in member_overrides take precedence over values from config.
    members Map<String,NetworkMembersArgs>
    Computed - Map of resolved local config for every cluster member, populated after apply. Used by the provider to detect out-of-band changes (drift) on individual cluster members.
    name String
    Required - Name of the network. This is usually the device the network will appear as to instances.
    project String
    Optional - Name of the project where the network will be created.
    remote String
    Optional - The remote in which the resource will be created. If not provided, the provider's default remote will be used.
    type String
    Optional - The type of network to create. Can be one of: bridge, macvlan, sriov, ovn, or physical. If no type is specified, a bridge network is created.
    config {[key: string]: string}
    Optional - Map of key/value pairs of network config settings.
    description string
    Optional - Description of the network.
    ipv4Address string
    The network's global IPv4 address in CIDR notation. For example 10.0.190.1/24. When no such address exists, an empty string is set.
    ipv6Address string
    The network's global IPv6 address in CIDR notation. For example fd42:b40e:534a:b208::1/64. When no such address exists, an empty string is set.
    managed boolean
    Whether or not the network is managed.
    memberOverrides {[key: string]: NetworkMemberOverridesArgs}
    Optional - Map of per-member local config overrides for clustered networks. Each key is a cluster member name. Each value is an object with a config map of local-scoped keys to apply for that member. Values in member_overrides take precedence over values from config.
    members {[key: string]: NetworkMembersArgs}
    Computed - Map of resolved local config for every cluster member, populated after apply. Used by the provider to detect out-of-band changes (drift) on individual cluster members.
    name string
    Required - Name of the network. This is usually the device the network will appear as to instances.
    project string
    Optional - Name of the project where the network will be created.
    remote string
    Optional - The remote in which the resource will be created. If not provided, the provider's default remote will be used.
    type string
    Optional - The type of network to create. Can be one of: bridge, macvlan, sriov, ovn, or physical. If no type is specified, a bridge network is created.
    config Mapping[str, str]
    Optional - Map of key/value pairs of network config settings.
    description str
    Optional - Description of the network.
    ipv4_address str
    The network's global IPv4 address in CIDR notation. For example 10.0.190.1/24. When no such address exists, an empty string is set.
    ipv6_address str
    The network's global IPv6 address in CIDR notation. For example fd42:b40e:534a:b208::1/64. When no such address exists, an empty string is set.
    managed bool
    Whether or not the network is managed.
    member_overrides Mapping[str, NetworkMemberOverridesArgs]
    Optional - Map of per-member local config overrides for clustered networks. Each key is a cluster member name. Each value is an object with a config map of local-scoped keys to apply for that member. Values in member_overrides take precedence over values from config.
    members Mapping[str, NetworkMembersArgs]
    Computed - Map of resolved local config for every cluster member, populated after apply. Used by the provider to detect out-of-band changes (drift) on individual cluster members.
    name str
    Required - Name of the network. This is usually the device the network will appear as to instances.
    project str
    Optional - Name of the project where the network will be created.
    remote str
    Optional - The remote in which the resource will be created. If not provided, the provider's default remote will be used.
    type str
    Optional - The type of network to create. Can be one of: bridge, macvlan, sriov, ovn, or physical. If no type is specified, a bridge network is created.
    config Map<String>
    Optional - Map of key/value pairs of network config settings.
    description String
    Optional - Description of the network.
    ipv4Address String
    The network's global IPv4 address in CIDR notation. For example 10.0.190.1/24. When no such address exists, an empty string is set.
    ipv6Address String
    The network's global IPv6 address in CIDR notation. For example fd42:b40e:534a:b208::1/64. When no such address exists, an empty string is set.
    managed Boolean
    Whether or not the network is managed.
    memberOverrides Map<Property Map>
    Optional - Map of per-member local config overrides for clustered networks. Each key is a cluster member name. Each value is an object with a config map of local-scoped keys to apply for that member. Values in member_overrides take precedence over values from config.
    members Map<Property Map>
    Computed - Map of resolved local config for every cluster member, populated after apply. Used by the provider to detect out-of-band changes (drift) on individual cluster members.
    name String
    Required - Name of the network. This is usually the device the network will appear as to instances.
    project String
    Optional - Name of the project where the network will be created.
    remote String
    Optional - The remote in which the resource will be created. If not provided, the provider's default remote will be used.
    type String
    Optional - The type of network to create. Can be one of: bridge, macvlan, sriov, ovn, or physical. If no type is specified, a bridge network is created.

    Supporting Types

    NetworkMemberOverrides, NetworkMemberOverridesArgs

    Config Dictionary<string, string>
    Optional - Map of key/value pairs of network config settings.
    Config map[string]string
    Optional - Map of key/value pairs of network config settings.
    config map(string)
    Optional - Map of key/value pairs of network config settings.
    config Map<String,String>
    Optional - Map of key/value pairs of network config settings.
    config {[key: string]: string}
    Optional - Map of key/value pairs of network config settings.
    config Mapping[str, str]
    Optional - Map of key/value pairs of network config settings.
    config Map<String>
    Optional - Map of key/value pairs of network config settings.

    NetworkMembers, NetworkMembersArgs

    Config Dictionary<string, string>
    Optional - Map of key/value pairs of network config settings.
    Config map[string]string
    Optional - Map of key/value pairs of network config settings.
    config map(string)
    Optional - Map of key/value pairs of network config settings.
    config Map<String,String>
    Optional - Map of key/value pairs of network config settings.
    config {[key: string]: string}
    Optional - Map of key/value pairs of network config settings.
    config Mapping[str, str]
    Optional - Map of key/value pairs of network config settings.
    config Map<String>
    Optional - Map of key/value pairs of network config settings.

    Package Details

    Repository
    lxd terraform-lxd/terraform-provider-lxd
    License
    Notes
    This Pulumi package is based on the lxd Terraform Provider.
    Viewing docs for lxd 3.0.2
    published on Monday, Jun 29, 2026 by terraform-lxd

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial