We recommend using Azure Native.
Azure v6.21.0 published on Friday, Mar 7, 2025 by Pulumi
azure.compute.getConfidentialLedger
Explore with Pulumi AI
Gets information about an existing Confidential Ledger.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const current = azure.compute.getConfidentialLedger({
    name: "example-ledger",
    resourceGroupName: "example-resources",
});
export const ledgerEndpoint = current.then(current => current.ledgerEndpoint);
import pulumi
import pulumi_azure as azure
current = azure.compute.get_confidential_ledger(name="example-ledger",
    resource_group_name="example-resources")
pulumi.export("ledgerEndpoint", current.ledger_endpoint)
package main
import (
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/compute"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		current, err := compute.GetConfidentialLedger(ctx, &compute.GetConfidentialLedgerArgs{
			Name:              "example-ledger",
			ResourceGroupName: "example-resources",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("ledgerEndpoint", current.LedgerEndpoint)
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() => 
{
    var current = Azure.Compute.GetConfidentialLedger.Invoke(new()
    {
        Name = "example-ledger",
        ResourceGroupName = "example-resources",
    });
    return new Dictionary<string, object?>
    {
        ["ledgerEndpoint"] = current.Apply(getConfidentialLedgerResult => getConfidentialLedgerResult.LedgerEndpoint),
    };
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.compute.ComputeFunctions;
import com.pulumi.azure.compute.inputs.GetConfidentialLedgerArgs;
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 current = ComputeFunctions.getConfidentialLedger(GetConfidentialLedgerArgs.builder()
            .name("example-ledger")
            .resourceGroupName("example-resources")
            .build());
        ctx.export("ledgerEndpoint", current.applyValue(getConfidentialLedgerResult -> getConfidentialLedgerResult.ledgerEndpoint()));
    }
}
variables:
  current:
    fn::invoke:
      function: azure:compute:getConfidentialLedger
      arguments:
        name: example-ledger
        resourceGroupName: example-resources
outputs:
  ledgerEndpoint: ${current.ledgerEndpoint}
