ibm.getIsInstanceNetworkInterface
Explore with Pulumi AI
Retrieve information of an exisitng network interface. For more information, about instance network interface, see managing an network interfaces.
Note:
VPC infrastructure services are a regional specific based endpoint, by default targets to us-south. Please make sure to target right region in the provider block as shown in the provider.tf file, if VPC service is created in region other than us-south.
provider.tf
import * as pulumi from "@pulumi/pulumi";
import pulumi
package main
import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
return await Deployment.RunAsync(() => 
{
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
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) {
    }
}
{}
Using getIsInstanceNetworkInterface
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 getIsInstanceNetworkInterface(args: GetIsInstanceNetworkInterfaceArgs, opts?: InvokeOptions): Promise<GetIsInstanceNetworkInterfaceResult>
function getIsInstanceNetworkInterfaceOutput(args: GetIsInstanceNetworkInterfaceOutputArgs, opts?: InvokeOptions): Output<GetIsInstanceNetworkInterfaceResult>def get_is_instance_network_interface(id: Optional[str] = None,
                                      instance_name: Optional[str] = None,
                                      network_interface_name: Optional[str] = None,
                                      opts: Optional[InvokeOptions] = None) -> GetIsInstanceNetworkInterfaceResult
def get_is_instance_network_interface_output(id: Optional[pulumi.Input[str]] = None,
                                      instance_name: Optional[pulumi.Input[str]] = None,
                                      network_interface_name: Optional[pulumi.Input[str]] = None,
                                      opts: Optional[InvokeOptions] = None) -> Output[GetIsInstanceNetworkInterfaceResult]func LookupIsInstanceNetworkInterface(ctx *Context, args *LookupIsInstanceNetworkInterfaceArgs, opts ...InvokeOption) (*LookupIsInstanceNetworkInterfaceResult, error)
