We recommend using Azure Native.
Azure Classic v6.2.0 published on Friday, Sep 27, 2024 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)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: azure:compute/getConfidentialLedger:getConfidentialLedger
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Name string
 - Specifies the name of this Confidential Ledger.
 - Resource
Group stringName  - Specifies the name of the Resource Group where this Confidential Ledger exists.
 
- Name string
 - Specifies the name of this Confidential Ledger.
 - Resource
Group stringName  - Specifies the name of the Resource Group where this Confidential Ledger exists.
 
- name String
 - Specifies the name of this Confidential Ledger.
 - resource
Group StringName  - Specifies the name of the Resource Group where this Confidential Ledger exists.
 
- name string
 - Specifies the name of this Confidential Ledger.
 - resource
Group 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.
 - resource
Group StringName  - Specifies the name of the Resource Group where this Confidential Ledger exists.
 
getConfidentialLedger Result
The following output properties are available:
- Azuread
Based List<GetService Principals Confidential Ledger Azuread Based Service Principal>  - Certificate
Based List<GetSecurity Principals Confidential Ledger Certificate Based Security Principal>  - Id string
 - The provider-assigned unique ID for this managed resource.
 - Identity
Service stringEndpoint  - The Identity Service Endpoint for this Confidential Ledger.
 - Ledger
Endpoint string - The Endpoint for this Confidential Ledger.
 - Ledger
Type string - The type of Confidential Ledger.
 - Location string
 - The supported Azure location where the Confidential Ledger exists.
 - Name string
 - Resource
Group stringName  - Dictionary<string, string>
 - A mapping of tags to assign to the Confidential Ledger.
 
- Azuread
Based []GetService Principals Confidential Ledger Azuread Based Service Principal  - Certificate
Based []GetSecurity Principals Confidential Ledger Certificate Based Security Principal  - Id string
 - The provider-assigned unique ID for this managed resource.
 - Identity
Service stringEndpoint  - The Identity Service Endpoint for this Confidential Ledger.
 - Ledger
Endpoint string - The Endpoint for this Confidential Ledger.
 - Ledger
Type string - The type of Confidential Ledger.
 - Location string
 - The supported Azure location where the Confidential Ledger exists.
 - Name string
 - Resource
Group stringName  - map[string]string
 - A mapping of tags to assign to the Confidential Ledger.
 
- azuread
Based List<GetService Principals Confidential Ledger Azuread Based Service Principal>  - certificate
Based List<GetSecurity Principals Confidential Ledger Certificate Based Security Principal>  - id String
 - The provider-assigned unique ID for this managed resource.
 - identity
Service StringEndpoint  - The Identity Service Endpoint for this Confidential Ledger.
 - ledger
Endpoint String - The Endpoint for this Confidential Ledger.
 - ledger
Type String - The type of Confidential Ledger.
 - location String
 - The supported Azure location where the Confidential Ledger exists.
 - name String
 - resource
Group StringName  - Map<String,String>
 - A mapping of tags to assign to the Confidential Ledger.
 
- azuread
Based GetService Principals Confidential Ledger Azuread Based Service Principal[]  - certificate
Based GetSecurity Principals Confidential Ledger Certificate Based Security Principal[]  - id string
 - The provider-assigned unique ID for this managed resource.
 - identity
Service stringEndpoint  - The Identity Service Endpoint for this Confidential Ledger.
 - ledger
Endpoint string - The Endpoint for this Confidential Ledger.
 - ledger
Type string - The type of Confidential Ledger.
 - location string
 - The supported Azure location where the Confidential Ledger exists.
 - name string
 - resource
Group 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.
 
- azuread
Based List<Property Map>Service Principals  - certificate
Based List<Property Map>Security Principals  - id String
 - The provider-assigned unique ID for this managed resource.
 - identity
Service StringEndpoint  - The Identity Service Endpoint for this Confidential Ledger.
 - ledger
Endpoint String - The Endpoint for this Confidential Ledger.
 - ledger
Type String - The type of Confidential Ledger.
 - location String
 - The supported Azure location where the Confidential Ledger exists.
 - name String
 - resource
Group StringName  - Map<String>
 - A mapping of tags to assign to the Confidential Ledger.
 
Supporting Types
GetConfidentialLedgerAzureadBasedServicePrincipal      
- Ledger
Role stringName  - The Ledger Role to grant this Certificate Security Principal.
 - Principal
Id string - The Principal ID of the AzureAD Service Principal.
 - Tenant
Id string - The Tenant ID for this AzureAD Service Principal.
 
- Ledger
Role stringName  - The Ledger Role to grant this Certificate Security Principal.
 - Principal
Id string - The Principal ID of the AzureAD Service Principal.
 - Tenant
Id string - The Tenant ID for this AzureAD Service Principal.
 
- ledger
Role StringName  - The Ledger Role to grant this Certificate Security Principal.
 - principal
Id String - The Principal ID of the AzureAD Service Principal.
 - tenant
Id String - The Tenant ID for this AzureAD Service Principal.
 
- ledger
Role stringName  - The Ledger Role to grant this Certificate Security Principal.
 - principal
Id string - The Principal ID of the AzureAD Service Principal.
 - tenant
Id 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.
 
- ledger
Role StringName  - The Ledger Role to grant this Certificate Security Principal.
 - principal
Id String - The Principal ID of the AzureAD Service Principal.
 - tenant
Id String - The Tenant ID for this AzureAD Service Principal.
 
GetConfidentialLedgerCertificateBasedSecurityPrincipal      
- Ledger
Role stringName  - The Ledger Role to grant this Certificate Security Principal.
 - Pem
Public stringKey  - The public key, in PEM format, of the certificate used by this identity to authenticate with the Confidential Ledger.
 
- Ledger
Role stringName  - The Ledger Role to grant this Certificate Security Principal.
 - Pem
Public stringKey  - The public key, in PEM format, of the certificate used by this identity to authenticate with the Confidential Ledger.
 
- ledger
Role StringName  - The Ledger Role to grant this Certificate Security Principal.
 - pem
Public StringKey  - The public key, in PEM format, of the certificate used by this identity to authenticate with the Confidential Ledger.
 
- ledger
Role stringName  - The Ledger Role to grant this Certificate Security Principal.
 - pem
Public 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.
 
- ledger
Role StringName  - The Ledger Role to grant this Certificate Security Principal.
 - pem
Public 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.