1. Packages
  2. Spectrocloud Provider
  3. API Docs
  4. getCloudaccountAzure
spectrocloud 0.23.4 published on Monday, Apr 14, 2025 by spectrocloud

spectrocloud.getCloudaccountAzure

Explore with Pulumi AI

spectrocloud logo
spectrocloud 0.23.4 published on Monday, Apr 14, 2025 by spectrocloud

    A data source for retrieving information about an Azure cloud account registered in Palette.

    Example Usage

    You can retrieve the details of an Azure cloud registered in Palette by specifying the ID of the cloud account.

    import * as pulumi from "@pulumi/pulumi";
    import * as spectrocloud from "@pulumi/spectrocloud";
    
    const azureAccount = spectrocloud.getCloudaccountAzure({
        id: "45bddf48b8fc3ea6c1774886",
    });
    
    import pulumi
    import pulumi_spectrocloud as spectrocloud
    
    azure_account = spectrocloud.get_cloudaccount_azure(id="45bddf48b8fc3ea6c1774886")
    
    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.LookupCloudaccountAzure(ctx, &spectrocloud.LookupCloudaccountAzureArgs{
    			Id: pulumi.StringRef("45bddf48b8fc3ea6c1774886"),
    		}, 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 azureAccount = Spectrocloud.GetCloudaccountAzure.Invoke(new()
        {
            Id = "45bddf48b8fc3ea6c1774886",
        });
    
    });
    
    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.GetCloudaccountAzureArgs;
    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 azureAccount = SpectrocloudFunctions.getCloudaccountAzure(GetCloudaccountAzureArgs.builder()
                .id("45bddf48b8fc3ea6c1774886")
                .build());
    
        }
    }
    
    variables:
      azureAccount:
        fn::invoke:
          function: spectrocloud:getCloudaccountAzure
          arguments:
            id: 45bddf48b8fc3ea6c1774886
    

    Alternatively, you specify the ID of the cloud account to retrieve the details of the Azure cloud account.

    import * as pulumi from "@pulumi/pulumi";
    import * as spectrocloud from "@pulumi/spectrocloud";
    
    const azureAccount = spectrocloud.getCloudaccountAzure({
        name: "primary-azure-account",
    });
    
    import pulumi
    import pulumi_spectrocloud as spectrocloud
    
    azure_account = spectrocloud.get_cloudaccount_azure(name="primary-azure-account")
    
    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.LookupCloudaccountAzure(ctx, &spectrocloud.LookupCloudaccountAzureArgs{
    			Name: pulumi.StringRef("primary-azure-account"),
    		}, 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 azureAccount = Spectrocloud.GetCloudaccountAzure.Invoke(new()
        {
            Name = "primary-azure-account",
        });
    
    });
    
    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.GetCloudaccountAzureArgs;
    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 azureAccount = SpectrocloudFunctions.getCloudaccountAzure(GetCloudaccountAzureArgs.builder()
                .name("primary-azure-account")
                .build());
    
        }
    }
    
    variables:
      azureAccount:
        fn::invoke:
          function: spectrocloud:getCloudaccountAzure
          arguments:
            name: primary-azure-account
    

    Using getCloudaccountAzure

    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 getCloudaccountAzure(args: GetCloudaccountAzureArgs, opts?: InvokeOptions): Promise<GetCloudaccountAzureResult>
    function getCloudaccountAzureOutput(args: GetCloudaccountAzureOutputArgs, opts?: InvokeOptions): Output<GetCloudaccountAzureResult>
    def get_cloudaccount_azure(context: Optional[str] = None,
                               id: Optional[str] = None,
                               name: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetCloudaccountAzureResult
    def get_cloudaccount_azure_output(context: Optional[pulumi.Input[str]] = None,
                               id: Optional[pulumi.Input[str]] = None,
                               name: Optional[pulumi.Input[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetCloudaccountAzureResult]
    func LookupCloudaccountAzure(ctx *Context, args *LookupCloudaccountAzureArgs, opts ...InvokeOption) (*LookupCloudaccountAzureResult, error)
    func LookupCloudaccountAzureOutput(ctx *Context, args *LookupCloudaccountAzureOutputArgs, opts ...InvokeOption) LookupCloudaccountAzureResultOutput

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

    public static class GetCloudaccountAzure 
    {
        public static Task<GetCloudaccountAzureResult> InvokeAsync(GetCloudaccountAzureArgs args, InvokeOptions? opts = null)
        public static Output<GetCloudaccountAzureResult> Invoke(GetCloudaccountAzureInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCloudaccountAzureResult> getCloudaccountAzure(GetCloudaccountAzureArgs args, InvokeOptions options)
    public static Output<GetCloudaccountAzureResult> getCloudaccountAzure(GetCloudaccountAzureArgs args, InvokeOptions options)
    
    fn::invoke:
      function: spectrocloud:index/getCloudaccountAzure:getCloudaccountAzure
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Context string
    The context of the cluster. Allowed values are project or tenant or ``.
    Id string
    ID of the Azure cloud account registered in Palette.
    Name string
    Name of the Azure cloud account registered in Palette.
    Context string
    The context of the cluster. Allowed values are project or tenant or ``.
    Id string
    ID of the Azure cloud account registered in Palette.
    Name string
    Name of the Azure cloud account registered in Palette.
    context String
    The context of the cluster. Allowed values are project or tenant or ``.
    id String
    ID of the Azure cloud account registered in Palette.
    name String
    Name of the Azure cloud account registered in Palette.
    context string
    The context of the cluster. Allowed values are project or tenant or ``.
    id string
    ID of the Azure cloud account registered in Palette.
    name string
    Name of the Azure cloud account registered in Palette.
    context str
    The context of the cluster. Allowed values are project or tenant or ``.
    id str
    ID of the Azure cloud account registered in Palette.
    name str
    Name of the Azure cloud account registered in Palette.
    context String
    The context of the cluster. Allowed values are project or tenant or ``.
    id String
    ID of the Azure cloud account registered in Palette.
    name String
    Name of the Azure cloud account registered in Palette.

    getCloudaccountAzure Result

    The following output properties are available:

    AzureClientId string
    The unique client ID from Azure Management Portal.
    AzureTenantId string
    The tenant ID of the Azure cloud account registered in Palette.
    DisablePropertiesRequest bool
    The status of the disable properties option.
    Id string
    ID of the Azure cloud account registered in Palette.
    Name string
    Name of the Azure cloud account registered in Palette.
    TenantName string
    The name of the Azure tenant.
    Context string
    The context of the cluster. Allowed values are project or tenant or ``.
    AzureClientId string
    The unique client ID from Azure Management Portal.
    AzureTenantId string
    The tenant ID of the Azure cloud account registered in Palette.
    DisablePropertiesRequest bool
    The status of the disable properties option.
    Id string
    ID of the Azure cloud account registered in Palette.
    Name string
    Name of the Azure cloud account registered in Palette.
    TenantName string
    The name of the Azure tenant.
    Context string
    The context of the cluster. Allowed values are project or tenant or ``.
    azureClientId String
    The unique client ID from Azure Management Portal.
    azureTenantId String
    The tenant ID of the Azure cloud account registered in Palette.
    disablePropertiesRequest Boolean
    The status of the disable properties option.
    id String
    ID of the Azure cloud account registered in Palette.
    name String
    Name of the Azure cloud account registered in Palette.
    tenantName String
    The name of the Azure tenant.
    context String
    The context of the cluster. Allowed values are project or tenant or ``.
    azureClientId string
    The unique client ID from Azure Management Portal.
    azureTenantId string
    The tenant ID of the Azure cloud account registered in Palette.
    disablePropertiesRequest boolean
    The status of the disable properties option.
    id string
    ID of the Azure cloud account registered in Palette.
    name string
    Name of the Azure cloud account registered in Palette.
    tenantName string
    The name of the Azure tenant.
    context string
    The context of the cluster. Allowed values are project or tenant or ``.
    azure_client_id str
    The unique client ID from Azure Management Portal.
    azure_tenant_id str
    The tenant ID of the Azure cloud account registered in Palette.
    disable_properties_request bool
    The status of the disable properties option.
    id str
    ID of the Azure cloud account registered in Palette.
    name str
    Name of the Azure cloud account registered in Palette.
    tenant_name str
    The name of the Azure tenant.
    context str
    The context of the cluster. Allowed values are project or tenant or ``.
    azureClientId String
    The unique client ID from Azure Management Portal.
    azureTenantId String
    The tenant ID of the Azure cloud account registered in Palette.
    disablePropertiesRequest Boolean
    The status of the disable properties option.
    id String
    ID of the Azure cloud account registered in Palette.
    name String
    Name of the Azure cloud account registered in Palette.
    tenantName String
    The name of the Azure tenant.
    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.
    spectrocloud logo
    spectrocloud 0.23.4 published on Monday, Apr 14, 2025 by spectrocloud