vra.FabricDatastoreVsphere
Explore with Pulumi AI
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:
- Fabric
Datastore stringVsphere Id - List<Fabric
Datastore Vsphere Tag> - A set of tag keys and optional values that were set on this resource:
- Fabric
Datastore stringVsphere Id - []Fabric
Datastore Vsphere Tag Args - A set of tag keys and optional values that were set on this resource:
- fabric
Datastore StringVsphere Id - List<Fabric
Datastore Vsphere Tag> - A set of tag keys and optional values that were set on this resource:
- fabric
Datastore stringVsphere Id - Fabric
Datastore Vsphere Tag[] - A set of tag keys and optional values that were set on this resource:
- fabric_
datastore_ strvsphere_ id - Sequence[Fabric
Datastore Vsphere Tag Args] - A set of tag keys and optional values that were set on this resource:
- fabric
Datastore StringVsphere Id - 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:
- Cloud
Account List<string>Ids - Set of ids of the cloud accounts this entity belongs to.
- Created
At string - Date when the entity was created. The date is in ISO 8601 and UTC.
- Description string
- A human-friendly description.
- External
Id string - External entity Id on the provider side.
- External
Region stringId - Id of datacenter in which the datastore is present.
- Free
Size stringGb - Indicates free size available in datastore.
- Id string
- The provider-assigned unique ID for this managed resource.
- Links
List<Fabric
Datastore Vsphere Link> - HATEOAS of the entity
- Name string
- A human-friendly name used as an identifier for the vSphere fabric datastore resource instance.
- Org
Id 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.
- Updated
At string - Date when the entity was last updated. The date is ISO 8601 and UTC.
- Cloud
Account []stringIds - Set of ids of the cloud accounts this entity belongs to.
- Created
At string - Date when the entity was created. The date is in ISO 8601 and UTC.
- Description string
- A human-friendly description.
- External
Id string - External entity Id on the provider side.
- External
Region stringId - Id of datacenter in which the datastore is present.
- Free
Size stringGb - Indicates free size available in datastore.
- Id string
- The provider-assigned unique ID for this managed resource.
- Links
[]Fabric
Datastore Vsphere Link - HATEOAS of the entity
- Name string
- A human-friendly name used as an identifier for the vSphere fabric datastore resource instance.
- Org
Id 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.
- Updated
At string - Date when the entity was last updated. The date is ISO 8601 and UTC.
- cloud
Account List<String>Ids - Set of ids of the cloud accounts this entity belongs to.
- created
At String - Date when the entity was created. The date is in ISO 8601 and UTC.
- description String
- A human-friendly description.
- external
Id String - External entity Id on the provider side.
- external
Region StringId - Id of datacenter in which the datastore is present.
- free
Size StringGb - Indicates free size available in datastore.
- id String
- The provider-assigned unique ID for this managed resource.
- links
List<Fabric
Datastore Vsphere Link> - HATEOAS of the entity
- name String
- A human-friendly name used as an identifier for the vSphere fabric datastore resource instance.
- org
Id 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.
- updated
At String - Date when the entity was last updated. The date is ISO 8601 and UTC.
- cloud
Account string[]Ids - Set of ids of the cloud accounts this entity belongs to.
- created
At string - Date when the entity was created. The date is in ISO 8601 and UTC.
- description string
- A human-friendly description.
- external
Id string - External entity Id on the provider side.
- external
Region stringId - Id of datacenter in which the datastore is present.
- free
Size stringGb - Indicates free size available in datastore.
- id string
- The provider-assigned unique ID for this managed resource.
- links
Fabric
Datastore Vsphere Link[] - HATEOAS of the entity
- name string
- A human-friendly name used as an identifier for the vSphere fabric datastore resource instance.
- org
Id 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.
- updated
At string - Date when the entity was last updated. The date is ISO 8601 and UTC.
- cloud_
account_ Sequence[str]ids - 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_ strid - Id of datacenter in which the datastore is present.
- free_
size_ strgb - Indicates free size available in datastore.
- id str
- The provider-assigned unique ID for this managed resource.
- links
Sequence[Fabric
Datastore Vsphere Link] - 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.
- cloud
Account List<String>Ids - Set of ids of the cloud accounts this entity belongs to.
- created
At String - Date when the entity was created. The date is in ISO 8601 and UTC.
- description String
- A human-friendly description.
- external
Id String - External entity Id on the provider side.
- external
Region StringId - Id of datacenter in which the datastore is present.
- free
Size StringGb - 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.
- org
Id 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.
- updated
At 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.
- Cloud
Account List<string>Ids - Set of ids of the cloud accounts this entity belongs to.
- Created
At string - Date when the entity was created. The date is in ISO 8601 and UTC.
- Description string
- A human-friendly description.
- External
Id string - External entity Id on the provider side.
- External
Region stringId - Id of datacenter in which the datastore is present.
- Fabric
Datastore stringVsphere Id - Free
Size stringGb - Indicates free size available in datastore.
- Links
List<Fabric
Datastore Vsphere Link> - HATEOAS of the entity
- Name string
- A human-friendly name used as an identifier for the vSphere fabric datastore resource instance.
- Org
Id string - The id of the organization this entity belongs to.
- Owner string
- Email of the user that owns the entity.
- List<Fabric
Datastore Vsphere Tag> - A set of tag keys and optional values that were set on this resource:
- Type string
- Type of datastore.
- Updated
At string - Date when the entity was last updated. The date is ISO 8601 and UTC.
- Cloud
Account []stringIds - Set of ids of the cloud accounts this entity belongs to.
- Created
At string - Date when the entity was created. The date is in ISO 8601 and UTC.
- Description string
- A human-friendly description.
- External
Id string - External entity Id on the provider side.
- External
Region stringId - Id of datacenter in which the datastore is present.
- Fabric
Datastore stringVsphere Id - Free
Size stringGb - Indicates free size available in datastore.
- Links
[]Fabric
Datastore Vsphere Link Args - HATEOAS of the entity
- Name string
- A human-friendly name used as an identifier for the vSphere fabric datastore resource instance.
- Org
Id string - The id of the organization this entity belongs to.
- Owner string
- Email of the user that owns the entity.
- []Fabric
Datastore Vsphere Tag Args - A set of tag keys and optional values that were set on this resource:
- Type string
- Type of datastore.
- Updated
At string - Date when the entity was last updated. The date is ISO 8601 and UTC.
- cloud
Account List<String>Ids - Set of ids of the cloud accounts this entity belongs to.
- created
At String - Date when the entity was created. The date is in ISO 8601 and UTC.
- description String
- A human-friendly description.
- external
Id String - External entity Id on the provider side.
- external
Region StringId - Id of datacenter in which the datastore is present.
- fabric
Datastore StringVsphere Id - free
Size StringGb - Indicates free size available in datastore.
- links
List<Fabric
Datastore Vsphere Link> - HATEOAS of the entity
- name String
- A human-friendly name used as an identifier for the vSphere fabric datastore resource instance.
- org
Id String - The id of the organization this entity belongs to.
- owner String
- Email of the user that owns the entity.
- List<Fabric
Datastore Vsphere Tag> - A set of tag keys and optional values that were set on this resource:
- type String
- Type of datastore.
- updated
At String - Date when the entity was last updated. The date is ISO 8601 and UTC.
- cloud
Account string[]Ids - Set of ids of the cloud accounts this entity belongs to.
- created
At string - Date when the entity was created. The date is in ISO 8601 and UTC.
- description string
- A human-friendly description.
- external
Id string - External entity Id on the provider side.
- external
Region stringId - Id of datacenter in which the datastore is present.
- fabric
Datastore stringVsphere Id - free
Size stringGb - Indicates free size available in datastore.
- links
Fabric
Datastore Vsphere Link[] - HATEOAS of the entity
- name string
- A human-friendly name used as an identifier for the vSphere fabric datastore resource instance.
- org
Id string - The id of the organization this entity belongs to.
- owner string
- Email of the user that owns the entity.
- Fabric
Datastore Vsphere Tag[] - A set of tag keys and optional values that were set on this resource:
- type string
- Type of datastore.
- updated
At string - Date when the entity was last updated. The date is ISO 8601 and UTC.
- cloud_
account_ Sequence[str]ids - 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_ strid - Id of datacenter in which the datastore is present.
- fabric_
datastore_ strvsphere_ id - free_
size_ strgb - Indicates free size available in datastore.
- links
Sequence[Fabric
Datastore Vsphere Link Args] - 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.
- Sequence[Fabric
Datastore Vsphere Tag Args] - 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.
- cloud
Account List<String>Ids - Set of ids of the cloud accounts this entity belongs to.
- created
At String - Date when the entity was created. The date is in ISO 8601 and UTC.
- description String
- A human-friendly description.
- external
Id String - External entity Id on the provider side.
- external
Region StringId - Id of datacenter in which the datastore is present.
- fabric
Datastore StringVsphere Id - free
Size StringGb - 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.
- org
Id String - The id of the organization this entity belongs to.
- owner String
- Email of the user that owns the entity.
- List<Property Map>
- A set of tag keys and optional values that were set on this resource:
- type String
- Type of datastore.
- updated
At String - Date when the entity was last updated. The date is ISO 8601 and UTC.
Supporting Types
FabricDatastoreVsphereLink, FabricDatastoreVsphereLinkArgs
FabricDatastoreVsphereTag, FabricDatastoreVsphereTagArgs
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.