vra.Machine
Explore with Pulumi AI
Creates a VMware vRealize Automation machine resource.
Example Usage
S
The following example shows how to create a machine resource.
import * as pulumi from "@pulumi/pulumi";
import * as vra from "@pulumi/vra";
const _this = new vra.Machine("this", {
description: "terrafrom test machine",
projectId: data.vra_project["this"].id,
image: "ubuntu2",
flavor: "medium",
bootConfig: {
content: `#cloud-config
users:
- default
- name: myuser
sudo: ['ALL=(ALL) NOPASSWD:ALL']
groups: [wheel, sudo, admin]
shell: '/bin/bash'
ssh-authorized-keys: |
ssh-rsa your-ssh-rsa:
- sudo sed -e 's/.*PasswordAuthentication yes.*/PasswordAuthentication no/' -i /etc/ssh/sshd_config
- sudo service sshd restart
`,
},
nics: [{
networkId: data.vra_network["this"].id,
}],
constraints: [{
mandatory: true,
expression: "AWS",
}],
tags: [{
key: "foo",
value: "bar",
}],
disks: [
{
blockDeviceId: vra_block_device.disk1.id,
},
{
blockDeviceId: vra_block_device.disk2.id,
},
],
});
import pulumi
import pulumi_vra as vra
this = vra.Machine("this",
description="terrafrom test machine",
project_id=data["vra_project"]["this"]["id"],
image="ubuntu2",
flavor="medium",
boot_config={
"content": """#cloud-config
users:
- default
- name: myuser
sudo: ['ALL=(ALL) NOPASSWD:ALL']
groups: [wheel, sudo, admin]
shell: '/bin/bash'
ssh-authorized-keys: |
ssh-rsa your-ssh-rsa:
- sudo sed -e 's/.*PasswordAuthentication yes.*/PasswordAuthentication no/' -i /etc/ssh/sshd_config
- sudo service sshd restart
""",
},
nics=[{
"network_id": data["vra_network"]["this"]["id"],
}],
constraints=[{
"mandatory": True,
"expression": "AWS",
}],
tags=[{
"key": "foo",
"value": "bar",
}],
disks=[
{
"block_device_id": vra_block_device["disk1"]["id"],
},
{
"block_device_id": vra_block_device["disk2"]["id"],
},
])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/vra/vra"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := vra.NewMachine(ctx, "this", &vra.MachineArgs{
Description: pulumi.String("terrafrom test machine"),
ProjectId: pulumi.Any(data.Vra_project.This.Id),
Image: pulumi.String("ubuntu2"),
Flavor: pulumi.String("medium"),
BootConfig: &vra.MachineBootConfigArgs{
Content: pulumi.String(`#cloud-config
users:
- default
- name: myuser
sudo: ['ALL=(ALL) NOPASSWD:ALL']
groups: [wheel, sudo, admin]
shell: '/bin/bash'
ssh-authorized-keys: |
ssh-rsa your-ssh-rsa:
- sudo sed -e 's/.*PasswordAuthentication yes.*/PasswordAuthentication no/' -i /etc/ssh/sshd_config
- sudo service sshd restart
`),
},
Nics: vra.MachineNicArray{
&vra.MachineNicArgs{
NetworkId: pulumi.Any(data.Vra_network.This.Id),
},
},
Constraints: vra.MachineConstraintArray{
&vra.MachineConstraintArgs{
Mandatory: pulumi.Bool(true),
Expression: pulumi.String("AWS"),
},
},
Tags: vra.MachineTagArray{
&vra.MachineTagArgs{
Key: pulumi.String("foo"),
Value: pulumi.String("bar"),
},
},
Disks: vra.MachineDiskArray{
&vra.MachineDiskArgs{
BlockDeviceId: pulumi.Any(vra_block_device.Disk1.Id),
},
&vra.MachineDiskArgs{
BlockDeviceId: pulumi.Any(vra_block_device.Disk2.Id),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vra = Pulumi.Vra;
return await Deployment.RunAsync(() =>
{
var @this = new Vra.Machine("this", new()
{
Description = "terrafrom test machine",
ProjectId = data.Vra_project.This.Id,
Image = "ubuntu2",
Flavor = "medium",
BootConfig = new Vra.Inputs.MachineBootConfigArgs
{
Content = @"#cloud-config
users:
- default
- name: myuser
sudo: ['ALL=(ALL) NOPASSWD:ALL']
groups: [wheel, sudo, admin]
shell: '/bin/bash'
ssh-authorized-keys: |
ssh-rsa your-ssh-rsa:
- sudo sed -e 's/.*PasswordAuthentication yes.*/PasswordAuthentication no/' -i /etc/ssh/sshd_config
- sudo service sshd restart
",
},
Nics = new[]
{
new Vra.Inputs.MachineNicArgs
{
NetworkId = data.Vra_network.This.Id,
},
},
Constraints = new[]
{
new Vra.Inputs.MachineConstraintArgs
{
Mandatory = true,
Expression = "AWS",
},
},
Tags = new[]
{
new Vra.Inputs.MachineTagArgs
{
Key = "foo",
Value = "bar",
},
},
Disks = new[]
{
new Vra.Inputs.MachineDiskArgs
{
BlockDeviceId = vra_block_device.Disk1.Id,
},
new Vra.Inputs.MachineDiskArgs
{
BlockDeviceId = vra_block_device.Disk2.Id,
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vra.Machine;
import com.pulumi.vra.MachineArgs;
import com.pulumi.vra.inputs.MachineBootConfigArgs;
import com.pulumi.vra.inputs.MachineNicArgs;
import com.pulumi.vra.inputs.MachineConstraintArgs;
import com.pulumi.vra.inputs.MachineTagArgs;
import com.pulumi.vra.inputs.MachineDiskArgs;
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 this_ = new Machine("this", MachineArgs.builder()
.description("terrafrom test machine")
.projectId(data.vra_project().this().id())
.image("ubuntu2")
.flavor("medium")
.bootConfig(MachineBootConfigArgs.builder()
.content("""
#cloud-config
users:
- default
- name: myuser
sudo: ['ALL=(ALL) NOPASSWD:ALL']
groups: [wheel, sudo, admin]
shell: '/bin/bash'
ssh-authorized-keys: |
ssh-rsa your-ssh-rsa:
- sudo sed -e 's/.*PasswordAuthentication yes.*/PasswordAuthentication no/' -i /etc/ssh/sshd_config
- sudo service sshd restart
""")
.build())
.nics(MachineNicArgs.builder()
.networkId(data.vra_network().this().id())
.build())
.constraints(MachineConstraintArgs.builder()
.mandatory(true)
.expression("AWS")
.build())
.tags(MachineTagArgs.builder()
.key("foo")
.value("bar")
.build())
.disks(
MachineDiskArgs.builder()
.blockDeviceId(vra_block_device.disk1().id())
.build(),
MachineDiskArgs.builder()
.blockDeviceId(vra_block_device.disk2().id())
.build())
.build());
}
}
resources:
this:
type: vra:Machine
properties:
description: terrafrom test machine
projectId: ${data.vra_project.this.id}
image: ubuntu2
flavor: medium
bootConfig:
content: |
#cloud-config
users:
- default
- name: myuser
sudo: ['ALL=(ALL) NOPASSWD:ALL']
groups: [wheel, sudo, admin]
shell: '/bin/bash'
ssh-authorized-keys: |
ssh-rsa your-ssh-rsa:
- sudo sed -e 's/.*PasswordAuthentication yes.*/PasswordAuthentication no/' -i /etc/ssh/sshd_config
- sudo service sshd restart
nics:
- networkId: ${data.vra_network.this.id}
constraints:
- mandatory: true
expression: AWS
tags:
- key: foo
value: bar
disks:
- blockDeviceId: ${vra_block_device.disk1.id}
- blockDeviceId: ${vra_block_device.disk2.id}
A machine resource supports the following resource:
Create Machine Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Machine(name: string, args: MachineArgs, opts?: CustomResourceOptions);
@overload
def Machine(resource_name: str,
args: MachineArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Machine(resource_name: str,
opts: Optional[ResourceOptions] = None,
flavor: Optional[str] = None,
project_id: Optional[str] = None,
image: Optional[str] = None,
image_disk_constraints: Optional[Sequence[MachineImageDiskConstraintArgs]] = None,
deployment_id: Optional[str] = None,
description: Optional[str] = None,
disks: Optional[Sequence[MachineDiskArgs]] = None,
constraints: Optional[Sequence[MachineConstraintArgs]] = None,
attach_disks_before_boot: Optional[bool] = None,
custom_properties: Optional[Mapping[str, str]] = None,
image_ref: Optional[str] = None,
machine_id: Optional[str] = None,
name: Optional[str] = None,
nics: Optional[Sequence[MachineNicArgs]] = None,
boot_config: Optional[MachineBootConfigArgs] = None,
tags: Optional[Sequence[MachineTagArgs]] = None,
timeouts: Optional[MachineTimeoutsArgs] = None)
func NewMachine(ctx *Context, name string, args MachineArgs, opts ...ResourceOption) (*Machine, error)
public Machine(string name, MachineArgs args, CustomResourceOptions? opts = null)
public Machine(String name, MachineArgs args)
public Machine(String name, MachineArgs args, CustomResourceOptions options)
type: vra:Machine
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 MachineArgs
- 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 MachineArgs
- 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 MachineArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MachineArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MachineArgs
- 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 machineResource = new Vra.Machine("machineResource", new()
{
Flavor = "string",
ProjectId = "string",
Image = "string",
ImageDiskConstraints = new[]
{
new Vra.Inputs.MachineImageDiskConstraintArgs
{
Expression = "string",
Mandatory = false,
},
},
DeploymentId = "string",
Description = "string",
Disks = new[]
{
new Vra.Inputs.MachineDiskArgs
{
BlockDeviceId = "string",
Description = "string",
Name = "string",
ScsiController = "string",
UnitNumber = "string",
},
},
Constraints = new[]
{
new Vra.Inputs.MachineConstraintArgs
{
Expression = "string",
Mandatory = false,
},
},
AttachDisksBeforeBoot = false,
CustomProperties =
{
{ "string", "string" },
},
ImageRef = "string",
MachineId = "string",
Name = "string",
Nics = new[]
{
new Vra.Inputs.MachineNicArgs
{
NetworkId = "string",
Addresses = new[]
{
"string",
},
CustomProperties =
{
{ "string", "string" },
},
Description = "string",
DeviceIndex = 0,
Name = "string",
SecurityGroupIds = new[]
{
"string",
},
},
},
BootConfig = new Vra.Inputs.MachineBootConfigArgs
{
Content = "string",
},
Tags = new[]
{
new Vra.Inputs.MachineTagArgs
{
Key = "string",
Value = "string",
},
},
Timeouts = new Vra.Inputs.MachineTimeoutsArgs
{
Create = "string",
Delete = "string",
Update = "string",
},
});
example, err := vra.NewMachine(ctx, "machineResource", &vra.MachineArgs{
Flavor: pulumi.String("string"),
ProjectId: pulumi.String("string"),
Image: pulumi.String("string"),
ImageDiskConstraints: vra.MachineImageDiskConstraintArray{
&vra.MachineImageDiskConstraintArgs{
Expression: pulumi.String("string"),
Mandatory: pulumi.Bool(false),
},
},
DeploymentId: pulumi.String("string"),
Description: pulumi.String("string"),
Disks: vra.MachineDiskArray{
&vra.MachineDiskArgs{
BlockDeviceId: pulumi.String("string"),
Description: pulumi.String("string"),
Name: pulumi.String("string"),
ScsiController: pulumi.String("string"),
UnitNumber: pulumi.String("string"),
},
},
Constraints: vra.MachineConstraintArray{
&vra.MachineConstraintArgs{
Expression: pulumi.String("string"),
Mandatory: pulumi.Bool(false),
},
},
AttachDisksBeforeBoot: pulumi.Bool(false),
CustomProperties: pulumi.StringMap{
"string": pulumi.String("string"),
},
ImageRef: pulumi.String("string"),
MachineId: pulumi.String("string"),
Name: pulumi.String("string"),
Nics: vra.MachineNicArray{
&vra.MachineNicArgs{
NetworkId: pulumi.String("string"),
Addresses: pulumi.StringArray{
pulumi.String("string"),
},
CustomProperties: pulumi.StringMap{
"string": pulumi.String("string"),
},
Description: pulumi.String("string"),
DeviceIndex: pulumi.Float64(0),
Name: pulumi.String("string"),
SecurityGroupIds: pulumi.StringArray{
pulumi.String("string"),
},
},
},
BootConfig: &vra.MachineBootConfigArgs{
Content: pulumi.String("string"),
},
Tags: vra.MachineTagArray{
&vra.MachineTagArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
Timeouts: &vra.MachineTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
})
var machineResource = new Machine("machineResource", MachineArgs.builder()
.flavor("string")
.projectId("string")
.image("string")
.imageDiskConstraints(MachineImageDiskConstraintArgs.builder()
.expression("string")
.mandatory(false)
.build())
.deploymentId("string")
.description("string")
.disks(MachineDiskArgs.builder()
.blockDeviceId("string")
.description("string")
.name("string")
.scsiController("string")
.unitNumber("string")
.build())
.constraints(MachineConstraintArgs.builder()
.expression("string")
.mandatory(false)
.build())
.attachDisksBeforeBoot(false)
.customProperties(Map.of("string", "string"))
.imageRef("string")
.machineId("string")
.name("string")
.nics(MachineNicArgs.builder()
.networkId("string")
.addresses("string")
.customProperties(Map.of("string", "string"))
.description("string")
.deviceIndex(0)
.name("string")
.securityGroupIds("string")
.build())
.bootConfig(MachineBootConfigArgs.builder()
.content("string")
.build())
.tags(MachineTagArgs.builder()
.key("string")
.value("string")
.build())
.timeouts(MachineTimeoutsArgs.builder()
.create("string")
.delete("string")
.update("string")
.build())
.build());
machine_resource = vra.Machine("machineResource",
flavor="string",
project_id="string",
image="string",
image_disk_constraints=[{
"expression": "string",
"mandatory": False,
}],
deployment_id="string",
description="string",
disks=[{
"block_device_id": "string",
"description": "string",
"name": "string",
"scsi_controller": "string",
"unit_number": "string",
}],
constraints=[{
"expression": "string",
"mandatory": False,
}],
attach_disks_before_boot=False,
custom_properties={
"string": "string",
},
image_ref="string",
machine_id="string",
name="string",
nics=[{
"network_id": "string",
"addresses": ["string"],
"custom_properties": {
"string": "string",
},
"description": "string",
"device_index": 0,
"name": "string",
"security_group_ids": ["string"],
}],
boot_config={
"content": "string",
},
tags=[{
"key": "string",
"value": "string",
}],
timeouts={
"create": "string",
"delete": "string",
"update": "string",
})
const machineResource = new vra.Machine("machineResource", {
flavor: "string",
projectId: "string",
image: "string",
imageDiskConstraints: [{
expression: "string",
mandatory: false,
}],
deploymentId: "string",
description: "string",
disks: [{
blockDeviceId: "string",
description: "string",
name: "string",
scsiController: "string",
unitNumber: "string",
}],
constraints: [{
expression: "string",
mandatory: false,
}],
attachDisksBeforeBoot: false,
customProperties: {
string: "string",
},
imageRef: "string",
machineId: "string",
name: "string",
nics: [{
networkId: "string",
addresses: ["string"],
customProperties: {
string: "string",
},
description: "string",
deviceIndex: 0,
name: "string",
securityGroupIds: ["string"],
}],
bootConfig: {
content: "string",
},
tags: [{
key: "string",
value: "string",
}],
timeouts: {
create: "string",
"delete": "string",
update: "string",
},
});
type: vra:Machine
properties:
attachDisksBeforeBoot: false
bootConfig:
content: string
constraints:
- expression: string
mandatory: false
customProperties:
string: string
deploymentId: string
description: string
disks:
- blockDeviceId: string
description: string
name: string
scsiController: string
unitNumber: string
flavor: string
image: string
imageDiskConstraints:
- expression: string
mandatory: false
imageRef: string
machineId: string
name: string
nics:
- addresses:
- string
customProperties:
string: string
description: string
deviceIndex: 0
name: string
networkId: string
securityGroupIds:
- string
projectId: string
tags:
- key: string
value: string
timeouts:
create: string
delete: string
update: string
Machine 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 Machine resource accepts the following input properties:
- Flavor string
- Flavor of machine instance.
- Project
Id string - ID of project that resource belongs to.
- Attach
Disks boolBefore Boot - By default, disks are attached after the machine has been built. FCDs cannot be attached to machine as a day 0 task.
- Boot
Config MachineBoot Config - Machine boot config that will be passed to the instance. Used to perform common automated configuration tasks and even run scripts after instance starts.
- Constraints
List<Machine
Constraint> - Constraints used to drive placement policies for the virtual machine produced from the specification. Constraint expressions are matched against tags on existing placement targets.
Example:
[{"mandatory" : "true", "expression": "environment":"prod"}, {"mandatory" : "false", "expression": "pci"}]
- Custom
Properties Dictionary<string, string> - Additional properties that may be used to extend the base resource.
- Deployment
Id string - Describes machine within the scope of your organization and is not propagated to the cloud.
- Description string
- A human-friendly description.
- Disks
List<Machine
Disk> - Specification for attaching/detaching disks to a machine.
- Image string
- Type of image used for this machine.
- Image
Disk List<MachineConstraints Image Disk Constraint> - Constraints that are used to drive placement policies for the image disk. Constraint expressions are matched against tags on existing placement targets. example:
[{"mandatory" : "true", "expression": "environment:prod"}, {"mandatory" : "false", "expression": "pci"}]
. It is nested argument with the following properties. - Image
Ref string - Direct image reference used for this machine (name, path, location, uri, etc.). Valid if no image property is provided
- Machine
Id string - Name string
- Human-friendly name used as an identifier in APIs that support this option.
- Nics
List<Machine
Nic> - Set of network interface controller specifications for this machine. If not specified, then a default network connection will be created.
- List<Machine
Tag> - Set of tag keys and optional values that should be set on any resource that is produced from this specification. example:
[ { "key" : "ownedBy", "value": "Rainpole" } ]
. It is nested argument with the following properties. - Timeouts
Machine
Timeouts
- Flavor string
- Flavor of machine instance.
- Project
Id string - ID of project that resource belongs to.
- Attach
Disks boolBefore Boot - By default, disks are attached after the machine has been built. FCDs cannot be attached to machine as a day 0 task.
- Boot
Config MachineBoot Config Args - Machine boot config that will be passed to the instance. Used to perform common automated configuration tasks and even run scripts after instance starts.
- Constraints
[]Machine
Constraint Args - Constraints used to drive placement policies for the virtual machine produced from the specification. Constraint expressions are matched against tags on existing placement targets.
Example:
[{"mandatory" : "true", "expression": "environment":"prod"}, {"mandatory" : "false", "expression": "pci"}]
- Custom
Properties map[string]string - Additional properties that may be used to extend the base resource.
- Deployment
Id string - Describes machine within the scope of your organization and is not propagated to the cloud.
- Description string
- A human-friendly description.
- Disks
[]Machine
Disk Args - Specification for attaching/detaching disks to a machine.
- Image string
- Type of image used for this machine.
- Image
Disk []MachineConstraints Image Disk Constraint Args - Constraints that are used to drive placement policies for the image disk. Constraint expressions are matched against tags on existing placement targets. example:
[{"mandatory" : "true", "expression": "environment:prod"}, {"mandatory" : "false", "expression": "pci"}]
. It is nested argument with the following properties. - Image
Ref string - Direct image reference used for this machine (name, path, location, uri, etc.). Valid if no image property is provided
- Machine
Id string - Name string
- Human-friendly name used as an identifier in APIs that support this option.
- Nics
[]Machine
Nic Args - Set of network interface controller specifications for this machine. If not specified, then a default network connection will be created.
- []Machine
Tag Args - Set of tag keys and optional values that should be set on any resource that is produced from this specification. example:
[ { "key" : "ownedBy", "value": "Rainpole" } ]
. It is nested argument with the following properties. - Timeouts
Machine
Timeouts Args
- flavor String
- Flavor of machine instance.
- project
Id String - ID of project that resource belongs to.
- attach
Disks BooleanBefore Boot - By default, disks are attached after the machine has been built. FCDs cannot be attached to machine as a day 0 task.
- boot
Config MachineBoot Config - Machine boot config that will be passed to the instance. Used to perform common automated configuration tasks and even run scripts after instance starts.
- constraints
List<Machine
Constraint> - Constraints used to drive placement policies for the virtual machine produced from the specification. Constraint expressions are matched against tags on existing placement targets.
Example:
[{"mandatory" : "true", "expression": "environment":"prod"}, {"mandatory" : "false", "expression": "pci"}]
- custom
Properties Map<String,String> - Additional properties that may be used to extend the base resource.
- deployment
Id String - Describes machine within the scope of your organization and is not propagated to the cloud.
- description String
- A human-friendly description.
- disks
List<Machine
Disk> - Specification for attaching/detaching disks to a machine.
- image String
- Type of image used for this machine.
- image
Disk List<MachineConstraints Image Disk Constraint> - Constraints that are used to drive placement policies for the image disk. Constraint expressions are matched against tags on existing placement targets. example:
[{"mandatory" : "true", "expression": "environment:prod"}, {"mandatory" : "false", "expression": "pci"}]
. It is nested argument with the following properties. - image
Ref String - Direct image reference used for this machine (name, path, location, uri, etc.). Valid if no image property is provided
- machine
Id String - name String
- Human-friendly name used as an identifier in APIs that support this option.
- nics
List<Machine
Nic> - Set of network interface controller specifications for this machine. If not specified, then a default network connection will be created.
- List<Machine
Tag> - Set of tag keys and optional values that should be set on any resource that is produced from this specification. example:
[ { "key" : "ownedBy", "value": "Rainpole" } ]
. It is nested argument with the following properties. - timeouts
Machine
Timeouts
- flavor string
- Flavor of machine instance.
- project
Id string - ID of project that resource belongs to.
- attach
Disks booleanBefore Boot - By default, disks are attached after the machine has been built. FCDs cannot be attached to machine as a day 0 task.
- boot
Config MachineBoot Config - Machine boot config that will be passed to the instance. Used to perform common automated configuration tasks and even run scripts after instance starts.
- constraints
Machine
Constraint[] - Constraints used to drive placement policies for the virtual machine produced from the specification. Constraint expressions are matched against tags on existing placement targets.
Example:
[{"mandatory" : "true", "expression": "environment":"prod"}, {"mandatory" : "false", "expression": "pci"}]
- custom
Properties {[key: string]: string} - Additional properties that may be used to extend the base resource.
- deployment
Id string - Describes machine within the scope of your organization and is not propagated to the cloud.
- description string
- A human-friendly description.
- disks
Machine
Disk[] - Specification for attaching/detaching disks to a machine.
- image string
- Type of image used for this machine.
- image
Disk MachineConstraints Image Disk Constraint[] - Constraints that are used to drive placement policies for the image disk. Constraint expressions are matched against tags on existing placement targets. example:
[{"mandatory" : "true", "expression": "environment:prod"}, {"mandatory" : "false", "expression": "pci"}]
. It is nested argument with the following properties. - image
Ref string - Direct image reference used for this machine (name, path, location, uri, etc.). Valid if no image property is provided
- machine
Id string - name string
- Human-friendly name used as an identifier in APIs that support this option.
- nics
Machine
Nic[] - Set of network interface controller specifications for this machine. If not specified, then a default network connection will be created.
- Machine
Tag[] - Set of tag keys and optional values that should be set on any resource that is produced from this specification. example:
[ { "key" : "ownedBy", "value": "Rainpole" } ]
. It is nested argument with the following properties. - timeouts
Machine
Timeouts
- flavor str
- Flavor of machine instance.
- project_
id str - ID of project that resource belongs to.
- attach_
disks_ boolbefore_ boot - By default, disks are attached after the machine has been built. FCDs cannot be attached to machine as a day 0 task.
- boot_
config MachineBoot Config Args - Machine boot config that will be passed to the instance. Used to perform common automated configuration tasks and even run scripts after instance starts.
- constraints
Sequence[Machine
Constraint Args] - Constraints used to drive placement policies for the virtual machine produced from the specification. Constraint expressions are matched against tags on existing placement targets.
Example:
[{"mandatory" : "true", "expression": "environment":"prod"}, {"mandatory" : "false", "expression": "pci"}]
- custom_
properties Mapping[str, str] - Additional properties that may be used to extend the base resource.
- deployment_
id str - Describes machine within the scope of your organization and is not propagated to the cloud.
- description str
- A human-friendly description.
- disks
Sequence[Machine
Disk Args] - Specification for attaching/detaching disks to a machine.
- image str
- Type of image used for this machine.
- image_
disk_ Sequence[Machineconstraints Image Disk Constraint Args] - Constraints that are used to drive placement policies for the image disk. Constraint expressions are matched against tags on existing placement targets. example:
[{"mandatory" : "true", "expression": "environment:prod"}, {"mandatory" : "false", "expression": "pci"}]
. It is nested argument with the following properties. - image_
ref str - Direct image reference used for this machine (name, path, location, uri, etc.). Valid if no image property is provided
- machine_
id str - name str
- Human-friendly name used as an identifier in APIs that support this option.
- nics
Sequence[Machine
Nic Args] - Set of network interface controller specifications for this machine. If not specified, then a default network connection will be created.
- Sequence[Machine
Tag Args] - Set of tag keys and optional values that should be set on any resource that is produced from this specification. example:
[ { "key" : "ownedBy", "value": "Rainpole" } ]
. It is nested argument with the following properties. - timeouts
Machine
Timeouts Args
- flavor String
- Flavor of machine instance.
- project
Id String - ID of project that resource belongs to.
- attach
Disks BooleanBefore Boot - By default, disks are attached after the machine has been built. FCDs cannot be attached to machine as a day 0 task.
- boot
Config Property Map - Machine boot config that will be passed to the instance. Used to perform common automated configuration tasks and even run scripts after instance starts.
- constraints List<Property Map>
- Constraints used to drive placement policies for the virtual machine produced from the specification. Constraint expressions are matched against tags on existing placement targets.
Example:
[{"mandatory" : "true", "expression": "environment":"prod"}, {"mandatory" : "false", "expression": "pci"}]
- custom
Properties Map<String> - Additional properties that may be used to extend the base resource.
- deployment
Id String - Describes machine within the scope of your organization and is not propagated to the cloud.
- description String
- A human-friendly description.
- disks List<Property Map>
- Specification for attaching/detaching disks to a machine.
- image String
- Type of image used for this machine.
- image
Disk List<Property Map>Constraints - Constraints that are used to drive placement policies for the image disk. Constraint expressions are matched against tags on existing placement targets. example:
[{"mandatory" : "true", "expression": "environment:prod"}, {"mandatory" : "false", "expression": "pci"}]
. It is nested argument with the following properties. - image
Ref String - Direct image reference used for this machine (name, path, location, uri, etc.). Valid if no image property is provided
- machine
Id String - name String
- Human-friendly name used as an identifier in APIs that support this option.
- nics List<Property Map>
- Set of network interface controller specifications for this machine. If not specified, then a default network connection will be created.
- List<Property Map>
- Set of tag keys and optional values that should be set on any resource that is produced from this specification. example:
[ { "key" : "ownedBy", "value": "Rainpole" } ]
. It is nested argument with the following properties. - timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the Machine resource produces the following output properties:
- Address string
- Primary address allocated or in use by this machine. The actual type of the address depends on the adapter type. Typically it is either the public or the external IP address.
- Created
At string - Date when the entity was created. Date and time format is ISO 8601 and UTC.
- Disks
Lists List<MachineDisks List> - List of all disks attached to a machine including boot disk, and additional block devices attached using the disks attribute.
- External
Id string - External entity ID on the provider side.
- External
Region stringId - External regionId of the resource.
- External
Zone stringId - External zoneId of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Links
List<Machine
Link> - HATEOAS of the entity
- Organization
Id string - ID of the organization this entity belongs to.
- Owner string
- Email of entity owner.
- Power
State string - Power state of machine.
- Updated
At string
- Address string
- Primary address allocated or in use by this machine. The actual type of the address depends on the adapter type. Typically it is either the public or the external IP address.
- Created
At string - Date when the entity was created. Date and time format is ISO 8601 and UTC.
- Disks
Lists []MachineDisks List - List of all disks attached to a machine including boot disk, and additional block devices attached using the disks attribute.
- External
Id string - External entity ID on the provider side.
- External
Region stringId - External regionId of the resource.
- External
Zone stringId - External zoneId of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Links
[]Machine
Link - HATEOAS of the entity
- Organization
Id string - ID of the organization this entity belongs to.
- Owner string
- Email of entity owner.
- Power
State string - Power state of machine.
- Updated
At string
- address String
- Primary address allocated or in use by this machine. The actual type of the address depends on the adapter type. Typically it is either the public or the external IP address.
- created
At String - Date when the entity was created. Date and time format is ISO 8601 and UTC.
- disks
Lists List<MachineDisks List> - List of all disks attached to a machine including boot disk, and additional block devices attached using the disks attribute.
- external
Id String - External entity ID on the provider side.
- external
Region StringId - External regionId of the resource.
- external
Zone StringId - External zoneId of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- links
List<Machine
Link> - HATEOAS of the entity
- organization
Id String - ID of the organization this entity belongs to.
- owner String
- Email of entity owner.
- power
State String - Power state of machine.
- updated
At String
- address string
- Primary address allocated or in use by this machine. The actual type of the address depends on the adapter type. Typically it is either the public or the external IP address.
- created
At string - Date when the entity was created. Date and time format is ISO 8601 and UTC.
- disks
Lists MachineDisks List[] - List of all disks attached to a machine including boot disk, and additional block devices attached using the disks attribute.
- external
Id string - External entity ID on the provider side.
- external
Region stringId - External regionId of the resource.
- external
Zone stringId - External zoneId of the resource.
- id string
- The provider-assigned unique ID for this managed resource.
- links
Machine
Link[] - HATEOAS of the entity
- organization
Id string - ID of the organization this entity belongs to.
- owner string
- Email of entity owner.
- power
State string - Power state of machine.
- updated
At string
- address str
- Primary address allocated or in use by this machine. The actual type of the address depends on the adapter type. Typically it is either the public or the external IP address.
- created_
at str - Date when the entity was created. Date and time format is ISO 8601 and UTC.
- disks_
lists Sequence[MachineDisks List] - List of all disks attached to a machine including boot disk, and additional block devices attached using the disks attribute.
- external_
id str - External entity ID on the provider side.
- external_
region_ strid - External regionId of the resource.
- external_
zone_ strid - External zoneId of the resource.
- id str
- The provider-assigned unique ID for this managed resource.
- links
Sequence[Machine
Link] - HATEOAS of the entity
- organization_
id str - ID of the organization this entity belongs to.
- owner str
- Email of entity owner.
- power_
state str - Power state of machine.
- updated_
at str
- address String
- Primary address allocated or in use by this machine. The actual type of the address depends on the adapter type. Typically it is either the public or the external IP address.
- created
At String - Date when the entity was created. Date and time format is ISO 8601 and UTC.
- disks
Lists List<Property Map> - List of all disks attached to a machine including boot disk, and additional block devices attached using the disks attribute.
- external
Id String - External entity ID on the provider side.
- external
Region StringId - External regionId of the resource.
- external
Zone StringId - External zoneId of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- links List<Property Map>
- HATEOAS of the entity
- organization
Id String - ID of the organization this entity belongs to.
- owner String
- Email of entity owner.
- power
State String - Power state of machine.
- updated
At String
Look up Existing Machine Resource
Get an existing Machine 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?: MachineState, opts?: CustomResourceOptions): Machine
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
address: Optional[str] = None,
attach_disks_before_boot: Optional[bool] = None,
boot_config: Optional[MachineBootConfigArgs] = None,
constraints: Optional[Sequence[MachineConstraintArgs]] = None,
created_at: Optional[str] = None,
custom_properties: Optional[Mapping[str, str]] = None,
deployment_id: Optional[str] = None,
description: Optional[str] = None,
disks: Optional[Sequence[MachineDiskArgs]] = None,
disks_lists: Optional[Sequence[MachineDisksListArgs]] = None,
external_id: Optional[str] = None,
external_region_id: Optional[str] = None,
external_zone_id: Optional[str] = None,
flavor: Optional[str] = None,
image: Optional[str] = None,
image_disk_constraints: Optional[Sequence[MachineImageDiskConstraintArgs]] = None,
image_ref: Optional[str] = None,
links: Optional[Sequence[MachineLinkArgs]] = None,
machine_id: Optional[str] = None,
name: Optional[str] = None,
nics: Optional[Sequence[MachineNicArgs]] = None,
organization_id: Optional[str] = None,
owner: Optional[str] = None,
power_state: Optional[str] = None,
project_id: Optional[str] = None,
tags: Optional[Sequence[MachineTagArgs]] = None,
timeouts: Optional[MachineTimeoutsArgs] = None,
updated_at: Optional[str] = None) -> Machine
func GetMachine(ctx *Context, name string, id IDInput, state *MachineState, opts ...ResourceOption) (*Machine, error)
public static Machine Get(string name, Input<string> id, MachineState? state, CustomResourceOptions? opts = null)
public static Machine get(String name, Output<String> id, MachineState state, CustomResourceOptions options)
resources: _: type: vra:Machine 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.
- Address string
- Primary address allocated or in use by this machine. The actual type of the address depends on the adapter type. Typically it is either the public or the external IP address.
- Attach
Disks boolBefore Boot - By default, disks are attached after the machine has been built. FCDs cannot be attached to machine as a day 0 task.
- Boot
Config MachineBoot Config - Machine boot config that will be passed to the instance. Used to perform common automated configuration tasks and even run scripts after instance starts.
- Constraints
List<Machine
Constraint> - Constraints used to drive placement policies for the virtual machine produced from the specification. Constraint expressions are matched against tags on existing placement targets.
Example:
[{"mandatory" : "true", "expression": "environment":"prod"}, {"mandatory" : "false", "expression": "pci"}]
- Created
At string - Date when the entity was created. Date and time format is ISO 8601 and UTC.
- Custom
Properties Dictionary<string, string> - Additional properties that may be used to extend the base resource.
- Deployment
Id string - Describes machine within the scope of your organization and is not propagated to the cloud.
- Description string
- A human-friendly description.
- Disks
List<Machine
Disk> - Specification for attaching/detaching disks to a machine.
- Disks
Lists List<MachineDisks List> - List of all disks attached to a machine including boot disk, and additional block devices attached using the disks attribute.
- External
Id string - External entity ID on the provider side.
- External
Region stringId - External regionId of the resource.
- External
Zone stringId - External zoneId of the resource.
- Flavor string
- Flavor of machine instance.
- Image string
- Type of image used for this machine.
- Image
Disk List<MachineConstraints Image Disk Constraint> - Constraints that are used to drive placement policies for the image disk. Constraint expressions are matched against tags on existing placement targets. example:
[{"mandatory" : "true", "expression": "environment:prod"}, {"mandatory" : "false", "expression": "pci"}]
. It is nested argument with the following properties. - Image
Ref string - Direct image reference used for this machine (name, path, location, uri, etc.). Valid if no image property is provided
- Links
List<Machine
Link> - HATEOAS of the entity
- Machine
Id string - Name string
- Human-friendly name used as an identifier in APIs that support this option.
- Nics
List<Machine
Nic> - Set of network interface controller specifications for this machine. If not specified, then a default network connection will be created.
- Organization
Id string - ID of the organization this entity belongs to.
- Owner string
- Email of entity owner.
- Power
State string - Power state of machine.
- Project
Id string - ID of project that resource belongs to.
- List<Machine
Tag> - Set of tag keys and optional values that should be set on any resource that is produced from this specification. example:
[ { "key" : "ownedBy", "value": "Rainpole" } ]
. It is nested argument with the following properties. - Timeouts
Machine
Timeouts - Updated
At string
- Address string
- Primary address allocated or in use by this machine. The actual type of the address depends on the adapter type. Typically it is either the public or the external IP address.
- Attach
Disks boolBefore Boot - By default, disks are attached after the machine has been built. FCDs cannot be attached to machine as a day 0 task.
- Boot
Config MachineBoot Config Args - Machine boot config that will be passed to the instance. Used to perform common automated configuration tasks and even run scripts after instance starts.
- Constraints
[]Machine
Constraint Args - Constraints used to drive placement policies for the virtual machine produced from the specification. Constraint expressions are matched against tags on existing placement targets.
Example:
[{"mandatory" : "true", "expression": "environment":"prod"}, {"mandatory" : "false", "expression": "pci"}]
- Created
At string - Date when the entity was created. Date and time format is ISO 8601 and UTC.
- Custom
Properties map[string]string - Additional properties that may be used to extend the base resource.
- Deployment
Id string - Describes machine within the scope of your organization and is not propagated to the cloud.
- Description string
- A human-friendly description.
- Disks
[]Machine
Disk Args - Specification for attaching/detaching disks to a machine.
- Disks
Lists []MachineDisks List Args - List of all disks attached to a machine including boot disk, and additional block devices attached using the disks attribute.
- External
Id string - External entity ID on the provider side.
- External
Region stringId - External regionId of the resource.
- External
Zone stringId - External zoneId of the resource.
- Flavor string
- Flavor of machine instance.
- Image string
- Type of image used for this machine.
- Image
Disk []MachineConstraints Image Disk Constraint Args - Constraints that are used to drive placement policies for the image disk. Constraint expressions are matched against tags on existing placement targets. example:
[{"mandatory" : "true", "expression": "environment:prod"}, {"mandatory" : "false", "expression": "pci"}]
. It is nested argument with the following properties. - Image
Ref string - Direct image reference used for this machine (name, path, location, uri, etc.). Valid if no image property is provided
- Links
[]Machine
Link Args - HATEOAS of the entity
- Machine
Id string - Name string
- Human-friendly name used as an identifier in APIs that support this option.
- Nics
[]Machine
Nic Args - Set of network interface controller specifications for this machine. If not specified, then a default network connection will be created.
- Organization
Id string - ID of the organization this entity belongs to.
- Owner string
- Email of entity owner.
- Power
State string - Power state of machine.
- Project
Id string - ID of project that resource belongs to.
- []Machine
Tag Args - Set of tag keys and optional values that should be set on any resource that is produced from this specification. example:
[ { "key" : "ownedBy", "value": "Rainpole" } ]
. It is nested argument with the following properties. - Timeouts
Machine
Timeouts Args - Updated
At string
- address String
- Primary address allocated or in use by this machine. The actual type of the address depends on the adapter type. Typically it is either the public or the external IP address.
- attach
Disks BooleanBefore Boot - By default, disks are attached after the machine has been built. FCDs cannot be attached to machine as a day 0 task.
- boot
Config MachineBoot Config - Machine boot config that will be passed to the instance. Used to perform common automated configuration tasks and even run scripts after instance starts.
- constraints
List<Machine
Constraint> - Constraints used to drive placement policies for the virtual machine produced from the specification. Constraint expressions are matched against tags on existing placement targets.
Example:
[{"mandatory" : "true", "expression": "environment":"prod"}, {"mandatory" : "false", "expression": "pci"}]
- created
At String - Date when the entity was created. Date and time format is ISO 8601 and UTC.
- custom
Properties Map<String,String> - Additional properties that may be used to extend the base resource.
- deployment
Id String - Describes machine within the scope of your organization and is not propagated to the cloud.
- description String
- A human-friendly description.
- disks
List<Machine
Disk> - Specification for attaching/detaching disks to a machine.
- disks
Lists List<MachineDisks List> - List of all disks attached to a machine including boot disk, and additional block devices attached using the disks attribute.
- external
Id String - External entity ID on the provider side.
- external
Region StringId - External regionId of the resource.
- external
Zone StringId - External zoneId of the resource.
- flavor String
- Flavor of machine instance.
- image String
- Type of image used for this machine.
- image
Disk List<MachineConstraints Image Disk Constraint> - Constraints that are used to drive placement policies for the image disk. Constraint expressions are matched against tags on existing placement targets. example:
[{"mandatory" : "true", "expression": "environment:prod"}, {"mandatory" : "false", "expression": "pci"}]
. It is nested argument with the following properties. - image
Ref String - Direct image reference used for this machine (name, path, location, uri, etc.). Valid if no image property is provided
- links
List<Machine
Link> - HATEOAS of the entity
- machine
Id String - name String
- Human-friendly name used as an identifier in APIs that support this option.
- nics
List<Machine
Nic> - Set of network interface controller specifications for this machine. If not specified, then a default network connection will be created.
- organization
Id String - ID of the organization this entity belongs to.
- owner String
- Email of entity owner.
- power
State String - Power state of machine.
- project
Id String - ID of project that resource belongs to.
- List<Machine
Tag> - Set of tag keys and optional values that should be set on any resource that is produced from this specification. example:
[ { "key" : "ownedBy", "value": "Rainpole" } ]
. It is nested argument with the following properties. - timeouts
Machine
Timeouts - updated
At String
- address string
- Primary address allocated or in use by this machine. The actual type of the address depends on the adapter type. Typically it is either the public or the external IP address.
- attach
Disks booleanBefore Boot - By default, disks are attached after the machine has been built. FCDs cannot be attached to machine as a day 0 task.
- boot
Config MachineBoot Config - Machine boot config that will be passed to the instance. Used to perform common automated configuration tasks and even run scripts after instance starts.
- constraints
Machine
Constraint[] - Constraints used to drive placement policies for the virtual machine produced from the specification. Constraint expressions are matched against tags on existing placement targets.
Example:
[{"mandatory" : "true", "expression": "environment":"prod"}, {"mandatory" : "false", "expression": "pci"}]
- created
At string - Date when the entity was created. Date and time format is ISO 8601 and UTC.
- custom
Properties {[key: string]: string} - Additional properties that may be used to extend the base resource.
- deployment
Id string - Describes machine within the scope of your organization and is not propagated to the cloud.
- description string
- A human-friendly description.
- disks
Machine
Disk[] - Specification for attaching/detaching disks to a machine.
- disks
Lists MachineDisks List[] - List of all disks attached to a machine including boot disk, and additional block devices attached using the disks attribute.
- external
Id string - External entity ID on the provider side.
- external
Region stringId - External regionId of the resource.
- external
Zone stringId - External zoneId of the resource.
- flavor string
- Flavor of machine instance.
- image string
- Type of image used for this machine.
- image
Disk MachineConstraints Image Disk Constraint[] - Constraints that are used to drive placement policies for the image disk. Constraint expressions are matched against tags on existing placement targets. example:
[{"mandatory" : "true", "expression": "environment:prod"}, {"mandatory" : "false", "expression": "pci"}]
. It is nested argument with the following properties. - image
Ref string - Direct image reference used for this machine (name, path, location, uri, etc.). Valid if no image property is provided
- links
Machine
Link[] - HATEOAS of the entity
- machine
Id string - name string
- Human-friendly name used as an identifier in APIs that support this option.
- nics
Machine
Nic[] - Set of network interface controller specifications for this machine. If not specified, then a default network connection will be created.
- organization
Id string - ID of the organization this entity belongs to.
- owner string
- Email of entity owner.
- power
State string - Power state of machine.
- project
Id string - ID of project that resource belongs to.
- Machine
Tag[] - Set of tag keys and optional values that should be set on any resource that is produced from this specification. example:
[ { "key" : "ownedBy", "value": "Rainpole" } ]
. It is nested argument with the following properties. - timeouts
Machine
Timeouts - updated
At string
- address str
- Primary address allocated or in use by this machine. The actual type of the address depends on the adapter type. Typically it is either the public or the external IP address.
- attach_
disks_ boolbefore_ boot - By default, disks are attached after the machine has been built. FCDs cannot be attached to machine as a day 0 task.
- boot_
config MachineBoot Config Args - Machine boot config that will be passed to the instance. Used to perform common automated configuration tasks and even run scripts after instance starts.
- constraints
Sequence[Machine
Constraint Args] - Constraints used to drive placement policies for the virtual machine produced from the specification. Constraint expressions are matched against tags on existing placement targets.
Example:
[{"mandatory" : "true", "expression": "environment":"prod"}, {"mandatory" : "false", "expression": "pci"}]
- created_
at str - Date when the entity was created. Date and time format is ISO 8601 and UTC.
- custom_
properties Mapping[str, str] - Additional properties that may be used to extend the base resource.
- deployment_
id str - Describes machine within the scope of your organization and is not propagated to the cloud.
- description str
- A human-friendly description.
- disks
Sequence[Machine
Disk Args] - Specification for attaching/detaching disks to a machine.
- disks_
lists Sequence[MachineDisks List Args] - List of all disks attached to a machine including boot disk, and additional block devices attached using the disks attribute.
- external_
id str - External entity ID on the provider side.
- external_
region_ strid - External regionId of the resource.
- external_
zone_ strid - External zoneId of the resource.
- flavor str
- Flavor of machine instance.
- image str
- Type of image used for this machine.
- image_
disk_ Sequence[Machineconstraints Image Disk Constraint Args] - Constraints that are used to drive placement policies for the image disk. Constraint expressions are matched against tags on existing placement targets. example:
[{"mandatory" : "true", "expression": "environment:prod"}, {"mandatory" : "false", "expression": "pci"}]
. It is nested argument with the following properties. - image_
ref str - Direct image reference used for this machine (name, path, location, uri, etc.). Valid if no image property is provided
- links
Sequence[Machine
Link Args] - HATEOAS of the entity
- machine_
id str - name str
- Human-friendly name used as an identifier in APIs that support this option.
- nics
Sequence[Machine
Nic Args] - Set of network interface controller specifications for this machine. If not specified, then a default network connection will be created.
- organization_
id str - ID of the organization this entity belongs to.
- owner str
- Email of entity owner.
- power_
state str - Power state of machine.
- project_
id str - ID of project that resource belongs to.
- Sequence[Machine
Tag Args] - Set of tag keys and optional values that should be set on any resource that is produced from this specification. example:
[ { "key" : "ownedBy", "value": "Rainpole" } ]
. It is nested argument with the following properties. - timeouts
Machine
Timeouts Args - updated_
at str
- address String
- Primary address allocated or in use by this machine. The actual type of the address depends on the adapter type. Typically it is either the public or the external IP address.
- attach
Disks BooleanBefore Boot - By default, disks are attached after the machine has been built. FCDs cannot be attached to machine as a day 0 task.
- boot
Config Property Map - Machine boot config that will be passed to the instance. Used to perform common automated configuration tasks and even run scripts after instance starts.
- constraints List<Property Map>
- Constraints used to drive placement policies for the virtual machine produced from the specification. Constraint expressions are matched against tags on existing placement targets.
Example:
[{"mandatory" : "true", "expression": "environment":"prod"}, {"mandatory" : "false", "expression": "pci"}]
- created
At String - Date when the entity was created. Date and time format is ISO 8601 and UTC.
- custom
Properties Map<String> - Additional properties that may be used to extend the base resource.
- deployment
Id String - Describes machine within the scope of your organization and is not propagated to the cloud.
- description String
- A human-friendly description.
- disks List<Property Map>
- Specification for attaching/detaching disks to a machine.
- disks
Lists List<Property Map> - List of all disks attached to a machine including boot disk, and additional block devices attached using the disks attribute.
- external
Id String - External entity ID on the provider side.
- external
Region StringId - External regionId of the resource.
- external
Zone StringId - External zoneId of the resource.
- flavor String
- Flavor of machine instance.
- image String
- Type of image used for this machine.
- image
Disk List<Property Map>Constraints - Constraints that are used to drive placement policies for the image disk. Constraint expressions are matched against tags on existing placement targets. example:
[{"mandatory" : "true", "expression": "environment:prod"}, {"mandatory" : "false", "expression": "pci"}]
. It is nested argument with the following properties. - image
Ref String - Direct image reference used for this machine (name, path, location, uri, etc.). Valid if no image property is provided
- links List<Property Map>
- HATEOAS of the entity
- machine
Id String - name String
- Human-friendly name used as an identifier in APIs that support this option.
- nics List<Property Map>
- Set of network interface controller specifications for this machine. If not specified, then a default network connection will be created.
- organization
Id String - ID of the organization this entity belongs to.
- owner String
- Email of entity owner.
- power
State String - Power state of machine.
- project
Id String - ID of project that resource belongs to.
- List<Property Map>
- Set of tag keys and optional values that should be set on any resource that is produced from this specification. example:
[ { "key" : "ownedBy", "value": "Rainpole" } ]
. It is nested argument with the following properties. - timeouts Property Map
- updated
At String
Supporting Types
MachineBootConfig, MachineBootConfigArgs
- Content string
- Calid cloud config data in json-escaped yaml syntax.
- Content string
- Calid cloud config data in json-escaped yaml syntax.
- content String
- Calid cloud config data in json-escaped yaml syntax.
- content string
- Calid cloud config data in json-escaped yaml syntax.
- content str
- Calid cloud config data in json-escaped yaml syntax.
- content String
- Calid cloud config data in json-escaped yaml syntax.
MachineConstraint, MachineConstraintArgs
- Expression string
- An expression of the form "[!]tag-key[:[tag-value]]", used to indicate a constraint match on keys and values of tags.
- Mandatory bool
- Indicates whether this constraint should be strictly enforced or not.
- Expression string
- An expression of the form "[!]tag-key[:[tag-value]]", used to indicate a constraint match on keys and values of tags.
- Mandatory bool
- Indicates whether this constraint should be strictly enforced or not.
- expression String
- An expression of the form "[!]tag-key[:[tag-value]]", used to indicate a constraint match on keys and values of tags.
- mandatory Boolean
- Indicates whether this constraint should be strictly enforced or not.
- expression string
- An expression of the form "[!]tag-key[:[tag-value]]", used to indicate a constraint match on keys and values of tags.
- mandatory boolean
- Indicates whether this constraint should be strictly enforced or not.
- expression str
- An expression of the form "[!]tag-key[:[tag-value]]", used to indicate a constraint match on keys and values of tags.
- mandatory bool
- Indicates whether this constraint should be strictly enforced or not.
- expression String
- An expression of the form "[!]tag-key[:[tag-value]]", used to indicate a constraint match on keys and values of tags.
- mandatory Boolean
- Indicates whether this constraint should be strictly enforced or not.
MachineDisk, MachineDiskArgs
- Block
Device stringId - ID of the existing block device.
- Description string
- Human-friendly description.
- Name string
- Human-friendly block-device name used as an identifier in APIs that support this option.
- Scsi
Controller string - The id of the SCSI controller (e.g.,
SCSI_Controller_0
.) - Unit
Number string - The unit number of the SCSI controller (e.g.,
2
.)
- Block
Device stringId - ID of the existing block device.
- Description string
- Human-friendly description.
- Name string
- Human-friendly block-device name used as an identifier in APIs that support this option.
- Scsi
Controller string - The id of the SCSI controller (e.g.,
SCSI_Controller_0
.) - Unit
Number string - The unit number of the SCSI controller (e.g.,
2
.)
- block
Device StringId - ID of the existing block device.
- description String
- Human-friendly description.
- name String
- Human-friendly block-device name used as an identifier in APIs that support this option.
- scsi
Controller String - The id of the SCSI controller (e.g.,
SCSI_Controller_0
.) - unit
Number String - The unit number of the SCSI controller (e.g.,
2
.)
- block
Device stringId - ID of the existing block device.
- description string
- Human-friendly description.
- name string
- Human-friendly block-device name used as an identifier in APIs that support this option.
- scsi
Controller string - The id of the SCSI controller (e.g.,
SCSI_Controller_0
.) - unit
Number string - The unit number of the SCSI controller (e.g.,
2
.)
- block_
device_ strid - ID of the existing block device.
- description str
- Human-friendly description.
- name str
- Human-friendly block-device name used as an identifier in APIs that support this option.
- scsi_
controller str - The id of the SCSI controller (e.g.,
SCSI_Controller_0
.) - unit_
number str - The unit number of the SCSI controller (e.g.,
2
.)
- block
Device StringId - ID of the existing block device.
- description String
- Human-friendly description.
- name String
- Human-friendly block-device name used as an identifier in APIs that support this option.
- scsi
Controller String - The id of the SCSI controller (e.g.,
SCSI_Controller_0
.) - unit
Number String - The unit number of the SCSI controller (e.g.,
2
.)
MachineDisksList, MachineDisksListArgs
- Block
Device stringId - ID of existing block device.
- Description string
- A human-friendly description.
- Name string
- Human-friendly name used as an identifier in APIs that support this option.
- Scsi
Controller string - The id of the SCSI controller (e.g.,
SCSI_Controller_0
.) - Unit
Number string - The unit number of the SCSI controller (e.g.,
2
.)
- Block
Device stringId - ID of existing block device.
- Description string
- A human-friendly description.
- Name string
- Human-friendly name used as an identifier in APIs that support this option.
- Scsi
Controller string - The id of the SCSI controller (e.g.,
SCSI_Controller_0
.) - Unit
Number string - The unit number of the SCSI controller (e.g.,
2
.)
- block
Device StringId - ID of existing block device.
- description String
- A human-friendly description.
- name String
- Human-friendly name used as an identifier in APIs that support this option.
- scsi
Controller String - The id of the SCSI controller (e.g.,
SCSI_Controller_0
.) - unit
Number String - The unit number of the SCSI controller (e.g.,
2
.)
- block
Device stringId - ID of existing block device.
- description string
- A human-friendly description.
- name string
- Human-friendly name used as an identifier in APIs that support this option.
- scsi
Controller string - The id of the SCSI controller (e.g.,
SCSI_Controller_0
.) - unit
Number string - The unit number of the SCSI controller (e.g.,
2
.)
- block_
device_ strid - ID of existing block device.
- description str
- A human-friendly description.
- name str
- Human-friendly name used as an identifier in APIs that support this option.
- scsi_
controller str - The id of the SCSI controller (e.g.,
SCSI_Controller_0
.) - unit_
number str - The unit number of the SCSI controller (e.g.,
2
.)
- block
Device StringId - ID of existing block device.
- description String
- A human-friendly description.
- name String
- Human-friendly name used as an identifier in APIs that support this option.
- scsi
Controller String - The id of the SCSI controller (e.g.,
SCSI_Controller_0
.) - unit
Number String - The unit number of the SCSI controller (e.g.,
2
.)
MachineImageDiskConstraint, MachineImageDiskConstraintArgs
- Expression string
- Constraint that is conveyed to the policy engine. An expression of the form "[!]tag-key[:[tag-value]]", used to indicate a constraint match on keys and values of tags.
- Mandatory bool
- Indicates whether this constraint should be strictly enforced or not.
- Expression string
- Constraint that is conveyed to the policy engine. An expression of the form "[!]tag-key[:[tag-value]]", used to indicate a constraint match on keys and values of tags.
- Mandatory bool
- Indicates whether this constraint should be strictly enforced or not.
- expression String
- Constraint that is conveyed to the policy engine. An expression of the form "[!]tag-key[:[tag-value]]", used to indicate a constraint match on keys and values of tags.
- mandatory Boolean
- Indicates whether this constraint should be strictly enforced or not.
- expression string
- Constraint that is conveyed to the policy engine. An expression of the form "[!]tag-key[:[tag-value]]", used to indicate a constraint match on keys and values of tags.
- mandatory boolean
- Indicates whether this constraint should be strictly enforced or not.
- expression str
- Constraint that is conveyed to the policy engine. An expression of the form "[!]tag-key[:[tag-value]]", used to indicate a constraint match on keys and values of tags.
- mandatory bool
- Indicates whether this constraint should be strictly enforced or not.
- expression String
- Constraint that is conveyed to the policy engine. An expression of the form "[!]tag-key[:[tag-value]]", used to indicate a constraint match on keys and values of tags.
- mandatory Boolean
- Indicates whether this constraint should be strictly enforced or not.
MachineLink, MachineLinkArgs
MachineNic, MachineNicArgs
- Network
Id string - ID of the network instance that this network interface plugs into.
- Addresses List<string>
- List of IP addresses allocated or in use by this network interface.
example:
[ "10.1.2.190" ]
- Custom
Properties Dictionary<string, string> - Additional properties that may be used to extend the base type.
- Description string
- Human-friendly description.
- Device
Index double - The device index of this network interface.
- Name string
- Human-friendly name used as an identifier in APIs that support this option.
- Security
Group List<string>Ids - List of security group ids which this network interface will be assigned to.
- Network
Id string - ID of the network instance that this network interface plugs into.
- Addresses []string
- List of IP addresses allocated or in use by this network interface.
example:
[ "10.1.2.190" ]
- Custom
Properties map[string]string - Additional properties that may be used to extend the base type.
- Description string
- Human-friendly description.
- Device
Index float64 - The device index of this network interface.
- Name string
- Human-friendly name used as an identifier in APIs that support this option.
- Security
Group []stringIds - List of security group ids which this network interface will be assigned to.
- network
Id String - ID of the network instance that this network interface plugs into.
- addresses List<String>
- List of IP addresses allocated or in use by this network interface.
example:
[ "10.1.2.190" ]
- custom
Properties Map<String,String> - Additional properties that may be used to extend the base type.
- description String
- Human-friendly description.
- device
Index Double - The device index of this network interface.
- name String
- Human-friendly name used as an identifier in APIs that support this option.
- security
Group List<String>Ids - List of security group ids which this network interface will be assigned to.
- network
Id string - ID of the network instance that this network interface plugs into.
- addresses string[]
- List of IP addresses allocated or in use by this network interface.
example:
[ "10.1.2.190" ]
- custom
Properties {[key: string]: string} - Additional properties that may be used to extend the base type.
- description string
- Human-friendly description.
- device
Index number - The device index of this network interface.
- name string
- Human-friendly name used as an identifier in APIs that support this option.
- security
Group string[]Ids - List of security group ids which this network interface will be assigned to.
- network_
id str - ID of the network instance that this network interface plugs into.
- addresses Sequence[str]
- List of IP addresses allocated or in use by this network interface.
example:
[ "10.1.2.190" ]
- custom_
properties Mapping[str, str] - Additional properties that may be used to extend the base type.
- description str
- Human-friendly description.
- device_
index float - The device index of this network interface.
- name str
- Human-friendly name used as an identifier in APIs that support this option.
- security_
group_ Sequence[str]ids - List of security group ids which this network interface will be assigned to.
- network
Id String - ID of the network instance that this network interface plugs into.
- addresses List<String>
- List of IP addresses allocated or in use by this network interface.
example:
[ "10.1.2.190" ]
- custom
Properties Map<String> - Additional properties that may be used to extend the base type.
- description String
- Human-friendly description.
- device
Index Number - The device index of this network interface.
- name String
- Human-friendly name used as an identifier in APIs that support this option.
- security
Group List<String>Ids - List of security group ids which this network interface will be assigned to.
MachineTag, MachineTagArgs
MachineTimeouts, MachineTimeoutsArgs
Package Details
- Repository
- vra vmware/terraform-provider-vra
- License
- Notes
- This Pulumi package is based on the
vra
Terraform Provider.