1. Packages
  2. Azure Classic
  3. API Docs
  4. compute
  5. getConfidentialLedger

We recommend using Azure Native.

Azure v6.13.0 published on Monday, Dec 9, 2024 by Pulumi

azure.compute.getConfidentialLedger

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure v6.13.0 published on Monday, Dec 9, 2024 by Pulumi

    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 dictionary

    The following arguments are supported:

    Name string
    Specifies the name of this Confidential Ledger.
    ResourceGroupName string
    Specifies the name of the Resource Group where this Confidential Ledger exists.
    Name string
    Specifies the name of this Confidential Ledger.
    ResourceGroupName string
    Specifies the name of the Resource Group where this Confidential Ledger exists.
    name String
    Specifies the name of this Confidential Ledger.
    resourceGroupName String
    Specifies the name of the Resource Group where this Confidential Ledger exists.
    name string
    Specifies the name of this Confidential Ledger.
    resourceGroupName string
    Specifies the name of the Resource Group where this Confidential Ledger exists.
    name str
    Specifies the name of this Confidential Ledger.
    resource_group_name str
    Specifies the name of the Resource Group where this Confidential Ledger exists.
    name String
    Specifies the name of this Confidential Ledger.
    resourceGroupName String
    Specifies the name of the Resource Group where this Confidential Ledger exists.

    getConfidentialLedger Result

    The following output properties are available:

    AzureadBasedServicePrincipals List<GetConfidentialLedgerAzureadBasedServicePrincipal>
    CertificateBasedSecurityPrincipals List<GetConfidentialLedgerCertificateBasedSecurityPrincipal>
    Id string
    The provider-assigned unique ID for this managed resource.
    IdentityServiceEndpoint string
    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
    ResourceGroupName string
    Tags Dictionary<string, string>
    A mapping of tags to assign to the Confidential Ledger.
    AzureadBasedServicePrincipals []GetConfidentialLedgerAzureadBasedServicePrincipal
    CertificateBasedSecurityPrincipals []GetConfidentialLedgerCertificateBasedSecurityPrincipal
    Id string
    The provider-assigned unique ID for this managed resource.
    IdentityServiceEndpoint string
    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
    ResourceGroupName string
    Tags map[string]string
    A mapping of tags to assign to the Confidential Ledger.
    azureadBasedServicePrincipals List<GetConfidentialLedgerAzureadBasedServicePrincipal>
    certificateBasedSecurityPrincipals List<GetConfidentialLedgerCertificateBasedSecurityPrincipal>
    id String
    The provider-assigned unique ID for this managed resource.
    identityServiceEndpoint String
    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
    resourceGroupName String
    tags Map<String,String>
    A mapping of tags to assign to the Confidential Ledger.
    azureadBasedServicePrincipals GetConfidentialLedgerAzureadBasedServicePrincipal[]
    certificateBasedSecurityPrincipals GetConfidentialLedgerCertificateBasedSecurityPrincipal[]
    id string
    The provider-assigned unique ID for this managed resource.
    identityServiceEndpoint string
    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
    resourceGroupName string
    tags {[key: string]: string}
    A mapping of tags to assign to the Confidential Ledger.
    azuread_based_service_principals Sequence[GetConfidentialLedgerAzureadBasedServicePrincipal]
    certificate_based_security_principals Sequence[GetConfidentialLedgerCertificateBasedSecurityPrincipal]
    id str
    The provider-assigned unique ID for this managed resource.
    identity_service_endpoint str
    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_name str
    tags Mapping[str, str]
    A mapping of tags to assign to the Confidential Ledger.
    azureadBasedServicePrincipals List<Property Map>
    certificateBasedSecurityPrincipals List<Property Map>
    id String
    The provider-assigned unique ID for this managed resource.
    identityServiceEndpoint String
    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
    resourceGroupName String
    tags Map<String>
    A mapping of tags to assign to the Confidential Ledger.

    Supporting Types

    GetConfidentialLedgerAzureadBasedServicePrincipal

    LedgerRoleName string
    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.
    LedgerRoleName string
    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.
    ledgerRoleName String
    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.
    ledgerRoleName string
    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_name str
    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.
    ledgerRoleName String
    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

    LedgerRoleName string
    The Ledger Role to grant this Certificate Security Principal.
    PemPublicKey string
    The public key, in PEM format, of the certificate used by this identity to authenticate with the Confidential Ledger.
    LedgerRoleName string
    The Ledger Role to grant this Certificate Security Principal.
    PemPublicKey string
    The public key, in PEM format, of the certificate used by this identity to authenticate with the Confidential Ledger.
    ledgerRoleName String
    The Ledger Role to grant this Certificate Security Principal.
    pemPublicKey String
    The public key, in PEM format, of the certificate used by this identity to authenticate with the Confidential Ledger.
    ledgerRoleName string
    The Ledger Role to grant this Certificate Security Principal.
    pemPublicKey string
    The public key, in PEM format, of the certificate used by this identity to authenticate with the Confidential Ledger.
    ledger_role_name str
    The Ledger Role to grant this Certificate Security Principal.
    pem_public_key str
    The public key, in PEM format, of the certificate used by this identity to authenticate with the Confidential Ledger.
    ledgerRoleName String
    The Ledger Role to grant this Certificate Security Principal.
    pemPublicKey String
    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 azurerm Terraform Provider.
    azure logo

    We recommend using Azure Native.

    Azure v6.13.0 published on Monday, Dec 9, 2024 by Pulumi