1. Packages
  2. Packages
  3. Spectrocloud Provider
  4. API Docs
  5. getCloudaccountCustom
Viewing docs for spectrocloud 0.29.1
published on Friday, May 8, 2026 by spectrocloud
Viewing docs for spectrocloud 0.29.1
published on Friday, May 8, 2026 by spectrocloud

    Data source for looking up a custom cloud account by ID or name.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as spectrocloud from "@pulumi/spectrocloud";
    
    const example = spectrocloud.getCloudaccountCustom({
        name: "custom-account",
        cloud: "nutanix",
        context: "project",
    });
    
    import pulumi
    import pulumi_spectrocloud as spectrocloud
    
    example = spectrocloud.get_cloudaccount_custom(name="custom-account",
        cloud="nutanix",
        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.LookupCloudaccountCustom(ctx, &spectrocloud.LookupCloudaccountCustomArgs{
    			Name:    pulumi.StringRef("custom-account"),
    			Cloud:   "nutanix",
    			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.GetCloudaccountCustom.Invoke(new()
        {
            Name = "custom-account",
            Cloud = "nutanix",
            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.GetCloudaccountCustomArgs;
    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.getCloudaccountCustom(GetCloudaccountCustomArgs.builder()
                .name("custom-account")
                .cloud("nutanix")
                .context("project")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: spectrocloud:getCloudaccountCustom
          arguments:
            name: custom-account
            cloud: nutanix
            context: project
    
    Example coming soon!
    

    Using getCloudaccountCustom

    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 getCloudaccountCustom(args: GetCloudaccountCustomArgs, opts?: InvokeOptions): Promise<GetCloudaccountCustomResult>
    function getCloudaccountCustomOutput(args: GetCloudaccountCustomOutputArgs, opts?: InvokeOptions): Output<GetCloudaccountCustomResult>
    def get_cloudaccount_custom(cloud: Optional[str] = None,
                                context: Optional[str] = None,
                                id: Optional[str] = None,
                                name: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetCloudaccountCustomResult
    def get_cloudaccount_custom_output(cloud: pulumi.Input[Optional[str]] = None,
                                context: pulumi.Input[Optional[str]] = None,
                                id: pulumi.Input[Optional[str]] = None,
                                name: pulumi.Input[Optional[str]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetCloudaccountCustomResult]
    func LookupCloudaccountCustom(ctx *Context, args *LookupCloudaccountCustomArgs, opts ...InvokeOption) (*LookupCloudaccountCustomResult, error)
    func LookupCloudaccountCustomOutput(ctx *Context, args *LookupCloudaccountCustomOutputArgs, opts ...InvokeOption) LookupCloudaccountCustomResultOutput

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

    public static class GetCloudaccountCustom 
    {
        public static Task<GetCloudaccountCustomResult> InvokeAsync(GetCloudaccountCustomArgs args, InvokeOptions? opts = null)
        public static Output<GetCloudaccountCustomResult> Invoke(GetCloudaccountCustomInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCloudaccountCustomResult> getCloudaccountCustom(GetCloudaccountCustomArgs args, InvokeOptions options)
    public static Output<GetCloudaccountCustomResult> getCloudaccountCustom(GetCloudaccountCustomArgs args, InvokeOptions options)
    
    fn::invoke:
      function: spectrocloud:index/getCloudaccountCustom:getCloudaccountCustom
      arguments:
        # arguments dictionary
    data "spectrocloud_getcloudaccountcustom" "name" {
        # arguments
    }

    The following arguments are supported:

    Cloud string
    The custom cloud provider name (e.g., nutanix).
    Context string
    The context of the cluster. Allowed values are project or tenant or ``.
    Id string
    The unique identifier of the cloud account. Either id or name must be provided.
    Name string
    The name of the cloud account. Either id or name must be provided.
    Cloud string
    The custom cloud provider name (e.g., nutanix).
    Context string
    The context of the cluster. Allowed values are project or tenant or ``.
    Id string
    The unique identifier of the cloud account. Either id or name must be provided.
    Name string
    The name of the cloud account. Either id or name must be provided.
    cloud string
    The custom cloud provider name (e.g., nutanix).
    context string
    The context of the cluster. Allowed values are project or tenant or ``.
    id string
    The unique identifier of the cloud account. Either id or name must be provided.
    name string
    The name of the cloud account. Either id or name must be provided.
    cloud String
    The custom cloud provider name (e.g., nutanix).
    context String
    The context of the cluster. Allowed values are project or tenant or ``.
    id String
    The unique identifier of the cloud account. Either id or name must be provided.
    name String
    The name of the cloud account. Either id or name must be provided.
    cloud string
    The custom cloud provider name (e.g., nutanix).
    context string
    The context of the cluster. Allowed values are project or tenant or ``.
    id string
    The unique identifier of the cloud account. Either id or name must be provided.
    name string
    The name of the cloud account. Either id or name must be provided.
    cloud str
    The custom cloud provider name (e.g., nutanix).
    context str
    The context of the cluster. Allowed values are project or tenant or ``.
    id str
    The unique identifier of the cloud account. Either id or name must be provided.
    name str
    The name of the cloud account. Either id or name must be provided.
    cloud String
    The custom cloud provider name (e.g., nutanix).
    context String
    The context of the cluster. Allowed values are project or tenant or ``.
    id String
    The unique identifier of the cloud account. Either id or name must be provided.
    name String
    The name of the cloud account. Either id or name must be provided.

    getCloudaccountCustom Result

    The following output properties are available:

    Cloud string
    The custom cloud provider name (e.g., nutanix).
    Id string
    The unique identifier of the cloud account. Either id or name must be provided.
    Name string
    The name of the cloud account. Either id or name must be provided.
    Context string
    The context of the cluster. Allowed values are project or tenant or ``.
    Cloud string
    The custom cloud provider name (e.g., nutanix).
    Id string
    The unique identifier of the cloud account. Either id or name must be provided.
    Name string
    The name of the cloud account. Either id or name must be provided.
    Context string
    The context of the cluster. Allowed values are project or tenant or ``.
    cloud string
    The custom cloud provider name (e.g., nutanix).
    id string
    The unique identifier of the cloud account. Either id or name must be provided.
    name string
    The name of the cloud account. Either id or name must be provided.
    context string
    The context of the cluster. Allowed values are project or tenant or ``.
    cloud String
    The custom cloud provider name (e.g., nutanix).
    id String
    The unique identifier of the cloud account. Either id or name must be provided.
    name String
    The name of the cloud account. Either id or name must be provided.
    context String
    The context of the cluster. Allowed values are project or tenant or ``.
    cloud string
    The custom cloud provider name (e.g., nutanix).
    id string
    The unique identifier of the cloud account. Either id or name must be provided.
    name string
    The name of the cloud account. Either id or name must be provided.
    context string
    The context of the cluster. Allowed values are project or tenant or ``.
    cloud str
    The custom cloud provider name (e.g., nutanix).
    id str
    The unique identifier of the cloud account. Either id or name must be provided.
    name str
    The name of the cloud account. Either id or name must be provided.
    context str
    The context of the cluster. Allowed values are project or tenant or ``.
    cloud String
    The custom cloud provider name (e.g., nutanix).
    id String
    The unique identifier of the cloud account. Either id or name must be provided.
    name String
    The name of the cloud account. Either id or name must be provided.
    context String
    The context of the cluster. Allowed values are project or tenant or ``.

    Package Details

    Repository
    spectrocloud spectrocloud/terraform-provider-spectrocloud
    License
    Notes
    This Pulumi package is based on the spectrocloud Terraform Provider.
    Viewing docs for spectrocloud 0.29.1
    published on Friday, May 8, 2026 by spectrocloud
      Try Pulumi Cloud free. Your team will thank you.