1. Packages
  2. Vra Provider
  3. API Docs
  4. Machine
vra 0.12.0 published on Monday, Apr 14, 2025 by vmware

vra.Machine

Explore with Pulumi AI

vra logo
vra 0.12.0 published on Monday, Apr 14, 2025 by vmware

    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.
    ProjectId string
    ID of project that resource belongs to.
    AttachDisksBeforeBoot bool
    By default, disks are attached after the machine has been built. FCDs cannot be attached to machine as a day 0 task.
    BootConfig MachineBootConfig
    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<MachineConstraint>
    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"}]
    CustomProperties Dictionary<string, string>
    Additional properties that may be used to extend the base resource.
    DeploymentId string
    Describes machine within the scope of your organization and is not propagated to the cloud.
    Description string
    A human-friendly description.
    Disks List<MachineDisk>
    Specification for attaching/detaching disks to a machine.
    Image string
    Type of image used for this machine.
    ImageDiskConstraints List<MachineImageDiskConstraint>
    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.
    ImageRef string
    Direct image reference used for this machine (name, path, location, uri, etc.). Valid if no image property is provided
    MachineId string
    Name string
    Human-friendly name used as an identifier in APIs that support this option.
    Nics List<MachineNic>
    Set of network interface controller specifications for this machine. If not specified, then a default network connection will be created.
    Tags List<MachineTag>
    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 MachineTimeouts
    Flavor string
    Flavor of machine instance.
    ProjectId string
    ID of project that resource belongs to.
    AttachDisksBeforeBoot bool
    By default, disks are attached after the machine has been built. FCDs cannot be attached to machine as a day 0 task.
    BootConfig MachineBootConfigArgs
    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 []MachineConstraintArgs
    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"}]
    CustomProperties map[string]string
    Additional properties that may be used to extend the base resource.
    DeploymentId string
    Describes machine within the scope of your organization and is not propagated to the cloud.
    Description string
    A human-friendly description.
    Disks []MachineDiskArgs
    Specification for attaching/detaching disks to a machine.
    Image string
    Type of image used for this machine.
    ImageDiskConstraints []MachineImageDiskConstraintArgs
    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.
    ImageRef string
    Direct image reference used for this machine (name, path, location, uri, etc.). Valid if no image property is provided
    MachineId string
    Name string
    Human-friendly name used as an identifier in APIs that support this option.
    Nics []MachineNicArgs
    Set of network interface controller specifications for this machine. If not specified, then a default network connection will be created.
    Tags []MachineTagArgs
    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 MachineTimeoutsArgs
    flavor String
    Flavor of machine instance.
    projectId String
    ID of project that resource belongs to.
    attachDisksBeforeBoot Boolean
    By default, disks are attached after the machine has been built. FCDs cannot be attached to machine as a day 0 task.
    bootConfig MachineBootConfig
    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<MachineConstraint>
    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"}]
    customProperties Map<String,String>
    Additional properties that may be used to extend the base resource.
    deploymentId String
    Describes machine within the scope of your organization and is not propagated to the cloud.
    description String
    A human-friendly description.
    disks List<MachineDisk>
    Specification for attaching/detaching disks to a machine.
    image String
    Type of image used for this machine.
    imageDiskConstraints List<MachineImageDiskConstraint>
    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.
    imageRef String
    Direct image reference used for this machine (name, path, location, uri, etc.). Valid if no image property is provided
    machineId String
    name String
    Human-friendly name used as an identifier in APIs that support this option.
    nics List<MachineNic>
    Set of network interface controller specifications for this machine. If not specified, then a default network connection will be created.
    tags List<MachineTag>
    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 MachineTimeouts
    flavor string
    Flavor of machine instance.
    projectId string
    ID of project that resource belongs to.
    attachDisksBeforeBoot boolean
    By default, disks are attached after the machine has been built. FCDs cannot be attached to machine as a day 0 task.
    bootConfig MachineBootConfig
    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 MachineConstraint[]
    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"}]
    customProperties {[key: string]: string}
    Additional properties that may be used to extend the base resource.
    deploymentId string
    Describes machine within the scope of your organization and is not propagated to the cloud.
    description string
    A human-friendly description.
    disks MachineDisk[]
    Specification for attaching/detaching disks to a machine.
    image string
    Type of image used for this machine.
    imageDiskConstraints MachineImageDiskConstraint[]
    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.
    imageRef string
    Direct image reference used for this machine (name, path, location, uri, etc.). Valid if no image property is provided
    machineId string
    name string
    Human-friendly name used as an identifier in APIs that support this option.
    nics MachineNic[]
    Set of network interface controller specifications for this machine. If not specified, then a default network connection will be created.
    tags MachineTag[]
    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 MachineTimeouts
    flavor str
    Flavor of machine instance.
    project_id str
    ID of project that resource belongs to.
    attach_disks_before_boot bool
    By default, disks are attached after the machine has been built. FCDs cannot be attached to machine as a day 0 task.
    boot_config MachineBootConfigArgs
    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[MachineConstraintArgs]
    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[MachineDiskArgs]
    Specification for attaching/detaching disks to a machine.
    image str
    Type of image used for this machine.
    image_disk_constraints Sequence[MachineImageDiskConstraintArgs]
    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[MachineNicArgs]
    Set of network interface controller specifications for this machine. If not specified, then a default network connection will be created.
    tags Sequence[MachineTagArgs]
    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 MachineTimeoutsArgs
    flavor String
    Flavor of machine instance.
    projectId String
    ID of project that resource belongs to.
    attachDisksBeforeBoot Boolean
    By default, disks are attached after the machine has been built. FCDs cannot be attached to machine as a day 0 task.
    bootConfig 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"}]
    customProperties Map<String>
    Additional properties that may be used to extend the base resource.
    deploymentId 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.
    imageDiskConstraints List<Property Map>
    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.
    imageRef String
    Direct image reference used for this machine (name, path, location, uri, etc.). Valid if no image property is provided
    machineId 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.
    tags 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.
    CreatedAt string
    Date when the entity was created. Date and time format is ISO 8601 and UTC.
    DisksLists List<MachineDisksList>
    List of all disks attached to a machine including boot disk, and additional block devices attached using the disks attribute.
    ExternalId string
    External entity ID on the provider side.
    ExternalRegionId string
    External regionId of the resource.
    ExternalZoneId string
    External zoneId of the resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    Links List<MachineLink>
    HATEOAS of the entity
    OrganizationId string
    ID of the organization this entity belongs to.
    Owner string
    Email of entity owner.
    PowerState string
    Power state of machine.
    UpdatedAt 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.
    CreatedAt string
    Date when the entity was created. Date and time format is ISO 8601 and UTC.
    DisksLists []MachineDisksList
    List of all disks attached to a machine including boot disk, and additional block devices attached using the disks attribute.
    ExternalId string
    External entity ID on the provider side.
    ExternalRegionId string
    External regionId of the resource.
    ExternalZoneId string
    External zoneId of the resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    Links []MachineLink
    HATEOAS of the entity
    OrganizationId string
    ID of the organization this entity belongs to.
    Owner string
    Email of entity owner.
    PowerState string
    Power state of machine.
    UpdatedAt 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.
    createdAt String
    Date when the entity was created. Date and time format is ISO 8601 and UTC.
    disksLists List<MachineDisksList>
    List of all disks attached to a machine including boot disk, and additional block devices attached using the disks attribute.
    externalId String
    External entity ID on the provider side.
    externalRegionId String
    External regionId of the resource.
    externalZoneId String
    External zoneId of the resource.
    id String
    The provider-assigned unique ID for this managed resource.
    links List<MachineLink>
    HATEOAS of the entity
    organizationId String
    ID of the organization this entity belongs to.
    owner String
    Email of entity owner.
    powerState String
    Power state of machine.
    updatedAt 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.
    createdAt string
    Date when the entity was created. Date and time format is ISO 8601 and UTC.
    disksLists MachineDisksList[]
    List of all disks attached to a machine including boot disk, and additional block devices attached using the disks attribute.
    externalId string
    External entity ID on the provider side.
    externalRegionId string
    External regionId of the resource.
    externalZoneId string
    External zoneId of the resource.
    id string
    The provider-assigned unique ID for this managed resource.
    links MachineLink[]
    HATEOAS of the entity
    organizationId string
    ID of the organization this entity belongs to.
    owner string
    Email of entity owner.
    powerState string
    Power state of machine.
    updatedAt 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[MachineDisksList]
    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_id str
    External regionId of the resource.
    external_zone_id str
    External zoneId of the resource.
    id str
    The provider-assigned unique ID for this managed resource.
    links Sequence[MachineLink]
    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.
    createdAt String
    Date when the entity was created. Date and time format is ISO 8601 and UTC.
    disksLists List<Property Map>
    List of all disks attached to a machine including boot disk, and additional block devices attached using the disks attribute.
    externalId String
    External entity ID on the provider side.
    externalRegionId String
    External regionId of the resource.
    externalZoneId String
    External zoneId of the resource.
    id String
    The provider-assigned unique ID for this managed resource.
    links List<Property Map>
    HATEOAS of the entity
    organizationId String
    ID of the organization this entity belongs to.
    owner String
    Email of entity owner.
    powerState String
    Power state of machine.
    updatedAt 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.
    The following state arguments are supported:
    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.
    AttachDisksBeforeBoot bool
    By default, disks are attached after the machine has been built. FCDs cannot be attached to machine as a day 0 task.
    BootConfig MachineBootConfig
    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<MachineConstraint>
    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"}]
    CreatedAt string
    Date when the entity was created. Date and time format is ISO 8601 and UTC.
    CustomProperties Dictionary<string, string>
    Additional properties that may be used to extend the base resource.
    DeploymentId string
    Describes machine within the scope of your organization and is not propagated to the cloud.
    Description string
    A human-friendly description.
    Disks List<MachineDisk>
    Specification for attaching/detaching disks to a machine.
    DisksLists List<MachineDisksList>
    List of all disks attached to a machine including boot disk, and additional block devices attached using the disks attribute.
    ExternalId string
    External entity ID on the provider side.
    ExternalRegionId string
    External regionId of the resource.
    ExternalZoneId string
    External zoneId of the resource.
    Flavor string
    Flavor of machine instance.
    Image string
    Type of image used for this machine.
    ImageDiskConstraints List<MachineImageDiskConstraint>
    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.
    ImageRef string
    Direct image reference used for this machine (name, path, location, uri, etc.). Valid if no image property is provided
    Links List<MachineLink>
    HATEOAS of the entity
    MachineId string
    Name string
    Human-friendly name used as an identifier in APIs that support this option.
    Nics List<MachineNic>
    Set of network interface controller specifications for this machine. If not specified, then a default network connection will be created.
    OrganizationId string
    ID of the organization this entity belongs to.
    Owner string
    Email of entity owner.
    PowerState string
    Power state of machine.
    ProjectId string
    ID of project that resource belongs to.
    Tags List<MachineTag>
    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 MachineTimeouts
    UpdatedAt 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.
    AttachDisksBeforeBoot bool
    By default, disks are attached after the machine has been built. FCDs cannot be attached to machine as a day 0 task.
    BootConfig MachineBootConfigArgs
    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 []MachineConstraintArgs
    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"}]
    CreatedAt string
    Date when the entity was created. Date and time format is ISO 8601 and UTC.
    CustomProperties map[string]string
    Additional properties that may be used to extend the base resource.
    DeploymentId string
    Describes machine within the scope of your organization and is not propagated to the cloud.
    Description string
    A human-friendly description.
    Disks []MachineDiskArgs
    Specification for attaching/detaching disks to a machine.
    DisksLists []MachineDisksListArgs
    List of all disks attached to a machine including boot disk, and additional block devices attached using the disks attribute.
    ExternalId string
    External entity ID on the provider side.
    ExternalRegionId string
    External regionId of the resource.
    ExternalZoneId string
    External zoneId of the resource.
    Flavor string
    Flavor of machine instance.
    Image string
    Type of image used for this machine.
    ImageDiskConstraints []MachineImageDiskConstraintArgs
    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.
    ImageRef string
    Direct image reference used for this machine (name, path, location, uri, etc.). Valid if no image property is provided
    Links []MachineLinkArgs
    HATEOAS of the entity
    MachineId string
    Name string
    Human-friendly name used as an identifier in APIs that support this option.
    Nics []MachineNicArgs
    Set of network interface controller specifications for this machine. If not specified, then a default network connection will be created.
    OrganizationId string
    ID of the organization this entity belongs to.
    Owner string
    Email of entity owner.
    PowerState string
    Power state of machine.
    ProjectId string
    ID of project that resource belongs to.
    Tags []MachineTagArgs
    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 MachineTimeoutsArgs
    UpdatedAt 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.
    attachDisksBeforeBoot Boolean
    By default, disks are attached after the machine has been built. FCDs cannot be attached to machine as a day 0 task.
    bootConfig MachineBootConfig
    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<MachineConstraint>
    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"}]
    createdAt String
    Date when the entity was created. Date and time format is ISO 8601 and UTC.
    customProperties Map<String,String>
    Additional properties that may be used to extend the base resource.
    deploymentId String
    Describes machine within the scope of your organization and is not propagated to the cloud.
    description String
    A human-friendly description.
    disks List<MachineDisk>
    Specification for attaching/detaching disks to a machine.
    disksLists List<MachineDisksList>
    List of all disks attached to a machine including boot disk, and additional block devices attached using the disks attribute.
    externalId String
    External entity ID on the provider side.
    externalRegionId String
    External regionId of the resource.
    externalZoneId String
    External zoneId of the resource.
    flavor String
    Flavor of machine instance.
    image String
    Type of image used for this machine.
    imageDiskConstraints List<MachineImageDiskConstraint>
    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.
    imageRef String
    Direct image reference used for this machine (name, path, location, uri, etc.). Valid if no image property is provided
    links List<MachineLink>
    HATEOAS of the entity
    machineId String
    name String
    Human-friendly name used as an identifier in APIs that support this option.
    nics List<MachineNic>
    Set of network interface controller specifications for this machine. If not specified, then a default network connection will be created.
    organizationId String
    ID of the organization this entity belongs to.
    owner String
    Email of entity owner.
    powerState String
    Power state of machine.
    projectId String
    ID of project that resource belongs to.
    tags List<MachineTag>
    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 MachineTimeouts
    updatedAt 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.
    attachDisksBeforeBoot boolean
    By default, disks are attached after the machine has been built. FCDs cannot be attached to machine as a day 0 task.
    bootConfig MachineBootConfig
    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 MachineConstraint[]
    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"}]
    createdAt string
    Date when the entity was created. Date and time format is ISO 8601 and UTC.
    customProperties {[key: string]: string}
    Additional properties that may be used to extend the base resource.
    deploymentId string
    Describes machine within the scope of your organization and is not propagated to the cloud.
    description string
    A human-friendly description.
    disks MachineDisk[]
    Specification for attaching/detaching disks to a machine.
    disksLists MachineDisksList[]
    List of all disks attached to a machine including boot disk, and additional block devices attached using the disks attribute.
    externalId string
    External entity ID on the provider side.
    externalRegionId string
    External regionId of the resource.
    externalZoneId string
    External zoneId of the resource.
    flavor string
    Flavor of machine instance.
    image string
    Type of image used for this machine.
    imageDiskConstraints MachineImageDiskConstraint[]
    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.
    imageRef string
    Direct image reference used for this machine (name, path, location, uri, etc.). Valid if no image property is provided
    links MachineLink[]
    HATEOAS of the entity
    machineId string
    name string
    Human-friendly name used as an identifier in APIs that support this option.
    nics MachineNic[]
    Set of network interface controller specifications for this machine. If not specified, then a default network connection will be created.
    organizationId string
    ID of the organization this entity belongs to.
    owner string
    Email of entity owner.
    powerState string
    Power state of machine.
    projectId string
    ID of project that resource belongs to.
    tags MachineTag[]
    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 MachineTimeouts
    updatedAt 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_before_boot bool
    By default, disks are attached after the machine has been built. FCDs cannot be attached to machine as a day 0 task.
    boot_config MachineBootConfigArgs
    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[MachineConstraintArgs]
    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[MachineDiskArgs]
    Specification for attaching/detaching disks to a machine.
    disks_lists Sequence[MachineDisksListArgs]
    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_id str
    External regionId of the resource.
    external_zone_id str
    External zoneId of the resource.
    flavor str
    Flavor of machine instance.
    image str
    Type of image used for this machine.
    image_disk_constraints Sequence[MachineImageDiskConstraintArgs]
    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[MachineLinkArgs]
    HATEOAS of the entity
    machine_id str
    name str
    Human-friendly name used as an identifier in APIs that support this option.
    nics Sequence[MachineNicArgs]
    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.
    tags Sequence[MachineTagArgs]
    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 MachineTimeoutsArgs
    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.
    attachDisksBeforeBoot Boolean
    By default, disks are attached after the machine has been built. FCDs cannot be attached to machine as a day 0 task.
    bootConfig 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"}]
    createdAt String
    Date when the entity was created. Date and time format is ISO 8601 and UTC.
    customProperties Map<String>
    Additional properties that may be used to extend the base resource.
    deploymentId 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.
    disksLists List<Property Map>
    List of all disks attached to a machine including boot disk, and additional block devices attached using the disks attribute.
    externalId String
    External entity ID on the provider side.
    externalRegionId String
    External regionId of the resource.
    externalZoneId String
    External zoneId of the resource.
    flavor String
    Flavor of machine instance.
    image String
    Type of image used for this machine.
    imageDiskConstraints List<Property Map>
    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.
    imageRef 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
    machineId 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.
    organizationId String
    ID of the organization this entity belongs to.
    owner String
    Email of entity owner.
    powerState String
    Power state of machine.
    projectId String
    ID of project that resource belongs to.
    tags 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
    updatedAt 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

    BlockDeviceId string
    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.
    ScsiController string
    The id of the SCSI controller (e.g., SCSI_Controller_0.)
    UnitNumber string
    The unit number of the SCSI controller (e.g., 2.)
    BlockDeviceId string
    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.
    ScsiController string
    The id of the SCSI controller (e.g., SCSI_Controller_0.)
    UnitNumber string
    The unit number of the SCSI controller (e.g., 2.)
    blockDeviceId String
    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.
    scsiController String
    The id of the SCSI controller (e.g., SCSI_Controller_0.)
    unitNumber String
    The unit number of the SCSI controller (e.g., 2.)
    blockDeviceId string
    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.
    scsiController string
    The id of the SCSI controller (e.g., SCSI_Controller_0.)
    unitNumber string
    The unit number of the SCSI controller (e.g., 2.)
    block_device_id str
    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.)
    blockDeviceId String
    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.
    scsiController String
    The id of the SCSI controller (e.g., SCSI_Controller_0.)
    unitNumber String
    The unit number of the SCSI controller (e.g., 2.)

    MachineDisksList, MachineDisksListArgs

    BlockDeviceId string
    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.
    ScsiController string
    The id of the SCSI controller (e.g., SCSI_Controller_0.)
    UnitNumber string
    The unit number of the SCSI controller (e.g., 2.)
    BlockDeviceId string
    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.
    ScsiController string
    The id of the SCSI controller (e.g., SCSI_Controller_0.)
    UnitNumber string
    The unit number of the SCSI controller (e.g., 2.)
    blockDeviceId String
    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.
    scsiController String
    The id of the SCSI controller (e.g., SCSI_Controller_0.)
    unitNumber String
    The unit number of the SCSI controller (e.g., 2.)
    blockDeviceId string
    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.
    scsiController string
    The id of the SCSI controller (e.g., SCSI_Controller_0.)
    unitNumber string
    The unit number of the SCSI controller (e.g., 2.)
    block_device_id str
    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.)
    blockDeviceId String
    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.
    scsiController String
    The id of the SCSI controller (e.g., SCSI_Controller_0.)
    unitNumber 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.
    Href string
    Hrefs List<string>
    Rel string
    Href string
    Hrefs []string
    Rel string
    href String
    hrefs List<String>
    rel String
    href string
    hrefs string[]
    rel string
    href str
    hrefs Sequence[str]
    rel str
    href String
    hrefs List<String>
    rel String

    MachineNic, MachineNicArgs

    NetworkId 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" ]
    CustomProperties Dictionary<string, string>
    Additional properties that may be used to extend the base type.
    Description string
    Human-friendly description.
    DeviceIndex double
    The device index of this network interface.
    Name string
    Human-friendly name used as an identifier in APIs that support this option.
    SecurityGroupIds List<string>
    List of security group ids which this network interface will be assigned to.
    NetworkId 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" ]
    CustomProperties map[string]string
    Additional properties that may be used to extend the base type.
    Description string
    Human-friendly description.
    DeviceIndex float64
    The device index of this network interface.
    Name string
    Human-friendly name used as an identifier in APIs that support this option.
    SecurityGroupIds []string
    List of security group ids which this network interface will be assigned to.
    networkId 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" ]
    customProperties Map<String,String>
    Additional properties that may be used to extend the base type.
    description String
    Human-friendly description.
    deviceIndex Double
    The device index of this network interface.
    name String
    Human-friendly name used as an identifier in APIs that support this option.
    securityGroupIds List<String>
    List of security group ids which this network interface will be assigned to.
    networkId 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" ]
    customProperties {[key: string]: string}
    Additional properties that may be used to extend the base type.
    description string
    Human-friendly description.
    deviceIndex number
    The device index of this network interface.
    name string
    Human-friendly name used as an identifier in APIs that support this option.
    securityGroupIds string[]
    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_ids Sequence[str]
    List of security group ids which this network interface will be assigned to.
    networkId 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" ]
    customProperties Map<String>
    Additional properties that may be used to extend the base type.
    description String
    Human-friendly description.
    deviceIndex Number
    The device index of this network interface.
    name String
    Human-friendly name used as an identifier in APIs that support this option.
    securityGroupIds List<String>
    List of security group ids which this network interface will be assigned to.

    MachineTag, MachineTagArgs

    Key string
    Tag’s key.
    Value string
    Tag’s value.
    Key string
    Tag’s key.
    Value string
    Tag’s value.
    key String
    Tag’s key.
    value String
    Tag’s value.
    key string
    Tag’s key.
    value string
    Tag’s value.
    key str
    Tag’s key.
    value str
    Tag’s value.
    key String
    Tag’s key.
    value String
    Tag’s value.

    MachineTimeouts, MachineTimeoutsArgs

    Create string
    Delete string
    Update string
    Create string
    Delete string
    Update string
    create String
    delete String
    update String
    create string
    delete string
    update string
    create str
    delete str
    update str
    create String
    delete String
    update String

    Package Details

    Repository
    vra vmware/terraform-provider-vra
    License
    Notes
    This Pulumi package is based on the vra Terraform Provider.
    vra logo
    vra 0.12.0 published on Monday, Apr 14, 2025 by vmware