ibm.IsInstanceNetworkInterface
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as fs from "fs";
import * as ibm from "@pulumi/ibm";
const exampleIsVpc = new ibm.IsVpc("exampleIsVpc", {});
const exampleIsSubnet = new ibm.IsSubnet("exampleIsSubnet", {
vpc: exampleIsVpc.isVpcId,
zone: "us-south-1",
ipv4CidrBlock: "10.240.0.0/24",
});
const exampleIsSshKey = new ibm.IsSshKey("exampleIsSshKey", {publicKey: fs.readFileSync("~/.ssh/id_rsa.pub", "utf8")});
const exampleIsInstance = new ibm.IsInstance("exampleIsInstance", {
image: "a7a0626c-f97e-4180-afbe-0331ec62f32a",
profile: "bx2-2x8",
primaryNetworkInterface: {
subnet: exampleIsSubnet.isSubnetId,
},
networkInterfaces: [{
name: "eth1",
subnet: exampleIsSubnet.isSubnetId,
}],
vpc: exampleIsVpc.isVpcId,
zone: "us-south-1",
keys: [exampleIsSshKey.isSshKeyId],
});
const exampleIsInstanceNetworkInterface = new ibm.IsInstanceNetworkInterface("exampleIsInstanceNetworkInterface", {
instance: exampleIsInstance.isInstanceId,
subnet: exampleIsSubnet.isSubnetId,
allowIpSpoofing: true,
primaryIpv4Address: "10.0.0.5",
});
import pulumi
import pulumi_ibm as ibm
example_is_vpc = ibm.IsVpc("exampleIsVpc")
example_is_subnet = ibm.IsSubnet("exampleIsSubnet",
vpc=example_is_vpc.is_vpc_id,
zone="us-south-1",
ipv4_cidr_block="10.240.0.0/24")
example_is_ssh_key = ibm.IsSshKey("exampleIsSshKey", public_key=(lambda path: open(path).read())("~/.ssh/id_rsa.pub"))
example_is_instance = ibm.IsInstance("exampleIsInstance",
image="a7a0626c-f97e-4180-afbe-0331ec62f32a",
profile="bx2-2x8",
primary_network_interface={
"subnet": example_is_subnet.is_subnet_id,
},
network_interfaces=[{
"name": "eth1",
"subnet": example_is_subnet.is_subnet_id,
}],
vpc=example_is_vpc.is_vpc_id,
zone="us-south-1",
keys=[example_is_ssh_key.is_ssh_key_id])
example_is_instance_network_interface = ibm.IsInstanceNetworkInterface("exampleIsInstanceNetworkInterface",
instance=example_is_instance.is_instance_id,
subnet=example_is_subnet.is_subnet_id,
allow_ip_spoofing=True,
primary_ipv4_address="10.0.0.5")
package main
import (
"os"
"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func readFileOrPanic(path string) pulumi.StringPtrInput {
data, err := os.ReadFile(path)
if err != nil {
panic(err.Error())
}
return pulumi.String(string(data))
}
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleIsVpc, err := ibm.NewIsVpc(ctx, "exampleIsVpc", nil)
if err != nil {
return err
}
exampleIsSubnet, err := ibm.NewIsSubnet(ctx, "exampleIsSubnet", &ibm.IsSubnetArgs{
Vpc: exampleIsVpc.IsVpcId,
Zone: pulumi.String("us-south-1"),
Ipv4CidrBlock: pulumi.String("10.240.0.0/24"),
})
if err != nil {
return err
}
exampleIsSshKey, err := ibm.NewIsSshKey(ctx, "exampleIsSshKey", &ibm.IsSshKeyArgs{
PublicKey: pulumi.String(readFileOrPanic("~/.ssh/id_rsa.pub")),
})
if err != nil {
return err
}
exampleIsInstance, err := ibm.NewIsInstance(ctx, "exampleIsInstance", &ibm.IsInstanceArgs{
Image: pulumi.String("a7a0626c-f97e-4180-afbe-0331ec62f32a"),
Profile: pulumi.String("bx2-2x8"),
PrimaryNetworkInterface: &ibm.IsInstancePrimaryNetworkInterfaceArgs{
Subnet: exampleIsSubnet.IsSubnetId,
},
NetworkInterfaces: ibm.IsInstanceNetworkInterfaceTypeArray{
&ibm.IsInstanceNetworkInterfaceTypeArgs{
Name: pulumi.String("eth1"),
Subnet: exampleIsSubnet.IsSubnetId,
},
},
Vpc: exampleIsVpc.IsVpcId,
Zone: pulumi.String("us-south-1"),
Keys: pulumi.StringArray{
exampleIsSshKey.IsSshKeyId,
},
})
if err != nil {
return err
}
_, err = ibm.NewIsInstanceNetworkInterface(ctx, "exampleIsInstanceNetworkInterface", &ibm.IsInstanceNetworkInterfaceArgs{
Instance: exampleIsInstance.IsInstanceId,
Subnet: exampleIsSubnet.IsSubnetId,
AllowIpSpoofing: pulumi.Bool(true),
PrimaryIpv4Address: pulumi.String("10.0.0.5"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;
return await Deployment.RunAsync(() =>
{
var exampleIsVpc = new Ibm.IsVpc("exampleIsVpc");
var exampleIsSubnet = new Ibm.IsSubnet("exampleIsSubnet", new()
{
Vpc = exampleIsVpc.IsVpcId,
Zone = "us-south-1",
Ipv4CidrBlock = "10.240.0.0/24",
});
var exampleIsSshKey = new Ibm.IsSshKey("exampleIsSshKey", new()
{
PublicKey = File.ReadAllText("~/.ssh/id_rsa.pub"),
});
var exampleIsInstance = new Ibm.IsInstance("exampleIsInstance", new()
{
Image = "a7a0626c-f97e-4180-afbe-0331ec62f32a",
Profile = "bx2-2x8",
PrimaryNetworkInterface = new Ibm.Inputs.IsInstancePrimaryNetworkInterfaceArgs
{
Subnet = exampleIsSubnet.IsSubnetId,
},
NetworkInterfaces = new[]
{
new Ibm.Inputs.IsInstanceNetworkInterfaceArgs
{
Name = "eth1",
Subnet = exampleIsSubnet.IsSubnetId,
},
},
Vpc = exampleIsVpc.IsVpcId,
Zone = "us-south-1",
Keys = new[]
{
exampleIsSshKey.IsSshKeyId,
},
});
var exampleIsInstanceNetworkInterface = new Ibm.IsInstanceNetworkInterface("exampleIsInstanceNetworkInterface", new()
{
Instance = exampleIsInstance.IsInstanceId,
Subnet = exampleIsSubnet.IsSubnetId,
AllowIpSpoofing = true,
PrimaryIpv4Address = "10.0.0.5",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.IsVpc;
import com.pulumi.ibm.IsSubnet;
import com.pulumi.ibm.IsSubnetArgs;
import com.pulumi.ibm.IsSshKey;
import com.pulumi.ibm.IsSshKeyArgs;
import com.pulumi.ibm.IsInstance;
import com.pulumi.ibm.IsInstanceArgs;
import com.pulumi.ibm.inputs.IsInstancePrimaryNetworkInterfaceArgs;
import com.pulumi.ibm.inputs.IsInstanceNetworkInterfaceArgs;
import com.pulumi.ibm.IsInstanceNetworkInterface;
import com.pulumi.ibm.IsInstanceNetworkInterfaceArgs;
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) {
var exampleIsVpc = new IsVpc("exampleIsVpc");
var exampleIsSubnet = new IsSubnet("exampleIsSubnet", IsSubnetArgs.builder()
.vpc(exampleIsVpc.isVpcId())
.zone("us-south-1")
.ipv4CidrBlock("10.240.0.0/24")
.build());
var exampleIsSshKey = new IsSshKey("exampleIsSshKey", IsSshKeyArgs.builder()
.publicKey(Files.readString(Paths.get("~/.ssh/id_rsa.pub")))
.build());
var exampleIsInstance = new IsInstance("exampleIsInstance", IsInstanceArgs.builder()
.image("a7a0626c-f97e-4180-afbe-0331ec62f32a")
.profile("bx2-2x8")
.primaryNetworkInterface(IsInstancePrimaryNetworkInterfaceArgs.builder()
.subnet(exampleIsSubnet.isSubnetId())
.build())
.networkInterfaces(IsInstanceNetworkInterfaceArgs.builder()
.name("eth1")
.subnet(exampleIsSubnet.isSubnetId())
.build())
.vpc(exampleIsVpc.isVpcId())
.zone("us-south-1")
.keys(exampleIsSshKey.isSshKeyId())
.build());
var exampleIsInstanceNetworkInterface = new IsInstanceNetworkInterface("exampleIsInstanceNetworkInterface", IsInstanceNetworkInterfaceArgs.builder()
.instance(exampleIsInstance.isInstanceId())
.subnet(exampleIsSubnet.isSubnetId())
.allowIpSpoofing(true)
.primaryIpv4Address("10.0.0.5")
.build());
}
}
resources:
exampleIsVpc:
type: ibm:IsVpc
exampleIsSubnet:
type: ibm:IsSubnet
properties:
vpc: ${exampleIsVpc.isVpcId}
zone: us-south-1
ipv4CidrBlock: 10.240.0.0/24
exampleIsSshKey:
type: ibm:IsSshKey
properties:
publicKey:
fn::readFile: ~/.ssh/id_rsa.pub
exampleIsInstance:
type: ibm:IsInstance
properties:
image: a7a0626c-f97e-4180-afbe-0331ec62f32a
profile: bx2-2x8
primaryNetworkInterface:
subnet: ${exampleIsSubnet.isSubnetId}
networkInterfaces:
- name: eth1
subnet: ${exampleIsSubnet.isSubnetId}
vpc: ${exampleIsVpc.isVpcId}
zone: us-south-1
keys:
- ${exampleIsSshKey.isSshKeyId}
exampleIsInstanceNetworkInterface:
type: ibm:IsInstanceNetworkInterface
properties:
instance: ${exampleIsInstance.isInstanceId}
subnet: ${exampleIsSubnet.isSubnetId}
allowIpSpoofing: true
primaryIpv4Address: 10.0.0.5
Create IsInstanceNetworkInterface Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new IsInstanceNetworkInterface(name: string, args: IsInstanceNetworkInterfaceArgs, opts?: CustomResourceOptions);
@overload
def IsInstanceNetworkInterface(resource_name: str,
args: IsInstanceNetworkInterfaceInitArgs,
opts: Optional[ResourceOptions] = None)
@overload
def IsInstanceNetworkInterface(resource_name: str,
opts: Optional[ResourceOptions] = None,
instance: Optional[str] = None,
subnet: Optional[str] = None,
allow_ip_spoofing: Optional[bool] = None,
floating_ip: Optional[str] = None,
is_instance_network_interface_id: Optional[str] = None,
name: Optional[str] = None,
primary_ip: Optional[IsInstanceNetworkInterfacePrimaryIpArgs] = None,
primary_ipv4_address: Optional[str] = None,
security_groups: Optional[Sequence[str]] = None)
func NewIsInstanceNetworkInterface(ctx *Context, name string, args IsInstanceNetworkInterfaceArgs, opts ...ResourceOption) (*IsInstanceNetworkInterface, error)
public IsInstanceNetworkInterface(string name, IsInstanceNetworkInterfaceArgs args, CustomResourceOptions? opts = null)
public IsInstanceNetworkInterface(String name, IsInstanceNetworkInterfaceArgs args)
public IsInstanceNetworkInterface(String name, IsInstanceNetworkInterfaceArgs args, CustomResourceOptions options)
type: ibm:IsInstanceNetworkInterface
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args IsInstanceNetworkInterfaceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args IsInstanceNetworkInterfaceInitArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args IsInstanceNetworkInterfaceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IsInstanceNetworkInterfaceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args IsInstanceNetworkInterfaceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var isInstanceNetworkInterfaceResource = new Ibm.IsInstanceNetworkInterface("isInstanceNetworkInterfaceResource", new()
{
Instance = "string",
Subnet = "string",
AllowIpSpoofing = false,
FloatingIp = "string",
IsInstanceNetworkInterfaceId = "string",
Name = "string",
PrimaryIp = new Ibm.Inputs.IsInstanceNetworkInterfacePrimaryIpArgs
{
Address = "string",
AutoDelete = false,
Href = "string",
Name = "string",
ReservedIp = "string",
ResourceType = "string",
},
SecurityGroups = new[]
{
"string",
},
});
example, err := ibm.NewIsInstanceNetworkInterface(ctx, "isInstanceNetworkInterfaceResource", &ibm.IsInstanceNetworkInterfaceArgs{
Instance: pulumi.String("string"),
Subnet: pulumi.String("string"),
AllowIpSpoofing: pulumi.Bool(false),
FloatingIp: pulumi.String("string"),
IsInstanceNetworkInterfaceId: pulumi.String("string"),
Name: pulumi.String("string"),
PrimaryIp: &ibm.IsInstanceNetworkInterfacePrimaryIpArgs{
Address: pulumi.String("string"),
AutoDelete: pulumi.Bool(false),
Href: pulumi.String("string"),
Name: pulumi.String("string"),
ReservedIp: pulumi.String("string"),
ResourceType: pulumi.String("string"),
},
SecurityGroups: pulumi.StringArray{
pulumi.String("string"),
},
})
var isInstanceNetworkInterfaceResource = new IsInstanceNetworkInterface("isInstanceNetworkInterfaceResource", IsInstanceNetworkInterfaceArgs.builder()
.instance("string")
.subnet("string")
.allowIpSpoofing(false)
.floatingIp("string")
.isInstanceNetworkInterfaceId("string")
.name("string")
.primaryIp(IsInstanceNetworkInterfacePrimaryIpArgs.builder()
.address("string")
.autoDelete(false)
.href("string")
.name("string")
.reservedIp("string")
.resourceType("string")
.build())
.securityGroups("string")
.build());
is_instance_network_interface_resource = ibm.IsInstanceNetworkInterface("isInstanceNetworkInterfaceResource",
instance="string",
subnet="string",
allow_ip_spoofing=False,
floating_ip="string",
is_instance_network_interface_id="string",
name="string",
primary_ip={
"address": "string",
"auto_delete": False,
"href": "string",
"name": "string",
"reserved_ip": "string",
"resource_type": "string",
},
security_groups=["string"])
const isInstanceNetworkInterfaceResource = new ibm.IsInstanceNetworkInterface("isInstanceNetworkInterfaceResource", {
instance: "string",
subnet: "string",
allowIpSpoofing: false,
floatingIp: "string",
isInstanceNetworkInterfaceId: "string",
name: "string",
primaryIp: {
address: "string",
autoDelete: false,
href: "string",
name: "string",
reservedIp: "string",
resourceType: "string",
},
securityGroups: ["string"],
});
type: ibm:IsInstanceNetworkInterface
properties:
allowIpSpoofing: false
floatingIp: string
instance: string
isInstanceNetworkInterfaceId: string
name: string
primaryIp:
address: string
autoDelete: false
href: string
name: string
reservedIp: string
resourceType: string
securityGroups:
- string
subnet: string
IsInstanceNetworkInterface Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The IsInstanceNetworkInterface resource accepts the following input properties:
- Instance string
- The instance identifier.
- Subnet string
The unique identifier of the associated subnet.
Note Only 1 floating IP can be attached to a VSI at any given time. Floating IP can be de-attached from one network interface and attached to a different network interface, but be sure to remove the floating_ip field from the previous network interface resource before adding it to a new resource.
Note
floating_ip
cannot be used in conjunction with thetarget
argument ofibm.IsFloatingIp
resource and might cause cyclic dependency/unexpected issues if used used both ways.Note Using
ibm.IsSecurityGroupTarget
to attach security groups to the network interface along withsecurity_groups
field in this resource could cause undesired behavior. Use either one of them to associate network interface to a security group.- Allow
Ip boolSpoofing - 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. The default value is
false
. - Floating
Ip string - The ID of the floating IP to attach to this network interface.
- Is
Instance stringNetwork Interface Id - (String) The unique identifier of the resource. Follows the format <instance_id>/<network_interface_id>.
- Name string
- The user-defined name for this network interface.
- Primary
Ip IsInstance Network Interface Primary Ip - 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.
Nested scheme for
primary_ip
: - Primary
Ipv4Address string - The primary IPv4 address. If specified, it must be an available address on the network interface's subnet. If unspecified, an available address on the subnet will be automatically selected.
- Security
Groups List<string> - A comma separated list of security groups to add to the primary network interface.
- Instance string
- The instance identifier.
- Subnet string
The unique identifier of the associated subnet.
Note Only 1 floating IP can be attached to a VSI at any given time. Floating IP can be de-attached from one network interface and attached to a different network interface, but be sure to remove the floating_ip field from the previous network interface resource before adding it to a new resource.
Note
floating_ip
cannot be used in conjunction with thetarget
argument ofibm.IsFloatingIp
resource and might cause cyclic dependency/unexpected issues if used used both ways.Note Using
ibm.IsSecurityGroupTarget
to attach security groups to the network interface along withsecurity_groups
field in this resource could cause undesired behavior. Use either one of them to associate network interface to a security group.- Allow
Ip boolSpoofing - 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. The default value is
false
. - Floating
Ip string - The ID of the floating IP to attach to this network interface.
- Is
Instance stringNetwork Interface Id - (String) The unique identifier of the resource. Follows the format <instance_id>/<network_interface_id>.
- Name string
- The user-defined name for this network interface.
- Primary
Ip IsInstance Network Interface Primary Ip Args - 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.
Nested scheme for
primary_ip
: - Primary
Ipv4Address string - The primary IPv4 address. If specified, it must be an available address on the network interface's subnet. If unspecified, an available address on the subnet will be automatically selected.
- Security
Groups []string - A comma separated list of security groups to add to the primary network interface.
- instance String
- The instance identifier.
- subnet String
The unique identifier of the associated subnet.
Note Only 1 floating IP can be attached to a VSI at any given time. Floating IP can be de-attached from one network interface and attached to a different network interface, but be sure to remove the floating_ip field from the previous network interface resource before adding it to a new resource.
Note
floating_ip
cannot be used in conjunction with thetarget
argument ofibm.IsFloatingIp
resource and might cause cyclic dependency/unexpected issues if used used both ways.Note Using
ibm.IsSecurityGroupTarget
to attach security groups to the network interface along withsecurity_groups
field in this resource could cause undesired behavior. Use either one of them to associate network interface to a security group.- allow
Ip BooleanSpoofing - 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. The default value is
false
. - floating
Ip String - The ID of the floating IP to attach to this network interface.
- is
Instance StringNetwork Interface Id - (String) The unique identifier of the resource. Follows the format <instance_id>/<network_interface_id>.
- name String
- The user-defined name for this network interface.
- primary
Ip IsInstance Network Interface Primary Ip - 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.
Nested scheme for
primary_ip
: - primary
Ipv4Address String - The primary IPv4 address. If specified, it must be an available address on the network interface's subnet. If unspecified, an available address on the subnet will be automatically selected.
- security
Groups List<String> - A comma separated list of security groups to add to the primary network interface.
- instance string
- The instance identifier.
- subnet string
The unique identifier of the associated subnet.
Note Only 1 floating IP can be attached to a VSI at any given time. Floating IP can be de-attached from one network interface and attached to a different network interface, but be sure to remove the floating_ip field from the previous network interface resource before adding it to a new resource.
Note
floating_ip
cannot be used in conjunction with thetarget
argument ofibm.IsFloatingIp
resource and might cause cyclic dependency/unexpected issues if used used both ways.Note Using
ibm.IsSecurityGroupTarget
to attach security groups to the network interface along withsecurity_groups
field in this resource could cause undesired behavior. Use either one of them to associate network interface to a security group.- allow
Ip booleanSpoofing - 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. The default value is
false
. - floating
Ip string - The ID of the floating IP to attach to this network interface.
- is
Instance stringNetwork Interface Id - (String) The unique identifier of the resource. Follows the format <instance_id>/<network_interface_id>.
- name string
- The user-defined name for this network interface.
- primary
Ip IsInstance Network Interface Primary Ip - 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.
Nested scheme for
primary_ip
: - primary
Ipv4Address string - The primary IPv4 address. If specified, it must be an available address on the network interface's subnet. If unspecified, an available address on the subnet will be automatically selected.
- security
Groups string[] - A comma separated list of security groups to add to the primary network interface.
- instance str
- The instance identifier.
- subnet str
The unique identifier of the associated subnet.
Note Only 1 floating IP can be attached to a VSI at any given time. Floating IP can be de-attached from one network interface and attached to a different network interface, but be sure to remove the floating_ip field from the previous network interface resource before adding it to a new resource.
Note
floating_ip
cannot be used in conjunction with thetarget
argument ofibm.IsFloatingIp
resource and might cause cyclic dependency/unexpected issues if used used both ways.Note Using
ibm.IsSecurityGroupTarget
to attach security groups to the network interface along withsecurity_groups
field in this resource could cause undesired behavior. Use either one of them to associate network interface to a security group.- allow_
ip_ boolspoofing - 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. The default value is
false
. - floating_
ip str - The ID of the floating IP to attach to this network interface.
- is_
instance_ strnetwork_ interface_ id - (String) The unique identifier of the resource. Follows the format <instance_id>/<network_interface_id>.
- name str
- The user-defined name for this network interface.
- primary_
ip IsInstance Network Interface Primary Ip Args - 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.
Nested scheme for
primary_ip
: - primary_
ipv4_ straddress - The primary IPv4 address. If specified, it must be an available address on the network interface's subnet. If unspecified, an available address on the subnet will be automatically selected.
- security_
groups Sequence[str] - A comma separated list of security groups to add to the primary network interface.
- instance String
- The instance identifier.
- subnet String
The unique identifier of the associated subnet.
Note Only 1 floating IP can be attached to a VSI at any given time. Floating IP can be de-attached from one network interface and attached to a different network interface, but be sure to remove the floating_ip field from the previous network interface resource before adding it to a new resource.
Note
floating_ip
cannot be used in conjunction with thetarget
argument ofibm.IsFloatingIp
resource and might cause cyclic dependency/unexpected issues if used used both ways.Note Using
ibm.IsSecurityGroupTarget
to attach security groups to the network interface along withsecurity_groups
field in this resource could cause undesired behavior. Use either one of them to associate network interface to a security group.- allow
Ip BooleanSpoofing - 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. The default value is
false
. - floating
Ip String - The ID of the floating IP to attach to this network interface.
- is
Instance StringNetwork Interface Id - (String) The unique identifier of the resource. Follows the format <instance_id>/<network_interface_id>.
- name String
- The user-defined name for this network interface.
- primary
Ip Property Map - 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.
Nested scheme for
primary_ip
: - primary
Ipv4Address String - The primary IPv4 address. If specified, it must be an available address on the network interface's subnet. If unspecified, an available address on the subnet will be automatically selected.
- security
Groups List<String> - A comma separated list of security groups to add to the primary network interface.
Outputs
All input properties are implicitly available as output properties. Additionally, the IsInstanceNetworkInterface resource produces the following output properties:
- Created
At string - (String) The date and time that the network interface was created.
- Floating
Ips List<IsInstance Network Interface Floating Ip> - (List) The floating IPs associated with this network interface. Nested
floating_ips
blocks have the following structure: - Href string
- (String) The URL for this network interface.
- Id string
- The provider-assigned unique ID for this managed resource.
- Network
Interface string - (String) The unique identifier of the NetworkInterface.
- Port
Speed double - (Integer) The network interface port speed in Mbps.
- Resource
Type string - (String) The resource type.
- Status string
- (String) The status of the network interface.
- Type string
- (String) The type of this network interface as it relates to an instance.
- Created
At string - (String) The date and time that the network interface was created.
- Floating
Ips []IsInstance Network Interface Floating Ip Type - (List) The floating IPs associated with this network interface. Nested
floating_ips
blocks have the following structure: - Href string
- (String) The URL for this network interface.
- Id string
- The provider-assigned unique ID for this managed resource.
- Network
Interface string - (String) The unique identifier of the NetworkInterface.
- Port
Speed float64 - (Integer) The network interface port speed in Mbps.
- Resource
Type string - (String) The resource type.
- Status string
- (String) The status of the network interface.
- Type string
- (String) The type of this network interface as it relates to an instance.
- created
At String - (String) The date and time that the network interface was created.
- floating
Ips List<IsInstance Network Interface Floating Ip> - (List) The floating IPs associated with this network interface. Nested
floating_ips
blocks have the following structure: - href String
- (String) The URL for this network interface.
- id String
- The provider-assigned unique ID for this managed resource.
- network
Interface String - (String) The unique identifier of the NetworkInterface.
- port
Speed Double - (Integer) The network interface port speed in Mbps.
- resource
Type String - (String) The resource type.
- status String
- (String) The status of the network interface.
- type String
- (String) The type of this network interface as it relates to an instance.
- created
At string - (String) The date and time that the network interface was created.
- floating
Ips IsInstance Network Interface Floating Ip[] - (List) The floating IPs associated with this network interface. Nested
floating_ips
blocks have the following structure: - href string
- (String) The URL for this network interface.
- id string
- The provider-assigned unique ID for this managed resource.
- network
Interface string - (String) The unique identifier of the NetworkInterface.
- port
Speed number - (Integer) The network interface port speed in Mbps.
- resource
Type string - (String) The resource type.
- status string
- (String) The status of the network interface.
- type string
- (String) The type of this network interface as it relates to an instance.
- created_
at str - (String) The date and time that the network interface was created.
- floating_
ips Sequence[IsInstance Network Interface Floating Ip] - (List) The floating IPs associated with this network interface. Nested
floating_ips
blocks have the following structure: - href str
- (String) The URL for this network interface.
- id str
- The provider-assigned unique ID for this managed resource.
- network_
interface str - (String) The unique identifier of the NetworkInterface.
- port_
speed float - (Integer) The network interface port speed in Mbps.
- resource_
type str - (String) The resource type.
- status str
- (String) The status of the network interface.
- type str
- (String) The type of this network interface as it relates to an instance.
- 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_ips
blocks have the following structure: - href String
- (String) The URL for this network interface.
- id String
- The provider-assigned unique ID for this managed resource.
- network
Interface String - (String) The unique identifier of the NetworkInterface.
- port
Speed Number - (Integer) The network interface port speed in Mbps.
- resource
Type String - (String) The resource type.
- status String
- (String) The status of the network interface.
- type String
- (String) The type of this network interface as it relates to an instance.
Look up Existing IsInstanceNetworkInterface Resource
Get an existing IsInstanceNetworkInterface resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: IsInstanceNetworkInterfaceState, opts?: CustomResourceOptions): IsInstanceNetworkInterface
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
allow_ip_spoofing: Optional[bool] = None,
created_at: Optional[str] = None,
floating_ip: Optional[str] = None,
floating_ips: Optional[Sequence[IsInstanceNetworkInterfaceFloatingIpArgs]] = None,
href: Optional[str] = None,
instance: Optional[str] = None,
is_instance_network_interface_id: Optional[str] = None,
name: Optional[str] = None,
network_interface: Optional[str] = None,
port_speed: Optional[float] = None,
primary_ip: Optional[IsInstanceNetworkInterfacePrimaryIpArgs] = None,
primary_ipv4_address: Optional[str] = None,
resource_type: Optional[str] = None,
security_groups: Optional[Sequence[str]] = None,
status: Optional[str] = None,
subnet: Optional[str] = None,
type: Optional[str] = None) -> IsInstanceNetworkInterface
func GetIsInstanceNetworkInterface(ctx *Context, name string, id IDInput, state *IsInstanceNetworkInterfaceState, opts ...ResourceOption) (*IsInstanceNetworkInterface, error)
public static IsInstanceNetworkInterface Get(string name, Input<string> id, IsInstanceNetworkInterfaceState? state, CustomResourceOptions? opts = null)
public static IsInstanceNetworkInterface get(String name, Output<String> id, IsInstanceNetworkInterfaceState state, CustomResourceOptions options)
resources: _: type: ibm:IsInstanceNetworkInterface get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Allow
Ip boolSpoofing - 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. The default value is
false
. - Created
At string - (String) The date and time that the network interface was created.
- Floating
Ip string - The ID of the floating IP to attach to this network interface.
- Floating
Ips List<IsInstance Network Interface Floating Ip> - (List) The floating IPs associated with this network interface. Nested
floating_ips
blocks have the following structure: - Href string
- (String) The URL for this network interface.
- Instance string
- The instance identifier.
- Is
Instance stringNetwork Interface Id - (String) The unique identifier of the resource. Follows the format <instance_id>/<network_interface_id>.
- Name string
- The user-defined name for this network interface.
- Network
Interface string - (String) The unique identifier of the NetworkInterface.
- Port
Speed double - (Integer) The network interface port speed in Mbps.
- Primary
Ip IsInstance Network Interface Primary Ip - 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.
Nested scheme for
primary_ip
: - Primary
Ipv4Address string - The primary IPv4 address. If specified, it must be an available address on the network interface's subnet. If unspecified, an available address on the subnet will be automatically selected.
- Resource
Type string - (String) The resource type.
- Security
Groups List<string> - A comma separated list of security groups to add to the primary network interface.
- Status string
- (String) The status of the network interface.
- Subnet string
The unique identifier of the associated subnet.
Note Only 1 floating IP can be attached to a VSI at any given time. Floating IP can be de-attached from one network interface and attached to a different network interface, but be sure to remove the floating_ip field from the previous network interface resource before adding it to a new resource.
Note
floating_ip
cannot be used in conjunction with thetarget
argument ofibm.IsFloatingIp
resource and might cause cyclic dependency/unexpected issues if used used both ways.Note Using
ibm.IsSecurityGroupTarget
to attach security groups to the network interface along withsecurity_groups
field in this resource could cause undesired behavior. Use either one of them to associate network interface to a security group.- Type string
- (String) The type of this network interface as it relates to an instance.
- Allow
Ip boolSpoofing - 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. The default value is
false
. - Created
At string - (String) The date and time that the network interface was created.
- Floating
Ip string - The ID of the floating IP to attach to this network interface.
- Floating
Ips []IsInstance Network Interface Floating Ip Type Args - (List) The floating IPs associated with this network interface. Nested
floating_ips
blocks have the following structure: - Href string
- (String) The URL for this network interface.
- Instance string
- The instance identifier.
- Is
Instance stringNetwork Interface Id - (String) The unique identifier of the resource. Follows the format <instance_id>/<network_interface_id>.
- Name string
- The user-defined name for this network interface.
- Network
Interface string - (String) The unique identifier of the NetworkInterface.
- Port
Speed float64 - (Integer) The network interface port speed in Mbps.
- Primary
Ip IsInstance Network Interface Primary Ip Args - 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.
Nested scheme for
primary_ip
: - Primary
Ipv4Address string - The primary IPv4 address. If specified, it must be an available address on the network interface's subnet. If unspecified, an available address on the subnet will be automatically selected.
- Resource
Type string - (String) The resource type.
- Security
Groups []string - A comma separated list of security groups to add to the primary network interface.
- Status string
- (String) The status of the network interface.
- Subnet string
The unique identifier of the associated subnet.
Note Only 1 floating IP can be attached to a VSI at any given time. Floating IP can be de-attached from one network interface and attached to a different network interface, but be sure to remove the floating_ip field from the previous network interface resource before adding it to a new resource.
Note
floating_ip
cannot be used in conjunction with thetarget
argument ofibm.IsFloatingIp
resource and might cause cyclic dependency/unexpected issues if used used both ways.Note Using
ibm.IsSecurityGroupTarget
to attach security groups to the network interface along withsecurity_groups
field in this resource could cause undesired behavior. Use either one of them to associate network interface to a security group.- Type string
- (String) The type of this network interface as it relates to an instance.
- allow
Ip BooleanSpoofing - 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. The default value is
false
. - created
At String - (String) The date and time that the network interface was created.
- floating
Ip String - The ID of the floating IP to attach to this network interface.
- floating
Ips List<IsInstance Network Interface Floating Ip> - (List) The floating IPs associated with this network interface. Nested
floating_ips
blocks have the following structure: - href String
- (String) The URL for this network interface.
- instance String
- The instance identifier.
- is
Instance StringNetwork Interface Id - (String) The unique identifier of the resource. Follows the format <instance_id>/<network_interface_id>.
- name String
- The user-defined name for this network interface.
- network
Interface String - (String) The unique identifier of the NetworkInterface.
- port
Speed Double - (Integer) The network interface port speed in Mbps.
- primary
Ip IsInstance Network Interface Primary Ip - 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.
Nested scheme for
primary_ip
: - primary
Ipv4Address String - The primary IPv4 address. If specified, it must be an available address on the network interface's subnet. If unspecified, an available address on the subnet will be automatically selected.
- resource
Type String - (String) The resource type.
- security
Groups List<String> - A comma separated list of security groups to add to the primary network interface.
- status String
- (String) The status of the network interface.
- subnet String
The unique identifier of the associated subnet.
Note Only 1 floating IP can be attached to a VSI at any given time. Floating IP can be de-attached from one network interface and attached to a different network interface, but be sure to remove the floating_ip field from the previous network interface resource before adding it to a new resource.
Note
floating_ip
cannot be used in conjunction with thetarget
argument ofibm.IsFloatingIp
resource and might cause cyclic dependency/unexpected issues if used used both ways.Note Using
ibm.IsSecurityGroupTarget
to attach security groups to the network interface along withsecurity_groups
field in this resource could cause undesired behavior. Use either one of them to associate network interface to a security group.- type String
- (String) The type of this network interface as it relates to an instance.
- allow
Ip booleanSpoofing - 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. The default value is
false
. - created
At string - (String) The date and time that the network interface was created.
- floating
Ip string - The ID of the floating IP to attach to this network interface.
- floating
Ips IsInstance Network Interface Floating Ip[] - (List) The floating IPs associated with this network interface. Nested
floating_ips
blocks have the following structure: - href string
- (String) The URL for this network interface.
- instance string
- The instance identifier.
- is
Instance stringNetwork Interface Id - (String) The unique identifier of the resource. Follows the format <instance_id>/<network_interface_id>.
- name string
- The user-defined name for this network interface.
- network
Interface string - (String) The unique identifier of the NetworkInterface.
- port
Speed number - (Integer) The network interface port speed in Mbps.
- primary
Ip IsInstance Network Interface Primary Ip - 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.
Nested scheme for
primary_ip
: - primary
Ipv4Address string - The primary IPv4 address. If specified, it must be an available address on the network interface's subnet. If unspecified, an available address on the subnet will be automatically selected.
- resource
Type string - (String) The resource type.
- security
Groups string[] - A comma separated list of security groups to add to the primary network interface.
- status string
- (String) The status of the network interface.
- subnet string
The unique identifier of the associated subnet.
Note Only 1 floating IP can be attached to a VSI at any given time. Floating IP can be de-attached from one network interface and attached to a different network interface, but be sure to remove the floating_ip field from the previous network interface resource before adding it to a new resource.
Note
floating_ip
cannot be used in conjunction with thetarget
argument ofibm.IsFloatingIp
resource and might cause cyclic dependency/unexpected issues if used used both ways.Note Using
ibm.IsSecurityGroupTarget
to attach security groups to the network interface along withsecurity_groups
field in this resource could cause undesired behavior. Use either one of them to associate network interface to a security group.- type string
- (String) The type of this network interface as it relates to an instance.
- allow_
ip_ boolspoofing - 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. The default value is
false
. - created_
at str - (String) The date and time that the network interface was created.
- floating_
ip str - The ID of the floating IP to attach to this network interface.
- floating_
ips Sequence[IsInstance Network Interface Floating Ip Args] - (List) The floating IPs associated with this network interface. Nested
floating_ips
blocks have the following structure: - href str
- (String) The URL for this network interface.
- instance str
- The instance identifier.
- is_
instance_ strnetwork_ interface_ id - (String) The unique identifier of the resource. Follows the format <instance_id>/<network_interface_id>.
- name str
- The user-defined name for this network interface.
- network_
interface str - (String) The unique identifier of the NetworkInterface.
- port_
speed float - (Integer) The network interface port speed in Mbps.
- primary_
ip IsInstance Network Interface Primary Ip Args - 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.
Nested scheme for
primary_ip
: - primary_
ipv4_ straddress - The primary IPv4 address. If specified, it must be an available address on the network interface's subnet. If unspecified, an available address on the subnet will be automatically selected.
- resource_
type str - (String) The resource type.
- security_
groups Sequence[str] - A comma separated list of security groups to add to the primary network interface.
- status str
- (String) The status of the network interface.
- subnet str
The unique identifier of the associated subnet.
Note Only 1 floating IP can be attached to a VSI at any given time. Floating IP can be de-attached from one network interface and attached to a different network interface, but be sure to remove the floating_ip field from the previous network interface resource before adding it to a new resource.
Note
floating_ip
cannot be used in conjunction with thetarget
argument ofibm.IsFloatingIp
resource and might cause cyclic dependency/unexpected issues if used used both ways.Note Using
ibm.IsSecurityGroupTarget
to attach security groups to the network interface along withsecurity_groups
field in this resource could cause undesired behavior. Use either one of them to associate network interface to a security group.- type str
- (String) The type of this network interface as it relates to an instance.
- allow
Ip BooleanSpoofing - 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. The default value is
false
. - created
At String - (String) The date and time that the network interface was created.
- floating
Ip String - The ID of the floating IP to attach to this network interface.
- floating
Ips List<Property Map> - (List) The floating IPs associated with this network interface. Nested
floating_ips
blocks have the following structure: - href String
- (String) The URL for this network interface.
- instance String
- The instance identifier.
- is
Instance StringNetwork Interface Id - (String) The unique identifier of the resource. Follows the format <instance_id>/<network_interface_id>.
- name String
- The user-defined name for this network interface.
- network
Interface String - (String) The unique identifier of the NetworkInterface.
- port
Speed Number - (Integer) The network interface port speed in Mbps.
- primary
Ip Property Map - 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.
Nested scheme for
primary_ip
: - primary
Ipv4Address String - The primary IPv4 address. If specified, it must be an available address on the network interface's subnet. If unspecified, an available address on the subnet will be automatically selected.
- resource
Type String - (String) The resource type.
- security
Groups List<String> - A comma separated list of security groups to add to the primary network interface.
- status String
- (String) The status of the network interface.
- subnet String
The unique identifier of the associated subnet.
Note Only 1 floating IP can be attached to a VSI at any given time. Floating IP can be de-attached from one network interface and attached to a different network interface, but be sure to remove the floating_ip field from the previous network interface resource before adding it to a new resource.
Note
floating_ip
cannot be used in conjunction with thetarget
argument ofibm.IsFloatingIp
resource and might cause cyclic dependency/unexpected issues if used used both ways.Note Using
ibm.IsSecurityGroupTarget
to attach security groups to the network interface along withsecurity_groups
field in this resource could cause undesired behavior. Use either one of them to associate network interface to a security group.- type String
- (String) The type of this network interface as it relates to an instance.
Supporting Types
IsInstanceNetworkInterfaceFloatingIp, IsInstanceNetworkInterfaceFloatingIpArgs
- Address string
- (String) The globally unique IP address.
- Crn string
- (String) The CRN for this floating IP.
- Deleteds
List<Is
Instance Network Interface Floating Ip Deleted> - (List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information. Nested
deleted
blocks have the following structure: - Href string
- (String) The URL for this network interface.
- Id string
- (String) The unique identifier of the resource. Follows the format <instance_id>/<network_interface_id>.
- Name string
- The user-defined name for this network interface.
- Address string
- (String) The globally unique IP address.
- Crn string
- (String) The CRN for this floating IP.
- Deleteds
[]Is
Instance Network Interface Floating Ip Deleted - (List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information. Nested
deleted
blocks have the following structure: - Href string
- (String) The URL for this network interface.
- Id string
- (String) The unique identifier of the resource. Follows the format <instance_id>/<network_interface_id>.
- Name string
- The user-defined name for this network interface.
- address String
- (String) The globally unique IP address.
- crn String
- (String) The CRN for this floating IP.
- deleteds
List<Is
Instance Network Interface Floating Ip Deleted> - (List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information. Nested
deleted
blocks have the following structure: - href String
- (String) The URL for this network interface.
- id String
- (String) The unique identifier of the resource. Follows the format <instance_id>/<network_interface_id>.
- name String
- The user-defined name for this network interface.
- address string
- (String) The globally unique IP address.
- crn string
- (String) The CRN for this floating IP.
- deleteds
Is
Instance Network Interface Floating Ip Deleted[] - (List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information. Nested
deleted
blocks have the following structure: - href string
- (String) The URL for this network interface.
- id string
- (String) The unique identifier of the resource. Follows the format <instance_id>/<network_interface_id>.
- name string
- The user-defined name for this network interface.
- address str
- (String) The globally unique IP address.
- crn str
- (String) The CRN for this floating IP.
- deleteds
Sequence[Is
Instance Network Interface Floating Ip Deleted] - (List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information. Nested
deleted
blocks have the following structure: - href str
- (String) The URL for this network interface.
- id str
- (String) The unique identifier of the resource. Follows the format <instance_id>/<network_interface_id>.
- name str
- The user-defined name for this network interface.
- address String
- (String) The globally unique IP address.
- crn String
- (String) The CRN for this floating IP.
- deleteds List<Property Map>
- (List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information. Nested
deleted
blocks have the following structure: - href String
- (String) The URL for this network interface.
- id String
- (String) The unique identifier of the resource. Follows the format <instance_id>/<network_interface_id>.
- name String
- The user-defined name for this network interface.
IsInstanceNetworkInterfaceFloatingIpDeleted, IsInstanceNetworkInterfaceFloatingIpDeletedArgs
- 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.
IsInstanceNetworkInterfacePrimaryIp, IsInstanceNetworkInterfacePrimaryIpArgs
- Address string
- The IP address. Same as
primary_ipv4_address
- Auto
Delete bool - Indicates whether this reserved IP member will be automatically deleted when either target is deleted, or the reserved IP is unbound.
- Href string
- (String) The URL for this network interface.
- Name string
- The user-defined or system-provided name for this reserved IP
- Reserved
Ip string - The unique identifier for this reserved IP
- Resource
Type string - (String) The resource type.
- Address string
- The IP address. Same as
primary_ipv4_address
- Auto
Delete bool - Indicates whether this reserved IP member will be automatically deleted when either target is deleted, or the reserved IP is unbound.
- Href string
- (String) The URL for this network interface.
- Name string
- The user-defined or system-provided name for this reserved IP
- Reserved
Ip string - The unique identifier for this reserved IP
- Resource
Type string - (String) The resource type.
- address String
- The IP address. Same as
primary_ipv4_address
- auto
Delete Boolean - Indicates whether this reserved IP member will be automatically deleted when either target is deleted, or the reserved IP is unbound.
- href String
- (String) The URL for this network interface.
- name String
- The user-defined or system-provided name for this reserved IP
- reserved
Ip String - The unique identifier for this reserved IP
- resource
Type String - (String) The resource type.
- address string
- The IP address. Same as
primary_ipv4_address
- auto
Delete boolean - Indicates whether this reserved IP member will be automatically deleted when either target is deleted, or the reserved IP is unbound.
- href string
- (String) The URL for this network interface.
- name string
- The user-defined or system-provided name for this reserved IP
- reserved
Ip string - The unique identifier for this reserved IP
- resource
Type string - (String) The resource type.
- address str
- The IP address. Same as
primary_ipv4_address
- auto_
delete bool - Indicates whether this reserved IP member will be automatically deleted when either target is deleted, or the reserved IP is unbound.
- href str
- (String) The URL for this network interface.
- name str
- The user-defined or system-provided name for this reserved IP
- reserved_
ip str - The unique identifier for this reserved IP
- resource_
type str - (String) The resource type.
- address String
- The IP address. Same as
primary_ipv4_address
- auto
Delete Boolean - Indicates whether this reserved IP member will be automatically deleted when either target is deleted, or the reserved IP is unbound.
- href String
- (String) The URL for this network interface.
- name String
- The user-defined or system-provided name for this reserved IP
- reserved
Ip String - The unique identifier for this reserved IP
- resource
Type String - (String) The resource type.
Import
You can import the ibm_is_instance_network_interface
resource by using id
.
The id
property can be formed from instance_ID
, and network_interface_ID
in the following format:
instance/network_interface
instance
: A string. The instance identifier.network_interface
: A string. The network interface identifier.
$ pulumi import ibm:index/isInstanceNetworkInterface:IsInstanceNetworkInterface is_instance_network_interface <instance>/<network_interface>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.