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

vra.BlockDevice

Explore with Pulumi AI

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

    Creates a VMware vRealize Automation block device resource.

    Example Usage

    S

    The following example shows how to create a block device resource.

    import * as pulumi from "@pulumi/pulumi";
    import * as vra from "@pulumi/vra";
    
    const disk1 = new vra.BlockDevice("disk1", {
        capacityInGb: 10,
        projectId: _var.project_id,
        persistent: true,
    });
    
    import pulumi
    import pulumi_vra as vra
    
    disk1 = vra.BlockDevice("disk1",
        capacity_in_gb=10,
        project_id=var["project_id"],
        persistent=True)
    
    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.NewBlockDevice(ctx, "disk1", &vra.BlockDeviceArgs{
    			CapacityInGb: pulumi.Float64(10),
    			ProjectId:    pulumi.Any(_var.Project_id),
    			Persistent:   pulumi.Bool(true),
    		})
    		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 disk1 = new Vra.BlockDevice("disk1", new()
        {
            CapacityInGb = 10,
            ProjectId = @var.Project_id,
            Persistent = true,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.vra.BlockDevice;
    import com.pulumi.vra.BlockDeviceArgs;
    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 disk1 = new BlockDevice("disk1", BlockDeviceArgs.builder()
                .capacityInGb(10)
                .projectId(var_.project_id())
                .persistent(true)
                .build());
    
        }
    }
    
    resources:
      disk1:
        type: vra:BlockDevice
        properties:
          capacityInGb: 10
          projectId: ${var.project_id}
          persistent: true
    

    Create BlockDevice Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new BlockDevice(name: string, args: BlockDeviceArgs, opts?: CustomResourceOptions);
    @overload
    def BlockDevice(resource_name: str,
                    args: BlockDeviceArgs,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def BlockDevice(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    project_id: Optional[str] = None,
                    capacity_in_gb: Optional[float] = None,
                    expand_snapshots: Optional[bool] = None,
                    name: Optional[str] = None,
                    deployment_id: Optional[str] = None,
                    description: Optional[str] = None,
                    disk_content_base64: Optional[str] = None,
                    encrypted: Optional[bool] = None,
                    block_device_id: Optional[str] = None,
                    custom_properties: Optional[Mapping[str, str]] = None,
                    persistent: Optional[bool] = None,
                    constraints: Optional[Sequence[BlockDeviceConstraintArgs]] = None,
                    purge: Optional[bool] = None,
                    source_reference: Optional[str] = None,
                    tags: Optional[Sequence[BlockDeviceTagArgs]] = None,
                    timeouts: Optional[BlockDeviceTimeoutsArgs] = None)
    func NewBlockDevice(ctx *Context, name string, args BlockDeviceArgs, opts ...ResourceOption) (*BlockDevice, error)
    public BlockDevice(string name, BlockDeviceArgs args, CustomResourceOptions? opts = null)
    public BlockDevice(String name, BlockDeviceArgs args)
    public BlockDevice(String name, BlockDeviceArgs args, CustomResourceOptions options)
    
    type: vra:BlockDevice
    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 BlockDeviceArgs
    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 BlockDeviceArgs
    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 BlockDeviceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args BlockDeviceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args BlockDeviceArgs
    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 blockDeviceResource = new Vra.BlockDevice("blockDeviceResource", new()
    {
        ProjectId = "string",
        CapacityInGb = 0,
        ExpandSnapshots = false,
        Name = "string",
        DeploymentId = "string",
        Description = "string",
        DiskContentBase64 = "string",
        Encrypted = false,
        BlockDeviceId = "string",
        CustomProperties = 
        {
            { "string", "string" },
        },
        Persistent = false,
        Constraints = new[]
        {
            new Vra.Inputs.BlockDeviceConstraintArgs
            {
                Expression = "string",
                Mandatory = false,
            },
        },
        Purge = false,
        SourceReference = "string",
        Tags = new[]
        {
            new Vra.Inputs.BlockDeviceTagArgs
            {
                Key = "string",
                Value = "string",
            },
        },
        Timeouts = new Vra.Inputs.BlockDeviceTimeoutsArgs
        {
            Create = "string",
            Delete = "string",
            Update = "string",
        },
    });
    
    example, err := vra.NewBlockDevice(ctx, "blockDeviceResource", &vra.BlockDeviceArgs{
    	ProjectId:         pulumi.String("string"),
    	CapacityInGb:      pulumi.Float64(0),
    	ExpandSnapshots:   pulumi.Bool(false),
    	Name:              pulumi.String("string"),
    	DeploymentId:      pulumi.String("string"),
    	Description:       pulumi.String("string"),
    	DiskContentBase64: pulumi.String("string"),
    	Encrypted:         pulumi.Bool(false),
    	BlockDeviceId:     pulumi.String("string"),
    	CustomProperties: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Persistent: pulumi.Bool(false),
    	Constraints: vra.BlockDeviceConstraintArray{
    		&vra.BlockDeviceConstraintArgs{
    			Expression: pulumi.String("string"),
    			Mandatory:  pulumi.Bool(false),
    		},
    	},
    	Purge:           pulumi.Bool(false),
    	SourceReference: pulumi.String("string"),
    	Tags: vra.BlockDeviceTagArray{
    		&vra.BlockDeviceTagArgs{
    			Key:   pulumi.String("string"),
    			Value: pulumi.String("string"),
    		},
    	},
    	Timeouts: &vra.BlockDeviceTimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    		Update: pulumi.String("string"),
    	},
    })
    
    var blockDeviceResource = new BlockDevice("blockDeviceResource", BlockDeviceArgs.builder()
        .projectId("string")
        .capacityInGb(0)
        .expandSnapshots(false)
        .name("string")
        .deploymentId("string")
        .description("string")
        .diskContentBase64("string")
        .encrypted(false)
        .blockDeviceId("string")
        .customProperties(Map.of("string", "string"))
        .persistent(false)
        .constraints(BlockDeviceConstraintArgs.builder()
            .expression("string")
            .mandatory(false)
            .build())
        .purge(false)
        .sourceReference("string")
        .tags(BlockDeviceTagArgs.builder()
            .key("string")
            .value("string")
            .build())
        .timeouts(BlockDeviceTimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .update("string")
            .build())
        .build());
    
    block_device_resource = vra.BlockDevice("blockDeviceResource",
        project_id="string",
        capacity_in_gb=0,
        expand_snapshots=False,
        name="string",
        deployment_id="string",
        description="string",
        disk_content_base64="string",
        encrypted=False,
        block_device_id="string",
        custom_properties={
            "string": "string",
        },
        persistent=False,
        constraints=[{
            "expression": "string",
            "mandatory": False,
        }],
        purge=False,
        source_reference="string",
        tags=[{
            "key": "string",
            "value": "string",
        }],
        timeouts={
            "create": "string",
            "delete": "string",
            "update": "string",
        })
    
    const blockDeviceResource = new vra.BlockDevice("blockDeviceResource", {
        projectId: "string",
        capacityInGb: 0,
        expandSnapshots: false,
        name: "string",
        deploymentId: "string",
        description: "string",
        diskContentBase64: "string",
        encrypted: false,
        blockDeviceId: "string",
        customProperties: {
            string: "string",
        },
        persistent: false,
        constraints: [{
            expression: "string",
            mandatory: false,
        }],
        purge: false,
        sourceReference: "string",
        tags: [{
            key: "string",
            value: "string",
        }],
        timeouts: {
            create: "string",
            "delete": "string",
            update: "string",
        },
    });
    
    type: vra:BlockDevice
    properties:
        blockDeviceId: string
        capacityInGb: 0
        constraints:
            - expression: string
              mandatory: false
        customProperties:
            string: string
        deploymentId: string
        description: string
        diskContentBase64: string
        encrypted: false
        expandSnapshots: false
        name: string
        persistent: false
        projectId: string
        purge: false
        sourceReference: string
        tags:
            - key: string
              value: string
        timeouts:
            create: string
            delete: string
            update: string
    

    BlockDevice 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 BlockDevice resource accepts the following input properties:

    CapacityInGb double
    Capacity of block device in GB.
    ProjectId string
    ID of project that current user belongs to.
    BlockDeviceId string
    ID of the block device snapshot.
    Constraints List<BlockDeviceConstraint>
    Storage, network, and extensibility constraints to be applied when provisioning through the project.
    CustomProperties Dictionary<string, string>
    Additional custom properties that may be used to extend the machine.
    DeploymentId string
    ID of deployment associated with resource.
    Description string
    Describes machine within the scope of your organization and is not propagated to the cloud.
    DiskContentBase64 string
    Content of a disk, base64 encoded.
    Encrypted bool
    Indicates whether block device should be encrypted or not.
    ExpandSnapshots bool
    Indicates whether snapshots of block devices should be included in the state. Applies only to first class block devices.
    Name string
    Human-friendly name used as an identifier in APIs that support this option.
    Persistent bool
    Indicates whether block device survives a delete action.
    Purge bool
    Indicates if the disk must be completely destroyed or should be kept in the system. Valid only for block devices with ‘persistent’ set to true. Used to destroy the resource.
    SourceReference string
    URI to use for block device. Example: ami-0d4cfd66
    Tags List<BlockDeviceTag>
    Set of tag keys and values to apply to the resource instance. Example: [ { "key" : "vmware.enumeration.type", "value": "nebs_block" } ]
    Timeouts BlockDeviceTimeouts
    CapacityInGb float64
    Capacity of block device in GB.
    ProjectId string
    ID of project that current user belongs to.
    BlockDeviceId string
    ID of the block device snapshot.
    Constraints []BlockDeviceConstraintArgs
    Storage, network, and extensibility constraints to be applied when provisioning through the project.
    CustomProperties map[string]string
    Additional custom properties that may be used to extend the machine.
    DeploymentId string
    ID of deployment associated with resource.
    Description string
    Describes machine within the scope of your organization and is not propagated to the cloud.
    DiskContentBase64 string
    Content of a disk, base64 encoded.
    Encrypted bool
    Indicates whether block device should be encrypted or not.
    ExpandSnapshots bool
    Indicates whether snapshots of block devices should be included in the state. Applies only to first class block devices.
    Name string
    Human-friendly name used as an identifier in APIs that support this option.
    Persistent bool
    Indicates whether block device survives a delete action.
    Purge bool
    Indicates if the disk must be completely destroyed or should be kept in the system. Valid only for block devices with ‘persistent’ set to true. Used to destroy the resource.
    SourceReference string
    URI to use for block device. Example: ami-0d4cfd66
    Tags []BlockDeviceTagArgs
    Set of tag keys and values to apply to the resource instance. Example: [ { "key" : "vmware.enumeration.type", "value": "nebs_block" } ]
    Timeouts BlockDeviceTimeoutsArgs
    capacityInGb Double
    Capacity of block device in GB.
    projectId String
    ID of project that current user belongs to.
    blockDeviceId String
    ID of the block device snapshot.
    constraints List<BlockDeviceConstraint>
    Storage, network, and extensibility constraints to be applied when provisioning through the project.
    customProperties Map<String,String>
    Additional custom properties that may be used to extend the machine.
    deploymentId String
    ID of deployment associated with resource.
    description String
    Describes machine within the scope of your organization and is not propagated to the cloud.
    diskContentBase64 String
    Content of a disk, base64 encoded.
    encrypted Boolean
    Indicates whether block device should be encrypted or not.
    expandSnapshots Boolean
    Indicates whether snapshots of block devices should be included in the state. Applies only to first class block devices.
    name String
    Human-friendly name used as an identifier in APIs that support this option.
    persistent Boolean
    Indicates whether block device survives a delete action.
    purge Boolean
    Indicates if the disk must be completely destroyed or should be kept in the system. Valid only for block devices with ‘persistent’ set to true. Used to destroy the resource.
    sourceReference String
    URI to use for block device. Example: ami-0d4cfd66
    tags List<BlockDeviceTag>
    Set of tag keys and values to apply to the resource instance. Example: [ { "key" : "vmware.enumeration.type", "value": "nebs_block" } ]
    timeouts BlockDeviceTimeouts
    capacityInGb number
    Capacity of block device in GB.
    projectId string
    ID of project that current user belongs to.
    blockDeviceId string
    ID of the block device snapshot.
    constraints BlockDeviceConstraint[]
    Storage, network, and extensibility constraints to be applied when provisioning through the project.
    customProperties {[key: string]: string}
    Additional custom properties that may be used to extend the machine.
    deploymentId string
    ID of deployment associated with resource.
    description string
    Describes machine within the scope of your organization and is not propagated to the cloud.
    diskContentBase64 string
    Content of a disk, base64 encoded.
    encrypted boolean
    Indicates whether block device should be encrypted or not.
    expandSnapshots boolean
    Indicates whether snapshots of block devices should be included in the state. Applies only to first class block devices.
    name string
    Human-friendly name used as an identifier in APIs that support this option.
    persistent boolean
    Indicates whether block device survives a delete action.
    purge boolean
    Indicates if the disk must be completely destroyed or should be kept in the system. Valid only for block devices with ‘persistent’ set to true. Used to destroy the resource.
    sourceReference string
    URI to use for block device. Example: ami-0d4cfd66
    tags BlockDeviceTag[]
    Set of tag keys and values to apply to the resource instance. Example: [ { "key" : "vmware.enumeration.type", "value": "nebs_block" } ]
    timeouts BlockDeviceTimeouts
    capacity_in_gb float
    Capacity of block device in GB.
    project_id str
    ID of project that current user belongs to.
    block_device_id str
    ID of the block device snapshot.
    constraints Sequence[BlockDeviceConstraintArgs]
    Storage, network, and extensibility constraints to be applied when provisioning through the project.
    custom_properties Mapping[str, str]
    Additional custom properties that may be used to extend the machine.
    deployment_id str
    ID of deployment associated with resource.
    description str
    Describes machine within the scope of your organization and is not propagated to the cloud.
    disk_content_base64 str
    Content of a disk, base64 encoded.
    encrypted bool
    Indicates whether block device should be encrypted or not.
    expand_snapshots bool
    Indicates whether snapshots of block devices should be included in the state. Applies only to first class block devices.
    name str
    Human-friendly name used as an identifier in APIs that support this option.
    persistent bool
    Indicates whether block device survives a delete action.
    purge bool
    Indicates if the disk must be completely destroyed or should be kept in the system. Valid only for block devices with ‘persistent’ set to true. Used to destroy the resource.
    source_reference str
    URI to use for block device. Example: ami-0d4cfd66
    tags Sequence[BlockDeviceTagArgs]
    Set of tag keys and values to apply to the resource instance. Example: [ { "key" : "vmware.enumeration.type", "value": "nebs_block" } ]
    timeouts BlockDeviceTimeoutsArgs
    capacityInGb Number
    Capacity of block device in GB.
    projectId String
    ID of project that current user belongs to.
    blockDeviceId String
    ID of the block device snapshot.
    constraints List<Property Map>
    Storage, network, and extensibility constraints to be applied when provisioning through the project.
    customProperties Map<String>
    Additional custom properties that may be used to extend the machine.
    deploymentId String
    ID of deployment associated with resource.
    description String
    Describes machine within the scope of your organization and is not propagated to the cloud.
    diskContentBase64 String
    Content of a disk, base64 encoded.
    encrypted Boolean
    Indicates whether block device should be encrypted or not.
    expandSnapshots Boolean
    Indicates whether snapshots of block devices should be included in the state. Applies only to first class block devices.
    name String
    Human-friendly name used as an identifier in APIs that support this option.
    persistent Boolean
    Indicates whether block device survives a delete action.
    purge Boolean
    Indicates if the disk must be completely destroyed or should be kept in the system. Valid only for block devices with ‘persistent’ set to true. Used to destroy the resource.
    sourceReference String
    URI to use for block device. Example: ami-0d4cfd66
    tags List<Property Map>
    Set of tag keys and values to apply to the resource instance. Example: [ { "key" : "vmware.enumeration.type", "value": "nebs_block" } ]
    timeouts Property Map

    Outputs

    All input properties are implicitly available as output properties. Additionally, the BlockDevice resource produces the following output properties:

    CreatedAt string
    Date when entity was created. Date and time format is ISO 8601 and UTC.
    ExternalId string
    External entity ID on provider side.
    ExternalRegionId string
    External regionId of resource.
    ExternalZoneId string
    External zoneId of resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    Links List<BlockDeviceLink>
    HATEOAS of the entity
    OrgId string
    ID of organization that block device snapshot belongs to.
    Owner string
    Email of block device snapshot owner.
    Snapshots List<BlockDeviceSnapshot>
    Represents a machine snapshot.
    Status string
    Status of block device.
    UpdatedAt string
    Date when entity was last updated. Date and time format is ISO 8601 and UTC.
    CreatedAt string
    Date when entity was created. Date and time format is ISO 8601 and UTC.
    ExternalId string
    External entity ID on provider side.
    ExternalRegionId string
    External regionId of resource.
    ExternalZoneId string
    External zoneId of resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    Links []BlockDeviceLink
    HATEOAS of the entity
    OrgId string
    ID of organization that block device snapshot belongs to.
    Owner string
    Email of block device snapshot owner.
    Snapshots []BlockDeviceSnapshotType
    Represents a machine snapshot.
    Status string
    Status of block device.
    UpdatedAt string
    Date when entity was last updated. Date and time format is ISO 8601 and UTC.
    createdAt String
    Date when entity was created. Date and time format is ISO 8601 and UTC.
    externalId String
    External entity ID on provider side.
    externalRegionId String
    External regionId of resource.
    externalZoneId String
    External zoneId of resource.
    id String
    The provider-assigned unique ID for this managed resource.
    links List<BlockDeviceLink>
    HATEOAS of the entity
    orgId String
    ID of organization that block device snapshot belongs to.
    owner String
    Email of block device snapshot owner.
    snapshots List<BlockDeviceSnapshot>
    Represents a machine snapshot.
    status String
    Status of block device.
    updatedAt String
    Date when entity was last updated. Date and time format is ISO 8601 and UTC.
    createdAt string
    Date when entity was created. Date and time format is ISO 8601 and UTC.
    externalId string
    External entity ID on provider side.
    externalRegionId string
    External regionId of resource.
    externalZoneId string
    External zoneId of resource.
    id string
    The provider-assigned unique ID for this managed resource.
    links BlockDeviceLink[]
    HATEOAS of the entity
    orgId string
    ID of organization that block device snapshot belongs to.
    owner string
    Email of block device snapshot owner.
    snapshots BlockDeviceSnapshot[]
    Represents a machine snapshot.
    status string
    Status of block device.
    updatedAt string
    Date when entity was last updated. Date and time format is ISO 8601 and UTC.
    created_at str
    Date when entity was created. Date and time format is ISO 8601 and UTC.
    external_id str
    External entity ID on provider side.
    external_region_id str
    External regionId of resource.
    external_zone_id str
    External zoneId of resource.
    id str
    The provider-assigned unique ID for this managed resource.
    links Sequence[BlockDeviceLink]
    HATEOAS of the entity
    org_id str
    ID of organization that block device snapshot belongs to.
    owner str
    Email of block device snapshot owner.
    snapshots Sequence[BlockDeviceSnapshot]
    Represents a machine snapshot.
    status str
    Status of block device.
    updated_at str
    Date when entity was last updated. Date and time format is ISO 8601 and UTC.
    createdAt String
    Date when entity was created. Date and time format is ISO 8601 and UTC.
    externalId String
    External entity ID on provider side.
    externalRegionId String
    External regionId of resource.
    externalZoneId String
    External zoneId of resource.
    id String
    The provider-assigned unique ID for this managed resource.
    links List<Property Map>
    HATEOAS of the entity
    orgId String
    ID of organization that block device snapshot belongs to.
    owner String
    Email of block device snapshot owner.
    snapshots List<Property Map>
    Represents a machine snapshot.
    status String
    Status of block device.
    updatedAt String
    Date when entity was last updated. Date and time format is ISO 8601 and UTC.

    Look up Existing BlockDevice Resource

    Get an existing BlockDevice 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?: BlockDeviceState, opts?: CustomResourceOptions): BlockDevice
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            block_device_id: Optional[str] = None,
            capacity_in_gb: Optional[float] = None,
            constraints: Optional[Sequence[BlockDeviceConstraintArgs]] = None,
            created_at: Optional[str] = None,
            custom_properties: Optional[Mapping[str, str]] = None,
            deployment_id: Optional[str] = None,
            description: Optional[str] = None,
            disk_content_base64: Optional[str] = None,
            encrypted: Optional[bool] = None,
            expand_snapshots: Optional[bool] = None,
            external_id: Optional[str] = None,
            external_region_id: Optional[str] = None,
            external_zone_id: Optional[str] = None,
            links: Optional[Sequence[BlockDeviceLinkArgs]] = None,
            name: Optional[str] = None,
            org_id: Optional[str] = None,
            owner: Optional[str] = None,
            persistent: Optional[bool] = None,
            project_id: Optional[str] = None,
            purge: Optional[bool] = None,
            snapshots: Optional[Sequence[BlockDeviceSnapshotArgs]] = None,
            source_reference: Optional[str] = None,
            status: Optional[str] = None,
            tags: Optional[Sequence[BlockDeviceTagArgs]] = None,
            timeouts: Optional[BlockDeviceTimeoutsArgs] = None,
            updated_at: Optional[str] = None) -> BlockDevice
    func GetBlockDevice(ctx *Context, name string, id IDInput, state *BlockDeviceState, opts ...ResourceOption) (*BlockDevice, error)
    public static BlockDevice Get(string name, Input<string> id, BlockDeviceState? state, CustomResourceOptions? opts = null)
    public static BlockDevice get(String name, Output<String> id, BlockDeviceState state, CustomResourceOptions options)
    resources:  _:    type: vra:BlockDevice    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:
    BlockDeviceId string
    ID of the block device snapshot.
    CapacityInGb double
    Capacity of block device in GB.
    Constraints List<BlockDeviceConstraint>
    Storage, network, and extensibility constraints to be applied when provisioning through the project.
    CreatedAt string
    Date when entity was created. Date and time format is ISO 8601 and UTC.
    CustomProperties Dictionary<string, string>
    Additional custom properties that may be used to extend the machine.
    DeploymentId string
    ID of deployment associated with resource.
    Description string
    Describes machine within the scope of your organization and is not propagated to the cloud.
    DiskContentBase64 string
    Content of a disk, base64 encoded.
    Encrypted bool
    Indicates whether block device should be encrypted or not.
    ExpandSnapshots bool
    Indicates whether snapshots of block devices should be included in the state. Applies only to first class block devices.
    ExternalId string
    External entity ID on provider side.
    ExternalRegionId string
    External regionId of resource.
    ExternalZoneId string
    External zoneId of resource.
    Links List<BlockDeviceLink>
    HATEOAS of the entity
    Name string
    Human-friendly name used as an identifier in APIs that support this option.
    OrgId string
    ID of organization that block device snapshot belongs to.
    Owner string
    Email of block device snapshot owner.
    Persistent bool
    Indicates whether block device survives a delete action.
    ProjectId string
    ID of project that current user belongs to.
    Purge bool
    Indicates if the disk must be completely destroyed or should be kept in the system. Valid only for block devices with ‘persistent’ set to true. Used to destroy the resource.
    Snapshots List<BlockDeviceSnapshot>
    Represents a machine snapshot.
    SourceReference string
    URI to use for block device. Example: ami-0d4cfd66
    Status string
    Status of block device.
    Tags List<BlockDeviceTag>
    Set of tag keys and values to apply to the resource instance. Example: [ { "key" : "vmware.enumeration.type", "value": "nebs_block" } ]
    Timeouts BlockDeviceTimeouts
    UpdatedAt string
    Date when entity was last updated. Date and time format is ISO 8601 and UTC.
    BlockDeviceId string
    ID of the block device snapshot.
    CapacityInGb float64
    Capacity of block device in GB.
    Constraints []BlockDeviceConstraintArgs
    Storage, network, and extensibility constraints to be applied when provisioning through the project.
    CreatedAt string
    Date when entity was created. Date and time format is ISO 8601 and UTC.
    CustomProperties map[string]string
    Additional custom properties that may be used to extend the machine.
    DeploymentId string
    ID of deployment associated with resource.
    Description string
    Describes machine within the scope of your organization and is not propagated to the cloud.
    DiskContentBase64 string
    Content of a disk, base64 encoded.
    Encrypted bool
    Indicates whether block device should be encrypted or not.
    ExpandSnapshots bool
    Indicates whether snapshots of block devices should be included in the state. Applies only to first class block devices.
    ExternalId string
    External entity ID on provider side.
    ExternalRegionId string
    External regionId of resource.
    ExternalZoneId string
    External zoneId of resource.
    Links []BlockDeviceLinkArgs
    HATEOAS of the entity
    Name string
    Human-friendly name used as an identifier in APIs that support this option.
    OrgId string
    ID of organization that block device snapshot belongs to.
    Owner string
    Email of block device snapshot owner.
    Persistent bool
    Indicates whether block device survives a delete action.
    ProjectId string
    ID of project that current user belongs to.
    Purge bool
    Indicates if the disk must be completely destroyed or should be kept in the system. Valid only for block devices with ‘persistent’ set to true. Used to destroy the resource.
    Snapshots []BlockDeviceSnapshotTypeArgs
    Represents a machine snapshot.
    SourceReference string
    URI to use for block device. Example: ami-0d4cfd66
    Status string
    Status of block device.
    Tags []BlockDeviceTagArgs
    Set of tag keys and values to apply to the resource instance. Example: [ { "key" : "vmware.enumeration.type", "value": "nebs_block" } ]
    Timeouts BlockDeviceTimeoutsArgs
    UpdatedAt string
    Date when entity was last updated. Date and time format is ISO 8601 and UTC.
    blockDeviceId String
    ID of the block device snapshot.
    capacityInGb Double
    Capacity of block device in GB.
    constraints List<BlockDeviceConstraint>
    Storage, network, and extensibility constraints to be applied when provisioning through the project.
    createdAt String
    Date when entity was created. Date and time format is ISO 8601 and UTC.
    customProperties Map<String,String>
    Additional custom properties that may be used to extend the machine.
    deploymentId String
    ID of deployment associated with resource.
    description String
    Describes machine within the scope of your organization and is not propagated to the cloud.
    diskContentBase64 String
    Content of a disk, base64 encoded.
    encrypted Boolean
    Indicates whether block device should be encrypted or not.
    expandSnapshots Boolean
    Indicates whether snapshots of block devices should be included in the state. Applies only to first class block devices.
    externalId String
    External entity ID on provider side.
    externalRegionId String
    External regionId of resource.
    externalZoneId String
    External zoneId of resource.
    links List<BlockDeviceLink>
    HATEOAS of the entity
    name String
    Human-friendly name used as an identifier in APIs that support this option.
    orgId String
    ID of organization that block device snapshot belongs to.
    owner String
    Email of block device snapshot owner.
    persistent Boolean
    Indicates whether block device survives a delete action.
    projectId String
    ID of project that current user belongs to.
    purge Boolean
    Indicates if the disk must be completely destroyed or should be kept in the system. Valid only for block devices with ‘persistent’ set to true. Used to destroy the resource.
    snapshots List<BlockDeviceSnapshot>
    Represents a machine snapshot.
    sourceReference String
    URI to use for block device. Example: ami-0d4cfd66
    status String
    Status of block device.
    tags List<BlockDeviceTag>
    Set of tag keys and values to apply to the resource instance. Example: [ { "key" : "vmware.enumeration.type", "value": "nebs_block" } ]
    timeouts BlockDeviceTimeouts
    updatedAt String
    Date when entity was last updated. Date and time format is ISO 8601 and UTC.
    blockDeviceId string
    ID of the block device snapshot.
    capacityInGb number
    Capacity of block device in GB.
    constraints BlockDeviceConstraint[]
    Storage, network, and extensibility constraints to be applied when provisioning through the project.
    createdAt string
    Date when entity was created. Date and time format is ISO 8601 and UTC.
    customProperties {[key: string]: string}
    Additional custom properties that may be used to extend the machine.
    deploymentId string
    ID of deployment associated with resource.
    description string
    Describes machine within the scope of your organization and is not propagated to the cloud.
    diskContentBase64 string
    Content of a disk, base64 encoded.
    encrypted boolean
    Indicates whether block device should be encrypted or not.
    expandSnapshots boolean
    Indicates whether snapshots of block devices should be included in the state. Applies only to first class block devices.
    externalId string
    External entity ID on provider side.
    externalRegionId string
    External regionId of resource.
    externalZoneId string
    External zoneId of resource.
    links BlockDeviceLink[]
    HATEOAS of the entity
    name string
    Human-friendly name used as an identifier in APIs that support this option.
    orgId string
    ID of organization that block device snapshot belongs to.
    owner string
    Email of block device snapshot owner.
    persistent boolean
    Indicates whether block device survives a delete action.
    projectId string
    ID of project that current user belongs to.
    purge boolean
    Indicates if the disk must be completely destroyed or should be kept in the system. Valid only for block devices with ‘persistent’ set to true. Used to destroy the resource.
    snapshots BlockDeviceSnapshot[]
    Represents a machine snapshot.
    sourceReference string
    URI to use for block device. Example: ami-0d4cfd66
    status string
    Status of block device.
    tags BlockDeviceTag[]
    Set of tag keys and values to apply to the resource instance. Example: [ { "key" : "vmware.enumeration.type", "value": "nebs_block" } ]
    timeouts BlockDeviceTimeouts
    updatedAt string
    Date when entity was last updated. Date and time format is ISO 8601 and UTC.
    block_device_id str
    ID of the block device snapshot.
    capacity_in_gb float
    Capacity of block device in GB.
    constraints Sequence[BlockDeviceConstraintArgs]
    Storage, network, and extensibility constraints to be applied when provisioning through the project.
    created_at str
    Date when entity was created. Date and time format is ISO 8601 and UTC.
    custom_properties Mapping[str, str]
    Additional custom properties that may be used to extend the machine.
    deployment_id str
    ID of deployment associated with resource.
    description str
    Describes machine within the scope of your organization and is not propagated to the cloud.
    disk_content_base64 str
    Content of a disk, base64 encoded.
    encrypted bool
    Indicates whether block device should be encrypted or not.
    expand_snapshots bool
    Indicates whether snapshots of block devices should be included in the state. Applies only to first class block devices.
    external_id str
    External entity ID on provider side.
    external_region_id str
    External regionId of resource.
    external_zone_id str
    External zoneId of resource.
    links Sequence[BlockDeviceLinkArgs]
    HATEOAS of the entity
    name str
    Human-friendly name used as an identifier in APIs that support this option.
    org_id str
    ID of organization that block device snapshot belongs to.
    owner str
    Email of block device snapshot owner.
    persistent bool
    Indicates whether block device survives a delete action.
    project_id str
    ID of project that current user belongs to.
    purge bool
    Indicates if the disk must be completely destroyed or should be kept in the system. Valid only for block devices with ‘persistent’ set to true. Used to destroy the resource.
    snapshots Sequence[BlockDeviceSnapshotArgs]
    Represents a machine snapshot.
    source_reference str
    URI to use for block device. Example: ami-0d4cfd66
    status str
    Status of block device.
    tags Sequence[BlockDeviceTagArgs]
    Set of tag keys and values to apply to the resource instance. Example: [ { "key" : "vmware.enumeration.type", "value": "nebs_block" } ]
    timeouts BlockDeviceTimeoutsArgs
    updated_at str
    Date when entity was last updated. Date and time format is ISO 8601 and UTC.
    blockDeviceId String
    ID of the block device snapshot.
    capacityInGb Number
    Capacity of block device in GB.
    constraints List<Property Map>
    Storage, network, and extensibility constraints to be applied when provisioning through the project.
    createdAt String
    Date when entity was created. Date and time format is ISO 8601 and UTC.
    customProperties Map<String>
    Additional custom properties that may be used to extend the machine.
    deploymentId String
    ID of deployment associated with resource.
    description String
    Describes machine within the scope of your organization and is not propagated to the cloud.
    diskContentBase64 String
    Content of a disk, base64 encoded.
    encrypted Boolean
    Indicates whether block device should be encrypted or not.
    expandSnapshots Boolean
    Indicates whether snapshots of block devices should be included in the state. Applies only to first class block devices.
    externalId String
    External entity ID on provider side.
    externalRegionId String
    External regionId of resource.
    externalZoneId String
    External zoneId of resource.
    links List<Property Map>
    HATEOAS of the entity
    name String
    Human-friendly name used as an identifier in APIs that support this option.
    orgId String
    ID of organization that block device snapshot belongs to.
    owner String
    Email of block device snapshot owner.
    persistent Boolean
    Indicates whether block device survives a delete action.
    projectId String
    ID of project that current user belongs to.
    purge Boolean
    Indicates if the disk must be completely destroyed or should be kept in the system. Valid only for block devices with ‘persistent’ set to true. Used to destroy the resource.
    snapshots List<Property Map>
    Represents a machine snapshot.
    sourceReference String
    URI to use for block device. Example: ami-0d4cfd66
    status String
    Status of block device.
    tags List<Property Map>
    Set of tag keys and values to apply to the resource instance. Example: [ { "key" : "vmware.enumeration.type", "value": "nebs_block" } ]
    timeouts Property Map
    updatedAt String
    Date when entity was last updated. Date and time format is ISO 8601 and UTC.

    Supporting Types

    BlockDeviceConstraint, BlockDeviceConstraintArgs

    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.
    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

    BlockDeviceSnapshot, BlockDeviceSnapshotArgs

    CreatedAt string
    Date when entity was created. Date and time format is ISO 8601 and UTC.
    Description string
    Describes machine within the scope of your organization and is not propagated to the cloud.
    Id string
    ID of the block device snapshot.
    IsCurrent bool
    Indicates whether snapshot on block device is current.
    Links List<BlockDeviceSnapshotLink>
    HATEOAS of the entity
    Name string
    Human-friendly name used as an identifier in APIs that support this option.
    OrgId string
    ID of organization that block device snapshot belongs to.
    Owner string
    Email of block device snapshot owner.
    UpdatedAt string
    Date when entity was last updated. Date and time format is ISO 8601 and UTC.
    CreatedAt string
    Date when entity was created. Date and time format is ISO 8601 and UTC.
    Description string
    Describes machine within the scope of your organization and is not propagated to the cloud.
    Id string
    ID of the block device snapshot.
    IsCurrent bool
    Indicates whether snapshot on block device is current.
    Links []BlockDeviceSnapshotLink
    HATEOAS of the entity
    Name string
    Human-friendly name used as an identifier in APIs that support this option.
    OrgId string
    ID of organization that block device snapshot belongs to.
    Owner string
    Email of block device snapshot owner.
    UpdatedAt string
    Date when entity was last updated. Date and time format is ISO 8601 and UTC.
    createdAt String
    Date when entity was created. Date and time format is ISO 8601 and UTC.
    description String
    Describes machine within the scope of your organization and is not propagated to the cloud.
    id String
    ID of the block device snapshot.
    isCurrent Boolean
    Indicates whether snapshot on block device is current.
    links List<BlockDeviceSnapshotLink>
    HATEOAS of the entity
    name String
    Human-friendly name used as an identifier in APIs that support this option.
    orgId String
    ID of organization that block device snapshot belongs to.
    owner String
    Email of block device snapshot owner.
    updatedAt String
    Date when entity was last updated. Date and time format is ISO 8601 and UTC.
    createdAt string
    Date when entity was created. Date and time format is ISO 8601 and UTC.
    description string
    Describes machine within the scope of your organization and is not propagated to the cloud.
    id string
    ID of the block device snapshot.
    isCurrent boolean
    Indicates whether snapshot on block device is current.
    links BlockDeviceSnapshotLink[]
    HATEOAS of the entity
    name string
    Human-friendly name used as an identifier in APIs that support this option.
    orgId string
    ID of organization that block device snapshot belongs to.
    owner string
    Email of block device snapshot owner.
    updatedAt string
    Date when entity was last updated. Date and time format is ISO 8601 and UTC.
    created_at str
    Date when entity was created. Date and time format is ISO 8601 and UTC.
    description str
    Describes machine within the scope of your organization and is not propagated to the cloud.
    id str
    ID of the block device snapshot.
    is_current bool
    Indicates whether snapshot on block device is current.
    links Sequence[BlockDeviceSnapshotLink]
    HATEOAS of the entity
    name str
    Human-friendly name used as an identifier in APIs that support this option.
    org_id str
    ID of organization that block device snapshot belongs to.
    owner str
    Email of block device snapshot owner.
    updated_at str
    Date when entity was last updated. Date and time format is ISO 8601 and UTC.
    createdAt String
    Date when entity was created. Date and time format is ISO 8601 and UTC.
    description String
    Describes machine within the scope of your organization and is not propagated to the cloud.
    id String
    ID of the block device snapshot.
    isCurrent Boolean
    Indicates whether snapshot on block device is current.
    links List<Property Map>
    HATEOAS of the entity
    name String
    Human-friendly name used as an identifier in APIs that support this option.
    orgId String
    ID of organization that block device snapshot belongs to.
    owner String
    Email of block device snapshot owner.
    updatedAt String
    Date when entity was last updated. Date and time format is ISO 8601 and UTC.
    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

    BlockDeviceTag, BlockDeviceTagArgs

    Key string
    Value string
    Key string
    Value string
    key String
    value String
    key string
    value string
    key str
    value str
    key String
    value String

    BlockDeviceTimeouts, BlockDeviceTimeoutsArgs

    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