outscale 1.1.0 published on Thursday, Apr 3, 2025 by outscale
outscale.getNic
Explore with Pulumi AI
Provides information about a network interface card (NIC).
For more information on this resource, see the User Guide.
For more information on this resource actions, see the API documentation.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as outscale from "@pulumi/outscale";
const nic01 = outscale.getNic({
    filters: [{
        name: "nic_ids",
        values: ["eni-12345678"],
    }],
});
import pulumi
import pulumi_outscale as outscale
nic01 = outscale.get_nic(filters=[{
    "name": "nic_ids",
    "values": ["eni-12345678"],
}])
package main
import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/outscale/outscale"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := outscale.LookupNic(ctx, &outscale.LookupNicArgs{
			Filters: []outscale.GetNicFilter{
				{
					Name: "nic_ids",
					Values: []string{
						"eni-12345678",
					},
				},
			},
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Outscale = Pulumi.Outscale;
return await Deployment.RunAsync(() => 
{
    var nic01 = Outscale.GetNic.Invoke(new()
    {
        Filters = new[]
        {
            new Outscale.Inputs.GetNicFilterInputArgs
            {
                Name = "nic_ids",
                Values = new[]
                {
                    "eni-12345678",
                },
            },
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.outscale.OutscaleFunctions;
import com.pulumi.outscale.inputs.GetNicArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        final var nic01 = OutscaleFunctions.getNic(GetNicArgs.builder()
            .filters(GetNicFilterArgs.builder()
                .name("nic_ids")
                .values("eni-12345678")
                .build())
            .build());
    }
}
variables:
  nic01:
    fn::invoke:
      function: outscale:getNic
      arguments:
        filters:
          - name: nic_ids
            values:
              - eni-12345678
Using getNic
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getNic(args: GetNicArgs, opts?: InvokeOptions): Promise<GetNicResult>
function getNicOutput(args: GetNicOutputArgs, opts?: InvokeOptions): Output<GetNicResult>def get_nic(filters: Optional[Sequence[GetNicFilter]] = None,
            id: Optional[str] = None,
            opts: Optional[InvokeOptions] = None) -> GetNicResult
def get_nic_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetNicFilterArgs]]]] = None,
            id: Optional[pulumi.Input[str]] = None,
            opts: Optional[InvokeOptions] = None) -> Output[GetNicResult]func LookupNic(ctx *Context, args *LookupNicArgs, opts ...InvokeOption) (*LookupNicResult, error)
