Viewing docs for spectrocloud 0.29.3-pre
published on Monday, May 25, 2026 by spectrocloud
published on Monday, May 25, 2026 by spectrocloud
Viewing docs for spectrocloud 0.29.3-pre
published on Monday, May 25, 2026 by spectrocloud
published on Monday, May 25, 2026 by spectrocloud
Data source for looking up a vSphere cloud account by ID or name.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as spectrocloud from "@pulumi/spectrocloud";
const example = spectrocloud.getCloudaccountVsphere({
name: "vsphere-account",
context: "project",
});
import pulumi
import pulumi_spectrocloud as spectrocloud
example = spectrocloud.get_cloudaccount_vsphere(name="vsphere-account",
context="project")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/spectrocloud/spectrocloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := spectrocloud.LookupCloudaccountVsphere(ctx, &spectrocloud.LookupCloudaccountVsphereArgs{
Name: pulumi.StringRef("vsphere-account"),
Context: pulumi.StringRef("project"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Spectrocloud = Pulumi.Spectrocloud;
return await Deployment.RunAsync(() =>
{
var example = Spectrocloud.GetCloudaccountVsphere.Invoke(new()
{
Name = "vsphere-account",
Context = "project",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.spectrocloud.SpectrocloudFunctions;
import com.pulumi.spectrocloud.inputs.GetCloudaccountVsphereArgs;
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 example = SpectrocloudFunctions.getCloudaccountVsphere(GetCloudaccountVsphereArgs.builder()
.name("vsphere-account")
.context("project")
.build());
}
}
variables:
example:
fn::invoke:
function: spectrocloud:getCloudaccountVsphere
arguments:
name: vsphere-account
context: project
Example coming soon!
Using getCloudaccountVsphere
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 getCloudaccountVsphere(args: GetCloudaccountVsphereArgs, opts?: InvokeOptions): Promise<GetCloudaccountVsphereResult>
function getCloudaccountVsphereOutput(args: GetCloudaccountVsphereOutputArgs, opts?: InvokeOptions): Output<GetCloudaccountVsphereResult>def get_cloudaccount_vsphere(context: Optional[str] = None,
id: Optional[str] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCloudaccountVsphereResult
def get_cloudaccount_vsphere_output(context: pulumi.Input[Optional[str]] = None,
id: pulumi.Input[Optional[str]] = None,
name: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCloudaccountVsphereResult]func LookupCloudaccountVsphere(ctx *Context, args *LookupCloudaccountVsphereArgs, opts ...InvokeOption) (*LookupCloudaccountVsphereResult, error)
func LookupCloudaccountVsphereOutput(ctx *Context, args *LookupCloudaccountVsphereOutputArgs, opts ...InvokeOption) LookupCloudaccountVsphereResultOutput> Note: This function is named LookupCloudaccountVsphere in the Go SDK.
public static class GetCloudaccountVsphere
{
public static Task<GetCloudaccountVsphereResult> InvokeAsync(GetCloudaccountVsphereArgs args, InvokeOptions? opts = null)
public static Output<GetCloudaccountVsphereResult> Invoke(GetCloudaccountVsphereInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetCloudaccountVsphereResult> getCloudaccountVsphere(GetCloudaccountVsphereArgs args, InvokeOptions options)
public static Output<GetCloudaccountVsphereResult> getCloudaccountVsphere(GetCloudaccountVsphereArgs args, InvokeOptions options)
fn::invoke:
function: spectrocloud:index/getCloudaccountVsphere:getCloudaccountVsphere
arguments:
# arguments dictionarydata "spectrocloud_getcloudaccountvsphere" "name" {
# arguments
}The following arguments are supported:
getCloudaccountVsphere Result
The following output properties are available:
- Id string
- The unique ID of the vSphere cloud account. Either
idornamemust be provided, but not both. - Name string
- The name of the vSphere cloud account. Either
idornamemust be provided, but not both. - Private
Cloud stringGateway Id - The ID of the Private Cloud Gateway associated with this vSphere cloud account.
- Context string
- The context of the cluster. Allowed values are
projectortenantor ``.
- Id string
- The unique ID of the vSphere cloud account. Either
idornamemust be provided, but not both. - Name string
- The name of the vSphere cloud account. Either
idornamemust be provided, but not both. - Private
Cloud stringGateway Id - The ID of the Private Cloud Gateway associated with this vSphere cloud account.
- Context string
- The context of the cluster. Allowed values are
projectortenantor ``.
- id string
- The unique ID of the vSphere cloud account. Either
idornamemust be provided, but not both. - name string
- The name of the vSphere cloud account. Either
idornamemust be provided, but not both. - private_
cloud_ stringgateway_ id - The ID of the Private Cloud Gateway associated with this vSphere cloud account.
- context string
- The context of the cluster. Allowed values are
projectortenantor ``.
- id String
- The unique ID of the vSphere cloud account. Either
idornamemust be provided, but not both. - name String
- The name of the vSphere cloud account. Either
idornamemust be provided, but not both. - private
Cloud StringGateway Id - The ID of the Private Cloud Gateway associated with this vSphere cloud account.
- context String
- The context of the cluster. Allowed values are
projectortenantor ``.
- id string
- The unique ID of the vSphere cloud account. Either
idornamemust be provided, but not both. - name string
- The name of the vSphere cloud account. Either
idornamemust be provided, but not both. - private
Cloud stringGateway Id - The ID of the Private Cloud Gateway associated with this vSphere cloud account.
- context string
- The context of the cluster. Allowed values are
projectortenantor ``.
- id str
- The unique ID of the vSphere cloud account. Either
idornamemust be provided, but not both. - name str
- The name of the vSphere cloud account. Either
idornamemust be provided, but not both. - private_
cloud_ strgateway_ id - The ID of the Private Cloud Gateway associated with this vSphere cloud account.
- context str
- The context of the cluster. Allowed values are
projectortenantor ``.
- id String
- The unique ID of the vSphere cloud account. Either
idornamemust be provided, but not both. - name String
- The name of the vSphere cloud account. Either
idornamemust be provided, but not both. - private
Cloud StringGateway Id - The ID of the Private Cloud Gateway associated with this vSphere cloud account.
- context String
- The context of the cluster. Allowed values are
projectortenantor ``.
Package Details
- Repository
- spectrocloud spectrocloud/terraform-provider-spectrocloud
- License
- Notes
- This Pulumi package is based on the
spectrocloudTerraform Provider.
Viewing docs for spectrocloud 0.29.3-pre
published on Monday, May 25, 2026 by spectrocloud
published on Monday, May 25, 2026 by spectrocloud