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

vra.getCloudAccountNsxv

Explore with Pulumi AI

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

    Provides a VMware vRA vra.CloudAccountNsxv data source.

    Example Usage

    S

    NSX-V cloud account data source by its id:

    This is an example of how to read the cloud account data source using its id.

    import * as pulumi from "@pulumi/pulumi";
    import * as vra from "@pulumi/vra";
    
    const _this = vra.getCloudAccountNsxv({
        id: _var.vra_cloud_account_nsxv_id,
    });
    
    import pulumi
    import pulumi_vra as vra
    
    this = vra.get_cloud_account_nsxv(id=var["vra_cloud_account_nsxv_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.LookupCloudAccountNsxv(ctx, &vra.LookupCloudAccountNsxvArgs{
    			Id: pulumi.StringRef(_var.Vra_cloud_account_nsxv_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.GetCloudAccountNsxv.Invoke(new()
        {
            Id = @var.Vra_cloud_account_nsxv_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.GetCloudAccountNsxvArgs;
    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.getCloudAccountNsxv(GetCloudAccountNsxvArgs.builder()
                .id(var_.vra_cloud_account_nsxv_id())
                .build());
    
        }
    }
    
    variables:
      this:
        fn::invoke:
          function: vra:getCloudAccountNsxv
          arguments:
            id: ${var.vra_cloud_account_nsxv_id}
    

    NSX-V cloud account data source by its name:

    This is an example of how to read the cloud account data source using its name.

    import * as pulumi from "@pulumi/pulumi";
    import * as vra from "@pulumi/vra";
    
    const _this = vra.getCloudAccountNsxv({
        name: _var.vra_cloud_account_nsxv_name,
    });
    
    import pulumi
    import pulumi_vra as vra
    
    this = vra.get_cloud_account_nsxv(name=var["vra_cloud_account_nsxv_name"])
    
    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.LookupCloudAccountNsxv(ctx, &vra.LookupCloudAccountNsxvArgs{
    			Name: pulumi.StringRef(_var.Vra_cloud_account_nsxv_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.GetCloudAccountNsxv.Invoke(new()
        {
            Name = @var.Vra_cloud_account_nsxv_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.GetCloudAccountNsxvArgs;
    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.getCloudAccountNsxv(GetCloudAccountNsxvArgs.builder()
                .name(var_.vra_cloud_account_nsxv_name())
                .build());
    
        }
    }
    
    variables:
      this:
        fn::invoke:
          function: vra:getCloudAccountNsxv
          arguments:
            name: ${var.vra_cloud_account_nsxv_name}
    

    Using getCloudAccountNsxv

    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 getCloudAccountNsxv(args: GetCloudAccountNsxvArgs, opts?: InvokeOptions): Promise<GetCloudAccountNsxvResult>
    function getCloudAccountNsxvOutput(args: GetCloudAccountNsxvOutputArgs, opts?: InvokeOptions): Output<GetCloudAccountNsxvResult>
    def get_cloud_account_nsxv(id: Optional[str] = None,
                               name: Optional[str] = None,
                               tags: Optional[Sequence[GetCloudAccountNsxvTag]] = None,
                               opts: Optional[InvokeOptions] = None) -> GetCloudAccountNsxvResult
    def get_cloud_account_nsxv_output(id: Optional[pulumi.Input[str]] = None,
                               name: Optional[pulumi.Input[str]] = None,
                               tags: Optional[pulumi.Input[Sequence[pulumi.Input[GetCloudAccountNsxvTagArgs]]]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetCloudAccountNsxvResult]
    func LookupCloudAccountNsxv(ctx *Context, args *LookupCloudAccountNsxvArgs, opts ...InvokeOption) (*LookupCloudAccountNsxvResult, error)
    func LookupCloudAccountNsxvOutput(ctx *Context, args *LookupCloudAccountNsxvOutputArgs, opts ...InvokeOption) LookupCloudAccountNsxvResultOutput

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

    public static class GetCloudAccountNsxv 
    {
        public static Task<GetCloudAccountNsxvResult> InvokeAsync(GetCloudAccountNsxvArgs args, InvokeOptions? opts = null)
        public static Output<GetCloudAccountNsxvResult> Invoke(GetCloudAccountNsxvInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCloudAccountNsxvResult> getCloudAccountNsxv(GetCloudAccountNsxvArgs args, InvokeOptions options)
    public static Output<GetCloudAccountNsxvResult> getCloudAccountNsxv(GetCloudAccountNsxvArgs args, InvokeOptions options)
    
    fn::invoke:
      function: vra:index/getCloudAccountNsxv:getCloudAccountNsxv
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    The id of this NSX-V cloud account.
    Name string
    The name of this NSX-V cloud account.
    Tags List<GetCloudAccountNsxvTag>
    A set of tag keys and optional values that were set on this resource. example: [ { "key" : "vmware", "value": "provider" } ]
    Id string
    The id of this NSX-V cloud account.
    Name string
    The name of this NSX-V cloud account.
    Tags []GetCloudAccountNsxvTag
    A set of tag keys and optional values that were set on this resource. example: [ { "key" : "vmware", "value": "provider" } ]
    id String
    The id of this NSX-V cloud account.
    name String
    The name of this NSX-V cloud account.
    tags List<GetCloudAccountNsxvTag>
    A set of tag keys and optional values that were set on this resource. example: [ { "key" : "vmware", "value": "provider" } ]
    id string
    The id of this NSX-V cloud account.
    name string
    The name of this NSX-V cloud account.
    tags GetCloudAccountNsxvTag[]
    A set of tag keys and optional values that were set on this resource. example: [ { "key" : "vmware", "value": "provider" } ]
    id str
    The id of this NSX-V cloud account.
    name str
    The name of this NSX-V cloud account.
    tags Sequence[GetCloudAccountNsxvTag]
    A set of tag keys and optional values that were set on this resource. example: [ { "key" : "vmware", "value": "provider" } ]
    id String
    The id of this NSX-V cloud account.
    name String
    The name of this NSX-V cloud account.
    tags List<Property Map>
    A set of tag keys and optional values that were set on this resource. example: [ { "key" : "vmware", "value": "provider" } ]

    getCloudAccountNsxv Result

    The following output properties are available:

    AssociatedCloudAccountIds List<string>
    Cloud accounts associated with this cloud account.
    CreatedAt string
    Date when the entity was created. The date is in ISO 6801 and UTC.
    DcId string
    Identifier of a data collector vm deployed in the on premise infrastructure.
    Description string
    A human-friendly description.
    Hostname string
    Host name for the NSX-V cloud account.
    Id string
    Links List<GetCloudAccountNsxvLink>
    HATEOAS of the entity.
    Name string
    OrgId string
    The id of the organization this entity belongs to.
    Owner string
    Email of the user that owns the entity.
    UpdatedAt string
    Date when the entity was last updated. The date is ISO 8601 and UTC.
    Username string
    Username to authenticate with the cloud account.
    Tags List<GetCloudAccountNsxvTag>
    A set of tag keys and optional values that were set on this resource. example: [ { "key" : "vmware", "value": "provider" } ]
    AssociatedCloudAccountIds []string
    Cloud accounts associated with this cloud account.
    CreatedAt string
    Date when the entity was created. The date is in ISO 6801 and UTC.
    DcId string
    Identifier of a data collector vm deployed in the on premise infrastructure.
    Description string
    A human-friendly description.
    Hostname string
    Host name for the NSX-V cloud account.
    Id string
    Links []GetCloudAccountNsxvLink
    HATEOAS of the entity.
    Name string
    OrgId string
    The id of the organization this entity belongs to.
    Owner string
    Email of the user that owns the entity.
    UpdatedAt string
    Date when the entity was last updated. The date is ISO 8601 and UTC.
    Username string
    Username to authenticate with the cloud account.
    Tags []GetCloudAccountNsxvTag
    A set of tag keys and optional values that were set on this resource. example: [ { "key" : "vmware", "value": "provider" } ]
    associatedCloudAccountIds List<String>
    Cloud accounts associated with this cloud account.
    createdAt String
    Date when the entity was created. The date is in ISO 6801 and UTC.
    dcId String
    Identifier of a data collector vm deployed in the on premise infrastructure.
    description String
    A human-friendly description.
    hostname String
    Host name for the NSX-V cloud account.
    id String
    links List<GetCloudAccountNsxvLink>
    HATEOAS of the entity.
    name String
    orgId String
    The id of the organization this entity belongs to.
    owner String
    Email of the user that owns the entity.
    updatedAt String
    Date when the entity was last updated. The date is ISO 8601 and UTC.
    username String
    Username to authenticate with the cloud account.
    tags List<GetCloudAccountNsxvTag>
    A set of tag keys and optional values that were set on this resource. example: [ { "key" : "vmware", "value": "provider" } ]
    associatedCloudAccountIds string[]
    Cloud accounts associated with this cloud account.
    createdAt string
    Date when the entity was created. The date is in ISO 6801 and UTC.
    dcId string
    Identifier of a data collector vm deployed in the on premise infrastructure.
    description string
    A human-friendly description.
    hostname string
    Host name for the NSX-V cloud account.
    id string
    links GetCloudAccountNsxvLink[]
    HATEOAS of the entity.
    name string
    orgId string
    The id of the organization this entity belongs to.
    owner string
    Email of the user that owns the entity.
    updatedAt string
    Date when the entity was last updated. The date is ISO 8601 and UTC.
    username string
    Username to authenticate with the cloud account.
    tags GetCloudAccountNsxvTag[]
    A set of tag keys and optional values that were set on this resource. example: [ { "key" : "vmware", "value": "provider" } ]
    associated_cloud_account_ids Sequence[str]
    Cloud accounts associated with this cloud account.
    created_at str
    Date when the entity was created. The date is in ISO 6801 and UTC.
    dc_id str
    Identifier of a data collector vm deployed in the on premise infrastructure.
    description str
    A human-friendly description.
    hostname str
    Host name for the NSX-V cloud account.
    id str
    links Sequence[GetCloudAccountNsxvLink]
    HATEOAS of the entity.
    name str
    org_id str
    The id of the organization this entity belongs to.
    owner str
    Email of the user that owns the entity.
    updated_at str
    Date when the entity was last updated. The date is ISO 8601 and UTC.
    username str
    Username to authenticate with the cloud account.
    tags Sequence[GetCloudAccountNsxvTag]
    A set of tag keys and optional values that were set on this resource. example: [ { "key" : "vmware", "value": "provider" } ]
    associatedCloudAccountIds List<String>
    Cloud accounts associated with this cloud account.
    createdAt String
    Date when the entity was created. The date is in ISO 6801 and UTC.
    dcId String
    Identifier of a data collector vm deployed in the on premise infrastructure.
    description String
    A human-friendly description.
    hostname String
    Host name for the NSX-V cloud account.
    id String
    links List<Property Map>
    HATEOAS of the entity.
    name String
    orgId String
    The id of the organization this entity belongs to.
    owner String
    Email of the user that owns the entity.
    updatedAt String
    Date when the entity was last updated. The date is ISO 8601 and UTC.
    username String
    Username to authenticate with the cloud account.
    tags List<Property Map>
    A set of tag keys and optional values that were set on this resource. example: [ { "key" : "vmware", "value": "provider" } ]

    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

    GetCloudAccountNsxvTag

    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