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

vra.getFabricCompute

Explore with Pulumi AI

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

    Example Usage

    S

    This is an example of how to lookup fabric computes.

    Fabric compute data source by Id:

    import * as pulumi from "@pulumi/pulumi";
    import * as vra from "@pulumi/vra";
    
    const _this = vra.getFabricCompute({
        id: _var.fabric_compute_id,
    });
    
    import pulumi
    import pulumi_vra as vra
    
    this = vra.get_fabric_compute(id=var["fabric_compute_id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/vra/vra"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := vra.LookupFabricCompute(ctx, &vra.LookupFabricComputeArgs{
    			Id: pulumi.StringRef(_var.Fabric_compute_id),
    		}, nil)
    		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 = Vra.GetFabricCompute.Invoke(new()
        {
            Id = @var.Fabric_compute_id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.vra.VraFunctions;
    import com.pulumi.vra.inputs.GetFabricComputeArgs;
    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) {
            final var this = VraFunctions.getFabricCompute(GetFabricComputeArgs.builder()
                .id(var_.fabric_compute_id())
                .build());
    
        }
    }
    
    variables:
      this:
        fn::invoke:
          function: vra:getFabricCompute
          arguments:
            id: ${var.fabric_compute_id}
    

    Fabric compute data source by filter query:

    import * as pulumi from "@pulumi/pulumi";
    import * as vra from "@pulumi/vra";
    
    const _this = vra.getFabricCompute({
        filter: `name eq '${_var.fabric_compute_name}'`,
    });
    
    import pulumi
    import pulumi_vra as vra
    
    this = vra.get_fabric_compute(filter=f"name eq '{var['fabric_compute_name']}'")
    
    package main
    
    import (
    	"fmt"
    
    	"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.LookupFabricCompute(ctx, &vra.LookupFabricComputeArgs{
    			Filter: pulumi.StringRef(fmt.Sprintf("name eq '%v'", _var.Fabric_compute_name)),
    		}, nil)
    		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 = Vra.GetFabricCompute.Invoke(new()
        {
            Filter = $"name eq '{@var.Fabric_compute_name}'",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.vra.VraFunctions;
    import com.pulumi.vra.inputs.GetFabricComputeArgs;
    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) {
            final var this = VraFunctions.getFabricCompute(GetFabricComputeArgs.builder()
                .filter(String.format("name eq '%s'", var_.fabric_compute_name()))
                .build());
    
        }
    }
    
    variables:
      this:
        fn::invoke:
          function: vra:getFabricCompute
          arguments:
            filter: name eq '${var.fabric_compute_name}'
    

    A fabric compute data source supports the following arguments:

    Using getFabricCompute

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getFabricCompute(args: GetFabricComputeArgs, opts?: InvokeOptions): Promise<GetFabricComputeResult>
    function getFabricComputeOutput(args: GetFabricComputeOutputArgs, opts?: InvokeOptions): Output<GetFabricComputeResult>
    def get_fabric_compute(filter: Optional[str] = None,
                           id: Optional[str] = None,
                           tags: Optional[Sequence[GetFabricComputeTag]] = None,
                           opts: Optional[InvokeOptions] = None) -> GetFabricComputeResult
    def get_fabric_compute_output(filter: Optional[pulumi.Input[str]] = None,
                           id: Optional[pulumi.Input[str]] = None,
                           tags: Optional[pulumi.Input[Sequence[pulumi.Input[GetFabricComputeTagArgs]]]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetFabricComputeResult]
    func LookupFabricCompute(ctx *Context, args *LookupFabricComputeArgs, opts ...InvokeOption) (*LookupFabricComputeResult, error)
    func LookupFabricComputeOutput(ctx *Context, args *LookupFabricComputeOutputArgs, opts ...InvokeOption) LookupFabricComputeResultOutput

    > Note: This function is named LookupFabricCompute in the Go SDK.

    public static class GetFabricCompute 
    {
        public static Task<GetFabricComputeResult> InvokeAsync(GetFabricComputeArgs args, InvokeOptions? opts = null)
        public static Output<GetFabricComputeResult> Invoke(GetFabricComputeInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetFabricComputeResult> getFabricCompute(GetFabricComputeArgs args, InvokeOptions options)
    public static Output<GetFabricComputeResult> getFabricCompute(GetFabricComputeArgs args, InvokeOptions options)
    
    fn::invoke:
      function: vra:index/getFabricCompute:getFabricCompute
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Filter string
    Search criteria to narrow down the fabric compute resource instance. Only one of 'id' or 'filter' must be specified.
    Id string
    The id of the fabric compute resource instance. Only one of 'id' or 'filter' must be specified.
    Tags List<GetFabricComputeTag>
    A set of tag keys and optional values that were set on this resource:
    Filter string
    Search criteria to narrow down the fabric compute resource instance. Only one of 'id' or 'filter' must be specified.
    Id string
    The id of the fabric compute resource instance. Only one of 'id' or 'filter' must be specified.
    Tags []GetFabricComputeTag
    A set of tag keys and optional values that were set on this resource:
    filter String
    Search criteria to narrow down the fabric compute resource instance. Only one of 'id' or 'filter' must be specified.
    id String
    The id of the fabric compute resource instance. Only one of 'id' or 'filter' must be specified.
    tags List<GetFabricComputeTag>
    A set of tag keys and optional values that were set on this resource:
    filter string
    Search criteria to narrow down the fabric compute resource instance. Only one of 'id' or 'filter' must be specified.
    id string
    The id of the fabric compute resource instance. Only one of 'id' or 'filter' must be specified.
    tags GetFabricComputeTag[]
    A set of tag keys and optional values that were set on this resource:
    filter str
    Search criteria to narrow down the fabric compute resource instance. Only one of 'id' or 'filter' must be specified.
    id str
    The id of the fabric compute resource instance. Only one of 'id' or 'filter' must be specified.
    tags Sequence[GetFabricComputeTag]
    A set of tag keys and optional values that were set on this resource:
    filter String
    Search criteria to narrow down the fabric compute resource instance. Only one of 'id' or 'filter' must be specified.
    id String
    The id of the fabric compute resource instance. Only one of 'id' or 'filter' must be specified.
    tags List<Property Map>
    A set of tag keys and optional values that were set on this resource:

    getFabricCompute Result

    The following output properties are available:

    CreatedAt string
    Date when the entity was created. The date is in ISO 8601 and UTC.
    CustomProperties Dictionary<string, string>
    A list of key value pair of custom properties for the fabric compute resource.
    Description string
    A human-friendly description.
    ExternalId string
    The id of the external entity on the provider side.
    ExternalRegionId string
    The external region id of the fabric compute.
    ExternalZoneId string
    The external zone id of the fabric compute.
    Id string
    LifecycleState string
    Lifecycle status of the compute instance.
    Links List<GetFabricComputeLink>
    HATEOAS of the entity.
    Name string
    A human-friendly name used as an identifier for the fabric compute resource instance.
    OrgId string
    The id of the organization this entity belongs to.
    Owner string
    Email of the user that owns the entity.
    PowerState string
    Power state of fabric compute instance.
    Type string
    Type of the fabric compute instance.
    UpdatedAt string
    Date when the entity was last updated. The date is ISO 8601 and UTC.
    Filter string
    Tags List<GetFabricComputeTag>
    A set of tag keys and optional values that were set on this resource:
    CreatedAt string
    Date when the entity was created. The date is in ISO 8601 and UTC.
    CustomProperties map[string]string
    A list of key value pair of custom properties for the fabric compute resource.
    Description string
    A human-friendly description.
    ExternalId string
    The id of the external entity on the provider side.
    ExternalRegionId string
    The external region id of the fabric compute.
    ExternalZoneId string
    The external zone id of the fabric compute.
    Id string
    LifecycleState string
    Lifecycle status of the compute instance.
    Links []GetFabricComputeLink
    HATEOAS of the entity.
    Name string
    A human-friendly name used as an identifier for the fabric compute resource instance.
    OrgId string
    The id of the organization this entity belongs to.
    Owner string
    Email of the user that owns the entity.
    PowerState string
    Power state of fabric compute instance.
    Type string
    Type of the fabric compute instance.
    UpdatedAt string
    Date when the entity was last updated. The date is ISO 8601 and UTC.
    Filter string
    Tags []GetFabricComputeTag
    A set of tag keys and optional values that were set on this resource:
    createdAt String
    Date when the entity was created. The date is in ISO 8601 and UTC.
    customProperties Map<String,String>
    A list of key value pair of custom properties for the fabric compute resource.
    description String
    A human-friendly description.
    externalId String
    The id of the external entity on the provider side.
    externalRegionId String
    The external region id of the fabric compute.
    externalZoneId String
    The external zone id of the fabric compute.
    id String
    lifecycleState String
    Lifecycle status of the compute instance.
    links List<GetFabricComputeLink>
    HATEOAS of the entity.
    name String
    A human-friendly name used as an identifier for the fabric compute resource instance.
    orgId String
    The id of the organization this entity belongs to.
    owner String
    Email of the user that owns the entity.
    powerState String
    Power state of fabric compute instance.
    type String
    Type of the fabric compute instance.
    updatedAt String
    Date when the entity was last updated. The date is ISO 8601 and UTC.
    filter String
    tags List<GetFabricComputeTag>
    A set of tag keys and optional values that were set on this resource:
    createdAt string
    Date when the entity was created. The date is in ISO 8601 and UTC.
    customProperties {[key: string]: string}
    A list of key value pair of custom properties for the fabric compute resource.
    description string
    A human-friendly description.
    externalId string
    The id of the external entity on the provider side.
    externalRegionId string
    The external region id of the fabric compute.
    externalZoneId string
    The external zone id of the fabric compute.
    id string
    lifecycleState string
    Lifecycle status of the compute instance.
    links GetFabricComputeLink[]
    HATEOAS of the entity.
    name string
    A human-friendly name used as an identifier for the fabric compute resource instance.
    orgId string
    The id of the organization this entity belongs to.
    owner string
    Email of the user that owns the entity.
    powerState string
    Power state of fabric compute instance.
    type string
    Type of the fabric compute instance.
    updatedAt string
    Date when the entity was last updated. The date is ISO 8601 and UTC.
    filter string
    tags GetFabricComputeTag[]
    A set of tag keys and optional values that were set on this resource:
    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_id str
    The external region id of the fabric compute.
    external_zone_id str
    The external zone id of the fabric compute.
    id str
    lifecycle_state str
    Lifecycle status of the compute instance.
    links Sequence[GetFabricComputeLink]
    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.
    filter str
    tags Sequence[GetFabricComputeTag]
    A set of tag keys and optional values that were set on this resource:
    createdAt String
    Date when the entity was created. The date is in ISO 8601 and UTC.
    customProperties Map<String>
    A list of key value pair of custom properties for the fabric compute resource.
    description String
    A human-friendly description.
    externalId String
    The id of the external entity on the provider side.
    externalRegionId String
    The external region id of the fabric compute.
    externalZoneId String
    The external zone id of the fabric compute.
    id String
    lifecycleState 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.
    orgId String
    The id of the organization this entity belongs to.
    owner String
    Email of the user that owns the entity.
    powerState String
    Power state of fabric compute instance.
    type String
    Type of the fabric compute instance.
    updatedAt String
    Date when the entity was last updated. The date is ISO 8601 and UTC.
    filter String
    tags List<Property Map>
    A set of tag keys and optional values that were set on this resource:

    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

    GetFabricComputeTag

    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.

    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