Using getConfidentialLedger
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 getConfidentialLedger(args: GetConfidentialLedgerArgs, opts?: InvokeOptions): Promise<GetConfidentialLedgerResult>
function getConfidentialLedgerOutput(args: GetConfidentialLedgerOutputArgs, opts?: InvokeOptions): Output<GetConfidentialLedgerResult>def get_confidential_ledger(name: Optional[str] = None,
                            resource_group_name: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetConfidentialLedgerResult
def get_confidential_ledger_output(name: Optional[pulumi.Input[str]] = None,
                            resource_group_name: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetConfidentialLedgerResult]func GetConfidentialLedger(ctx *Context, args *GetConfidentialLedgerArgs, opts ...InvokeOption) (*GetConfidentialLedgerResult, error)
func GetConfidentialLedgerOutput(ctx *Context, args *GetConfidentialLedgerOutputArgs, opts ...InvokeOption) GetConfidentialLedgerResultOutput> Note: This function is named GetConfidentialLedger in the Go SDK.
public static class GetConfidentialLedger 
{
    public static Task<GetConfidentialLedgerResult> InvokeAsync(GetConfidentialLedgerArgs args, InvokeOptions? opts = null)
    public static Output<GetConfidentialLedgerResult> Invoke(GetConfidentialLedgerInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetConfidentialLedgerResult> getConfidentialLedger(GetConfidentialLedgerArgs args, InvokeOptions options)
public static Output<GetConfidentialLedgerResult> getConfidentialLedger(GetConfidentialLedgerArgs args, InvokeOptions options)
fn::invoke:
  function: azure:compute/getConfidentialLedger:getConfidentialLedger
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Name string
- Specifies the name of this Confidential Ledger.
- ResourceGroup stringName 
- Specifies the name of the Resource Group where this Confidential Ledger exists.
- Name string
- Specifies the name of this Confidential Ledger.
- ResourceGroup stringName 
- Specifies the name of the Resource Group where this Confidential Ledger exists.
- name String
- Specifies the name of this Confidential Ledger.
- resourceGroup StringName 
- Specifies the name of the Resource Group where this Confidential Ledger exists.
- name string
- Specifies the name of this Confidential Ledger.
- resourceGroup stringName 
- Specifies the name of the Resource Group where this Confidential Ledger exists.
- name str
- Specifies the name of this Confidential Ledger.
- resource_group_ strname 
- Specifies the name of the Resource Group where this Confidential Ledger exists.
- name String
- Specifies the name of this Confidential Ledger.
- resourceGroup StringName 
- Specifies the name of the Resource Group where this Confidential Ledger exists.
getConfidentialLedger Result
The following output properties are available:
- AzureadBased List<GetService Principals Confidential Ledger Azuread Based Service Principal> 
- CertificateBased List<GetSecurity Principals Confidential Ledger Certificate Based Security Principal> 
- Id string
- The provider-assigned unique ID for this managed resource.
- IdentityService stringEndpoint 
- The Identity Service Endpoint for this Confidential Ledger.
- LedgerEndpoint string
- The Endpoint for this Confidential Ledger.
- LedgerType string
- The type of Confidential Ledger.
- Location string
- The supported Azure location where the Confidential Ledger exists.
- Name string
- ResourceGroup stringName 
- Dictionary<string, string>
- A mapping of tags to assign to the Confidential Ledger.
- AzureadBased []GetService Principals Confidential Ledger Azuread Based Service Principal 
- CertificateBased []GetSecurity Principals Confidential Ledger Certificate Based Security Principal 
- Id string
- The provider-assigned unique ID for this managed resource.
- IdentityService stringEndpoint 
- The Identity Service Endpoint for this Confidential Ledger.
- LedgerEndpoint string
- The Endpoint for this Confidential Ledger.
- LedgerType string
- The type of Confidential Ledger.
- Location string
- The supported Azure location where the Confidential Ledger exists.
- Name string
- ResourceGroup stringName 
- map[string]string
- A mapping of tags to assign to the Confidential Ledger.
- azureadBased List<GetService Principals Confidential Ledger Azuread Based Service Principal> 
- certificateBased List<GetSecurity Principals Confidential Ledger Certificate Based Security Principal> 
- id String
- The provider-assigned unique ID for this managed resource.
- identityService StringEndpoint 
- The Identity Service Endpoint for this Confidential Ledger.
- ledgerEndpoint String
- The Endpoint for this Confidential Ledger.
- ledgerType String
- The type of Confidential Ledger.
- location String
- The supported Azure location where the Confidential Ledger exists.
- name String
- resourceGroup StringName 
- Map<String,String>
- A mapping of tags to assign to the Confidential Ledger.
- azureadBased GetService Principals Confidential Ledger Azuread Based Service Principal[] 
- certificateBased GetSecurity Principals Confidential Ledger Certificate Based Security Principal[] 
- id string
- The provider-assigned unique ID for this managed resource.
- identityService stringEndpoint 
- The Identity Service Endpoint for this Confidential Ledger.
- ledgerEndpoint string
- The Endpoint for this Confidential Ledger.
- ledgerType string
- The type of Confidential Ledger.
- location string
- The supported Azure location where the Confidential Ledger exists.
- name string
- resourceGroup stringName 
- {[key: string]: string}
- A mapping of tags to assign to the Confidential Ledger.
- azuread_based_ Sequence[Getservice_ principals Confidential Ledger Azuread Based Service Principal] 
- certificate_based_ Sequence[Getsecurity_ principals Confidential Ledger Certificate Based Security Principal] 
- id str
- The provider-assigned unique ID for this managed resource.
- identity_service_ strendpoint 
- The Identity Service Endpoint for this Confidential Ledger.
- ledger_endpoint str
- The Endpoint for this Confidential Ledger.
- ledger_type str
- The type of Confidential Ledger.
- location str
- The supported Azure location where the Confidential Ledger exists.
- name str
- resource_group_ strname 
- Mapping[str, str]
- A mapping of tags to assign to the Confidential Ledger.
- azureadBased List<Property Map>Service Principals 
- certificateBased List<Property Map>Security Principals 
- id String
- The provider-assigned unique ID for this managed resource.
- identityService StringEndpoint 
- The Identity Service Endpoint for this Confidential Ledger.
- ledgerEndpoint String
- The Endpoint for this Confidential Ledger.
- ledgerType String
- The type of Confidential Ledger.
- location String
- The supported Azure location where the Confidential Ledger exists.
- name String
- resourceGroup StringName 
- Map<String>
- A mapping of tags to assign to the Confidential Ledger.
Supporting Types
GetConfidentialLedgerAzureadBasedServicePrincipal      
- LedgerRole stringName 
- The Ledger Role to grant this Certificate Security Principal.
- PrincipalId string
- The Principal ID of the AzureAD Service Principal.
- TenantId string
- The Tenant ID for this AzureAD Service Principal.
- LedgerRole stringName 
- The Ledger Role to grant this Certificate Security Principal.
- PrincipalId string
- The Principal ID of the AzureAD Service Principal.
- TenantId string
- The Tenant ID for this AzureAD Service Principal.
- ledgerRole StringName 
- The Ledger Role to grant this Certificate Security Principal.
- principalId String
- The Principal ID of the AzureAD Service Principal.
- tenantId String
- The Tenant ID for this AzureAD Service Principal.
- ledgerRole stringName 
- The Ledger Role to grant this Certificate Security Principal.
- principalId string
- The Principal ID of the AzureAD Service Principal.
- tenantId string
- The Tenant ID for this AzureAD Service Principal.
- ledger_role_ strname 
- The Ledger Role to grant this Certificate Security Principal.
- principal_id str
- The Principal ID of the AzureAD Service Principal.
- tenant_id str
- The Tenant ID for this AzureAD Service Principal.
- ledgerRole StringName 
- The Ledger Role to grant this Certificate Security Principal.
- principalId String
- The Principal ID of the AzureAD Service Principal.
- tenantId String
- The Tenant ID for this AzureAD Service Principal.
GetConfidentialLedgerCertificateBasedSecurityPrincipal      
- LedgerRole stringName 
- The Ledger Role to grant this Certificate Security Principal.
- PemPublic stringKey 
- The public key, in PEM format, of the certificate used by this identity to authenticate with the Confidential Ledger.
- LedgerRole stringName 
- The Ledger Role to grant this Certificate Security Principal.
- PemPublic stringKey 
- The public key, in PEM format, of the certificate used by this identity to authenticate with the Confidential Ledger.
- ledgerRole StringName 
- The Ledger Role to grant this Certificate Security Principal.
- pemPublic StringKey 
- The public key, in PEM format, of the certificate used by this identity to authenticate with the Confidential Ledger.
- ledgerRole stringName 
- The Ledger Role to grant this Certificate Security Principal.
- pemPublic stringKey 
- The public key, in PEM format, of the certificate used by this identity to authenticate with the Confidential Ledger.
- ledger_role_ strname 
- The Ledger Role to grant this Certificate Security Principal.
- pem_public_ strkey 
- The public key, in PEM format, of the certificate used by this identity to authenticate with the Confidential Ledger.
- ledgerRole StringName 
- The Ledger Role to grant this Certificate Security Principal.
- pemPublic StringKey 
- The public key, in PEM format, of the certificate used by this identity to authenticate with the Confidential Ledger.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the azurermTerraform Provider.