linode.InstanceConfig
Explore with Pulumi AI
Example Usage
Creating a simple bootable Linode Instance Configuration Profile:
Coming soon!
Coming soon!
Coming soon!
Coming soon!
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.linode.Instance;
import com.pulumi.linode.InstanceArgs;
import com.pulumi.linode.InstanceDisk;
import com.pulumi.linode.InstanceDiskArgs;
import com.pulumi.linode.InstanceConfig;
import com.pulumi.linode.InstanceConfigArgs;
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 my_instance = new Instance("my-instance", InstanceArgs.builder()
.label("my-instance")
.type("g6-standard-1")
.region("us-southeast")
.build());
var boot = new InstanceDisk("boot", InstanceDiskArgs.builder()
.label("boot")
.linodeId(my_instance.id())
.size(my_instance.specs().applyValue(specs -> specs.disk()))
.image("linode/ubuntu22.04")
.rootPass("myc00lpass!")
.build());
var my_config = new InstanceConfig("my-config", InstanceConfigArgs.builder()
.linodeId(my_instance.id())
.label("my-config")
.devices(InstanceConfigDevicesArgs.builder()
.deviceName("sda")
.diskId(boot.id())
.build())
.booted(true)
.build());
}
}
resources:
my-config:
type: linode:InstanceConfig
properties:
linodeId: ${["my-instance"].id}
label: my-config
devices:
- deviceName: sda
diskId: ${boot.id}
booted: true
boot:
type: linode:InstanceDisk
properties:
label: boot
linodeId: ${["my-instance"].id}
size: ${["my-instance"].specs.disk}
image: linode/ubuntu22.04
rootPass: myc00lpass!
my-instance:
type: linode:Instance
properties:
label: my-instance
type: g6-standard-1
region: us-southeast
Creating a complex bootable Instance Configuration Profile with a VPC:
Coming soon!
Coming soon!
Coming soon!
Coming soon!
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.linode.Vpc;
import com.pulumi.linode.VpcArgs;
import com.pulumi.linode.VpcSubnet;
import com.pulumi.linode.VpcSubnetArgs;
import com.pulumi.linode.Instance;
import com.pulumi.linode.InstanceArgs;
import com.pulumi.linode.InstanceDisk;
import com.pulumi.linode.InstanceDiskArgs;
import com.pulumi.linode.InstanceConfig;
import com.pulumi.linode.InstanceConfigArgs;
import com.pulumi.linode.inputs.InstanceConfigHelperArgs;
import com.pulumi.linode.inputs.InstanceConfigInterfaceArgs;
import com.pulumi.linode.inputs.InstanceConfigInterfaceIpv4Args;
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) {
// Create a VPC and a subnet
var foobar = new Vpc("foobar", VpcArgs.builder()
.label("my-vpc")
.region("us-mia")
.description("test description")
.build());
var foobarVpcSubnet = new VpcSubnet("foobarVpcSubnet", VpcSubnetArgs.builder()
.vpcId(foobar.id())
.label("my-subnet")
.ipv4("10.0.4.0/24")
.build());
var my_instance = new Instance("my-instance", InstanceArgs.builder()
.label("my-instance")
.type("g6-standard-1")
.region("us-mia")
.build());
// Create a boot disk
var boot = new InstanceDisk("boot", InstanceDiskArgs.builder()
.label("boot")
.linodeId(my_instance.id())
.size(my_instance.specs().applyValue(specs -> specs.disk() - 512))
.image("linode/ubuntu22.04")
.rootPass("myc00lpass!ciuw23asxbviwuc")
.build());
// Create a swap disk
var swap = new InstanceDisk("swap", InstanceDiskArgs.builder()
.label("swap")
.linodeId(my_instance.id())
.size(512)
.filesystem("swap")
.build());
var my_config = new InstanceConfig("my-config", InstanceConfigArgs.builder()
.linodeId(my_instance.id())
.label("my-config")
.devices(
InstanceConfigDevicesArgs.builder()
.deviceName("sda")
.diskId(boot.id())
.build(),
InstanceConfigDevicesArgs.builder()
.deviceName("sdb")
.diskId(swap.id())
.build())
.helpers(InstanceConfigHelperArgs.builder()
.updatedbDisabled(false)
.build())
.interfaces(
InstanceConfigInterfaceArgs.builder()
.purpose("public")
.build(),
InstanceConfigInterfaceArgs.builder()
.purpose("vlan")
.label("my-vlan")
.ipamAddress("10.0.0.2/24")
.build(),
InstanceConfigInterfaceArgs.builder()
.purpose("vpc")
.subnetId(foobarVpcSubnet.id())
.ipv4(InstanceConfigInterfaceIpv4Args.builder()
.vpc("10.0.4.250")
.build())
.build())
.booted(true)
.build());
// Unsupported provisioner type remote-exec
}
}
Coming soon!
Create InstanceConfig Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new InstanceConfig(name: string, args: InstanceConfigArgs, opts?: CustomResourceOptions);
@overload
def InstanceConfig(resource_name: str,
args: InstanceConfigInitArgs,
opts: Optional[ResourceOptions] = None)
@overload
def InstanceConfig(resource_name: str,
opts: Optional[ResourceOptions] = None,
label: Optional[str] = None,
linode_id: Optional[int] = None,
kernel: Optional[str] = None,
devices: Optional[InstanceConfigDevicesArgs] = None,
helpers: Optional[Sequence[InstanceConfigHelperArgs]] = None,
interfaces: Optional[Sequence[InstanceConfigInterfaceArgs]] = None,
booted: Optional[bool] = None,
device: Optional[Sequence[InstanceConfigDeviceArgs]] = None,
comments: Optional[str] = None,
memory_limit: Optional[int] = None,
root_device: Optional[str] = None,
run_level: Optional[str] = None,
virt_mode: Optional[str] = None)
func NewInstanceConfig(ctx *Context, name string, args InstanceConfigArgs, opts ...ResourceOption) (*InstanceConfig, error)
public InstanceConfig(string name, InstanceConfigArgs args, CustomResourceOptions? opts = null)
public InstanceConfig(String name, InstanceConfigArgs args)
public InstanceConfig(String name, InstanceConfigArgs args, CustomResourceOptions options)
type: linode:InstanceConfig
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 InstanceConfigArgs
- 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 InstanceConfigInitArgs
- 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 InstanceConfigArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args InstanceConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args InstanceConfigArgs
- 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 instanceConfigResource = new Linode.InstanceConfig("instanceConfigResource", new()
{
Label = "string",
LinodeId = 0,
Kernel = "string",
Helpers = new[]
{
new Linode.Inputs.InstanceConfigHelperArgs
{
DevtmpfsAutomount = false,
Distro = false,
ModulesDep = false,
Network = false,
UpdatedbDisabled = false,
},
},
Interfaces = new[]
{
new Linode.Inputs.InstanceConfigInterfaceArgs
{
Purpose = "string",
Active = false,
Id = 0,
IpRanges = new[]
{
"string",
},
IpamAddress = "string",
Ipv4 = new Linode.Inputs.InstanceConfigInterfaceIpv4Args
{
Nat11 = "string",
Vpc = "string",
},
Label = "string",
Primary = false,
SubnetId = 0,
VpcId = 0,
},
},
Booted = false,
Device = new[]
{
new Linode.Inputs.InstanceConfigDeviceArgs
{
DeviceName = "string",
DiskId = 0,
VolumeId = 0,
},
},
Comments = "string",
MemoryLimit = 0,
RootDevice = "string",
RunLevel = "string",
VirtMode = "string",
});
example, err := linode.NewInstanceConfig(ctx, "instanceConfigResource", &linode.InstanceConfigArgs{
Label: pulumi.String("string"),
LinodeId: pulumi.Int(0),
Kernel: pulumi.String("string"),
Helpers: linode.InstanceConfigHelperArray{
&linode.InstanceConfigHelperArgs{
DevtmpfsAutomount: pulumi.Bool(false),
Distro: pulumi.Bool(false),
ModulesDep: pulumi.Bool(false),
Network: pulumi.Bool(false),
UpdatedbDisabled: pulumi.Bool(false),
},
},
Interfaces: linode.InstanceConfigInterfaceArray{
&linode.InstanceConfigInterfaceArgs{
Purpose: pulumi.String("string"),
Active: pulumi.Bool(false),
Id: pulumi.Int(0),
IpRanges: pulumi.StringArray{
pulumi.String("string"),
},
IpamAddress: pulumi.String("string"),
Ipv4: &linode.InstanceConfigInterfaceIpv4Args{
Nat11: pulumi.String("string"),
Vpc: pulumi.String("string"),
},
Label: pulumi.String("string"),
Primary: pulumi.Bool(false),
SubnetId: pulumi.Int(0),
VpcId: pulumi.Int(0),
},
},
Booted: pulumi.Bool(false),
Device: linode.InstanceConfigDeviceArray{
&linode.InstanceConfigDeviceArgs{
DeviceName: pulumi.String("string"),
DiskId: pulumi.Int(0),
VolumeId: pulumi.Int(0),
},
},
Comments: pulumi.String("string"),
MemoryLimit: pulumi.Int(0),
RootDevice: pulumi.String("string"),
RunLevel: pulumi.String("string"),
VirtMode: pulumi.String("string"),
})
var instanceConfigResource = new InstanceConfig("instanceConfigResource", InstanceConfigArgs.builder()
.label("string")
.linodeId(0)
.kernel("string")
.helpers(InstanceConfigHelperArgs.builder()
.devtmpfsAutomount(false)
.distro(false)
.modulesDep(false)
.network(false)
.updatedbDisabled(false)
.build())
.interfaces(InstanceConfigInterfaceArgs.builder()
.purpose("string")
.active(false)
.id(0)
.ipRanges("string")
.ipamAddress("string")
.ipv4(InstanceConfigInterfaceIpv4Args.builder()
.nat11("string")
.vpc("string")
.build())
.label("string")
.primary(false)
.subnetId(0)
.vpcId(0)
.build())
.booted(false)
.device(InstanceConfigDeviceArgs.builder()
.deviceName("string")
.diskId(0)
.volumeId(0)
.build())
.comments("string")
.memoryLimit(0)
.rootDevice("string")
.runLevel("string")
.virtMode("string")
.build());
instance_config_resource = linode.InstanceConfig("instanceConfigResource",
label="string",
linode_id=0,
kernel="string",
helpers=[{
"devtmpfs_automount": False,
"distro": False,
"modules_dep": False,
"network": False,
"updatedb_disabled": False,
}],
interfaces=[{
"purpose": "string",
"active": False,
"id": 0,
"ip_ranges": ["string"],
"ipam_address": "string",
"ipv4": {
"nat11": "string",
"vpc": "string",
},
"label": "string",
"primary": False,
"subnet_id": 0,
"vpc_id": 0,
}],
booted=False,
device=[{
"device_name": "string",
"disk_id": 0,
"volume_id": 0,
}],
comments="string",
memory_limit=0,
root_device="string",
run_level="string",
virt_mode="string")
const instanceConfigResource = new linode.InstanceConfig("instanceConfigResource", {
label: "string",
linodeId: 0,
kernel: "string",
helpers: [{
devtmpfsAutomount: false,
distro: false,
modulesDep: false,
network: false,
updatedbDisabled: false,
}],
interfaces: [{
purpose: "string",
active: false,
id: 0,
ipRanges: ["string"],
ipamAddress: "string",
ipv4: {
nat11: "string",
vpc: "string",
},
label: "string",
primary: false,
subnetId: 0,
vpcId: 0,
}],
booted: false,
device: [{
deviceName: "string",
diskId: 0,
volumeId: 0,
}],
comments: "string",
memoryLimit: 0,
rootDevice: "string",
runLevel: "string",
virtMode: "string",
});
type: linode:InstanceConfig
properties:
booted: false
comments: string
device:
- deviceName: string
diskId: 0
volumeId: 0
helpers:
- devtmpfsAutomount: false
distro: false
modulesDep: false
network: false
updatedbDisabled: false
interfaces:
- active: false
id: 0
ipRanges:
- string
ipamAddress: string
ipv4:
nat11: string
vpc: string
label: string
primary: false
purpose: string
subnetId: 0
vpcId: 0
kernel: string
label: string
linodeId: 0
memoryLimit: 0
rootDevice: string
runLevel: string
virtMode: string
InstanceConfig 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 InstanceConfig resource accepts the following input properties:
- Label string
- The Config’s label for display purposes only.
- Linode
Id int - The ID of the Linode to create this configuration profile under.
- Booted bool
- If true, the Linode will be booted into this config. If another config is booted, the Linode will be rebooted into this config. If false, the Linode will be shutdown only if it is currently booted into this config. If undefined, the config will alter the boot status of the Linode.
- Comments string
Optional field for arbitrary User comments on this Config.
devices
- (Optional) A dictionary of device disks to use as a device map in a Linode’s configuration profile.helpers
- (Optional) Helpers enabled when booting to this Linode Config.interface
- (Optional) An array of Network Interfaces to use for this Configuration Profile.
- Device
List<Instance
Config Device> - Blocks for device disks in a Linode's configuration profile.
- Devices
Instance
Config Devices - A dictionary of device disks to use as a device map in a Linode's configuration profile.
- Helpers
List<Instance
Config Helper> - Helpers enabled when booting to this Linode Config.
- Interfaces
List<Instance
Config Interface> - An array of Network Interfaces to add to this Linode's Configuration Profile.
- Kernel string
- A Kernel ID to boot a Linode with. Default is
linode/latest-64bit
. Examples arelinode/latest-64bit
,linode/grub2
,linode/direct-disk
, etc. See all kernels here. Note that this is a paginated API endpoint (docs). - Memory
Limit int - The memory limit of the Config. Defaults to the total ram of the Linode.
- Root
Device string - The root device to boot. (default
/dev/sda
) - Run
Level string - Defines the state of your Linode after booting. (
default
,single
,binbash
) - Virt
Mode string - Controls the virtualization mode. (
paravirt
,fullvirt
)
- Label string
- The Config’s label for display purposes only.
- Linode
Id int - The ID of the Linode to create this configuration profile under.
- Booted bool
- If true, the Linode will be booted into this config. If another config is booted, the Linode will be rebooted into this config. If false, the Linode will be shutdown only if it is currently booted into this config. If undefined, the config will alter the boot status of the Linode.
- Comments string
Optional field for arbitrary User comments on this Config.
devices
- (Optional) A dictionary of device disks to use as a device map in a Linode’s configuration profile.helpers
- (Optional) Helpers enabled when booting to this Linode Config.interface
- (Optional) An array of Network Interfaces to use for this Configuration Profile.
- Device
[]Instance
Config Device Args - Blocks for device disks in a Linode's configuration profile.
- Devices
Instance
Config Devices Args - A dictionary of device disks to use as a device map in a Linode's configuration profile.
- Helpers
[]Instance
Config Helper Args - Helpers enabled when booting to this Linode Config.
- Interfaces
[]Instance
Config Interface Args - An array of Network Interfaces to add to this Linode's Configuration Profile.
- Kernel string
- A Kernel ID to boot a Linode with. Default is
linode/latest-64bit
. Examples arelinode/latest-64bit
,linode/grub2
,linode/direct-disk
, etc. See all kernels here. Note that this is a paginated API endpoint (docs). - Memory
Limit int - The memory limit of the Config. Defaults to the total ram of the Linode.
- Root
Device string - The root device to boot. (default
/dev/sda
) - Run
Level string - Defines the state of your Linode after booting. (
default
,single
,binbash
) - Virt
Mode string - Controls the virtualization mode. (
paravirt
,fullvirt
)
- label String
- The Config’s label for display purposes only.
- linode
Id Integer - The ID of the Linode to create this configuration profile under.
- booted Boolean
- If true, the Linode will be booted into this config. If another config is booted, the Linode will be rebooted into this config. If false, the Linode will be shutdown only if it is currently booted into this config. If undefined, the config will alter the boot status of the Linode.
- comments String
Optional field for arbitrary User comments on this Config.
devices
- (Optional) A dictionary of device disks to use as a device map in a Linode’s configuration profile.helpers
- (Optional) Helpers enabled when booting to this Linode Config.interface
- (Optional) An array of Network Interfaces to use for this Configuration Profile.
- device
List<Instance
Config Device> - Blocks for device disks in a Linode's configuration profile.
- devices
Instance
Config Devices - A dictionary of device disks to use as a device map in a Linode's configuration profile.
- helpers
List<Instance
Config Helper> - Helpers enabled when booting to this Linode Config.
- interfaces
List<Instance
Config Interface> - An array of Network Interfaces to add to this Linode's Configuration Profile.
- kernel String
- A Kernel ID to boot a Linode with. Default is
linode/latest-64bit
. Examples arelinode/latest-64bit
,linode/grub2
,linode/direct-disk
, etc. See all kernels here. Note that this is a paginated API endpoint (docs). - memory
Limit Integer - The memory limit of the Config. Defaults to the total ram of the Linode.
- root
Device String - The root device to boot. (default
/dev/sda
) - run
Level String - Defines the state of your Linode after booting. (
default
,single
,binbash
) - virt
Mode String - Controls the virtualization mode. (
paravirt
,fullvirt
)
- label string
- The Config’s label for display purposes only.
- linode
Id number - The ID of the Linode to create this configuration profile under.
- booted boolean
- If true, the Linode will be booted into this config. If another config is booted, the Linode will be rebooted into this config. If false, the Linode will be shutdown only if it is currently booted into this config. If undefined, the config will alter the boot status of the Linode.
- comments string
Optional field for arbitrary User comments on this Config.
devices
- (Optional) A dictionary of device disks to use as a device map in a Linode’s configuration profile.helpers
- (Optional) Helpers enabled when booting to this Linode Config.interface
- (Optional) An array of Network Interfaces to use for this Configuration Profile.
- device
Instance
Config Device[] - Blocks for device disks in a Linode's configuration profile.
- devices
Instance
Config Devices - A dictionary of device disks to use as a device map in a Linode's configuration profile.
- helpers
Instance
Config Helper[] - Helpers enabled when booting to this Linode Config.
- interfaces
Instance
Config Interface[] - An array of Network Interfaces to add to this Linode's Configuration Profile.
- kernel string
- A Kernel ID to boot a Linode with. Default is
linode/latest-64bit
. Examples arelinode/latest-64bit
,linode/grub2
,linode/direct-disk
, etc. See all kernels here. Note that this is a paginated API endpoint (docs). - memory
Limit number - The memory limit of the Config. Defaults to the total ram of the Linode.
- root
Device string - The root device to boot. (default
/dev/sda
) - run
Level string - Defines the state of your Linode after booting. (
default
,single
,binbash
) - virt
Mode string - Controls the virtualization mode. (
paravirt
,fullvirt
)
- label str
- The Config’s label for display purposes only.
- linode_
id int - The ID of the Linode to create this configuration profile under.
- booted bool
- If true, the Linode will be booted into this config. If another config is booted, the Linode will be rebooted into this config. If false, the Linode will be shutdown only if it is currently booted into this config. If undefined, the config will alter the boot status of the Linode.
- comments str
Optional field for arbitrary User comments on this Config.
devices
- (Optional) A dictionary of device disks to use as a device map in a Linode’s configuration profile.helpers
- (Optional) Helpers enabled when booting to this Linode Config.interface
- (Optional) An array of Network Interfaces to use for this Configuration Profile.
- device
Sequence[Instance
Config Device Args] - Blocks for device disks in a Linode's configuration profile.
- devices
Instance
Config Devices Args - A dictionary of device disks to use as a device map in a Linode's configuration profile.
- helpers
Sequence[Instance
Config Helper Args] - Helpers enabled when booting to this Linode Config.
- interfaces
Sequence[Instance
Config Interface Args] - An array of Network Interfaces to add to this Linode's Configuration Profile.
- kernel str
- A Kernel ID to boot a Linode with. Default is
linode/latest-64bit
. Examples arelinode/latest-64bit
,linode/grub2
,linode/direct-disk
, etc. See all kernels here. Note that this is a paginated API endpoint (docs). - memory_
limit int - The memory limit of the Config. Defaults to the total ram of the Linode.
- root_
device str - The root device to boot. (default
/dev/sda
) - run_
level str - Defines the state of your Linode after booting. (
default
,single
,binbash
) - virt_
mode str - Controls the virtualization mode. (
paravirt
,fullvirt
)
- label String
- The Config’s label for display purposes only.
- linode
Id Number - The ID of the Linode to create this configuration profile under.
- booted Boolean
- If true, the Linode will be booted into this config. If another config is booted, the Linode will be rebooted into this config. If false, the Linode will be shutdown only if it is currently booted into this config. If undefined, the config will alter the boot status of the Linode.
- comments String
Optional field for arbitrary User comments on this Config.
devices
- (Optional) A dictionary of device disks to use as a device map in a Linode’s configuration profile.helpers
- (Optional) Helpers enabled when booting to this Linode Config.interface
- (Optional) An array of Network Interfaces to use for this Configuration Profile.
- device List<Property Map>
- Blocks for device disks in a Linode's configuration profile.
- devices Property Map
- A dictionary of device disks to use as a device map in a Linode's configuration profile.
- helpers List<Property Map>
- Helpers enabled when booting to this Linode Config.
- interfaces List<Property Map>
- An array of Network Interfaces to add to this Linode's Configuration Profile.
- kernel String
- A Kernel ID to boot a Linode with. Default is
linode/latest-64bit
. Examples arelinode/latest-64bit
,linode/grub2
,linode/direct-disk
, etc. See all kernels here. Note that this is a paginated API endpoint (docs). - memory
Limit Number - The memory limit of the Config. Defaults to the total ram of the Linode.
- root
Device String - The root device to boot. (default
/dev/sda
) - run
Level String - Defines the state of your Linode after booting. (
default
,single
,binbash
) - virt
Mode String - Controls the virtualization mode. (
paravirt
,fullvirt
)
Outputs
All input properties are implicitly available as output properties. Additionally, the InstanceConfig resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing InstanceConfig Resource
Get an existing InstanceConfig 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?: InstanceConfigState, opts?: CustomResourceOptions): InstanceConfig
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
booted: Optional[bool] = None,
comments: Optional[str] = None,
device: Optional[Sequence[InstanceConfigDeviceArgs]] = None,
devices: Optional[InstanceConfigDevicesArgs] = None,
helpers: Optional[Sequence[InstanceConfigHelperArgs]] = None,
interfaces: Optional[Sequence[InstanceConfigInterfaceArgs]] = None,
kernel: Optional[str] = None,
label: Optional[str] = None,
linode_id: Optional[int] = None,
memory_limit: Optional[int] = None,
root_device: Optional[str] = None,
run_level: Optional[str] = None,
virt_mode: Optional[str] = None) -> InstanceConfig
func GetInstanceConfig(ctx *Context, name string, id IDInput, state *InstanceConfigState, opts ...ResourceOption) (*InstanceConfig, error)
public static InstanceConfig Get(string name, Input<string> id, InstanceConfigState? state, CustomResourceOptions? opts = null)
public static InstanceConfig get(String name, Output<String> id, InstanceConfigState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Booted bool
- If true, the Linode will be booted into this config. If another config is booted, the Linode will be rebooted into this config. If false, the Linode will be shutdown only if it is currently booted into this config. If undefined, the config will alter the boot status of the Linode.
- Comments string
Optional field for arbitrary User comments on this Config.
devices
- (Optional) A dictionary of device disks to use as a device map in a Linode’s configuration profile.helpers
- (Optional) Helpers enabled when booting to this Linode Config.interface
- (Optional) An array of Network Interfaces to use for this Configuration Profile.
- Device
List<Instance
Config Device> - Blocks for device disks in a Linode's configuration profile.
- Devices
Instance
Config Devices - A dictionary of device disks to use as a device map in a Linode's configuration profile.
- Helpers
List<Instance
Config Helper> - Helpers enabled when booting to this Linode Config.
- Interfaces
List<Instance
Config Interface> - An array of Network Interfaces to add to this Linode's Configuration Profile.
- Kernel string
- A Kernel ID to boot a Linode with. Default is
linode/latest-64bit
. Examples arelinode/latest-64bit
,linode/grub2
,linode/direct-disk
, etc. See all kernels here. Note that this is a paginated API endpoint (docs). - Label string
- The Config’s label for display purposes only.
- Linode
Id int - The ID of the Linode to create this configuration profile under.
- Memory
Limit int - The memory limit of the Config. Defaults to the total ram of the Linode.
- Root
Device string - The root device to boot. (default
/dev/sda
) - Run
Level string - Defines the state of your Linode after booting. (
default
,single
,binbash
) - Virt
Mode string - Controls the virtualization mode. (
paravirt
,fullvirt
)
- Booted bool
- If true, the Linode will be booted into this config. If another config is booted, the Linode will be rebooted into this config. If false, the Linode will be shutdown only if it is currently booted into this config. If undefined, the config will alter the boot status of the Linode.
- Comments string
Optional field for arbitrary User comments on this Config.
devices
- (Optional) A dictionary of device disks to use as a device map in a Linode’s configuration profile.helpers
- (Optional) Helpers enabled when booting to this Linode Config.interface
- (Optional) An array of Network Interfaces to use for this Configuration Profile.
- Device
[]Instance
Config Device Args - Blocks for device disks in a Linode's configuration profile.
- Devices
Instance
Config Devices Args - A dictionary of device disks to use as a device map in a Linode's configuration profile.
- Helpers
[]Instance
Config Helper Args - Helpers enabled when booting to this Linode Config.
- Interfaces
[]Instance
Config Interface Args - An array of Network Interfaces to add to this Linode's Configuration Profile.
- Kernel string
- A Kernel ID to boot a Linode with. Default is
linode/latest-64bit
. Examples arelinode/latest-64bit
,linode/grub2
,linode/direct-disk
, etc. See all kernels here. Note that this is a paginated API endpoint (docs). - Label string
- The Config’s label for display purposes only.
- Linode
Id int - The ID of the Linode to create this configuration profile under.
- Memory
Limit int - The memory limit of the Config. Defaults to the total ram of the Linode.
- Root
Device string - The root device to boot. (default
/dev/sda
) - Run
Level string - Defines the state of your Linode after booting. (
default
,single
,binbash
) - Virt
Mode string - Controls the virtualization mode. (
paravirt
,fullvirt
)
- booted Boolean
- If true, the Linode will be booted into this config. If another config is booted, the Linode will be rebooted into this config. If false, the Linode will be shutdown only if it is currently booted into this config. If undefined, the config will alter the boot status of the Linode.
- comments String
Optional field for arbitrary User comments on this Config.
devices
- (Optional) A dictionary of device disks to use as a device map in a Linode’s configuration profile.helpers
- (Optional) Helpers enabled when booting to this Linode Config.interface
- (Optional) An array of Network Interfaces to use for this Configuration Profile.
- device
List<Instance
Config Device> - Blocks for device disks in a Linode's configuration profile.
- devices
Instance
Config Devices - A dictionary of device disks to use as a device map in a Linode's configuration profile.
- helpers
List<Instance
Config Helper> - Helpers enabled when booting to this Linode Config.
- interfaces
List<Instance
Config Interface> - An array of Network Interfaces to add to this Linode's Configuration Profile.
- kernel String
- A Kernel ID to boot a Linode with. Default is
linode/latest-64bit
. Examples arelinode/latest-64bit
,linode/grub2
,linode/direct-disk
, etc. See all kernels here. Note that this is a paginated API endpoint (docs). - label String
- The Config’s label for display purposes only.
- linode
Id Integer - The ID of the Linode to create this configuration profile under.
- memory
Limit Integer - The memory limit of the Config. Defaults to the total ram of the Linode.
- root
Device String - The root device to boot. (default
/dev/sda
) - run
Level String - Defines the state of your Linode after booting. (
default
,single
,binbash
) - virt
Mode String - Controls the virtualization mode. (
paravirt
,fullvirt
)
- booted boolean
- If true, the Linode will be booted into this config. If another config is booted, the Linode will be rebooted into this config. If false, the Linode will be shutdown only if it is currently booted into this config. If undefined, the config will alter the boot status of the Linode.
- comments string
Optional field for arbitrary User comments on this Config.
devices
- (Optional) A dictionary of device disks to use as a device map in a Linode’s configuration profile.helpers
- (Optional) Helpers enabled when booting to this Linode Config.interface
- (Optional) An array of Network Interfaces to use for this Configuration Profile.
- device
Instance
Config Device[] - Blocks for device disks in a Linode's configuration profile.
- devices
Instance
Config Devices - A dictionary of device disks to use as a device map in a Linode's configuration profile.
- helpers
Instance
Config Helper[] - Helpers enabled when booting to this Linode Config.
- interfaces
Instance
Config Interface[] - An array of Network Interfaces to add to this Linode's Configuration Profile.
- kernel string
- A Kernel ID to boot a Linode with. Default is
linode/latest-64bit
. Examples arelinode/latest-64bit
,linode/grub2
,linode/direct-disk
, etc. See all kernels here. Note that this is a paginated API endpoint (docs). - label string
- The Config’s label for display purposes only.
- linode
Id number - The ID of the Linode to create this configuration profile under.
- memory
Limit number - The memory limit of the Config. Defaults to the total ram of the Linode.
- root
Device string - The root device to boot. (default
/dev/sda
) - run
Level string - Defines the state of your Linode after booting. (
default
,single
,binbash
) - virt
Mode string - Controls the virtualization mode. (
paravirt
,fullvirt
)
- booted bool
- If true, the Linode will be booted into this config. If another config is booted, the Linode will be rebooted into this config. If false, the Linode will be shutdown only if it is currently booted into this config. If undefined, the config will alter the boot status of the Linode.
- comments str
Optional field for arbitrary User comments on this Config.
devices
- (Optional) A dictionary of device disks to use as a device map in a Linode’s configuration profile.helpers
- (Optional) Helpers enabled when booting to this Linode Config.interface
- (Optional) An array of Network Interfaces to use for this Configuration Profile.
- device
Sequence[Instance
Config Device Args] - Blocks for device disks in a Linode's configuration profile.
- devices
Instance
Config Devices Args - A dictionary of device disks to use as a device map in a Linode's configuration profile.
- helpers
Sequence[Instance
Config Helper Args] - Helpers enabled when booting to this Linode Config.
- interfaces
Sequence[Instance
Config Interface Args] - An array of Network Interfaces to add to this Linode's Configuration Profile.
- kernel str
- A Kernel ID to boot a Linode with. Default is
linode/latest-64bit
. Examples arelinode/latest-64bit
,linode/grub2
,linode/direct-disk
, etc. See all kernels here. Note that this is a paginated API endpoint (docs). - label str
- The Config’s label for display purposes only.
- linode_
id int - The ID of the Linode to create this configuration profile under.
- memory_
limit int - The memory limit of the Config. Defaults to the total ram of the Linode.
- root_
device str - The root device to boot. (default
/dev/sda
) - run_
level str - Defines the state of your Linode after booting. (
default
,single
,binbash
) - virt_
mode str - Controls the virtualization mode. (
paravirt
,fullvirt
)
- booted Boolean
- If true, the Linode will be booted into this config. If another config is booted, the Linode will be rebooted into this config. If false, the Linode will be shutdown only if it is currently booted into this config. If undefined, the config will alter the boot status of the Linode.
- comments String
Optional field for arbitrary User comments on this Config.
devices
- (Optional) A dictionary of device disks to use as a device map in a Linode’s configuration profile.helpers
- (Optional) Helpers enabled when booting to this Linode Config.interface
- (Optional) An array of Network Interfaces to use for this Configuration Profile.
- device List<Property Map>
- Blocks for device disks in a Linode's configuration profile.
- devices Property Map
- A dictionary of device disks to use as a device map in a Linode's configuration profile.
- helpers List<Property Map>
- Helpers enabled when booting to this Linode Config.
- interfaces List<Property Map>
- An array of Network Interfaces to add to this Linode's Configuration Profile.
- kernel String
- A Kernel ID to boot a Linode with. Default is
linode/latest-64bit
. Examples arelinode/latest-64bit
,linode/grub2
,linode/direct-disk
, etc. See all kernels here. Note that this is a paginated API endpoint (docs). - label String
- The Config’s label for display purposes only.
- linode
Id Number - The ID of the Linode to create this configuration profile under.
- memory
Limit Number - The memory limit of the Config. Defaults to the total ram of the Linode.
- root
Device String - The root device to boot. (default
/dev/sda
) - run
Level String - Defines the state of your Linode after booting. (
default
,single
,binbash
) - virt
Mode String - Controls the virtualization mode. (
paravirt
,fullvirt
)
Supporting Types
InstanceConfigDevice, InstanceConfigDeviceArgs
- Device
Name string - The Disk ID to map to this disk slot
- Disk
Id int - The Disk ID to map to this disk slot
- Volume
Id int - The Block Storage volume ID to map to this disk slot
- Device
Name string - The Disk ID to map to this disk slot
- Disk
Id int - The Disk ID to map to this disk slot
- Volume
Id int - The Block Storage volume ID to map to this disk slot
- device
Name String - The Disk ID to map to this disk slot
- disk
Id Integer - The Disk ID to map to this disk slot
- volume
Id Integer - The Block Storage volume ID to map to this disk slot
- device
Name string - The Disk ID to map to this disk slot
- disk
Id number - The Disk ID to map to this disk slot
- volume
Id number - The Block Storage volume ID to map to this disk slot
- device_
name str - The Disk ID to map to this disk slot
- disk_
id int - The Disk ID to map to this disk slot
- volume_
id int - The Block Storage volume ID to map to this disk slot
- device
Name String - The Disk ID to map to this disk slot
- disk
Id Number - The Disk ID to map to this disk slot
- volume
Id Number - The Block Storage volume ID to map to this disk slot
InstanceConfigDevices, InstanceConfigDevicesArgs
- Sda
Instance
Config Devices Sda - ...
sdh
- (Optional) The SDA-SDH slots, represent the Linux block device nodes for the first 8 disks attached to the Linode. Each device must be suplied sequentially. The device can be either a Disk or a Volume identified bydisk_id
orvolume_id
. Only one disk identifier is permitted per slot. Devices mapped fromsde
throughsdh
are unavailable in"fullvirt"
virt_mode
. - Sdb
Instance
Config Devices Sdb - Device can be either a Disk or Volume identified by disk_id or volume_id. Only one type per slot allowed.
- Sdc
Instance
Config Devices Sdc - Device can be either a Disk or Volume identified by disk_id or volume_id. Only one type per slot allowed.
- Sdd
Instance
Config Devices Sdd - Device can be either a Disk or Volume identified by disk_id or volume_id. Only one type per slot allowed.
- Sde
Instance
Config Devices Sde - Device can be either a Disk or Volume identified by disk_id or volume_id. Only one type per slot allowed.
- Sdf
Instance
Config Devices Sdf - Device can be either a Disk or Volume identified by disk_id or volume_id. Only one type per slot allowed.
- Sdg
Instance
Config Devices Sdg - Device can be either a Disk or Volume identified by disk_id or volume_id. Only one type per slot allowed.
- Sdh
Instance
Config Devices Sdh - Device can be either a Disk or Volume identified by disk_id or volume_id. Only one type per slot allowed.
- Sda
Instance
Config Devices Sda - ...
sdh
- (Optional) The SDA-SDH slots, represent the Linux block device nodes for the first 8 disks attached to the Linode. Each device must be suplied sequentially. The device can be either a Disk or a Volume identified bydisk_id
orvolume_id
. Only one disk identifier is permitted per slot. Devices mapped fromsde
throughsdh
are unavailable in"fullvirt"
virt_mode
. - Sdb
Instance
Config Devices Sdb - Device can be either a Disk or Volume identified by disk_id or volume_id. Only one type per slot allowed.
- Sdc
Instance
Config Devices Sdc - Device can be either a Disk or Volume identified by disk_id or volume_id. Only one type per slot allowed.
- Sdd
Instance
Config Devices Sdd - Device can be either a Disk or Volume identified by disk_id or volume_id. Only one type per slot allowed.
- Sde
Instance
Config Devices Sde - Device can be either a Disk or Volume identified by disk_id or volume_id. Only one type per slot allowed.
- Sdf
Instance
Config Devices Sdf - Device can be either a Disk or Volume identified by disk_id or volume_id. Only one type per slot allowed.
- Sdg
Instance
Config Devices Sdg - Device can be either a Disk or Volume identified by disk_id or volume_id. Only one type per slot allowed.
- Sdh
Instance
Config Devices Sdh - Device can be either a Disk or Volume identified by disk_id or volume_id. Only one type per slot allowed.
- sda
Instance
Config Devices Sda - ...
sdh
- (Optional) The SDA-SDH slots, represent the Linux block device nodes for the first 8 disks attached to the Linode. Each device must be suplied sequentially. The device can be either a Disk or a Volume identified bydisk_id
orvolume_id
. Only one disk identifier is permitted per slot. Devices mapped fromsde
throughsdh
are unavailable in"fullvirt"
virt_mode
. - sdb
Instance
Config Devices Sdb - Device can be either a Disk or Volume identified by disk_id or volume_id. Only one type per slot allowed.
- sdc
Instance
Config Devices Sdc - Device can be either a Disk or Volume identified by disk_id or volume_id. Only one type per slot allowed.
- sdd
Instance
Config Devices Sdd - Device can be either a Disk or Volume identified by disk_id or volume_id. Only one type per slot allowed.
- sde
Instance
Config Devices Sde - Device can be either a Disk or Volume identified by disk_id or volume_id. Only one type per slot allowed.
- sdf
Instance
Config Devices Sdf - Device can be either a Disk or Volume identified by disk_id or volume_id. Only one type per slot allowed.
- sdg
Instance
Config Devices Sdg - Device can be either a Disk or Volume identified by disk_id or volume_id. Only one type per slot allowed.
- sdh
Instance
Config Devices Sdh - Device can be either a Disk or Volume identified by disk_id or volume_id. Only one type per slot allowed.
- sda
Instance
Config Devices Sda - ...
sdh
- (Optional) The SDA-SDH slots, represent the Linux block device nodes for the first 8 disks attached to the Linode. Each device must be suplied sequentially. The device can be either a Disk or a Volume identified bydisk_id
orvolume_id
. Only one disk identifier is permitted per slot. Devices mapped fromsde
throughsdh
are unavailable in"fullvirt"
virt_mode
. - sdb
Instance
Config Devices Sdb - Device can be either a Disk or Volume identified by disk_id or volume_id. Only one type per slot allowed.
- sdc
Instance
Config Devices Sdc - Device can be either a Disk or Volume identified by disk_id or volume_id. Only one type per slot allowed.
- sdd
Instance
Config Devices Sdd - Device can be either a Disk or Volume identified by disk_id or volume_id. Only one type per slot allowed.
- sde
Instance
Config Devices Sde - Device can be either a Disk or Volume identified by disk_id or volume_id. Only one type per slot allowed.
- sdf
Instance
Config Devices Sdf - Device can be either a Disk or Volume identified by disk_id or volume_id. Only one type per slot allowed.
- sdg
Instance
Config Devices Sdg - Device can be either a Disk or Volume identified by disk_id or volume_id. Only one type per slot allowed.
- sdh
Instance
Config Devices Sdh - Device can be either a Disk or Volume identified by disk_id or volume_id. Only one type per slot allowed.
- sda
Instance
Config Devices Sda - ...
sdh
- (Optional) The SDA-SDH slots, represent the Linux block device nodes for the first 8 disks attached to the Linode. Each device must be suplied sequentially. The device can be either a Disk or a Volume identified bydisk_id
orvolume_id
. Only one disk identifier is permitted per slot. Devices mapped fromsde
throughsdh
are unavailable in"fullvirt"
virt_mode
. - sdb
Instance
Config Devices Sdb - Device can be either a Disk or Volume identified by disk_id or volume_id. Only one type per slot allowed.
- sdc
Instance
Config Devices Sdc - Device can be either a Disk or Volume identified by disk_id or volume_id. Only one type per slot allowed.
- sdd
Instance
Config Devices Sdd - Device can be either a Disk or Volume identified by disk_id or volume_id. Only one type per slot allowed.
- sde
Instance
Config Devices Sde - Device can be either a Disk or Volume identified by disk_id or volume_id. Only one type per slot allowed.
- sdf
Instance
Config Devices Sdf - Device can be either a Disk or Volume identified by disk_id or volume_id. Only one type per slot allowed.
- sdg
Instance
Config Devices Sdg - Device can be either a Disk or Volume identified by disk_id or volume_id. Only one type per slot allowed.
- sdh
Instance
Config Devices Sdh - Device can be either a Disk or Volume identified by disk_id or volume_id. Only one type per slot allowed.
- sda Property Map
- ...
sdh
- (Optional) The SDA-SDH slots, represent the Linux block device nodes for the first 8 disks attached to the Linode. Each device must be suplied sequentially. The device can be either a Disk or a Volume identified bydisk_id
orvolume_id
. Only one disk identifier is permitted per slot. Devices mapped fromsde
throughsdh
are unavailable in"fullvirt"
virt_mode
. - sdb Property Map
- Device can be either a Disk or Volume identified by disk_id or volume_id. Only one type per slot allowed.
- sdc Property Map
- Device can be either a Disk or Volume identified by disk_id or volume_id. Only one type per slot allowed.
- sdd Property Map
- Device can be either a Disk or Volume identified by disk_id or volume_id. Only one type per slot allowed.
- sde Property Map
- Device can be either a Disk or Volume identified by disk_id or volume_id. Only one type per slot allowed.
- sdf Property Map
- Device can be either a Disk or Volume identified by disk_id or volume_id. Only one type per slot allowed.
- sdg Property Map
- Device can be either a Disk or Volume identified by disk_id or volume_id. Only one type per slot allowed.
- sdh Property Map
- Device can be either a Disk or Volume identified by disk_id or volume_id. Only one type per slot allowed.
InstanceConfigDevicesSda, InstanceConfigDevicesSdaArgs
InstanceConfigDevicesSdb, InstanceConfigDevicesSdbArgs
InstanceConfigDevicesSdc, InstanceConfigDevicesSdcArgs
InstanceConfigDevicesSdd, InstanceConfigDevicesSddArgs
InstanceConfigDevicesSde, InstanceConfigDevicesSdeArgs
InstanceConfigDevicesSdf, InstanceConfigDevicesSdfArgs
InstanceConfigDevicesSdg, InstanceConfigDevicesSdgArgs
InstanceConfigDevicesSdh, InstanceConfigDevicesSdhArgs
InstanceConfigHelper, InstanceConfigHelperArgs
- Devtmpfs
Automount bool - Populates the /dev directory early during boot without udev. (default
true
) - Distro bool
- Helps maintain correct inittab/upstart console device. (default
true
) - Modules
Dep bool - Creates a modules dependency file for the Kernel you run. (default
true
) - Network bool
- Automatically configures static networking. (default
true
) - Updatedb
Disabled bool - Disables updatedb cron job to avoid disk thrashing. (default
true
)
- Devtmpfs
Automount bool - Populates the /dev directory early during boot without udev. (default
true
) - Distro bool
- Helps maintain correct inittab/upstart console device. (default
true
) - Modules
Dep bool - Creates a modules dependency file for the Kernel you run. (default
true
) - Network bool
- Automatically configures static networking. (default
true
) - Updatedb
Disabled bool - Disables updatedb cron job to avoid disk thrashing. (default
true
)
- devtmpfs
Automount Boolean - Populates the /dev directory early during boot without udev. (default
true
) - distro Boolean
- Helps maintain correct inittab/upstart console device. (default
true
) - modules
Dep Boolean - Creates a modules dependency file for the Kernel you run. (default
true
) - network Boolean
- Automatically configures static networking. (default
true
) - updatedb
Disabled Boolean - Disables updatedb cron job to avoid disk thrashing. (default
true
)
- devtmpfs
Automount boolean - Populates the /dev directory early during boot without udev. (default
true
) - distro boolean
- Helps maintain correct inittab/upstart console device. (default
true
) - modules
Dep boolean - Creates a modules dependency file for the Kernel you run. (default
true
) - network boolean
- Automatically configures static networking. (default
true
) - updatedb
Disabled boolean - Disables updatedb cron job to avoid disk thrashing. (default
true
)
- devtmpfs_
automount bool - Populates the /dev directory early during boot without udev. (default
true
) - distro bool
- Helps maintain correct inittab/upstart console device. (default
true
) - modules_
dep bool - Creates a modules dependency file for the Kernel you run. (default
true
) - network bool
- Automatically configures static networking. (default
true
) - updatedb_
disabled bool - Disables updatedb cron job to avoid disk thrashing. (default
true
)
- devtmpfs
Automount Boolean - Populates the /dev directory early during boot without udev. (default
true
) - distro Boolean
- Helps maintain correct inittab/upstart console device. (default
true
) - modules
Dep Boolean - Creates a modules dependency file for the Kernel you run. (default
true
) - network Boolean
- Automatically configures static networking. (default
true
) - updatedb
Disabled Boolean - Disables updatedb cron job to avoid disk thrashing. (default
true
)
InstanceConfigInterface, InstanceConfigInterfaceArgs
- Purpose string
- The type of interface. (
public
,vlan
,vpc
) - Active bool
- Whether this interface is currently booted and active.
- Id int
- The ID of the interface.
- Ip
Ranges List<string> - IPv4 CIDR VPC Subnet ranges that are routed to this Interface. IPv6 ranges are also available to select participants in the Beta program.
- Ipam
Address string - This Network Interface’s private IP address in Classless Inter-Domain Routing (CIDR) notation. (e.g.
10.0.0.1/24
) This field is only allowed for interfaces with thevlan
purpose. - Ipv4
Instance
Config Interface Ipv4 - The IPv4 configuration of the VPC interface.This attribute is only allowed for VPC interfaces.
- Label string
- The name of the VLAN to join. This field is only allowed and required for interfaces with the
vlan
purpose. - Primary bool
Whether the interface is the primary interface that should have the default route for this Linode. This field is only allowed for interfaces with the
public
orvpc
purpose.ipv4
- (Optional) The IPv4 configuration of the VPC interface. This field is currently only allowed for interfaces with thevpc
purpose.
The following computed attribute is available in a VPC interface:
- Subnet
Id int - The name of the VPC Subnet to join. This field is only allowed and required for interfaces with the
vpc
purpose. - Vpc
Id int - The ID of VPC which this interface is attached to.
- Purpose string
- The type of interface. (
public
,vlan
,vpc
) - Active bool
- Whether this interface is currently booted and active.
- Id int
- The ID of the interface.
- Ip
Ranges []string - IPv4 CIDR VPC Subnet ranges that are routed to this Interface. IPv6 ranges are also available to select participants in the Beta program.
- Ipam
Address string - This Network Interface’s private IP address in Classless Inter-Domain Routing (CIDR) notation. (e.g.
10.0.0.1/24
) This field is only allowed for interfaces with thevlan
purpose. - Ipv4
Instance
Config Interface Ipv4 - The IPv4 configuration of the VPC interface.This attribute is only allowed for VPC interfaces.
- Label string
- The name of the VLAN to join. This field is only allowed and required for interfaces with the
vlan
purpose. - Primary bool
Whether the interface is the primary interface that should have the default route for this Linode. This field is only allowed for interfaces with the
public
orvpc
purpose.ipv4
- (Optional) The IPv4 configuration of the VPC interface. This field is currently only allowed for interfaces with thevpc
purpose.
The following computed attribute is available in a VPC interface:
- Subnet
Id int - The name of the VPC Subnet to join. This field is only allowed and required for interfaces with the
vpc
purpose. - Vpc
Id int - The ID of VPC which this interface is attached to.
- purpose String
- The type of interface. (
public
,vlan
,vpc
) - active Boolean
- Whether this interface is currently booted and active.
- id Integer
- The ID of the interface.
- ip
Ranges List<String> - IPv4 CIDR VPC Subnet ranges that are routed to this Interface. IPv6 ranges are also available to select participants in the Beta program.
- ipam
Address String - This Network Interface’s private IP address in Classless Inter-Domain Routing (CIDR) notation. (e.g.
10.0.0.1/24
) This field is only allowed for interfaces with thevlan
purpose. - ipv4
Instance
Config Interface Ipv4 - The IPv4 configuration of the VPC interface.This attribute is only allowed for VPC interfaces.
- label String
- The name of the VLAN to join. This field is only allowed and required for interfaces with the
vlan
purpose. - primary Boolean
Whether the interface is the primary interface that should have the default route for this Linode. This field is only allowed for interfaces with the
public
orvpc
purpose.ipv4
- (Optional) The IPv4 configuration of the VPC interface. This field is currently only allowed for interfaces with thevpc
purpose.
The following computed attribute is available in a VPC interface:
- subnet
Id Integer - The name of the VPC Subnet to join. This field is only allowed and required for interfaces with the
vpc
purpose. - vpc
Id Integer - The ID of VPC which this interface is attached to.
- purpose string
- The type of interface. (
public
,vlan
,vpc
) - active boolean
- Whether this interface is currently booted and active.
- id number
- The ID of the interface.
- ip
Ranges string[] - IPv4 CIDR VPC Subnet ranges that are routed to this Interface. IPv6 ranges are also available to select participants in the Beta program.
- ipam
Address string - This Network Interface’s private IP address in Classless Inter-Domain Routing (CIDR) notation. (e.g.
10.0.0.1/24
) This field is only allowed for interfaces with thevlan
purpose. - ipv4
Instance
Config Interface Ipv4 - The IPv4 configuration of the VPC interface.This attribute is only allowed for VPC interfaces.
- label string
- The name of the VLAN to join. This field is only allowed and required for interfaces with the
vlan
purpose. - primary boolean
Whether the interface is the primary interface that should have the default route for this Linode. This field is only allowed for interfaces with the
public
orvpc
purpose.ipv4
- (Optional) The IPv4 configuration of the VPC interface. This field is currently only allowed for interfaces with thevpc
purpose.
The following computed attribute is available in a VPC interface:
- subnet
Id number - The name of the VPC Subnet to join. This field is only allowed and required for interfaces with the
vpc
purpose. - vpc
Id number - The ID of VPC which this interface is attached to.
- purpose str
- The type of interface. (
public
,vlan
,vpc
) - active bool
- Whether this interface is currently booted and active.
- id int
- The ID of the interface.
- ip_
ranges Sequence[str] - IPv4 CIDR VPC Subnet ranges that are routed to this Interface. IPv6 ranges are also available to select participants in the Beta program.
- ipam_
address str - This Network Interface’s private IP address in Classless Inter-Domain Routing (CIDR) notation. (e.g.
10.0.0.1/24
) This field is only allowed for interfaces with thevlan
purpose. - ipv4
Instance
Config Interface Ipv4 - The IPv4 configuration of the VPC interface.This attribute is only allowed for VPC interfaces.
- label str
- The name of the VLAN to join. This field is only allowed and required for interfaces with the
vlan
purpose. - primary bool
Whether the interface is the primary interface that should have the default route for this Linode. This field is only allowed for interfaces with the
public
orvpc
purpose.ipv4
- (Optional) The IPv4 configuration of the VPC interface. This field is currently only allowed for interfaces with thevpc
purpose.
The following computed attribute is available in a VPC interface:
- subnet_
id int - The name of the VPC Subnet to join. This field is only allowed and required for interfaces with the
vpc
purpose. - vpc_
id int - The ID of VPC which this interface is attached to.
- purpose String
- The type of interface. (
public
,vlan
,vpc
) - active Boolean
- Whether this interface is currently booted and active.
- id Number
- The ID of the interface.
- ip
Ranges List<String> - IPv4 CIDR VPC Subnet ranges that are routed to this Interface. IPv6 ranges are also available to select participants in the Beta program.
- ipam
Address String - This Network Interface’s private IP address in Classless Inter-Domain Routing (CIDR) notation. (e.g.
10.0.0.1/24
) This field is only allowed for interfaces with thevlan
purpose. - ipv4 Property Map
- The IPv4 configuration of the VPC interface.This attribute is only allowed for VPC interfaces.
- label String
- The name of the VLAN to join. This field is only allowed and required for interfaces with the
vlan
purpose. - primary Boolean
Whether the interface is the primary interface that should have the default route for this Linode. This field is only allowed for interfaces with the
public
orvpc
purpose.ipv4
- (Optional) The IPv4 configuration of the VPC interface. This field is currently only allowed for interfaces with thevpc
purpose.
The following computed attribute is available in a VPC interface:
- subnet
Id Number - The name of the VPC Subnet to join. This field is only allowed and required for interfaces with the
vpc
purpose. - vpc
Id Number - The ID of VPC which this interface is attached to.
InstanceConfigInterfaceIpv4, InstanceConfigInterfaceIpv4Args
- Nat11 string
- The public IP that will be used for the one-to-one NAT purpose. If this is
any
, the public IPv4 address assigned to this Linode is used on this interface and will be 1:1 NATted with the VPC IPv4 address. - Vpc string
- The IP from the VPC subnet to use for this interface. A random address will be assigned if this is not specified in a VPC interface.
- Nat11 string
- The public IP that will be used for the one-to-one NAT purpose. If this is
any
, the public IPv4 address assigned to this Linode is used on this interface and will be 1:1 NATted with the VPC IPv4 address. - Vpc string
- The IP from the VPC subnet to use for this interface. A random address will be assigned if this is not specified in a VPC interface.
- nat11 String
- The public IP that will be used for the one-to-one NAT purpose. If this is
any
, the public IPv4 address assigned to this Linode is used on this interface and will be 1:1 NATted with the VPC IPv4 address. - vpc String
- The IP from the VPC subnet to use for this interface. A random address will be assigned if this is not specified in a VPC interface.
- nat11 string
- The public IP that will be used for the one-to-one NAT purpose. If this is
any
, the public IPv4 address assigned to this Linode is used on this interface and will be 1:1 NATted with the VPC IPv4 address. - vpc string
- The IP from the VPC subnet to use for this interface. A random address will be assigned if this is not specified in a VPC interface.
- nat11 str
- The public IP that will be used for the one-to-one NAT purpose. If this is
any
, the public IPv4 address assigned to this Linode is used on this interface and will be 1:1 NATted with the VPC IPv4 address. - vpc str
- The IP from the VPC subnet to use for this interface. A random address will be assigned if this is not specified in a VPC interface.
- nat11 String
- The public IP that will be used for the one-to-one NAT purpose. If this is
any
, the public IPv4 address assigned to this Linode is used on this interface and will be 1:1 NATted with the VPC IPv4 address. - vpc String
- The IP from the VPC subnet to use for this interface. A random address will be assigned if this is not specified in a VPC interface.
Import
Instance Configs can be imported using the linode_id
followed by the Instance Config id
separated by a comma, e.g.
$ pulumi import linode:index/instanceConfig:InstanceConfig my-config 1234567,7654321
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Linode pulumi/pulumi-linode
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
linode
Terraform Provider.