func LookupIsInstanceNetworkInterfaceOutput(ctx *Context, args *LookupIsInstanceNetworkInterfaceOutputArgs, opts ...InvokeOption) LookupIsInstanceNetworkInterfaceResultOutput> Note: This function is named LookupIsInstanceNetworkInterface in the Go SDK.
public static class GetIsInstanceNetworkInterface 
{
    public static Task<GetIsInstanceNetworkInterfaceResult> InvokeAsync(GetIsInstanceNetworkInterfaceArgs args, InvokeOptions? opts = null)
    public static Output<GetIsInstanceNetworkInterfaceResult> Invoke(GetIsInstanceNetworkInterfaceInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetIsInstanceNetworkInterfaceResult> getIsInstanceNetworkInterface(GetIsInstanceNetworkInterfaceArgs args, InvokeOptions options)
public static Output<GetIsInstanceNetworkInterfaceResult> getIsInstanceNetworkInterface(GetIsInstanceNetworkInterfaceArgs args, InvokeOptions options)
fn::invoke:
  function: ibm:index/getIsInstanceNetworkInterface:getIsInstanceNetworkInterface
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Instance
Name string - The name of the instance.
 - Network
Interface stringName  - The name of the network interface.
 - Id string
 - (String) The unique identifier for this subnet.
 
- Instance
Name string - The name of the instance.
 - Network
Interface stringName  - The name of the network interface.
 - Id string
 - (String) The unique identifier for this subnet.
 
- instance
Name String - The name of the instance.
 - network
Interface StringName  - The name of the network interface.
 - id String
 - (String) The unique identifier for this subnet.
 
- instance
Name string - The name of the instance.
 - network
Interface stringName  - The name of the network interface.
 - id string
 - (String) The unique identifier for this subnet.
 
- instance_
name str - The name of the instance.
 - network_
interface_ strname  - The name of the network interface.
 - id str
 - (String) The unique identifier for this subnet.
 
- instance
Name String - The name of the instance.
 - network
Interface StringName  - The name of the network interface.
 - id String
 - (String) The unique identifier for this subnet.
 
getIsInstanceNetworkInterface Result
The following output properties are available:
- Allow
Ip boolSpoofing  - (Boolean) Indicates whether source IP spoofing is allowed on this interface. If false, source IP spoofing is prevented on this interface. If true, source IP spoofing is allowed on this interface.
 - Created
At string - (String) The date and time that the network interface was created.
 - Floating
Ips List<GetIs Instance Network Interface Floating Ip>  - (List) The floating IPs associated with this network interface. Nested 
floating_ipsblocks have the following structure: - Href string
 - (String) The URL for this subnet.
 - Id string
 - (String) The unique identifier for this subnet.
 - Instance
Name string - Name string
 - (String) The user-defined name for this subnet.
 - Network
Interface stringName  - Port
Speed double - (Integer) The network interface port speed in Mbps.
 - Primary
Ips List<GetIs Instance Network Interface Primary Ip>  - (List) The primary IP address to bind to the network interface. This can be specified using an existing reserved IP, or a prototype object for a new reserved IP.
 - Primary
Ipv4Address string - (String) The primary IPv4 address. Same as 
primary_ip.0.address - Resource
Type string - (String) The resource type.
 - Security
Groups List<GetIs Instance Network Interface Security Group>  - (List) Collection of security groups. Nested 
security_groupsblocks have the following structure: - Status string
 - (String) The status of the network interface.
 - Subnets
List<Get
Is Instance Network Interface Subnet>  - (List) The associated subnet. Nested 
subnetblocks have the following structure: - Type string
 - (String) The type of this network interface as it relates to an instance.
 
- Allow
Ip boolSpoofing  - (Boolean) Indicates whether source IP spoofing is allowed on this interface. If false, source IP spoofing is prevented on this interface. If true, source IP spoofing is allowed on this interface.
 - Created
At string - (String) The date and time that the network interface was created.
 - Floating
Ips []GetIs Instance Network Interface Floating Ip Type  - (List) The floating IPs associated with this network interface. Nested 
floating_ipsblocks have the following structure: - Href string
 - (String) The URL for this subnet.
 - Id string
 - (String) The unique identifier for this subnet.
 - Instance
Name string - Name string
 - (String) The user-defined name for this subnet.
 - Network
Interface stringName  - Port
Speed float64 - (Integer) The network interface port speed in Mbps.
 - Primary
Ips []GetIs Instance Network Interface Primary Ip  - (List) The primary IP address to bind to the network interface. This can be specified using an existing reserved IP, or a prototype object for a new reserved IP.
 - Primary
Ipv4Address string - (String) The primary IPv4 address. Same as 
primary_ip.0.address - Resource
Type string - (String) The resource type.
 - Security
Groups []GetIs Instance Network Interface Security Group  - (List) Collection of security groups. Nested 
security_groupsblocks have the following structure: - Status string
 - (String) The status of the network interface.
 - Subnets
[]Get
Is Instance Network Interface Subnet  - (List) The associated subnet. Nested 
subnetblocks have the following structure: - Type string
 - (String) The type of this network interface as it relates to an instance.
 
- allow
Ip BooleanSpoofing  - (Boolean) Indicates whether source IP spoofing is allowed on this interface. If false, source IP spoofing is prevented on this interface. If true, source IP spoofing is allowed on this interface.
 - created
At String - (String) The date and time that the network interface was created.
 - floating
Ips List<GetIs Instance Network Interface Floating Ip>  - (List) The floating IPs associated with this network interface. Nested 
floating_ipsblocks have the following structure: - href String
 - (String) The URL for this subnet.
 - id String
 - (String) The unique identifier for this subnet.
 - instance
Name String - name String
 - (String) The user-defined name for this subnet.
 - network
Interface StringName  - port
Speed Double - (Integer) The network interface port speed in Mbps.
 - primary
Ips List<GetIs Instance Network Interface Primary Ip>  - (List) The primary IP address to bind to the network interface. This can be specified using an existing reserved IP, or a prototype object for a new reserved IP.
 - primary
Ipv4Address String - (String) The primary IPv4 address. Same as 
primary_ip.0.address - resource
Type String - (String) The resource type.
 - security
Groups List<GetIs Instance Network Interface Security Group>  - (List) Collection of security groups. Nested 
security_groupsblocks have the following structure: - status String
 - (String) The status of the network interface.
 - subnets
List<Get
Is Instance Network Interface Subnet>  - (List) The associated subnet. Nested 
subnetblocks have the following structure: - type String
 - (String) The type of this network interface as it relates to an instance.
 
- allow
Ip booleanSpoofing  - (Boolean) Indicates whether source IP spoofing is allowed on this interface. If false, source IP spoofing is prevented on this interface. If true, source IP spoofing is allowed on this interface.
 - created
At string - (String) The date and time that the network interface was created.
 - floating
Ips GetIs Instance Network Interface Floating Ip[]  - (List) The floating IPs associated with this network interface. Nested 
floating_ipsblocks have the following structure: - href string
 - (String) The URL for this subnet.
 - id string
 - (String) The unique identifier for this subnet.
 - instance
Name string - name string
 - (String) The user-defined name for this subnet.
 - network
Interface stringName  - port
Speed number - (Integer) The network interface port speed in Mbps.
 - primary
Ips GetIs Instance Network Interface Primary Ip[]  - (List) The primary IP address to bind to the network interface. This can be specified using an existing reserved IP, or a prototype object for a new reserved IP.
 - primary
Ipv4Address string - (String) The primary IPv4 address. Same as 
primary_ip.0.address - resource
Type string - (String) The resource type.
 - security
Groups GetIs Instance Network Interface Security Group[]  - (List) Collection of security groups. Nested 
security_groupsblocks have the following structure: - status string
 - (String) The status of the network interface.
 - subnets
Get
Is Instance Network Interface Subnet[]  - (List) The associated subnet. Nested 
subnetblocks have the following structure: - type string
 - (String) The type of this network interface as it relates to an instance.
 
- allow_
ip_ boolspoofing  - (Boolean) Indicates whether source IP spoofing is allowed on this interface. If false, source IP spoofing is prevented on this interface. If true, source IP spoofing is allowed on this interface.
 - created_
at str - (String) The date and time that the network interface was created.
 - floating_
ips Sequence[GetIs Instance Network Interface Floating Ip]  - (List) The floating IPs associated with this network interface. Nested 
floating_ipsblocks have the following structure: - href str
 - (String) The URL for this subnet.
 - id str
 - (String) The unique identifier for this subnet.
 - instance_
name str - name str
 - (String) The user-defined name for this subnet.
 - network_
interface_ strname  - port_
speed float - (Integer) The network interface port speed in Mbps.
 - primary_
ips Sequence[GetIs Instance Network Interface Primary Ip]  - (List) The primary IP address to bind to the network interface. This can be specified using an existing reserved IP, or a prototype object for a new reserved IP.
 - primary_
ipv4_ straddress  - (String) The primary IPv4 address. Same as 
primary_ip.0.address - resource_
type str - (String) The resource type.
 - security_
groups Sequence[GetIs Instance Network Interface Security Group]  - (List) Collection of security groups. Nested 
security_groupsblocks have the following structure: - status str
 - (String) The status of the network interface.
 - subnets
Sequence[Get
Is Instance Network Interface Subnet]  - (List) The associated subnet. Nested 
subnetblocks have the following structure: - type str
 - (String) The type of this network interface as it relates to an instance.
 
- allow
Ip BooleanSpoofing  - (Boolean) Indicates whether source IP spoofing is allowed on this interface. If false, source IP spoofing is prevented on this interface. If true, source IP spoofing is allowed on this interface.
 - created
At String - (String) The date and time that the network interface was created.
 - floating
Ips List<Property Map> - (List) The floating IPs associated with this network interface. Nested 
floating_ipsblocks have the following structure: - href String
 - (String) The URL for this subnet.
 - id String
 - (String) The unique identifier for this subnet.
 - instance
Name String - name String
 - (String) The user-defined name for this subnet.
 - network
Interface StringName  - port
Speed Number - (Integer) The network interface port speed in Mbps.
 - primary
Ips List<Property Map> - (List) The primary IP address to bind to the network interface. This can be specified using an existing reserved IP, or a prototype object for a new reserved IP.
 - primary
Ipv4Address String - (String) The primary IPv4 address. Same as 
primary_ip.0.address - resource
Type String - (String) The resource type.
 - security
Groups List<Property Map> - (List) Collection of security groups. Nested 
security_groupsblocks have the following structure: - status String
 - (String) The status of the network interface.
 - subnets List<Property Map>
 - (List) The associated subnet. Nested 
subnetblocks have the following structure: - type String
 - (String) The type of this network interface as it relates to an instance.
 
Supporting Types
GetIsInstanceNetworkInterfaceFloatingIp      
- Address string
 - (String) The IP address of the reserved IP. Same as 
primary_ipv4_address - Crn string
 - (String) The CRN for this subnet.
 - Deleteds
List<Get
Is Instance Network Interface Floating Ip Deleted>  - (List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information. Nested 
deletedblocks have the following structure: - Href string
 - (String) The URL for this subnet.
 - Id string
 - (String) The unique identifier for this subnet.
 - Name string
 - (String) The user-defined name for this subnet.
 
- Address string
 - (String) The IP address of the reserved IP. Same as 
primary_ipv4_address - Crn string
 - (String) The CRN for this subnet.
 - Deleteds
[]Get
Is Instance Network Interface Floating Ip Deleted  - (List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information. Nested 
deletedblocks have the following structure: - Href string
 - (String) The URL for this subnet.
 - Id string
 - (String) The unique identifier for this subnet.
 - Name string
 - (String) The user-defined name for this subnet.
 
- address String
 - (String) The IP address of the reserved IP. Same as 
primary_ipv4_address - crn String
 - (String) The CRN for this subnet.
 - deleteds
List<Get
Is Instance Network Interface Floating Ip Deleted>  - (List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information. Nested 
deletedblocks have the following structure: - href String
 - (String) The URL for this subnet.
 - id String
 - (String) The unique identifier for this subnet.
 - name String
 - (String) The user-defined name for this subnet.
 
- address string
 - (String) The IP address of the reserved IP. Same as 
primary_ipv4_address - crn string
 - (String) The CRN for this subnet.
 - deleteds
Get
Is Instance Network Interface Floating Ip Deleted[]  - (List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information. Nested 
deletedblocks have the following structure: - href string
 - (String) The URL for this subnet.
 - id string
 - (String) The unique identifier for this subnet.
 - name string
 - (String) The user-defined name for this subnet.
 
- address str
 - (String) The IP address of the reserved IP. Same as 
primary_ipv4_address - crn str
 - (String) The CRN for this subnet.
 - deleteds
Sequence[Get
Is Instance Network Interface Floating Ip Deleted]  - (List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information. Nested 
deletedblocks have the following structure: - href str
 - (String) The URL for this subnet.
 - id str
 - (String) The unique identifier for this subnet.
 - name str
 - (String) The user-defined name for this subnet.
 
- address String
 - (String) The IP address of the reserved IP. Same as 
primary_ipv4_address - crn String
 - (String) The CRN for this subnet.
 - deleteds List<Property Map>
 - (List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information. Nested 
deletedblocks have the following structure: - href String
 - (String) The URL for this subnet.
 - id String
 - (String) The unique identifier for this subnet.
 - name String
 - (String) The user-defined name for this subnet.
 
GetIsInstanceNetworkInterfaceFloatingIpDeleted       
- More
Info string - (String) Link to documentation about deleted resources.
 
- More
Info string - (String) Link to documentation about deleted resources.
 
- more
Info String - (String) Link to documentation about deleted resources.
 
- more
Info string - (String) Link to documentation about deleted resources.
 
- more_
info str - (String) Link to documentation about deleted resources.
 
- more
Info String - (String) Link to documentation about deleted resources.
 
GetIsInstanceNetworkInterfacePrimaryIp      
- Address string
 - (String) The IP address of the reserved IP. Same as 
primary_ipv4_address - Href string
 - (String) The URL for this subnet.
 - Name string
 - (String) The user-defined name for this subnet.
 - Reserved
Ip string - (String) The unique identifier for this reserved IP
 - Resource
Type string - (String) The resource type.
 
- Address string
 - (String) The IP address of the reserved IP. Same as 
primary_ipv4_address - Href string
 - (String) The URL for this subnet.
 - Name string
 - (String) The user-defined name for this subnet.
 - Reserved
Ip string - (String) The unique identifier for this reserved IP
 - Resource
Type string - (String) The resource type.
 
- address String
 - (String) The IP address of the reserved IP. Same as 
primary_ipv4_address - href String
 - (String) The URL for this subnet.
 - name String
 - (String) The user-defined name for this subnet.
 - reserved
Ip String - (String) The unique identifier for this reserved IP
 - resource
Type String - (String) The resource type.
 
- address string
 - (String) The IP address of the reserved IP. Same as 
primary_ipv4_address - href string
 - (String) The URL for this subnet.
 - name string
 - (String) The user-defined name for this subnet.
 - reserved
Ip string - (String) The unique identifier for this reserved IP
 - resource
Type string - (String) The resource type.
 
- address str
 - (String) The IP address of the reserved IP. Same as 
primary_ipv4_address - href str
 - (String) The URL for this subnet.
 - name str
 - (String) The user-defined name for this subnet.
 - reserved_
ip str - (String) The unique identifier for this reserved IP
 - resource_
type str - (String) The resource type.
 
- address String
 - (String) The IP address of the reserved IP. Same as 
primary_ipv4_address - href String
 - (String) The URL for this subnet.
 - name String
 - (String) The user-defined name for this subnet.
 - reserved
Ip String - (String) The unique identifier for this reserved IP
 - resource
Type String - (String) The resource type.
 
GetIsInstanceNetworkInterfaceSecurityGroup      
- Crn string
 - (String) The CRN for this subnet.
 - Deleteds
List<Get
Is Instance Network Interface Security Group Deleted>  - (List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information. Nested 
deletedblocks have the following structure: - Href string
 - (String) The URL for this subnet.
 - Id string
 - (String) The unique identifier for this subnet.
 - Name string
 - (String) The user-defined name for this subnet.
 
- Crn string
 - (String) The CRN for this subnet.
 - Deleteds
[]Get
Is Instance Network Interface Security Group Deleted  - (List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information. Nested 
deletedblocks have the following structure: - Href string
 - (String) The URL for this subnet.
 - Id string
 - (String) The unique identifier for this subnet.
 - Name string
 - (String) The user-defined name for this subnet.
 
- crn String
 - (String) The CRN for this subnet.
 - deleteds
List<Get
Is Instance Network Interface Security Group Deleted>  - (List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information. Nested 
deletedblocks have the following structure: - href String
 - (String) The URL for this subnet.
 - id String
 - (String) The unique identifier for this subnet.
 - name String
 - (String) The user-defined name for this subnet.
 
- crn string
 - (String) The CRN for this subnet.
 - deleteds
Get
Is Instance Network Interface Security Group Deleted[]  - (List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information. Nested 
deletedblocks have the following structure: - href string
 - (String) The URL for this subnet.
 - id string
 - (String) The unique identifier for this subnet.
 - name string
 - (String) The user-defined name for this subnet.
 
- crn str
 - (String) The CRN for this subnet.
 - deleteds
Sequence[Get
Is Instance Network Interface Security Group Deleted]  - (List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information. Nested 
deletedblocks have the following structure: - href str
 - (String) The URL for this subnet.
 - id str
 - (String) The unique identifier for this subnet.
 - name str
 - (String) The user-defined name for this subnet.
 
- crn String
 - (String) The CRN for this subnet.
 - deleteds List<Property Map>
 - (List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information. Nested 
deletedblocks have the following structure: - href String
 - (String) The URL for this subnet.
 - id String
 - (String) The unique identifier for this subnet.
 - name String
 - (String) The user-defined name for this subnet.
 
GetIsInstanceNetworkInterfaceSecurityGroupDeleted       
- More
Info string - (String) Link to documentation about deleted resources.
 
- More
Info string - (String) Link to documentation about deleted resources.
 
- more
Info String - (String) Link to documentation about deleted resources.
 
- more
Info string - (String) Link to documentation about deleted resources.
 
- more_
info str - (String) Link to documentation about deleted resources.
 
- more
Info String - (String) Link to documentation about deleted resources.
 
GetIsInstanceNetworkInterfaceSubnet     
- Crn string
 - (String) The CRN for this subnet.
 - Deleteds
List<Get
Is Instance Network Interface Subnet Deleted>  - (List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information. Nested 
deletedblocks have the following structure: - Href string
 - (String) The URL for this subnet.
 - Id string
 - (String) The unique identifier for this subnet.
 - Name string
 - (String) The user-defined name for this subnet.
 
- Crn string
 - (String) The CRN for this subnet.
 - Deleteds
[]Get
Is Instance Network Interface Subnet Deleted  - (List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information. Nested 
deletedblocks have the following structure: - Href string
 - (String) The URL for this subnet.
 - Id string
 - (String) The unique identifier for this subnet.
 - Name string
 - (String) The user-defined name for this subnet.
 
- crn String
 - (String) The CRN for this subnet.
 - deleteds
List<Get
Is Instance Network Interface Subnet Deleted>  - (List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information. Nested 
deletedblocks have the following structure: - href String
 - (String) The URL for this subnet.
 - id String
 - (String) The unique identifier for this subnet.
 - name String
 - (String) The user-defined name for this subnet.
 
- crn string
 - (String) The CRN for this subnet.
 - deleteds
Get
Is Instance Network Interface Subnet Deleted[]  - (List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information. Nested 
deletedblocks have the following structure: - href string
 - (String) The URL for this subnet.
 - id string
 - (String) The unique identifier for this subnet.
 - name string
 - (String) The user-defined name for this subnet.
 
- crn str
 - (String) The CRN for this subnet.
 - deleteds
Sequence[Get
Is Instance Network Interface Subnet Deleted]  - (List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information. Nested 
deletedblocks have the following structure: - href str
 - (String) The URL for this subnet.
 - id str
 - (String) The unique identifier for this subnet.
 - name str
 - (String) The user-defined name for this subnet.
 
- crn String
 - (String) The CRN for this subnet.
 - deleteds List<Property Map>
 - (List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information. Nested 
deletedblocks have the following structure: - href String
 - (String) The URL for this subnet.
 - id String
 - (String) The unique identifier for this subnet.
 - name String
 - (String) The user-defined name for this subnet.
 
GetIsInstanceNetworkInterfaceSubnetDeleted      
- More
Info string - (String) Link to documentation about deleted resources.
 
- More
Info string - (String) Link to documentation about deleted resources.
 
- more
Info String - (String) Link to documentation about deleted resources.
 
- more
Info string - (String) Link to documentation about deleted resources.
 
- more_
info str - (String) Link to documentation about deleted resources.
 
- more
Info String - (String) Link to documentation about deleted resources.
 
Package Details
- Repository
 - ibm ibm-cloud/terraform-provider-ibm
 - License
 - Notes
 - This Pulumi package is based on the 
ibmTerraform Provider.