1. Packages
  2. Vcd Provider
  3. API Docs
  4. getVcenter
vcd 3.14.1 published on Monday, Apr 14, 2025 by vmware

vcd.getVcenter

Explore with Pulumi AI

vcd 3.14.1 published on Monday, Apr 14, 2025 by vmware

Provides a data source for vCenter server attached to VCD.

Supported in provider v3.0+

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as vcd from "@pulumi/vcd";

const vc = vcd.getVcenter({
    name: "vcenter-one",
});
Copy
import pulumi
import pulumi_vcd as vcd

vc = vcd.get_vcenter(name="vcenter-one")
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/vcd/v3/vcd"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := vcd.GetVcenter(ctx, &vcd.GetVcenterArgs{
			Name: "vcenter-one",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vcd = Pulumi.Vcd;

return await Deployment.RunAsync(() => 
{
    var vc = Vcd.GetVcenter.Invoke(new()
    {
        Name = "vcenter-one",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vcd.VcdFunctions;
import com.pulumi.vcd.inputs.GetVcenterArgs;
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 vc = VcdFunctions.getVcenter(GetVcenterArgs.builder()
            .name("vcenter-one")
            .build());

    }
}
Copy
variables:
  vc:
    fn::invoke:
      function: vcd:getVcenter
      arguments:
        name: vcenter-one
Copy

Using getVcenter

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 getVcenter(args: GetVcenterArgs, opts?: InvokeOptions): Promise<GetVcenterResult>
function getVcenterOutput(args: GetVcenterOutputArgs, opts?: InvokeOptions): Output<GetVcenterResult>
Copy
def get_vcenter(id: Optional[str] = None,
                name: Optional[str] = None,
                opts: Optional[InvokeOptions] = None) -> GetVcenterResult
def get_vcenter_output(id: Optional[pulumi.Input[str]] = None,
                name: Optional[pulumi.Input[str]] = None,
                opts: Optional[InvokeOptions] = None) -> Output[GetVcenterResult]
Copy
func GetVcenter(ctx *Context, args *GetVcenterArgs, opts ...InvokeOption) (*GetVcenterResult, error)
func GetVcenterOutput(ctx *Context, args *GetVcenterOutputArgs, opts ...InvokeOption) GetVcenterResultOutput
Copy

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

public static class GetVcenter 
{
    public static Task<GetVcenterResult> InvokeAsync(GetVcenterArgs args, InvokeOptions? opts = null)
    public static Output<GetVcenterResult> Invoke(GetVcenterInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetVcenterResult> getVcenter(GetVcenterArgs args, InvokeOptions options)
public static Output<GetVcenterResult> getVcenter(GetVcenterArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: vcd:index/getVcenter:getVcenter
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Name This property is required. string
vCenter name
Id string
Name This property is required. string
vCenter name
Id string
name This property is required. String
vCenter name
id String
name This property is required. string
vCenter name
id string
name This property is required. str
vCenter name
id str
name This property is required. String
vCenter name
id String

getVcenter Result

The following output properties are available:

ConnectionStatus string
vCenter connection status (e.g. CONNECTED).
Id string
IsEnabled bool
Boolean value if vCenter is enabled.
Name string
Status string
vCenter status (e.g. READY).
VcenterHost string
Hostname of configured vCenter.
VcenterVersion string
vCenter version (e.g. 6.7.0)
ConnectionStatus string
vCenter connection status (e.g. CONNECTED).
Id string
IsEnabled bool
Boolean value if vCenter is enabled.
Name string
Status string
vCenter status (e.g. READY).
VcenterHost string
Hostname of configured vCenter.
VcenterVersion string
vCenter version (e.g. 6.7.0)
connectionStatus String
vCenter connection status (e.g. CONNECTED).
id String
isEnabled Boolean
Boolean value if vCenter is enabled.
name String
status String
vCenter status (e.g. READY).
vcenterHost String
Hostname of configured vCenter.
vcenterVersion String
vCenter version (e.g. 6.7.0)
connectionStatus string
vCenter connection status (e.g. CONNECTED).
id string
isEnabled boolean
Boolean value if vCenter is enabled.
name string
status string
vCenter status (e.g. READY).
vcenterHost string
Hostname of configured vCenter.
vcenterVersion string
vCenter version (e.g. 6.7.0)
connection_status str
vCenter connection status (e.g. CONNECTED).
id str
is_enabled bool
Boolean value if vCenter is enabled.
name str
status str
vCenter status (e.g. READY).
vcenter_host str
Hostname of configured vCenter.
vcenter_version str
vCenter version (e.g. 6.7.0)
connectionStatus String
vCenter connection status (e.g. CONNECTED).
id String
isEnabled Boolean
Boolean value if vCenter is enabled.
name String
status String
vCenter status (e.g. READY).
vcenterHost String
Hostname of configured vCenter.
vcenterVersion String
vCenter version (e.g. 6.7.0)

Package Details

Repository
vcd vmware/terraform-provider-vcd
License
Notes
This Pulumi package is based on the vcd Terraform Provider.
vcd 3.14.1 published on Monday, Apr 14, 2025 by vmware