vra.FabricCompute
Explore with Pulumi AI
Updates a VMware vRealize Automation fabric_compute resource.
Example Usage
S
You cannot create a fabric compute 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.FabricCompute("this", {tags: [{
key: "foo",
value: "bar",
}]});
import pulumi
import pulumi_vra as vra
this = vra.FabricCompute("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.NewFabricCompute(ctx, "this", &vra.FabricComputeArgs{
Tags: vra.FabricComputeTagArray{
&vra.FabricComputeTagArgs{
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.FabricCompute("this", new()
{
Tags = new[]
{
new Vra.Inputs.FabricComputeTagArgs
{
Key = "foo",
Value = "bar",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vra.FabricCompute;
import com.pulumi.vra.FabricComputeArgs;
import com.pulumi.vra.inputs.FabricComputeTagArgs;
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 FabricCompute("this", FabricComputeArgs.builder()
.tags(FabricComputeTagArgs.builder()
.key("foo")
.value("bar")
.build())
.build());
}
}
resources:
this:
type: vra:FabricCompute
properties:
tags:
- key: foo
value: bar
Create FabricCompute Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new FabricCompute(name: string, args?: FabricComputeArgs, opts?: CustomResourceOptions);
@overload
def FabricCompute(resource_name: str,
args: Optional[FabricComputeArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def FabricCompute(resource_name: str,
opts: Optional[ResourceOptions] = None,
fabric_compute_id: Optional[str] = None,
tags: Optional[Sequence[FabricComputeTagArgs]] = None)
func NewFabricCompute(ctx *Context, name string, args *FabricComputeArgs, opts ...ResourceOption) (*FabricCompute, error)
public FabricCompute(string name, FabricComputeArgs? args = null, CustomResourceOptions? opts = null)
public FabricCompute(String name, FabricComputeArgs args)
public FabricCompute(String name, FabricComputeArgs args, CustomResourceOptions options)
type: vra:FabricCompute
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 FabricComputeArgs
- 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 FabricComputeArgs
- 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 FabricComputeArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FabricComputeArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args FabricComputeArgs
- 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 fabricComputeResource = new Vra.FabricCompute("fabricComputeResource", new()
{
FabricComputeId = "string",
Tags = new[]
{
new Vra.Inputs.FabricComputeTagArgs
{
Key = "string",
Value = "string",
},
},
});
example, err := vra.NewFabricCompute(ctx, "fabricComputeResource", &vra.FabricComputeArgs{
FabricComputeId: pulumi.String("string"),
Tags: vra.FabricComputeTagArray{
&vra.FabricComputeTagArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
})
var fabricComputeResource = new FabricCompute("fabricComputeResource", FabricComputeArgs.builder()
.fabricComputeId("string")
.tags(FabricComputeTagArgs.builder()
.key("string")
.value("string")
.build())
.build());
fabric_compute_resource = vra.FabricCompute("fabricComputeResource",
fabric_compute_id="string",
tags=[{
"key": "string",
"value": "string",
}])
const fabricComputeResource = new vra.FabricCompute("fabricComputeResource", {
fabricComputeId: "string",
tags: [{
key: "string",
value: "string",
}],
});
type: vra:FabricCompute
properties:
fabricComputeId: string
tags:
- key: string
value: string
FabricCompute 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 FabricCompute resource accepts the following input properties:
- Fabric
Compute stringId - List<Fabric
Compute Tag> - A set of tag keys and optional values that were set on this resource:
- Fabric
Compute stringId - []Fabric
Compute Tag Args - A set of tag keys and optional values that were set on this resource:
- fabric
Compute StringId - List<Fabric
Compute Tag> - A set of tag keys and optional values that were set on this resource:
- fabric
Compute stringId - Fabric
Compute Tag[] - A set of tag keys and optional values that were set on this resource:
- fabric_
compute_ strid - Sequence[Fabric
Compute Tag Args] - A set of tag keys and optional values that were set on this resource:
- fabric
Compute StringId - 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 FabricCompute resource produces the following output properties:
- Created
At string - Date when the entity was created. The date is in ISO 8601 and UTC.
- Custom
Properties Dictionary<string, string> - A list of key value pair of custom properties for the fabric compute resource.
- Description string
- A human-friendly description.
- External
Id string - The id of the external entity on the provider side.
- External
Region stringId - The external region id of the fabric compute.
- External
Zone stringId - The external zone id of the fabric compute.
- Id string
- The provider-assigned unique ID for this managed resource.
- Lifecycle
State string - Lifecycle status of the compute instance.
- Links
List<Fabric
Compute Link> - HATEOAS of the entity.
- Name string
- A human-friendly name used as an identifier for the fabric compute resource instance.
- Org
Id string - The id of the organization this entity belongs to.
- Owner string
- Email of the user that owns the entity.
- Power
State string - Power state of fabric compute instance.
- Type string
- Type of the fabric compute instance.
- Updated
At string - Date when the entity was last updated. The date is ISO 8601 and UTC.
- Created
At string - Date when the entity was created. The date is in ISO 8601 and UTC.
- Custom
Properties map[string]string - A list of key value pair of custom properties for the fabric compute resource.
- Description string
- A human-friendly description.
- External
Id string - The id of the external entity on the provider side.
- External
Region stringId - The external region id of the fabric compute.
- External
Zone stringId - The external zone id of the fabric compute.
- Id string
- The provider-assigned unique ID for this managed resource.
- Lifecycle
State string - Lifecycle status of the compute instance.
- Links
[]Fabric
Compute Link - HATEOAS of the entity.
- Name string
- A human-friendly name used as an identifier for the fabric compute resource instance.
- Org
Id string - The id of the organization this entity belongs to.
- Owner string
- Email of the user that owns the entity.
- Power
State string - Power state of fabric compute instance.
- Type string
- Type of the fabric compute instance.
- Updated
At string - Date when the entity was last updated. The date is ISO 8601 and UTC.
- created
At String - Date when the entity was created. The date is in ISO 8601 and UTC.
- custom
Properties Map<String,String> - A list of key value pair of custom properties for the fabric compute resource.
- description String
- A human-friendly description.
- external
Id String - The id of the external entity on the provider side.
- external
Region StringId - The external region id of the fabric compute.
- external
Zone StringId - The external zone id of the fabric compute.
- id String
- The provider-assigned unique ID for this managed resource.
- lifecycle
State String - Lifecycle status of the compute instance.
- links
List<Fabric
Compute Link> - HATEOAS of the entity.
- name String
- A human-friendly name used as an identifier for the fabric compute resource instance.
- org
Id String - The id of the organization this entity belongs to.
- owner String
- Email of the user that owns the entity.
- power
State String - Power state of fabric compute instance.
- type String
- Type of the fabric compute instance.
- updated
At String - Date when the entity was last updated. The date is ISO 8601 and UTC.
- created
At string - Date when the entity was created. The date is in ISO 8601 and UTC.
- custom
Properties {[key: string]: string} - A list of key value pair of custom properties for the fabric compute resource.
- description string
- A human-friendly description.
- external
Id string - The id of the external entity on the provider side.
- external
Region stringId - The external region id of the fabric compute.
- external
Zone stringId - The external zone id of the fabric compute.
- id string
- The provider-assigned unique ID for this managed resource.
- lifecycle
State string - Lifecycle status of the compute instance.
- links
Fabric
Compute Link[] - HATEOAS of the entity.
- name string
- A human-friendly name used as an identifier for the fabric compute resource instance.
- org
Id string - The id of the organization this entity belongs to.
- owner string
- Email of the user that owns the entity.
- power
State string - Power state of fabric compute instance.
- type string
- Type of the fabric compute instance.
- updated
At string - Date when the entity was last updated. The date is ISO 8601 and UTC.
- created_
at str - Date when the entity was created. The date is in ISO 8601 and UTC.
- custom_
properties Mapping[str, str] - A list of key value pair of custom properties for the fabric compute resource.
- description str
- A human-friendly description.
- external_
id str - The id of the external entity on the provider side.
- external_
region_ strid - The external region id of the fabric compute.
- external_
zone_ strid - The external zone id of the fabric compute.
- id str
- The provider-assigned unique ID for this managed resource.
- lifecycle_
state str - Lifecycle status of the compute instance.
- links
Sequence[Fabric
Compute Link] - HATEOAS of the entity.
- name str
- A human-friendly name used as an identifier for the fabric compute resource instance.
- org_
id str - The id of the organization this entity belongs to.
- owner str
- Email of the user that owns the entity.
- power_
state str - Power state of fabric compute instance.
- type str
- Type of the fabric compute instance.
- updated_
at str - Date when the entity was last updated. The date is ISO 8601 and UTC.
- created
At String - Date when the entity was created. The date is in ISO 8601 and UTC.
- custom
Properties Map<String> - A list of key value pair of custom properties for the fabric compute resource.
- description String
- A human-friendly description.
- external
Id String - The id of the external entity on the provider side.
- external
Region StringId - The external region id of the fabric compute.
- external
Zone StringId - The external zone id of the fabric compute.
- id String
- The provider-assigned unique ID for this managed resource.
- lifecycle
State String - Lifecycle status of the compute instance.
- links List<Property Map>
- HATEOAS of the entity.
- name String
- A human-friendly name used as an identifier for the fabric compute resource instance.
- org
Id String - The id of the organization this entity belongs to.
- owner String
- Email of the user that owns the entity.
- power
State String - Power state of fabric compute instance.
- type String
- Type of the fabric compute instance.
- updated
At String - Date when the entity was last updated. The date is ISO 8601 and UTC.
Look up Existing FabricCompute Resource
Get an existing FabricCompute 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?: FabricComputeState, opts?: CustomResourceOptions): FabricCompute
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
created_at: Optional[str] = None,
custom_properties: Optional[Mapping[str, str]] = None,
description: Optional[str] = None,
external_id: Optional[str] = None,
external_region_id: Optional[str] = None,
external_zone_id: Optional[str] = None,
fabric_compute_id: Optional[str] = None,
lifecycle_state: Optional[str] = None,
links: Optional[Sequence[FabricComputeLinkArgs]] = None,
name: Optional[str] = None,
org_id: Optional[str] = None,
owner: Optional[str] = None,
power_state: Optional[str] = None,
tags: Optional[Sequence[FabricComputeTagArgs]] = None,
type: Optional[str] = None,
updated_at: Optional[str] = None) -> FabricCompute
func GetFabricCompute(ctx *Context, name string, id IDInput, state *FabricComputeState, opts ...ResourceOption) (*FabricCompute, error)
public static FabricCompute Get(string name, Input<string> id, FabricComputeState? state, CustomResourceOptions? opts = null)
public static FabricCompute get(String name, Output<String> id, FabricComputeState state, CustomResourceOptions options)
resources: _: type: vra:FabricCompute 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.
- Created
At string - Date when the entity was created. The date is in ISO 8601 and UTC.
- Custom
Properties Dictionary<string, string> - A list of key value pair of custom properties for the fabric compute resource.
- Description string
- A human-friendly description.
- External
Id string - The id of the external entity on the provider side.
- External
Region stringId - The external region id of the fabric compute.
- External
Zone stringId - The external zone id of the fabric compute.
- Fabric
Compute stringId - Lifecycle
State string - Lifecycle status of the compute instance.
- Links
List<Fabric
Compute Link> - HATEOAS of the entity.
- Name string
- A human-friendly name used as an identifier for the fabric compute resource instance.
- Org
Id string - The id of the organization this entity belongs to.
- Owner string
- Email of the user that owns the entity.
- Power
State string - Power state of fabric compute instance.
- List<Fabric
Compute Tag> - A set of tag keys and optional values that were set on this resource:
- Type string
- Type of the fabric compute instance.
- Updated
At string - Date when the entity was last updated. The date is ISO 8601 and UTC.
- Created
At string - Date when the entity was created. The date is in ISO 8601 and UTC.
- Custom
Properties map[string]string - A list of key value pair of custom properties for the fabric compute resource.
- Description string
- A human-friendly description.
- External
Id string - The id of the external entity on the provider side.
- External
Region stringId - The external region id of the fabric compute.
- External
Zone stringId - The external zone id of the fabric compute.
- Fabric
Compute stringId - Lifecycle
State string - Lifecycle status of the compute instance.
- Links
[]Fabric
Compute Link Args - HATEOAS of the entity.
- Name string
- A human-friendly name used as an identifier for the fabric compute resource instance.
- Org
Id string - The id of the organization this entity belongs to.
- Owner string
- Email of the user that owns the entity.
- Power
State string - Power state of fabric compute instance.
- []Fabric
Compute Tag Args - A set of tag keys and optional values that were set on this resource:
- Type string
- Type of the fabric compute instance.
- Updated
At string - Date when the entity was last updated. The date is ISO 8601 and UTC.
- created
At String - Date when the entity was created. The date is in ISO 8601 and UTC.
- custom
Properties Map<String,String> - A list of key value pair of custom properties for the fabric compute resource.
- description String
- A human-friendly description.
- external
Id String - The id of the external entity on the provider side.
- external
Region StringId - The external region id of the fabric compute.
- external
Zone StringId - The external zone id of the fabric compute.
- fabric
Compute StringId - lifecycle
State String - Lifecycle status of the compute instance.
- links
List<Fabric
Compute Link> - HATEOAS of the entity.
- name String
- A human-friendly name used as an identifier for the fabric compute resource instance.
- org
Id String - The id of the organization this entity belongs to.
- owner String
- Email of the user that owns the entity.
- power
State String - Power state of fabric compute instance.
- List<Fabric
Compute Tag> - A set of tag keys and optional values that were set on this resource:
- type String
- Type of the fabric compute instance.
- updated
At String - Date when the entity was last updated. The date is ISO 8601 and UTC.
- created
At string - Date when the entity was created. The date is in ISO 8601 and UTC.
- custom
Properties {[key: string]: string} - A list of key value pair of custom properties for the fabric compute resource.
- description string
- A human-friendly description.
- external
Id string - The id of the external entity on the provider side.
- external
Region stringId - The external region id of the fabric compute.
- external
Zone stringId - The external zone id of the fabric compute.
- fabric
Compute stringId - lifecycle
State string - Lifecycle status of the compute instance.
- links
Fabric
Compute Link[] - HATEOAS of the entity.
- name string
- A human-friendly name used as an identifier for the fabric compute resource instance.
- org
Id string - The id of the organization this entity belongs to.
- owner string
- Email of the user that owns the entity.
- power
State string - Power state of fabric compute instance.
- Fabric
Compute Tag[] - A set of tag keys and optional values that were set on this resource:
- type string
- Type of the fabric compute instance.
- updated
At string - Date when the entity was last updated. The date is ISO 8601 and UTC.
- created_
at str - Date when the entity was created. The date is in ISO 8601 and UTC.
- custom_
properties Mapping[str, str] - A list of key value pair of custom properties for the fabric compute resource.
- description str
- A human-friendly description.
- external_
id str - The id of the external entity on the provider side.
- external_
region_ strid - The external region id of the fabric compute.
- external_
zone_ strid - The external zone id of the fabric compute.
- fabric_
compute_ strid - lifecycle_
state str - Lifecycle status of the compute instance.
- links
Sequence[Fabric
Compute Link Args] - HATEOAS of the entity.
- name str
- A human-friendly name used as an identifier for the fabric compute resource instance.
- org_
id str - The id of the organization this entity belongs to.
- owner str
- Email of the user that owns the entity.
- power_
state str - Power state of fabric compute instance.
- Sequence[Fabric
Compute Tag Args] - A set of tag keys and optional values that were set on this resource:
- type str
- Type of the fabric compute instance.
- updated_
at str - Date when the entity was last updated. The date is ISO 8601 and UTC.
- created
At String - Date when the entity was created. The date is in ISO 8601 and UTC.
- custom
Properties Map<String> - A list of key value pair of custom properties for the fabric compute resource.
- description String
- A human-friendly description.
- external
Id String - The id of the external entity on the provider side.
- external
Region StringId - The external region id of the fabric compute.
- external
Zone StringId - The external zone id of the fabric compute.
- fabric
Compute StringId - lifecycle
State String - Lifecycle status of the compute instance.
- links List<Property Map>
- HATEOAS of the entity.
- name String
- A human-friendly name used as an identifier for the fabric compute resource instance.
- org
Id String - The id of the organization this entity belongs to.
- owner String
- Email of the user that owns the entity.
- power
State String - Power state of fabric compute instance.
- List<Property Map>
- A set of tag keys and optional values that were set on this resource:
- type String
- Type of the fabric compute instance.
- updated
At String - Date when the entity was last updated. The date is ISO 8601 and UTC.
Supporting Types
FabricComputeLink, FabricComputeLinkArgs
FabricComputeTag, FabricComputeTagArgs
Import
To import the fabric compute resource, use the ID as in the following example:
$ pulumi import vra:index/fabricCompute:FabricCompute this 88fdea8b-92ed-4aa9-b6ee-4670412961b0
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.