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 dictionary
The 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 Vm Deletion This property is required. string - If true, the NIC is deleted when the VM is terminated.
- Device
Number This property is required. double - The device index for the NIC attachment (between
1
and7
, both included). - Link
Nic Id This property is required. string - The ID of the NIC to attach.
- State
This property is required. string - The state of the NIC (
available
|attaching
|in-use
|detaching
). - Vm
Account Id This property is required. string - The account ID of the owner of the VM.
- Vm
Id This property is required. string - The ID of the VM.
- Delete
On Vm Deletion This property is required. string - If true, the NIC is deleted when the VM is terminated.
- Device
Number This property is required. float64 - The device index for the NIC attachment (between
1
and7
, both included). - Link
Nic Id This property is required. string - The ID of the NIC to attach.
- State
This property is required. string - The state of the NIC (
available
|attaching
|in-use
|detaching
). - Vm
Account Id This property is required. string - The account ID of the owner of the VM.
- Vm
Id This property is required. string - The ID of the VM.
- delete
On Vm Deletion This property is required. String - If true, the NIC is deleted when the VM is terminated.
- device
Number This property is required. Double - The device index for the NIC attachment (between
1
and7
, both included). - link
Nic Id This property is required. String - The ID of the NIC to attach.
- state
This property is required. String - The state of the NIC (
available
|attaching
|in-use
|detaching
). - vm
Account Id This property is required. String - The account ID of the owner of the VM.
- vm
Id This property is required. String - The ID of the VM.
- delete
On Vm Deletion This property is required. string - If true, the NIC is deleted when the VM is terminated.
- device
Number This property is required. number - The device index for the NIC attachment (between
1
and7
, both included). - link
Nic Id This property is required. string - The ID of the NIC to attach.
- state
This property is required. string - The state of the NIC (
available
|attaching
|in-use
|detaching
). - vm
Account Id This property is required. string - The account ID of the owner of the VM.
- vm
Id This property is required. string - The ID of the VM.
- delete_
on_ vm_ deletion This property is required. str - If true, the NIC is deleted when the VM is terminated.
- device_
number This property is required. float - The device index for the NIC attachment (between
1
and7
, both included). - link_
nic_ id This property is required. str - The ID of the NIC to attach.
- state
This property is required. str - The state of the NIC (
available
|attaching
|in-use
|detaching
). - vm_
account_ id This property is required. str - The account ID of the owner of the VM.
- vm_
id This property is required. str - The ID of the VM.
- delete
On Vm Deletion This property is required. String - If true, the NIC is deleted when the VM is terminated.
- device
Number This property is required. Number - The device index for the NIC attachment (between
1
and7
, both included). - link
Nic Id This property is required. String - The ID of the NIC to attach.
- state
This property is required. String - The state of the NIC (
available
|attaching
|in-use
|detaching
). - vm
Account Id This property is required. String - The account ID of the owner of the VM.
- vm
Id This property is required. String - The ID of the VM.
GetNicLinkPublicIp
- Link
Public Ip Id This property is required. string - (Required in a Net) The ID representing the association of the public IP with the VM or the NIC.
- Public
Dns Name This property is required. string - The name of the public DNS.
- Public
Ip This property is required. string - The public IP associated with the NIC.
- Public
Ip Account Id This property is required. string - The account ID of the owner of the public IP.
- Public
Ip Id This property is required. string - The allocation ID of the public IP.
- Link
Public Ip Id This property is required. string - (Required in a Net) The ID representing the association of the public IP with the VM or the NIC.
- Public
Dns Name This property is required. string - The name of the public DNS.
- Public
Ip This property is required. string - The public IP associated with the NIC.
- Public
Ip Account Id This property is required. string - The account ID of the owner of the public IP.
- Public
Ip Id This property is required. string - The allocation ID of the public IP.
- link
Public Ip Id This property is required. String - (Required in a Net) The ID representing the association of the public IP with the VM or the NIC.
- public
Dns Name This property is required. String - The name of the public DNS.
- public
Ip This property is required. String - The public IP associated with the NIC.
- public
Ip Account Id This property is required. String - The account ID of the owner of the public IP.
- public
Ip Id This property is required. String - The allocation ID of the public IP.
- link
Public Ip Id This property is required. string - (Required in a Net) The ID representing the association of the public IP with the VM or the NIC.
- public
Dns Name This property is required. string - The name of the public DNS.
- public
Ip This property is required. string - The public IP associated with the NIC.
- public
Ip Account Id This property is required. string - The account ID of the owner of the public IP.
- public
Ip Id This property is required. string - The allocation ID of the public IP.
- link_
public_ ip_ id This property is required. str - (Required in a Net) The ID representing the association of the public IP with the VM or the NIC.
- public_
dns_ name This property is required. str - The name of the public DNS.
- public_
ip This property is required. str - The public IP associated with the NIC.
- public_
ip_ account_ id This property is required. str - The account ID of the owner of the public IP.
- public_
ip_ id This property is required. str - The allocation ID of the public IP.
- link
Public Ip Id This property is required. String - (Required in a Net) The ID representing the association of the public IP with the VM or the NIC.
- public
Dns Name This property is required. String - The name of the public DNS.
- public
Ip This property is required. String - The public IP associated with the NIC.
- public
Ip Account Id This property is required. String - The account ID of the owner of the public IP.
- public
Ip Id This property is required. String - The allocation ID of the public IP.
GetNicPrivateIp
- Is
Primary This property is required. bool - If true, the IP is the primary private IP of the NIC.
- Link
Public Ips This property is required. List<GetNic Private Ip Link Public Ip> - Information about the public IP association.
- Private
Dns Name This property is required. string - The name of the private DNS.
- Private
Ip This property is required. string - The private IP of the NIC.
- Is
Primary This property is required. bool - If true, the IP is the primary private IP of the NIC.
- Link
Public Ips This property is required. []GetNic Private Ip Link Public Ip - Information about the public IP association.
- Private
Dns Name This property is required. string - The name of the private DNS.
- Private
Ip This property is required. string - The private IP of the NIC.
- is
Primary This property is required. Boolean - If true, the IP is the primary private IP of the NIC.
- link
Public Ips This property is required. List<GetNic Private Ip Link Public Ip> - Information about the public IP association.
- private
Dns Name This property is required. String - The name of the private DNS.
- private
Ip This property is required. String - The private IP of the NIC.
- is
Primary This property is required. boolean - If true, the IP is the primary private IP of the NIC.
- link
Public Ips This property is required. GetNic Private Ip Link Public Ip[] - Information about the public IP association.
- private
Dns Name This property is required. string - The name of the private DNS.
- private
Ip This property is required. string - The private IP of the NIC.
- is_
primary This property is required. bool - If true, the IP is the primary private IP of the NIC.
- link_
public_ ips This property is required. Sequence[GetNic Private Ip Link Public Ip] - Information about the public IP association.
- private_
dns_ name This property is required. str - The name of the private DNS.
- private_
ip This property is required. str - The private IP of the NIC.
- is
Primary This property is required. Boolean - If true, the IP is the primary private IP of the NIC.
- link
Public Ips This property is required. List<Property Map> - Information about the public IP association.
- private
Dns Name This property is required. String - The name of the private DNS.
- private
Ip This property is required. String - The private IP of the NIC.
GetNicPrivateIpLinkPublicIp
- Link
Public Ip Id This property is required. string - (Required in a Net) The ID representing the association of the public IP with the VM or the NIC.
- Public
Dns Name This property is required. string - The name of the public DNS.
- Public
Ip This property is required. string - The public IP associated with the NIC.
- Public
Ip Account Id This property is required. string - The account ID of the owner of the public IP.
- Public
Ip Id This property is required. string - The allocation ID of the public IP.
- Link
Public Ip Id This property is required. string - (Required in a Net) The ID representing the association of the public IP with the VM or the NIC.
- Public
Dns Name This property is required. string - The name of the public DNS.
- Public
Ip This property is required. string - The public IP associated with the NIC.
- Public
Ip Account Id This property is required. string - The account ID of the owner of the public IP.
- Public
Ip Id This property is required. string - The allocation ID of the public IP.
- link
Public Ip Id This property is required. String - (Required in a Net) The ID representing the association of the public IP with the VM or the NIC.
- public
Dns Name This property is required. String - The name of the public DNS.
- public
Ip This property is required. String - The public IP associated with the NIC.
- public
Ip Account Id This property is required. String - The account ID of the owner of the public IP.
- public
Ip Id This property is required. String - The allocation ID of the public IP.
- link
Public Ip Id This property is required. string - (Required in a Net) The ID representing the association of the public IP with the VM or the NIC.
- public
Dns Name This property is required. string - The name of the public DNS.
- public
Ip This property is required. string - The public IP associated with the NIC.
- public
Ip Account Id This property is required. string - The account ID of the owner of the public IP.
- public
Ip Id This property is required. string - The allocation ID of the public IP.
- link_
public_ ip_ id This property is required. str - (Required in a Net) The ID representing the association of the public IP with the VM or the NIC.
- public_
dns_ name This property is required. str - The name of the public DNS.
- public_
ip This property is required. str - The public IP associated with the NIC.
- public_
ip_ account_ id This property is required. str - The account ID of the owner of the public IP.
- public_
ip_ id This property is required. str - The allocation ID of the public IP.
- link
Public Ip Id This property is required. String - (Required in a Net) The ID representing the association of the public IP with the VM or the NIC.
- public
Dns Name This property is required. String - The name of the public DNS.
- public
Ip This property is required. String - The public IP associated with the NIC.
- public
Ip Account Id This property is required. String - The account ID of the owner of the public IP.
- public
Ip Id This property is required. String - The allocation ID of the public IP.
GetNicSecurityGroup
- Security
Group Id This property is required. string - The ID of the security group.
- Security
Group Name This property is required. string - The name of the security group.
- Security
Group Id This property is required. string - The ID of the security group.
- Security
Group Name This property is required. string - The name of the security group.
- security
Group Id This property is required. String - The ID of the security group.
- security
Group Name This property is required. String - The name of the security group.
- security
Group Id This property is required. string - The ID of the security group.
- security
Group Name This property is required. string - The name of the security group.
- security_
group_ id This property is required. str - The ID of the security group.
- security_
group_ name This property is required. str - The name of the security group.
- security
Group Id This property is required. String - The ID of the security group.
- security
Group Name This property is required. String - The name of the security group.
GetNicTag
Package Details
- Repository
- outscale outscale/terraform-provider-outscale
- License
- Notes
- This Pulumi package is based on the
outscale
Terraform Provider.