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

vra.FabricDatastoreVsphere

Explore with Pulumi AI

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

    Updates a VMware vRealize Automation fabric_datastore_vsphere resource.

    Example Usage

    S

    You cannot create a fabric datastore vSphere resource, however you can import it using the command specified in the import section below.

    Once a resource is imported, you can update it as shown below:

    import * as pulumi from "@pulumi/pulumi";
    import * as vra from "@pulumi/vra";
    
    const _this = new vra.FabricDatastoreVsphere("this", {tags: [{
        key: "foo",
        value: "bar",
    }]});
    
    import pulumi
    import pulumi_vra as vra
    
    this = vra.FabricDatastoreVsphere("this", tags=[{
        "key": "foo",
        "value": "bar",
    }])
    
    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.NewFabricDatastoreVsphere(ctx, "this", &vra.FabricDatastoreVsphereArgs{
    			Tags: vra.FabricDatastoreVsphereTagArray{
    				&vra.FabricDatastoreVsphereTagArgs{
    					Key:   pulumi.String("foo"),
    					Value: pulumi.String("bar"),
    				},
    			},
    		})
    		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.FabricDatastoreVsphere("this", new()
        {
            Tags = new[]
            {
                new Vra.Inputs.FabricDatastoreVsphereTagArgs
                {
                    Key = "foo",
                    Value = "bar",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.vra.FabricDatastoreVsphere;
    import com.pulumi.vra.FabricDatastoreVsphereArgs;
    import com.pulumi.vra.inputs.FabricDatastoreVsphereTagArgs;
    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 FabricDatastoreVsphere("this", FabricDatastoreVsphereArgs.builder()
                .tags(FabricDatastoreVsphereTagArgs.builder()
                    .key("foo")
                    .value("bar")
                    .build())
                .build());
    
        }
    }
    
    resources:
      this:
        type: vra:FabricDatastoreVsphere
        properties:
          tags:
            - key: foo
              value: bar
    

    Create FabricDatastoreVsphere Resource

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

    Constructor syntax

    new FabricDatastoreVsphere(name: string, args?: FabricDatastoreVsphereArgs, opts?: CustomResourceOptions);
    @overload
    def FabricDatastoreVsphere(resource_name: str,
                               args: Optional[FabricDatastoreVsphereArgs] = None,
                               opts: Optional[ResourceOptions] = None)
    
    @overload
    def FabricDatastoreVsphere(resource_name: str,
                               opts: Optional[ResourceOptions] = None,
                               fabric_datastore_vsphere_id: Optional[str] = None,
                               tags: Optional[Sequence[FabricDatastoreVsphereTagArgs]] = None)
    func NewFabricDatastoreVsphere(ctx *Context, name string, args *FabricDatastoreVsphereArgs, opts ...ResourceOption) (*FabricDatastoreVsphere, error)
    public FabricDatastoreVsphere(string name, FabricDatastoreVsphereArgs? args = null, CustomResourceOptions? opts = null)
    public FabricDatastoreVsphere(String name, FabricDatastoreVsphereArgs args)
    public FabricDatastoreVsphere(String name, FabricDatastoreVsphereArgs args, CustomResourceOptions options)
    
    type: vra:FabricDatastoreVsphere
    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 FabricDatastoreVsphereArgs
    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 FabricDatastoreVsphereArgs
    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 FabricDatastoreVsphereArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args FabricDatastoreVsphereArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args FabricDatastoreVsphereArgs
    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 fabricDatastoreVsphereResource = new Vra.FabricDatastoreVsphere("fabricDatastoreVsphereResource", new()
    {
        FabricDatastoreVsphereId = "string",
        Tags = new[]
        {
            new Vra.Inputs.FabricDatastoreVsphereTagArgs
            {
                Key = "string",
                Value = "string",
            },
        },
    });
    
    example, err := vra.NewFabricDatastoreVsphere(ctx, "fabricDatastoreVsphereResource", &vra.FabricDatastoreVsphereArgs{
    	FabricDatastoreVsphereId: pulumi.String("string"),
    	Tags: vra.FabricDatastoreVsphereTagArray{
    		&vra.FabricDatastoreVsphereTagArgs{
    			Key:   pulumi.String("string"),
    			Value: pulumi.String("string"),
    		},
    	},
    })
    
    var fabricDatastoreVsphereResource = new FabricDatastoreVsphere("fabricDatastoreVsphereResource", FabricDatastoreVsphereArgs.builder()
        .fabricDatastoreVsphereId("string")
        .tags(FabricDatastoreVsphereTagArgs.builder()
            .key("string")
            .value("string")
            .build())
        .build());
    
    fabric_datastore_vsphere_resource = vra.FabricDatastoreVsphere("fabricDatastoreVsphereResource",
        fabric_datastore_vsphere_id="string",
        tags=[{
            "key": "string",
            "value": "string",
        }])
    
    const fabricDatastoreVsphereResource = new vra.FabricDatastoreVsphere("fabricDatastoreVsphereResource", {
        fabricDatastoreVsphereId: "string",
        tags: [{
            key: "string",
            value: "string",
        }],
    });
    
    type: vra:FabricDatastoreVsphere
    properties:
        fabricDatastoreVsphereId: string
        tags:
            - key: string
              value: string
    

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

    FabricDatastoreVsphereId string
    Tags List<FabricDatastoreVsphereTag>
    A set of tag keys and optional values that were set on this resource:
    FabricDatastoreVsphereId string
    Tags []FabricDatastoreVsphereTagArgs
    A set of tag keys and optional values that were set on this resource:
    fabricDatastoreVsphereId String
    tags List<FabricDatastoreVsphereTag>
    A set of tag keys and optional values that were set on this resource:
    fabricDatastoreVsphereId string
    tags FabricDatastoreVsphereTag[]
    A set of tag keys and optional values that were set on this resource:
    fabric_datastore_vsphere_id str
    tags Sequence[FabricDatastoreVsphereTagArgs]
    A set of tag keys and optional values that were set on this resource:
    fabricDatastoreVsphereId String
    tags List<Property Map>
    A set of tag keys and optional values that were set on this resource:

    Outputs

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

    CloudAccountIds List<string>
    Set of ids of the cloud accounts this entity belongs to.
    CreatedAt string
    Date when the entity was created. The date is in ISO 8601 and UTC.
    Description string
    A human-friendly description.
    ExternalId string
    External entity Id on the provider side.
    ExternalRegionId string
    Id of datacenter in which the datastore is present.
    FreeSizeGb string
    Indicates free size available in datastore.
    Id string
    The provider-assigned unique ID for this managed resource.
    Links List<FabricDatastoreVsphereLink>
    HATEOAS of the entity
    Name string
    A human-friendly name used as an identifier for the vSphere fabric datastore resource instance.
    OrgId string
    The id of the organization this entity belongs to.
    Owner string
    Email of the user that owns the entity.
    Type string
    Type of datastore.
    UpdatedAt string
    Date when the entity was last updated. The date is ISO 8601 and UTC.
    CloudAccountIds []string
    Set of ids of the cloud accounts this entity belongs to.
    CreatedAt string
    Date when the entity was created. The date is in ISO 8601 and UTC.
    Description string
    A human-friendly description.
    ExternalId string
    External entity Id on the provider side.
    ExternalRegionId string
    Id of datacenter in which the datastore is present.
    FreeSizeGb string
    Indicates free size available in datastore.
    Id string
    The provider-assigned unique ID for this managed resource.
    Links []FabricDatastoreVsphereLink
    HATEOAS of the entity
    Name string
    A human-friendly name used as an identifier for the vSphere fabric datastore resource instance.
    OrgId string
    The id of the organization this entity belongs to.
    Owner string
    Email of the user that owns the entity.
    Type string
    Type of datastore.
    UpdatedAt string
    Date when the entity was last updated. The date is ISO 8601 and UTC.
    cloudAccountIds List<String>
    Set of ids of the cloud accounts this entity belongs to.
    createdAt String
    Date when the entity was created. The date is in ISO 8601 and UTC.
    description String
    A human-friendly description.
    externalId String
    External entity Id on the provider side.
    externalRegionId String
    Id of datacenter in which the datastore is present.
    freeSizeGb String
    Indicates free size available in datastore.
    id String
    The provider-assigned unique ID for this managed resource.
    links List<FabricDatastoreVsphereLink>
    HATEOAS of the entity
    name String
    A human-friendly name used as an identifier for the vSphere fabric datastore resource instance.
    orgId String
    The id of the organization this entity belongs to.
    owner String
    Email of the user that owns the entity.
    type String
    Type of datastore.
    updatedAt String
    Date when the entity was last updated. The date is ISO 8601 and UTC.
    cloudAccountIds string[]
    Set of ids of the cloud accounts this entity belongs to.
    createdAt string
    Date when the entity was created. The date is in ISO 8601 and UTC.
    description string
    A human-friendly description.
    externalId string
    External entity Id on the provider side.
    externalRegionId string
    Id of datacenter in which the datastore is present.
    freeSizeGb string
    Indicates free size available in datastore.
    id string
    The provider-assigned unique ID for this managed resource.
    links FabricDatastoreVsphereLink[]
    HATEOAS of the entity
    name string
    A human-friendly name used as an identifier for the vSphere fabric datastore resource instance.
    orgId string
    The id of the organization this entity belongs to.
    owner string
    Email of the user that owns the entity.
    type string
    Type of datastore.
    updatedAt string
    Date when the entity was last updated. The date is ISO 8601 and UTC.
    cloud_account_ids Sequence[str]
    Set of ids of the cloud accounts this entity belongs to.
    created_at str
    Date when the entity was created. The date is in ISO 8601 and UTC.
    description str
    A human-friendly description.
    external_id str
    External entity Id on the provider side.
    external_region_id str
    Id of datacenter in which the datastore is present.
    free_size_gb str
    Indicates free size available in datastore.
    id str
    The provider-assigned unique ID for this managed resource.
    links Sequence[FabricDatastoreVsphereLink]
    HATEOAS of the entity
    name str
    A human-friendly name used as an identifier for the vSphere fabric datastore resource instance.
    org_id str
    The id of the organization this entity belongs to.
    owner str
    Email of the user that owns the entity.
    type str
    Type of datastore.
    updated_at str
    Date when the entity was last updated. The date is ISO 8601 and UTC.
    cloudAccountIds List<String>
    Set of ids of the cloud accounts this entity belongs to.
    createdAt String
    Date when the entity was created. The date is in ISO 8601 and UTC.
    description String
    A human-friendly description.
    externalId String
    External entity Id on the provider side.
    externalRegionId String
    Id of datacenter in which the datastore is present.
    freeSizeGb String
    Indicates free size available in datastore.
    id String
    The provider-assigned unique ID for this managed resource.
    links List<Property Map>
    HATEOAS of the entity
    name String
    A human-friendly name used as an identifier for the vSphere fabric datastore resource instance.
    orgId String
    The id of the organization this entity belongs to.
    owner String
    Email of the user that owns the entity.
    type String
    Type of datastore.
    updatedAt String
    Date when the entity was last updated. The date is ISO 8601 and UTC.

    Look up Existing FabricDatastoreVsphere Resource

    Get an existing FabricDatastoreVsphere 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?: FabricDatastoreVsphereState, opts?: CustomResourceOptions): FabricDatastoreVsphere
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            cloud_account_ids: Optional[Sequence[str]] = None,
            created_at: Optional[str] = None,
            description: Optional[str] = None,
            external_id: Optional[str] = None,
            external_region_id: Optional[str] = None,
            fabric_datastore_vsphere_id: Optional[str] = None,
            free_size_gb: Optional[str] = None,
            links: Optional[Sequence[FabricDatastoreVsphereLinkArgs]] = None,
            name: Optional[str] = None,
            org_id: Optional[str] = None,
            owner: Optional[str] = None,
            tags: Optional[Sequence[FabricDatastoreVsphereTagArgs]] = None,
            type: Optional[str] = None,
            updated_at: Optional[str] = None) -> FabricDatastoreVsphere
    func GetFabricDatastoreVsphere(ctx *Context, name string, id IDInput, state *FabricDatastoreVsphereState, opts ...ResourceOption) (*FabricDatastoreVsphere, error)
    public static FabricDatastoreVsphere Get(string name, Input<string> id, FabricDatastoreVsphereState? state, CustomResourceOptions? opts = null)
    public static FabricDatastoreVsphere get(String name, Output<String> id, FabricDatastoreVsphereState state, CustomResourceOptions options)
    resources:  _:    type: vra:FabricDatastoreVsphere    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:
    CloudAccountIds List<string>
    Set of ids of the cloud accounts this entity belongs to.
    CreatedAt string
    Date when the entity was created. The date is in ISO 8601 and UTC.
    Description string
    A human-friendly description.
    ExternalId string
    External entity Id on the provider side.
    ExternalRegionId string
    Id of datacenter in which the datastore is present.
    FabricDatastoreVsphereId string
    FreeSizeGb string
    Indicates free size available in datastore.
    Links List<FabricDatastoreVsphereLink>
    HATEOAS of the entity
    Name string
    A human-friendly name used as an identifier for the vSphere fabric datastore resource instance.
    OrgId string
    The id of the organization this entity belongs to.
    Owner string
    Email of the user that owns the entity.
    Tags List<FabricDatastoreVsphereTag>
    A set of tag keys and optional values that were set on this resource:
    Type string
    Type of datastore.
    UpdatedAt string
    Date when the entity was last updated. The date is ISO 8601 and UTC.
    CloudAccountIds []string
    Set of ids of the cloud accounts this entity belongs to.
    CreatedAt string
    Date when the entity was created. The date is in ISO 8601 and UTC.
    Description string
    A human-friendly description.
    ExternalId string
    External entity Id on the provider side.
    ExternalRegionId string
    Id of datacenter in which the datastore is present.
    FabricDatastoreVsphereId string
    FreeSizeGb string
    Indicates free size available in datastore.
    Links []FabricDatastoreVsphereLinkArgs
    HATEOAS of the entity
    Name string
    A human-friendly name used as an identifier for the vSphere fabric datastore resource instance.
    OrgId string
    The id of the organization this entity belongs to.
    Owner string
    Email of the user that owns the entity.
    Tags []FabricDatastoreVsphereTagArgs
    A set of tag keys and optional values that were set on this resource:
    Type string
    Type of datastore.
    UpdatedAt string
    Date when the entity was last updated. The date is ISO 8601 and UTC.
    cloudAccountIds List<String>
    Set of ids of the cloud accounts this entity belongs to.
    createdAt String
    Date when the entity was created. The date is in ISO 8601 and UTC.
    description String
    A human-friendly description.
    externalId String
    External entity Id on the provider side.
    externalRegionId String
    Id of datacenter in which the datastore is present.
    fabricDatastoreVsphereId String
    freeSizeGb String
    Indicates free size available in datastore.
    links List<FabricDatastoreVsphereLink>
    HATEOAS of the entity
    name String
    A human-friendly name used as an identifier for the vSphere fabric datastore resource instance.
    orgId String
    The id of the organization this entity belongs to.
    owner String
    Email of the user that owns the entity.
    tags List<FabricDatastoreVsphereTag>
    A set of tag keys and optional values that were set on this resource:
    type String
    Type of datastore.
    updatedAt String
    Date when the entity was last updated. The date is ISO 8601 and UTC.
    cloudAccountIds string[]
    Set of ids of the cloud accounts this entity belongs to.
    createdAt string
    Date when the entity was created. The date is in ISO 8601 and UTC.
    description string
    A human-friendly description.
    externalId string
    External entity Id on the provider side.
    externalRegionId string
    Id of datacenter in which the datastore is present.
    fabricDatastoreVsphereId string
    freeSizeGb string
    Indicates free size available in datastore.
    links FabricDatastoreVsphereLink[]
    HATEOAS of the entity
    name string
    A human-friendly name used as an identifier for the vSphere fabric datastore resource instance.
    orgId string
    The id of the organization this entity belongs to.
    owner string
    Email of the user that owns the entity.
    tags FabricDatastoreVsphereTag[]
    A set of tag keys and optional values that were set on this resource:
    type string
    Type of datastore.
    updatedAt string
    Date when the entity was last updated. The date is ISO 8601 and UTC.
    cloud_account_ids Sequence[str]
    Set of ids of the cloud accounts this entity belongs to.
    created_at str
    Date when the entity was created. The date is in ISO 8601 and UTC.
    description str
    A human-friendly description.
    external_id str
    External entity Id on the provider side.
    external_region_id str
    Id of datacenter in which the datastore is present.
    fabric_datastore_vsphere_id str
    free_size_gb str
    Indicates free size available in datastore.
    links Sequence[FabricDatastoreVsphereLinkArgs]
    HATEOAS of the entity
    name str
    A human-friendly name used as an identifier for the vSphere fabric datastore resource instance.
    org_id str
    The id of the organization this entity belongs to.
    owner str
    Email of the user that owns the entity.
    tags Sequence[FabricDatastoreVsphereTagArgs]
    A set of tag keys and optional values that were set on this resource:
    type str
    Type of datastore.
    updated_at str
    Date when the entity was last updated. The date is ISO 8601 and UTC.
    cloudAccountIds List<String>
    Set of ids of the cloud accounts this entity belongs to.
    createdAt String
    Date when the entity was created. The date is in ISO 8601 and UTC.
    description String
    A human-friendly description.
    externalId String
    External entity Id on the provider side.
    externalRegionId String
    Id of datacenter in which the datastore is present.
    fabricDatastoreVsphereId String
    freeSizeGb String
    Indicates free size available in datastore.
    links List<Property Map>
    HATEOAS of the entity
    name String
    A human-friendly name used as an identifier for the vSphere fabric datastore resource instance.
    orgId String
    The id of the organization this entity belongs to.
    owner String
    Email of the user that owns the entity.
    tags List<Property Map>
    A set of tag keys and optional values that were set on this resource:
    type String
    Type of datastore.
    updatedAt String
    Date when the entity was last updated. The date is ISO 8601 and UTC.

    Supporting Types

    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

    FabricDatastoreVsphereTag, FabricDatastoreVsphereTagArgs

    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.

    Import

    To import the fabric datastore vSphere resource, use the ID as in the following example:

    $ pulumi import vra:index/fabricDatastoreVsphere:FabricDatastoreVsphere this 8e0c9a4c-3ab8-48e8-b9d5-0751c871e282
    

    To learn more about importing existing cloud resources, see Importing resources.

    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