func LookupNicOutput(ctx *Context, args *LookupNicOutputArgs, opts ...InvokeOption) LookupNicResultOutput> Note: This function is named LookupNic in the Go SDK.
public static class GetNic 
{
    public static Task<GetNicResult> InvokeAsync(GetNicArgs args, InvokeOptions? opts = null)
    public static Output<GetNicResult> Invoke(GetNicInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetNicResult> getNic(GetNicArgs args, InvokeOptions options)
public static Output<GetNicResult> getNic(GetNicArgs args, InvokeOptions options)
fn::invoke:
  function: outscale:index/getNic:getNic
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Filters
List<Get
Nic Filter>  - A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following:
 - Id string
 
- Filters
[]Get
Nic Filter  - A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following:
 - Id string
 
- filters
List<Get
Nic Filter>  - A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following:
 - id String
 
- filters
Get
Nic Filter[]  - A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following:
 - id string
 
- filters
Sequence[Get
Nic Filter]  - A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following:
 - id str
 
- filters List<Property Map>
 - A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following:
 - id String
 
getNic Result
The following output properties are available:
- Account
Id string - The account ID of the owner of the NIC.
 - Description string
 - The description of the NIC.
 - Id string
 - Is
Source boolDest Checked  - (Net only) If true, the source/destination check is enabled. If false, it is disabled.
 - Link
Nics List<GetNic Link Nic>  - Information about the NIC attachment.
 - Link
Public List<GetIps Nic Link Public Ip>  - Information about the public IP association.
 - Mac
Address string - The Media Access Control (MAC) address of the NIC.
 - Net
Id string - The ID of the Net for the NIC.
 - Nic
Id string - The ID of the NIC.
 - Private
Dns stringName  - The name of the private DNS.
 - Private
Ip string - The private IP of the NIC.
 - Private
Ips List<GetNic Private Ip>  - The private IPs of the NIC.
 - Request
Id string - Requester
Managed bool - Security
Group List<string>Ids  - The ID of the security group.
 - Security
Groups List<GetNic Security Group>  - One or more IDs of security groups for the NIC.
 - State string
 - The state of the NIC (
available|attaching|in-use|detaching). - Subnet
Id string - The ID of the Subnet.
 - Subregion
Name string - The Subregion in which the NIC is located.
 - 
List<Get
Nic Tag>  - One or more tags associated with the NIC.
 - Filters
List<Get
Nic Filter>  
- Account
Id string - The account ID of the owner of the NIC.
 - Description string
 - The description of the NIC.
 - Id string
 - Is
Source boolDest Checked  - (Net only) If true, the source/destination check is enabled. If false, it is disabled.
 - Link
Nics []GetNic Link Nic  - Information about the NIC attachment.
 - Link
Public []GetIps Nic Link Public Ip  - Information about the public IP association.
 - Mac
Address string - The Media Access Control (MAC) address of the NIC.
 - Net
Id string - The ID of the Net for the NIC.
 - Nic
Id string - The ID of the NIC.
 - Private
Dns stringName  - The name of the private DNS.
 - Private
Ip string - The private IP of the NIC.
 - Private
Ips []GetNic Private Ip Type  - The private IPs of the NIC.
 - Request
Id string - Requester
Managed bool - Security
Group []stringIds  - The ID of the security group.
 - Security
Groups []GetNic Security Group  - One or more IDs of security groups for the NIC.
 - State string
 - The state of the NIC (
available|attaching|in-use|detaching). - Subnet
Id string - The ID of the Subnet.
 - Subregion
Name string - The Subregion in which the NIC is located.
 - 
[]Get
Nic Tag  - One or more tags associated with the NIC.
 - Filters
[]Get
Nic Filter  
- account
Id String - The account ID of the owner of the NIC.
 - description String
 - The description of the NIC.
 - id String
 - is
Source BooleanDest Checked  - (Net only) If true, the source/destination check is enabled. If false, it is disabled.
 - link
Nics List<GetNic Link Nic>  - Information about the NIC attachment.
 - link
Public List<GetIps Nic Link Public Ip>  - Information about the public IP association.
 - mac
Address String - The Media Access Control (MAC) address of the NIC.
 - net
Id String - The ID of the Net for the NIC.
 - nic
Id String - The ID of the NIC.
 - private
Dns StringName  - The name of the private DNS.
 - private
Ip String - The private IP of the NIC.
 - private
Ips List<GetNic Private Ip>  - The private IPs of the NIC.
 - request
Id String - requester
Managed Boolean - security
Group List<String>Ids  - The ID of the security group.
 - security
Groups List<GetNic Security Group>  - One or more IDs of security groups for the NIC.
 - state String
 - The state of the NIC (
available|attaching|in-use|detaching). - subnet
Id String - The ID of the Subnet.
 - subregion
Name String - The Subregion in which the NIC is located.
 - 
List<Get
Nic Tag>  - One or more tags associated with the NIC.
 - filters
List<Get
Nic Filter>  
- account
Id string - The account ID of the owner of the NIC.
 - description string
 - The description of the NIC.
 - id string
 - is
Source booleanDest Checked  - (Net only) If true, the source/destination check is enabled. If false, it is disabled.
 - link
Nics GetNic Link Nic[]  - Information about the NIC attachment.
 - link
Public GetIps Nic Link Public Ip[]  - Information about the public IP association.
 - mac
Address string - The Media Access Control (MAC) address of the NIC.
 - net
Id string - The ID of the Net for the NIC.
 - nic
Id string - The ID of the NIC.
 - private
Dns stringName  - The name of the private DNS.
 - private
Ip string - The private IP of the NIC.
 - private
Ips GetNic Private Ip[]  - The private IPs of the NIC.
 - request
Id string - requester
Managed boolean - security
Group string[]Ids  - The ID of the security group.
 - security
Groups GetNic Security Group[]  - One or more IDs of security groups for the NIC.
 - state string
 - The state of the NIC (
available|attaching|in-use|detaching). - subnet
Id string - The ID of the Subnet.
 - subregion
Name string - The Subregion in which the NIC is located.
 - 
Get
Nic Tag[]  - One or more tags associated with the NIC.
 - filters
Get
Nic Filter[]  
- account_
id str - The account ID of the owner of the NIC.
 - description str
 - The description of the NIC.
 - id str
 - is_
source_ booldest_ checked  - (Net only) If true, the source/destination check is enabled. If false, it is disabled.
 - link_
nics Sequence[GetNic Link Nic]  - Information about the NIC attachment.
 - link_
public_ Sequence[Getips Nic Link Public Ip]  - Information about the public IP association.
 - mac_
address str - The Media Access Control (MAC) address of the NIC.
 - net_
id str - The ID of the Net for the NIC.
 - nic_
id str - The ID of the NIC.
 - private_
dns_ strname  - The name of the private DNS.
 - private_
ip str - The private IP of the NIC.
 - private_
ips Sequence[GetNic Private Ip]  - The private IPs of the NIC.
 - request_
id str - requester_
managed bool - security_
group_ Sequence[str]ids  - The ID of the security group.
 - security_
groups Sequence[GetNic Security Group]  - One or more IDs of security groups for the NIC.
 - state str
 - The state of the NIC (
available|attaching|in-use|detaching). - subnet_
id str - The ID of the Subnet.
 - subregion_
name str - The Subregion in which the NIC is located.
 - 
Sequence[Get
Nic Tag]  - One or more tags associated with the NIC.
 - filters
Sequence[Get
Nic Filter]  
- account
Id String - The account ID of the owner of the NIC.
 - description String
 - The description of the NIC.
 - id String
 - is
Source BooleanDest Checked  - (Net only) If true, the source/destination check is enabled. If false, it is disabled.
 - link
Nics List<Property Map> - Information about the NIC attachment.
 - link
Public List<Property Map>Ips  - Information about the public IP association.
 - mac
Address String - The Media Access Control (MAC) address of the NIC.
 - net
Id String - The ID of the Net for the NIC.
 - nic
Id String - The ID of the NIC.
 - private
Dns StringName  - The name of the private DNS.
 - private
Ip String - The private IP of the NIC.
 - private
Ips List<Property Map> - The private IPs of the NIC.
 - request
Id String - requester
Managed Boolean - security
Group List<String>Ids  - The ID of the security group.
 - security
Groups List<Property Map> - One or more IDs of security groups for the NIC.
 - state String
 - The state of the NIC (
available|attaching|in-use|detaching). - subnet
Id String - The ID of the Subnet.
 - subregion
Name String - The Subregion in which the NIC is located.
 - List<Property Map>
 - One or more tags associated with the NIC.
 - filters List<Property Map>
 
Supporting Types
GetNicFilter  
GetNicLinkNic   
- Delete
On stringVm Deletion  - If true, the NIC is deleted when the VM is terminated.
 - Device
Number double - The device index for the NIC attachment (between 
1and7, both included). - Link
Nic stringId  - The ID of the NIC to attach.
 - State string
 - The state of the NIC (
available|attaching|in-use|detaching). - Vm
Account stringId  - The account ID of the owner of the VM.
 - Vm
Id string - The ID of the VM.
 
- Delete
On stringVm Deletion  - If true, the NIC is deleted when the VM is terminated.
 - Device
Number float64 - The device index for the NIC attachment (between 
1and7, both included). - Link
Nic stringId  - The ID of the NIC to attach.
 - State string
 - The state of the NIC (
available|attaching|in-use|detaching). - Vm
Account stringId  - The account ID of the owner of the VM.
 - Vm
Id string - The ID of the VM.
 
- delete
On StringVm Deletion  - If true, the NIC is deleted when the VM is terminated.
 - device
Number Double - The device index for the NIC attachment (between 
1and7, both included). - link
Nic StringId  - The ID of the NIC to attach.
 - state String
 - The state of the NIC (
available|attaching|in-use|detaching). - vm
Account StringId  - The account ID of the owner of the VM.
 - vm
Id String - The ID of the VM.
 
- delete
On stringVm Deletion  - If true, the NIC is deleted when the VM is terminated.
 - device
Number number - The device index for the NIC attachment (between 
1and7, both included). - link
Nic stringId  - The ID of the NIC to attach.
 - state string
 - The state of the NIC (
available|attaching|in-use|detaching). - vm
Account stringId  - The account ID of the owner of the VM.
 - vm
Id string - The ID of the VM.
 
- delete_
on_ strvm_ deletion  - If true, the NIC is deleted when the VM is terminated.
 - device_
number float - The device index for the NIC attachment (between 
1and7, both included). - link_
nic_ strid  - The ID of the NIC to attach.
 - state str
 - The state of the NIC (
available|attaching|in-use|detaching). - vm_
account_ strid  - The account ID of the owner of the VM.
 - vm_
id str - The ID of the VM.
 
- delete
On StringVm Deletion  - If true, the NIC is deleted when the VM is terminated.
 - device
Number Number - The device index for the NIC attachment (between 
1and7, both included). - link
Nic StringId  - The ID of the NIC to attach.
 - state String
 - The state of the NIC (
available|attaching|in-use|detaching). - vm
Account StringId  - The account ID of the owner of the VM.
 - vm
Id String - The ID of the VM.
 
GetNicLinkPublicIp    
- Link
Public stringIp Id  - (Required in a Net) The ID representing the association of the public IP with the VM or the NIC.
 - Public
Dns stringName  - The name of the public DNS.
 - Public
Ip string - The public IP associated with the NIC.
 - Public
Ip stringAccount Id  - The account ID of the owner of the public IP.
 - Public
Ip stringId  - The allocation ID of the public IP.
 
- Link
Public stringIp Id  - (Required in a Net) The ID representing the association of the public IP with the VM or the NIC.
 - Public
Dns stringName  - The name of the public DNS.
 - Public
Ip string - The public IP associated with the NIC.
 - Public
Ip stringAccount Id  - The account ID of the owner of the public IP.
 - Public
Ip stringId  - The allocation ID of the public IP.
 
- link
Public StringIp Id  - (Required in a Net) The ID representing the association of the public IP with the VM or the NIC.
 - public
Dns StringName  - The name of the public DNS.
 - public
Ip String - The public IP associated with the NIC.
 - public
Ip StringAccount Id  - The account ID of the owner of the public IP.
 - public
Ip StringId  - The allocation ID of the public IP.
 
- link
Public stringIp Id  - (Required in a Net) The ID representing the association of the public IP with the VM or the NIC.
 - public
Dns stringName  - The name of the public DNS.
 - public
Ip string - The public IP associated with the NIC.
 - public
Ip stringAccount Id  - The account ID of the owner of the public IP.
 - public
Ip stringId  - The allocation ID of the public IP.
 
- link_
public_ strip_ id  - (Required in a Net) The ID representing the association of the public IP with the VM or the NIC.
 - public_
dns_ strname  - The name of the public DNS.
 - public_
ip str - The public IP associated with the NIC.
 - public_
ip_ straccount_ id  - The account ID of the owner of the public IP.
 - public_
ip_ strid  - The allocation ID of the public IP.
 
- link
Public StringIp Id  - (Required in a Net) The ID representing the association of the public IP with the VM or the NIC.
 - public
Dns StringName  - The name of the public DNS.
 - public
Ip String - The public IP associated with the NIC.
 - public
Ip StringAccount Id  - The account ID of the owner of the public IP.
 - public
Ip StringId  - The allocation ID of the public IP.
 
GetNicPrivateIp   
- Is
Primary bool - If true, the IP is the primary private IP of the NIC.
 - Link
Public List<GetIps Nic Private Ip Link Public Ip>  - Information about the public IP association.
 - Private
Dns stringName  - The name of the private DNS.
 - Private
Ip string - The private IP of the NIC.
 
- Is
Primary bool - If true, the IP is the primary private IP of the NIC.
 - Link
Public []GetIps Nic Private Ip Link Public Ip  - Information about the public IP association.
 - Private
Dns stringName  - The name of the private DNS.
 - Private
Ip string - The private IP of the NIC.
 
- is
Primary Boolean - If true, the IP is the primary private IP of the NIC.
 - link
Public List<GetIps Nic Private Ip Link Public Ip>  - Information about the public IP association.
 - private
Dns StringName  - The name of the private DNS.
 - private
Ip String - The private IP of the NIC.
 
- is
Primary boolean - If true, the IP is the primary private IP of the NIC.
 - link
Public GetIps Nic Private Ip Link Public Ip[]  - Information about the public IP association.
 - private
Dns stringName  - The name of the private DNS.
 - private
Ip string - The private IP of the NIC.
 
- is_
primary bool - If true, the IP is the primary private IP of the NIC.
 - link_
public_ Sequence[Getips Nic Private Ip Link Public Ip]  - Information about the public IP association.
 - private_
dns_ strname  - The name of the private DNS.
 - private_
ip str - The private IP of the NIC.
 
- is
Primary Boolean - If true, the IP is the primary private IP of the NIC.
 - link
Public List<Property Map>Ips  - Information about the public IP association.
 - private
Dns StringName  - The name of the private DNS.
 - private
Ip String - The private IP of the NIC.
 
GetNicPrivateIpLinkPublicIp      
- Link
Public stringIp Id  - (Required in a Net) The ID representing the association of the public IP with the VM or the NIC.
 - Public
Dns stringName  - The name of the public DNS.
 - Public
Ip string - The public IP associated with the NIC.
 - Public
Ip stringAccount Id  - The account ID of the owner of the public IP.
 - Public
Ip stringId  - The allocation ID of the public IP.
 
- Link
Public stringIp Id  - (Required in a Net) The ID representing the association of the public IP with the VM or the NIC.
 - Public
Dns stringName  - The name of the public DNS.
 - Public
Ip string - The public IP associated with the NIC.
 - Public
Ip stringAccount Id  - The account ID of the owner of the public IP.
 - Public
Ip stringId  - The allocation ID of the public IP.
 
- link
Public StringIp Id  - (Required in a Net) The ID representing the association of the public IP with the VM or the NIC.
 - public
Dns StringName  - The name of the public DNS.
 - public
Ip String - The public IP associated with the NIC.
 - public
Ip StringAccount Id  - The account ID of the owner of the public IP.
 - public
Ip StringId  - The allocation ID of the public IP.
 
- link
Public stringIp Id  - (Required in a Net) The ID representing the association of the public IP with the VM or the NIC.
 - public
Dns stringName  - The name of the public DNS.
 - public
Ip string - The public IP associated with the NIC.
 - public
Ip stringAccount Id  - The account ID of the owner of the public IP.
 - public
Ip stringId  - The allocation ID of the public IP.
 
- link_
public_ strip_ id  - (Required in a Net) The ID representing the association of the public IP with the VM or the NIC.
 - public_
dns_ strname  - The name of the public DNS.
 - public_
ip str - The public IP associated with the NIC.
 - public_
ip_ straccount_ id  - The account ID of the owner of the public IP.
 - public_
ip_ strid  - The allocation ID of the public IP.
 
- link
Public StringIp Id  - (Required in a Net) The ID representing the association of the public IP with the VM or the NIC.
 - public
Dns StringName  - The name of the public DNS.
 - public
Ip String - The public IP associated with the NIC.
 - public
Ip StringAccount Id  - The account ID of the owner of the public IP.
 - public
Ip StringId  - The allocation ID of the public IP.
 
GetNicSecurityGroup   
- Security
Group stringId  - The ID of the security group.
 - Security
Group stringName  - The name of the security group.
 
- Security
Group stringId  - The ID of the security group.
 - Security
Group stringName  - The name of the security group.
 
- security
Group StringId  - The ID of the security group.
 - security
Group StringName  - The name of the security group.
 
- security
Group stringId  - The ID of the security group.
 - security
Group stringName  - The name of the security group.
 
- security_
group_ strid  - The ID of the security group.
 - security_
group_ strname  - The name of the security group.
 
- security
Group StringId  - The ID of the security group.
 - security
Group StringName  - The name of the security group.
 
GetNicTag  
Package Details
- Repository
 - outscale outscale/terraform-provider-outscale
 - License
 - Notes
 - This Pulumi package is based on the 
outscaleTerraform Provider.