Retrieve information of an exisitng network interfaces collection. For more information, about instance network interfaces collection, 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 getIsInstanceNetworkInterfaces
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 getIsInstanceNetworkInterfaces(args: GetIsInstanceNetworkInterfacesArgs, opts?: InvokeOptions): Promise<GetIsInstanceNetworkInterfacesResult>
function getIsInstanceNetworkInterfacesOutput(args: GetIsInstanceNetworkInterfacesOutputArgs, opts?: InvokeOptions): Output<GetIsInstanceNetworkInterfacesResult>def get_is_instance_network_interfaces(id: Optional[str] = None,
instance_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetIsInstanceNetworkInterfacesResult
def get_is_instance_network_interfaces_output(id: Optional[pulumi.Input[str]] = None,
instance_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetIsInstanceNetworkInterfacesResult]func GetIsInstanceNetworkInterfaces(ctx *Context, args *GetIsInstanceNetworkInterfacesArgs, opts ...InvokeOption) (*GetIsInstanceNetworkInterfacesResult, error)
func GetIsInstanceNetworkInterfacesOutput(ctx *Context, args *GetIsInstanceNetworkInterfacesOutputArgs, opts ...InvokeOption) GetIsInstanceNetworkInterfacesResultOutput> Note: This function is named GetIsInstanceNetworkInterfaces in the Go SDK.
public static class GetIsInstanceNetworkInterfaces
{
public static Task<GetIsInstanceNetworkInterfacesResult> InvokeAsync(GetIsInstanceNetworkInterfacesArgs args, InvokeOptions? opts = null)
public static Output<GetIsInstanceNetworkInterfacesResult> Invoke(GetIsInstanceNetworkInterfacesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetIsInstanceNetworkInterfacesResult> getIsInstanceNetworkInterfaces(GetIsInstanceNetworkInterfacesArgs args, InvokeOptions options)
public static Output<GetIsInstanceNetworkInterfacesResult> getIsInstanceNetworkInterfaces(GetIsInstanceNetworkInterfacesArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getIsInstanceNetworkInterfaces:getIsInstanceNetworkInterfaces
arguments:
# arguments dictionaryThe following arguments are supported:
- Instance
Name string - The name of an instance.
- Id string
- (String) The unique identifier for this subnet.
- Instance
Name string - The name of an instance.
- Id string
- (String) The unique identifier for this subnet.
- instance
Name String - The name of an instance.
- id String
- (String) The unique identifier for this subnet.
- instance
Name string - The name of an instance.
- id string
- (String) The unique identifier for this subnet.
- instance_
name str - The name of an instance.
- id str
- (String) The unique identifier for this subnet.
- instance
Name String - The name of an instance.
- id String
- (String) The unique identifier for this subnet.
getIsInstanceNetworkInterfaces Result
The following output properties are available:
- Id string
- (String) The unique identifier for this subnet.
- Instance
Name string - Network
Interfaces List<GetIs Instance Network Interfaces Network Interface> - (List) Collection of network interfaces. Nested
network_interfacesblocks have the following structure: - Total
Count double
- Id string
- (String) The unique identifier for this subnet.
- Instance
Name string - Network
Interfaces []GetIs Instance Network Interfaces Network Interface - (List) Collection of network interfaces. Nested
network_interfacesblocks have the following structure: - Total
Count float64
- id String
- (String) The unique identifier for this subnet.
- instance
Name String - network
Interfaces List<GetIs Instance Network Interfaces Network Interface> - (List) Collection of network interfaces. Nested
network_interfacesblocks have the following structure: - total
Count Double
- id string
- (String) The unique identifier for this subnet.
- instance
Name string - network
Interfaces GetIs Instance Network Interfaces Network Interface[] - (List) Collection of network interfaces. Nested
network_interfacesblocks have the following structure: - total
Count number
- id str
- (String) The unique identifier for this subnet.
- instance_
name str - network_
interfaces Sequence[GetIs Instance Network Interfaces Network Interface] - (List) Collection of network interfaces. Nested
network_interfacesblocks have the following structure: - total_
count float
- id String
- (String) The unique identifier for this subnet.
- instance
Name String - network
Interfaces List<Property Map> - (List) Collection of network interfaces. Nested
network_interfacesblocks have the following structure: - total
Count Number
Supporting Types
GetIsInstanceNetworkInterfacesNetworkInterface
- 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 Interfaces Network Interface Floating Ip> - (List) The floating IPs associated with this network interface.
- 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.
- Port
Speed double - (Integer) The network interface port speed in Mbps.
- Primary
Ips List<GetIs Instance Network Interfaces 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 Interfaces Network Interface Security Group> - (List) Collection of security groups.
- Status string
- (String) The status of the network interface.
- Subnets
List<Get
Is Instance Network Interfaces 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 Interfaces Network Interface Floating Ip - (List) The floating IPs associated with this network interface.
- 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.
- Port
Speed float64 - (Integer) The network interface port speed in Mbps.
- Primary
Ips []GetIs Instance Network Interfaces 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 Interfaces Network Interface Security Group - (List) Collection of security groups.
- Status string
- (String) The status of the network interface.
- Subnets
[]Get
Is Instance Network Interfaces 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 Interfaces Network Interface Floating Ip> - (List) The floating IPs associated with this network interface.
- 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.
- port
Speed Double - (Integer) The network interface port speed in Mbps.
- primary
Ips List<GetIs Instance Network Interfaces 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 Interfaces Network Interface Security Group> - (List) Collection of security groups.
- status String
- (String) The status of the network interface.
- subnets
List<Get
Is Instance Network Interfaces 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 Interfaces Network Interface Floating Ip[] - (List) The floating IPs associated with this network interface.
- 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.
- port
Speed number - (Integer) The network interface port speed in Mbps.
- primary
Ips GetIs Instance Network Interfaces 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 Interfaces Network Interface Security Group[] - (List) Collection of security groups.
- status string
- (String) The status of the network interface.
- subnets
Get
Is Instance Network Interfaces 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 Interfaces Network Interface Floating Ip] - (List) The floating IPs associated with this network interface.
- 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.
- port_
speed float - (Integer) The network interface port speed in Mbps.
- primary_
ips Sequence[GetIs Instance Network Interfaces 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 Interfaces Network Interface Security Group] - (List) Collection of security groups.
- status str
- (String) The status of the network interface.
- subnets
Sequence[Get
Is Instance Network Interfaces 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.
- 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.
- 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.
- 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.
GetIsInstanceNetworkInterfacesNetworkInterfaceFloatingIp
- 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 Interfaces Network Interface Floating Ip Deleted> - (List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information.
- 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 Interfaces Network Interface Floating Ip Deleted - (List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information.
- 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 Interfaces Network Interface Floating Ip Deleted> - (List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information.
- 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 Interfaces Network Interface Floating Ip Deleted[] - (List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information.
- 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 Interfaces Network Interface Floating Ip Deleted] - (List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information.
- 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.
- 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.
GetIsInstanceNetworkInterfacesNetworkInterfaceFloatingIpDeleted
- 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.
GetIsInstanceNetworkInterfacesNetworkInterfacePrimaryIp
- 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.
GetIsInstanceNetworkInterfacesNetworkInterfaceSecurityGroup
- Crn string
- (String) The CRN for this subnet.
- Deleteds
List<Get
Is Instance Network Interfaces Network Interface Security Group Deleted> - (List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information.
- 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 Interfaces Network Interface Security Group Deleted - (List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information.
- 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 Interfaces Network Interface Security Group Deleted> - (List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information.
- 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 Interfaces Network Interface Security Group Deleted[] - (List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information.
- 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 Interfaces Network Interface Security Group Deleted] - (List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information.
- 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.
- 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.
GetIsInstanceNetworkInterfacesNetworkInterfaceSecurityGroupDeleted
- 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.
GetIsInstanceNetworkInterfacesNetworkInterfaceSubnet
- Crn string
- (String) The CRN for this subnet.
- Deleteds
List<Get
Is Instance Network Interfaces Network Interface Subnet Deleted> - (List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information.
- 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 Interfaces Network Interface Subnet Deleted - (List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information.
- 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 Interfaces Network Interface Subnet Deleted> - (List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information.
- 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 Interfaces Network Interface Subnet Deleted[] - (List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information.
- 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 Interfaces Network Interface Subnet Deleted] - (List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information.
- 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.
- 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.
GetIsInstanceNetworkInterfacesNetworkInterfaceSubnetDeleted
- 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.
