1. Packages
  2. stackit
  3. API Docs
  4. ServerNetworkInterfaceAttach
Viewing docs for stackit v0.0.4
published on Friday, Feb 20, 2026 by stackitcloud
stackit logo
Viewing docs for stackit v0.0.4
published on Friday, Feb 20, 2026 by stackitcloud

    Network interface attachment resource schema. Attaches a network interface to a server. The attachment only takes full effect after server reboot.

    Example Usage

    resource "stackit_server_network_interface_attach" "attached_network_interface" {
      project_id           = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
      server_id            = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
      network_interface_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
    }
    
    # Only use the import statement, if you want to import an existing server network interface attachment
    import {
      to = stackit_server_network_interface_attach.import-example
      id = "${var.project_id},${var.region},${var.server_id},${var.network_interface_id}"
    }
    

    Create ServerNetworkInterfaceAttach Resource

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

    Constructor syntax

    new ServerNetworkInterfaceAttach(name: string, args: ServerNetworkInterfaceAttachArgs, opts?: CustomResourceOptions);
    @overload
    def ServerNetworkInterfaceAttach(resource_name: str,
                                     args: ServerNetworkInterfaceAttachArgs,
                                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def ServerNetworkInterfaceAttach(resource_name: str,
                                     opts: Optional[ResourceOptions] = None,
                                     network_interface_id: Optional[str] = None,
                                     project_id: Optional[str] = None,
                                     server_id: Optional[str] = None,
                                     region: Optional[str] = None)
    func NewServerNetworkInterfaceAttach(ctx *Context, name string, args ServerNetworkInterfaceAttachArgs, opts ...ResourceOption) (*ServerNetworkInterfaceAttach, error)
    public ServerNetworkInterfaceAttach(string name, ServerNetworkInterfaceAttachArgs args, CustomResourceOptions? opts = null)
    public ServerNetworkInterfaceAttach(String name, ServerNetworkInterfaceAttachArgs args)
    public ServerNetworkInterfaceAttach(String name, ServerNetworkInterfaceAttachArgs args, CustomResourceOptions options)
    
    type: stackit:ServerNetworkInterfaceAttach
    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 ServerNetworkInterfaceAttachArgs
    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 ServerNetworkInterfaceAttachArgs
    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 ServerNetworkInterfaceAttachArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ServerNetworkInterfaceAttachArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ServerNetworkInterfaceAttachArgs
    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 serverNetworkInterfaceAttachResource = new Stackit.ServerNetworkInterfaceAttach("serverNetworkInterfaceAttachResource", new()
    {
        NetworkInterfaceId = "string",
        ProjectId = "string",
        ServerId = "string",
        Region = "string",
    });
    
    example, err := stackit.NewServerNetworkInterfaceAttach(ctx, "serverNetworkInterfaceAttachResource", &stackit.ServerNetworkInterfaceAttachArgs{
    	NetworkInterfaceId: pulumi.String("string"),
    	ProjectId:          pulumi.String("string"),
    	ServerId:           pulumi.String("string"),
    	Region:             pulumi.String("string"),
    })
    
    var serverNetworkInterfaceAttachResource = new ServerNetworkInterfaceAttach("serverNetworkInterfaceAttachResource", ServerNetworkInterfaceAttachArgs.builder()
        .networkInterfaceId("string")
        .projectId("string")
        .serverId("string")
        .region("string")
        .build());
    
    server_network_interface_attach_resource = stackit.ServerNetworkInterfaceAttach("serverNetworkInterfaceAttachResource",
        network_interface_id="string",
        project_id="string",
        server_id="string",
        region="string")
    
    const serverNetworkInterfaceAttachResource = new stackit.ServerNetworkInterfaceAttach("serverNetworkInterfaceAttachResource", {
        networkInterfaceId: "string",
        projectId: "string",
        serverId: "string",
        region: "string",
    });
    
    type: stackit:ServerNetworkInterfaceAttach
    properties:
        networkInterfaceId: string
        projectId: string
        region: string
        serverId: string
    

    ServerNetworkInterfaceAttach 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 ServerNetworkInterfaceAttach resource accepts the following input properties:

    NetworkInterfaceId string
    The network interface ID.
    ProjectId string
    STACKIT project ID to which the network interface attachment is associated.
    ServerId string
    The server ID.
    Region string
    The resource region. If not defined, the provider region is used.
    NetworkInterfaceId string
    The network interface ID.
    ProjectId string
    STACKIT project ID to which the network interface attachment is associated.
    ServerId string
    The server ID.
    Region string
    The resource region. If not defined, the provider region is used.
    networkInterfaceId String
    The network interface ID.
    projectId String
    STACKIT project ID to which the network interface attachment is associated.
    serverId String
    The server ID.
    region String
    The resource region. If not defined, the provider region is used.
    networkInterfaceId string
    The network interface ID.
    projectId string
    STACKIT project ID to which the network interface attachment is associated.
    serverId string
    The server ID.
    region string
    The resource region. If not defined, the provider region is used.
    network_interface_id str
    The network interface ID.
    project_id str
    STACKIT project ID to which the network interface attachment is associated.
    server_id str
    The server ID.
    region str
    The resource region. If not defined, the provider region is used.
    networkInterfaceId String
    The network interface ID.
    projectId String
    STACKIT project ID to which the network interface attachment is associated.
    serverId String
    The server ID.
    region String
    The resource region. If not defined, the provider region is used.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ServerNetworkInterfaceAttach 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 ServerNetworkInterfaceAttach Resource

    Get an existing ServerNetworkInterfaceAttach 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?: ServerNetworkInterfaceAttachState, opts?: CustomResourceOptions): ServerNetworkInterfaceAttach
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            network_interface_id: Optional[str] = None,
            project_id: Optional[str] = None,
            region: Optional[str] = None,
            server_id: Optional[str] = None) -> ServerNetworkInterfaceAttach
    func GetServerNetworkInterfaceAttach(ctx *Context, name string, id IDInput, state *ServerNetworkInterfaceAttachState, opts ...ResourceOption) (*ServerNetworkInterfaceAttach, error)
    public static ServerNetworkInterfaceAttach Get(string name, Input<string> id, ServerNetworkInterfaceAttachState? state, CustomResourceOptions? opts = null)
    public static ServerNetworkInterfaceAttach get(String name, Output<String> id, ServerNetworkInterfaceAttachState state, CustomResourceOptions options)
    resources:  _:    type: stackit:ServerNetworkInterfaceAttach    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:
    NetworkInterfaceId string
    The network interface ID.
    ProjectId string
    STACKIT project ID to which the network interface attachment is associated.
    Region string
    The resource region. If not defined, the provider region is used.
    ServerId string
    The server ID.
    NetworkInterfaceId string
    The network interface ID.
    ProjectId string
    STACKIT project ID to which the network interface attachment is associated.
    Region string
    The resource region. If not defined, the provider region is used.
    ServerId string
    The server ID.
    networkInterfaceId String
    The network interface ID.
    projectId String
    STACKIT project ID to which the network interface attachment is associated.
    region String
    The resource region. If not defined, the provider region is used.
    serverId String
    The server ID.
    networkInterfaceId string
    The network interface ID.
    projectId string
    STACKIT project ID to which the network interface attachment is associated.
    region string
    The resource region. If not defined, the provider region is used.
    serverId string
    The server ID.
    network_interface_id str
    The network interface ID.
    project_id str
    STACKIT project ID to which the network interface attachment is associated.
    region str
    The resource region. If not defined, the provider region is used.
    server_id str
    The server ID.
    networkInterfaceId String
    The network interface ID.
    projectId String
    STACKIT project ID to which the network interface attachment is associated.
    region String
    The resource region. If not defined, the provider region is used.
    serverId String
    The server ID.

    Package Details

    Repository
    stackit stackitcloud/pulumi-stackit
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the stackit Terraform Provider.
    stackit logo
    Viewing docs for stackit v0.0.4
    published on Friday, Feb 20, 2026 by stackitcloud
      Try Pulumi Cloud free. Your team will thank you.