vcd 3.14.1 published on Monday, Apr 14, 2025 by vmware
vcd.getVcenter
Explore with Pulumi AI
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",
});
import pulumi
import pulumi_vcd as vcd
vc = vcd.get_vcenter(name="vcenter-one")
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
	})
}
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",
    });
});
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());
    }
}
variables:
  vc:
    fn::invoke:
      function: vcd:getVcenter
      arguments:
        name: vcenter-one
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>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]func GetVcenter(ctx *Context, args *GetVcenterArgs, opts ...InvokeOption) (*GetVcenterResult, error)
func GetVcenterOutput(ctx *Context, args *GetVcenterOutputArgs, opts ...InvokeOption) GetVcenterResultOutput> 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)
}public static CompletableFuture<GetVcenterResult> getVcenter(GetVcenterArgs args, InvokeOptions options)
public static Output<GetVcenterResult> getVcenter(GetVcenterArgs args, InvokeOptions options)
fn::invoke:
  function: vcd:index/getVcenter:getVcenter
  arguments:
    # arguments dictionaryThe following arguments are supported:
getVcenter Result
The following output properties are available:
- Connection
Status string - vCenter connection status (e.g. 
CONNECTED). - Id string
 - Is
Enabled bool - Boolean value if vCenter is enabled.
 - Name string
 - Status string
 - vCenter status (e.g. 
READY). - Vcenter
Host string - Hostname of configured vCenter.
 - Vcenter
Version string - vCenter version (e.g. 
6.7.0) 
- Connection
Status string - vCenter connection status (e.g. 
CONNECTED). - Id string
 - Is
Enabled bool - Boolean value if vCenter is enabled.
 - Name string
 - Status string
 - vCenter status (e.g. 
READY). - Vcenter
Host string - Hostname of configured vCenter.
 - Vcenter
Version string - vCenter version (e.g. 
6.7.0) 
- connection
Status String - vCenter connection status (e.g. 
CONNECTED). - id String
 - is
Enabled Boolean - Boolean value if vCenter is enabled.
 - name String
 - status String
 - vCenter status (e.g. 
READY). - vcenter
Host String - Hostname of configured vCenter.
 - vcenter
Version String - vCenter version (e.g. 
6.7.0) 
- connection
Status string - vCenter connection status (e.g. 
CONNECTED). - id string
 - is
Enabled boolean - Boolean value if vCenter is enabled.
 - name string
 - status string
 - vCenter status (e.g. 
READY). - vcenter
Host string - Hostname of configured vCenter.
 - vcenter
Version 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) 
- connection
Status String - vCenter connection status (e.g. 
CONNECTED). - id String
 - is
Enabled Boolean - Boolean value if vCenter is enabled.
 - name String
 - status String
 - vCenter status (e.g. 
READY). - vcenter
Host String - Hostname of configured vCenter.
 - vcenter
Version 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 
vcdTerraform Provider.