spectrocloud 0.23.4 published on Monday, Apr 14, 2025 by spectrocloud
spectrocloud.getCloudaccountAzure
Explore with Pulumi AI
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:
getCloudaccountAzure Result
The following output properties are available:
- Azure
Client stringId - The unique client ID from Azure Management Portal.
- Azure
Tenant stringId - The tenant ID of the Azure cloud account registered in Palette.
- Disable
Properties boolRequest - 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.
- Tenant
Name string - The name of the Azure tenant.
- Context string
- The context of the cluster. Allowed values are
project
ortenant
or ``.
- Azure
Client stringId - The unique client ID from Azure Management Portal.
- Azure
Tenant stringId - The tenant ID of the Azure cloud account registered in Palette.
- Disable
Properties boolRequest - 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.
- Tenant
Name string - The name of the Azure tenant.
- Context string
- The context of the cluster. Allowed values are
project
ortenant
or ``.
- azure
Client StringId - The unique client ID from Azure Management Portal.
- azure
Tenant StringId - The tenant ID of the Azure cloud account registered in Palette.
- disable
Properties BooleanRequest - 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.
- tenant
Name String - The name of the Azure tenant.
- context String
- The context of the cluster. Allowed values are
project
ortenant
or ``.
- azure
Client stringId - The unique client ID from Azure Management Portal.
- azure
Tenant stringId - The tenant ID of the Azure cloud account registered in Palette.
- disable
Properties booleanRequest - 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.
- tenant
Name string - The name of the Azure tenant.
- context string
- The context of the cluster. Allowed values are
project
ortenant
or ``.
- azure_
client_ strid - The unique client ID from Azure Management Portal.
- azure_
tenant_ strid - The tenant ID of the Azure cloud account registered in Palette.
- disable_
properties_ boolrequest - 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
ortenant
or ``.
- azure
Client StringId - The unique client ID from Azure Management Portal.
- azure
Tenant StringId - The tenant ID of the Azure cloud account registered in Palette.
- disable
Properties BooleanRequest - 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.
- tenant
Name String - The name of the Azure tenant.
- context String
- The context of the cluster. Allowed values are
project
ortenant
or ``.
Package Details
- Repository
- spectrocloud spectrocloud/terraform-provider-spectrocloud
- License
- Notes
- This Pulumi package is based on the
spectrocloud
Terraform Provider.
spectrocloud 0.23.4 published on Monday, Apr 14, 2025 by spectrocloud