azure-native.confidentialledger.Ledger
Explore with Pulumi AI
Confidential Ledger. Contains the properties of Confidential Ledger Resource. API Version: 2020-12-01-preview.
Example Usage
ConfidentialLedgerCreate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var ledger = new AzureNative.ConfidentialLedger.Ledger("ledger", new()
{
LedgerName = "DummyLedgerName",
Location = "WestUS",
Properties = new AzureNative.ConfidentialLedger.Inputs.LedgerPropertiesArgs
{
AadBasedSecurityPrincipals = new[]
{
new AzureNative.ConfidentialLedger.Inputs.AADBasedSecurityPrincipalArgs
{
LedgerRoleName = "Administrator",
PrincipalId = "34621747-6fc8-4771-a2eb-72f31c461f2e",
TenantId = "bce123b9-2b7b-4975-8360-5ca0b9b1cd08",
},
},
CertBasedSecurityPrincipals = new[]
{
new AzureNative.ConfidentialLedger.Inputs.CertBasedSecurityPrincipalArgs
{
Cert = @"-----BEGIN CERTIFICATE-----
MIIDBTCCAe2gAwIBAgIQXVogj9BAf49IpuOSIvztNDANBgkqhkiG9w0BAQsFADAtMSswKQYDVQQDEyJhY2NvdW50cy5hY2Nlc3Njb250cm9sLndpbmRvd3MubmV0MB4XDTIwMDMxNzAwMDAwMFoXDTI1MDMxNzAwMDAwMFowLTErMCkGA1UEAxMiYWNjb3VudHMuYWNjZXNzY29udHJvbC53aW5kb3dzLm5ldDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBANfLmdz9yIDskpZzrMXiDeVlCs75ZunrzwzBW5lz7UxdBjHu7Q9iT32otlBp++LOwBcKsVjuQ0GUbulX0FLsfLjEeCe58ZtSn//+6VRFSScg7i+WvDwEUWELR+vMPtCGcXBTpILEnYbSMz0No4+Jpkc1lyMIfDP/KSeqojo74xfW4RKtAgv39uwZ5Yz2hZ/IcWOvaQqMXp1lqhXLFIRWbwjLYYUbmwGwYpQ6++Cml0ucQoMkgYT88HpA/fzXQlLgrHamr3eE/lVp26ZWwfGLAvkdNBabQRSrk8k/c6BmY1mYpUFZo+795PI16mAdp1ioEwH8I5osis+/BR5GhPpwiA8CAwEAAaMhMB8wHQYDVR0OBBYEFF8MDGklOGhGNVJvsHHRCaqtzexcMA0GCSqGSIb3DQEBCwUAA4IBAQCKkegw/mdpCVl1lOpgU4G9RT+1gtcPqZK9kpimuDggSJju6KUQlOCi5/lIH5DCzpjFdmG17TjWVBNve5kowmrhLzovY0Ykk7+6hYTBK8dNNSmd4SK7zY++0aDIuOzHP2Cur+kgFC0gez50tPzotLDtMmp40gknXuzltwJfezNSw3gLgljDsGGcDIXK3qLSYh44qSuRGwulcN2EJUZBI9tIxoODpaWHIN8+z2uZvf8JBYFjA3+n9FRQn51X16CTcjq4QRTbNVpgVuQuyaYnEtx0ZnDvguB3RjGSPIXTRBkLl2x7e8/6uAZ6tchw8rhcOtPsFgJuoJokGjvcUSR/6Eqd
-----END CERTIFICATE-----",
LedgerRoleName = "Reader",
},
},
LedgerStorageAccount = "dummyStorageAccount",
LedgerType = "Public",
},
ResourceGroupName = "DummyResourceGroupName",
Tags =
{
{ "additionalProps1", "additional properties" },
},
});
});
package main
import (
confidentialledger "github.com/pulumi/pulumi-azure-native-sdk/confidentialledger"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := confidentialledger.NewLedger(ctx, "ledger", &confidentialledger.LedgerArgs{
LedgerName: pulumi.String("DummyLedgerName"),
Location: pulumi.String("WestUS"),
Properties: confidentialledger.LedgerPropertiesResponse{
AadBasedSecurityPrincipals: confidentialledger.AADBasedSecurityPrincipalArray{
&confidentialledger.AADBasedSecurityPrincipalArgs{
LedgerRoleName: pulumi.String("Administrator"),
PrincipalId: pulumi.String("34621747-6fc8-4771-a2eb-72f31c461f2e"),
TenantId: pulumi.String("bce123b9-2b7b-4975-8360-5ca0b9b1cd08"),
},
},
CertBasedSecurityPrincipals: confidentialledger.CertBasedSecurityPrincipalArray{
&confidentialledger.Cert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-----END CERTIFICATE-----"),
LedgerRoleName: pulumi.String("Reader"),
},
},
LedgerStorageAccount: pulumi.String("dummyStorageAccount"),
LedgerType: pulumi.String("Public"),
},
ResourceGroupName: pulumi.String("DummyResourceGroupName"),
Tags: pulumi.StringMap{
"additionalProps1": pulumi.String("additional properties"),
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.confidentialledger.Ledger;
import com.pulumi.azurenative.confidentialledger.LedgerArgs;
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) {
var ledger = new Ledger("ledger", LedgerArgs.builder()
.ledgerName("DummyLedgerName")
.location("WestUS")
.properties(Map.ofEntries(
Map.entry("aadBasedSecurityPrincipals", Map.ofEntries(
Map.entry("ledgerRoleName", "Administrator"),
Map.entry("principalId", "34621747-6fc8-4771-a2eb-72f31c461f2e"),
Map.entry("tenantId", "bce123b9-2b7b-4975-8360-5ca0b9b1cd08")
)),
Map.entry("certBasedSecurityPrincipals", Map.ofEntries(
Map.entry("cert", """
-----BEGIN CERTIFICATE-----
MIIDBTCCAe2gAwIBAgIQXVogj9BAf49IpuOSIvztNDANBgkqhkiG9w0BAQsFADAtMSswKQYDVQQDEyJhY2NvdW50cy5hY2Nlc3Njb250cm9sLndpbmRvd3MubmV0MB4XDTIwMDMxNzAwMDAwMFoXDTI1MDMxNzAwMDAwMFowLTErMCkGA1UEAxMiYWNjb3VudHMuYWNjZXNzY29udHJvbC53aW5kb3dzLm5ldDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBANfLmdz9yIDskpZzrMXiDeVlCs75ZunrzwzBW5lz7UxdBjHu7Q9iT32otlBp++LOwBcKsVjuQ0GUbulX0FLsfLjEeCe58ZtSn//+6VRFSScg7i+WvDwEUWELR+vMPtCGcXBTpILEnYbSMz0No4+Jpkc1lyMIfDP/KSeqojo74xfW4RKtAgv39uwZ5Yz2hZ/IcWOvaQqMXp1lqhXLFIRWbwjLYYUbmwGwYpQ6++Cml0ucQoMkgYT88HpA/fzXQlLgrHamr3eE/lVp26ZWwfGLAvkdNBabQRSrk8k/c6BmY1mYpUFZo+795PI16mAdp1ioEwH8I5osis+/BR5GhPpwiA8CAwEAAaMhMB8wHQYDVR0OBBYEFF8MDGklOGhGNVJvsHHRCaqtzexcMA0GCSqGSIb3DQEBCwUAA4IBAQCKkegw/mdpCVl1lOpgU4G9RT+1gtcPqZK9kpimuDggSJju6KUQlOCi5/lIH5DCzpjFdmG17TjWVBNve5kowmrhLzovY0Ykk7+6hYTBK8dNNSmd4SK7zY++0aDIuOzHP2Cur+kgFC0gez50tPzotLDtMmp40gknXuzltwJfezNSw3gLgljDsGGcDIXK3qLSYh44qSuRGwulcN2EJUZBI9tIxoODpaWHIN8+z2uZvf8JBYFjA3+n9FRQn51X16CTcjq4QRTbNVpgVuQuyaYnEtx0ZnDvguB3RjGSPIXTRBkLl2x7e8/6uAZ6tchw8rhcOtPsFgJuoJokGjvcUSR/6Eqd
-----END CERTIFICATE----- """),
Map.entry("ledgerRoleName", "Reader")
)),
Map.entry("ledgerStorageAccount", "dummyStorageAccount"),
Map.entry("ledgerType", "Public")
))
.resourceGroupName("DummyResourceGroupName")
.tags(Map.of("additionalProps1", "additional properties"))
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
ledger = azure_native.confidentialledger.Ledger("ledger",
ledger_name="DummyLedgerName",
location="WestUS",
properties=azure_native.confidentialledger.LedgerPropertiesResponseArgs(
aad_based_security_principals=[azure_native.confidentialledger.AADBasedSecurityPrincipalArgs(
ledger_role_name="Administrator",
principal_id="34621747-6fc8-4771-a2eb-72f31c461f2e",
tenant_id="bce123b9-2b7b-4975-8360-5ca0b9b1cd08",
)],
cert_based_security_principals=[azure_native.confidentialledger.CertBasedSecurityPrincipalArgs(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reader",
)],
ledger_storage_account="dummyStorageAccount",
ledger_type="Public",
),
resource_group_name="DummyResourceGroupName",
tags={
"additionalProps1": "additional properties",
})
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const ledger = new azure_native.confidentialledger.Ledger("ledger", {
ledgerName: "DummyLedgerName",
location: "WestUS",
properties: {
aadBasedSecurityPrincipals: [{
ledgerRoleName: "Administrator",
principalId: "34621747-6fc8-4771-a2eb-72f31c461f2e",
tenantId: "bce123b9-2b7b-4975-8360-5ca0b9b1cd08",
}],
certBasedSecurityPrincipals: [{
cert: `-----BEGIN CERTIFICATE-----
MIIDBTCCAe2gAwIBAgIQXVogj9BAf49IpuOSIvztNDANBgkqhkiG9w0BAQsFADAtMSswKQYDVQQDEyJhY2NvdW50cy5hY2Nlc3Njb250cm9sLndpbmRvd3MubmV0MB4XDTIwMDMxNzAwMDAwMFoXDTI1MDMxNzAwMDAwMFowLTErMCkGA1UEAxMiYWNjb3VudHMuYWNjZXNzY29udHJvbC53aW5kb3dzLm5ldDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBANfLmdz9yIDskpZzrMXiDeVlCs75ZunrzwzBW5lz7UxdBjHu7Q9iT32otlBp++LOwBcKsVjuQ0GUbulX0FLsfLjEeCe58ZtSn//+6VRFSScg7i+WvDwEUWELR+vMPtCGcXBTpILEnYbSMz0No4+Jpkc1lyMIfDP/KSeqojo74xfW4RKtAgv39uwZ5Yz2hZ/IcWOvaQqMXp1lqhXLFIRWbwjLYYUbmwGwYpQ6++Cml0ucQoMkgYT88HpA/fzXQlLgrHamr3eE/lVp26ZWwfGLAvkdNBabQRSrk8k/c6BmY1mYpUFZo+795PI16mAdp1ioEwH8I5osis+/BR5GhPpwiA8CAwEAAaMhMB8wHQYDVR0OBBYEFF8MDGklOGhGNVJvsHHRCaqtzexcMA0GCSqGSIb3DQEBCwUAA4IBAQCKkegw/mdpCVl1lOpgU4G9RT+1gtcPqZK9kpimuDggSJju6KUQlOCi5/lIH5DCzpjFdmG17TjWVBNve5kowmrhLzovY0Ykk7+6hYTBK8dNNSmd4SK7zY++0aDIuOzHP2Cur+kgFC0gez50tPzotLDtMmp40gknXuzltwJfezNSw3gLgljDsGGcDIXK3qLSYh44qSuRGwulcN2EJUZBI9tIxoODpaWHIN8+z2uZvf8JBYFjA3+n9FRQn51X16CTcjq4QRTbNVpgVuQuyaYnEtx0ZnDvguB3RjGSPIXTRBkLl2x7e8/6uAZ6tchw8rhcOtPsFgJuoJokGjvcUSR/6Eqd
-----END CERTIFICATE-----`,
ledgerRoleName: "Reader",
}],
ledgerStorageAccount: "dummyStorageAccount",
ledgerType: "Public",
},
resourceGroupName: "DummyResourceGroupName",
tags: {
additionalProps1: "additional properties",
},
});
resources:
ledger:
type: azure-native:confidentialledger:Ledger
properties:
ledgerName: DummyLedgerName
location: WestUS
properties:
aadBasedSecurityPrincipals:
- ledgerRoleName: Administrator
principalId: 34621747-6fc8-4771-a2eb-72f31c461f2e
tenantId: bce123b9-2b7b-4975-8360-5ca0b9b1cd08
certBasedSecurityPrincipals:
- cert: |-
-----BEGIN CERTIFICATE-----
MIIDBTCCAe2gAwIBAgIQXVogj9BAf49IpuOSIvztNDANBgkqhkiG9w0BAQsFADAtMSswKQYDVQQDEyJhY2NvdW50cy5hY2Nlc3Njb250cm9sLndpbmRvd3MubmV0MB4XDTIwMDMxNzAwMDAwMFoXDTI1MDMxNzAwMDAwMFowLTErMCkGA1UEAxMiYWNjb3VudHMuYWNjZXNzY29udHJvbC53aW5kb3dzLm5ldDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBANfLmdz9yIDskpZzrMXiDeVlCs75ZunrzwzBW5lz7UxdBjHu7Q9iT32otlBp++LOwBcKsVjuQ0GUbulX0FLsfLjEeCe58ZtSn//+6VRFSScg7i+WvDwEUWELR+vMPtCGcXBTpILEnYbSMz0No4+Jpkc1lyMIfDP/KSeqojo74xfW4RKtAgv39uwZ5Yz2hZ/IcWOvaQqMXp1lqhXLFIRWbwjLYYUbmwGwYpQ6++Cml0ucQoMkgYT88HpA/fzXQlLgrHamr3eE/lVp26ZWwfGLAvkdNBabQRSrk8k/c6BmY1mYpUFZo+795PI16mAdp1ioEwH8I5osis+/BR5GhPpwiA8CAwEAAaMhMB8wHQYDVR0OBBYEFF8MDGklOGhGNVJvsHHRCaqtzexcMA0GCSqGSIb3DQEBCwUAA4IBAQCKkegw/mdpCVl1lOpgU4G9RT+1gtcPqZK9kpimuDggSJju6KUQlOCi5/lIH5DCzpjFdmG17TjWVBNve5kowmrhLzovY0Ykk7+6hYTBK8dNNSmd4SK7zY++0aDIuOzHP2Cur+kgFC0gez50tPzotLDtMmp40gknXuzltwJfezNSw3gLgljDsGGcDIXK3qLSYh44qSuRGwulcN2EJUZBI9tIxoODpaWHIN8+z2uZvf8JBYFjA3+n9FRQn51X16CTcjq4QRTbNVpgVuQuyaYnEtx0ZnDvguB3RjGSPIXTRBkLl2x7e8/6uAZ6tchw8rhcOtPsFgJuoJokGjvcUSR/6Eqd
-----END CERTIFICATE-----
ledgerRoleName: Reader
ledgerStorageAccount: dummyStorageAccount
ledgerType: Public
resourceGroupName: DummyResourceGroupName
tags:
additionalProps1: additional properties
Create Ledger Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Ledger(name: string, args: LedgerArgs, opts?: CustomResourceOptions);
@overload
def Ledger(resource_name: str,
args: LedgerArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Ledger(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_group_name: Optional[str] = None,
ledger_name: Optional[str] = None,
location: Optional[str] = None,
properties: Optional[LedgerPropertiesArgs] = None,
tags: Optional[Mapping[str, str]] = None)
func NewLedger(ctx *Context, name string, args LedgerArgs, opts ...ResourceOption) (*Ledger, error)
public Ledger(string name, LedgerArgs args, CustomResourceOptions? opts = null)
public Ledger(String name, LedgerArgs args)
public Ledger(String name, LedgerArgs args, CustomResourceOptions options)
type: azure-native:confidentialledger:Ledger
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args LedgerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args LedgerArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args LedgerArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LedgerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args LedgerArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var ledgerResource = new AzureNative.Confidentialledger.Ledger("ledgerResource", new()
{
ResourceGroupName = "string",
LedgerName = "string",
Location = "string",
Properties =
{
{ "aadBasedSecurityPrincipals", new[]
{
{
{ "ledgerRoleName", "string" },
{ "principalId", "string" },
{ "tenantId", "string" },
},
} },
{ "certBasedSecurityPrincipals", new[]
{
{
{ "cert", "string" },
{ "ledgerRoleName", "string" },
},
} },
{ "ledgerStorageAccount", "string" },
{ "ledgerType", "string" },
},
Tags =
{
{ "string", "string" },
},
});
example, err := confidentialledger.NewLedger(ctx, "ledgerResource", &confidentialledger.LedgerArgs{
ResourceGroupName: "string",
LedgerName: "string",
Location: "string",
Properties: map[string]interface{}{
"aadBasedSecurityPrincipals": []map[string]interface{}{
map[string]interface{}{
"ledgerRoleName": "string",
"principalId": "string",
"tenantId": "string",
},
},
"certBasedSecurityPrincipals": []map[string]interface{}{
map[string]interface{}{
"cert": "string",
"ledgerRoleName": "string",
},
},
"ledgerStorageAccount": "string",
"ledgerType": "string",
},
Tags: map[string]interface{}{
"string": "string",
},
})
var ledgerResource = new Ledger("ledgerResource", LedgerArgs.builder()
.resourceGroupName("string")
.ledgerName("string")
.location("string")
.properties(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.tags(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.build());
ledger_resource = azure_native.confidentialledger.Ledger("ledgerResource",
resource_group_name=string,
ledger_name=string,
location=string,
properties={
aadBasedSecurityPrincipals: [{
ledgerRoleName: string,
principalId: string,
tenantId: string,
}],
certBasedSecurityPrincipals: [{
cert: string,
ledgerRoleName: string,
}],
ledgerStorageAccount: string,
ledgerType: string,
},
tags={
string: string,
})
const ledgerResource = new azure_native.confidentialledger.Ledger("ledgerResource", {
resourceGroupName: "string",
ledgerName: "string",
location: "string",
properties: {
aadBasedSecurityPrincipals: [{
ledgerRoleName: "string",
principalId: "string",
tenantId: "string",
}],
certBasedSecurityPrincipals: [{
cert: "string",
ledgerRoleName: "string",
}],
ledgerStorageAccount: "string",
ledgerType: "string",
},
tags: {
string: "string",
},
});
type: azure-native:confidentialledger:Ledger
properties:
ledgerName: string
location: string
properties:
aadBasedSecurityPrincipals:
- ledgerRoleName: string
principalId: string
tenantId: string
certBasedSecurityPrincipals:
- cert: string
ledgerRoleName: string
ledgerStorageAccount: string
ledgerType: string
resourceGroupName: string
tags:
string: string
Ledger Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Ledger resource accepts the following input properties:
- Resource
Group stringName - The name of the resource group.
- Ledger
Name string - Name of the Confidential Ledger
- Location string
- The Azure location where the Confidential Ledger is running.
- Properties
Pulumi.
Azure Native. Confidential Ledger. Inputs. Ledger Properties - Properties of Confidential Ledger Resource.
- Dictionary<string, string>
- Additional tags for Confidential Ledger
- Resource
Group stringName - The name of the resource group.
- Ledger
Name string - Name of the Confidential Ledger
- Location string
- The Azure location where the Confidential Ledger is running.
- Properties
Ledger
Properties Args - Properties of Confidential Ledger Resource.
- map[string]string
- Additional tags for Confidential Ledger
- resource
Group StringName - The name of the resource group.
- ledger
Name String - Name of the Confidential Ledger
- location String
- The Azure location where the Confidential Ledger is running.
- properties
Ledger
Properties - Properties of Confidential Ledger Resource.
- Map<String,String>
- Additional tags for Confidential Ledger
- resource
Group stringName - The name of the resource group.
- ledger
Name string - Name of the Confidential Ledger
- location string
- The Azure location where the Confidential Ledger is running.
- properties
Ledger
Properties - Properties of Confidential Ledger Resource.
- {[key: string]: string}
- Additional tags for Confidential Ledger
- resource_
group_ strname - The name of the resource group.
- ledger_
name str - Name of the Confidential Ledger
- location str
- The Azure location where the Confidential Ledger is running.
- properties
Ledger
Properties Args - Properties of Confidential Ledger Resource.
- Mapping[str, str]
- Additional tags for Confidential Ledger
- resource
Group StringName - The name of the resource group.
- ledger
Name String - Name of the Confidential Ledger
- location String
- The Azure location where the Confidential Ledger is running.
- properties Property Map
- Properties of Confidential Ledger Resource.
- Map<String>
- Additional tags for Confidential Ledger
Outputs
All input properties are implicitly available as output properties. Additionally, the Ledger resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Name of the Resource.
- System
Data Pulumi.Azure Native. Confidential Ledger. Outputs. System Data Response - Metadata pertaining to creation and last modification of the resource
- Type string
- The type of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Name of the Resource.
- System
Data SystemData Response - Metadata pertaining to creation and last modification of the resource
- Type string
- The type of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Name of the Resource.
- system
Data SystemData Response - Metadata pertaining to creation and last modification of the resource
- type String
- The type of the resource.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- Name of the Resource.
- system
Data SystemData Response - Metadata pertaining to creation and last modification of the resource
- type string
- The type of the resource.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- Name of the Resource.
- system_
data SystemData Response - Metadata pertaining to creation and last modification of the resource
- type str
- The type of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Name of the Resource.
- system
Data Property Map - Metadata pertaining to creation and last modification of the resource
- type String
- The type of the resource.
Supporting Types
AADBasedSecurityPrincipal, AADBasedSecurityPrincipalArgs
- Ledger
Role string | Pulumi.Name Azure Native. Confidential Ledger. Ledger Role Name - LedgerRole associated with the Security Principal of Ledger
- Principal
Id string - UUID/GUID based Principal Id of the Security Principal
- Tenant
Id string - UUID/GUID based Tenant Id of the Security Principal
- Ledger
Role string | LedgerName Role Name - LedgerRole associated with the Security Principal of Ledger
- Principal
Id string - UUID/GUID based Principal Id of the Security Principal
- Tenant
Id string - UUID/GUID based Tenant Id of the Security Principal
- ledger
Role String | LedgerName Role Name - LedgerRole associated with the Security Principal of Ledger
- principal
Id String - UUID/GUID based Principal Id of the Security Principal
- tenant
Id String - UUID/GUID based Tenant Id of the Security Principal
- ledger
Role string | LedgerName Role Name - LedgerRole associated with the Security Principal of Ledger
- principal
Id string - UUID/GUID based Principal Id of the Security Principal
- tenant
Id string - UUID/GUID based Tenant Id of the Security Principal
- ledger_
role_ str | Ledgername Role Name - LedgerRole associated with the Security Principal of Ledger
- principal_
id str - UUID/GUID based Principal Id of the Security Principal
- tenant_
id str - UUID/GUID based Tenant Id of the Security Principal
- ledger
Role String | "Reader" | "Contributor" | "Administrator"Name - LedgerRole associated with the Security Principal of Ledger
- principal
Id String - UUID/GUID based Principal Id of the Security Principal
- tenant
Id String - UUID/GUID based Tenant Id of the Security Principal
AADBasedSecurityPrincipalResponse, AADBasedSecurityPrincipalResponseArgs
- Ledger
Role stringName - LedgerRole associated with the Security Principal of Ledger
- Principal
Id string - UUID/GUID based Principal Id of the Security Principal
- Tenant
Id string - UUID/GUID based Tenant Id of the Security Principal
- Ledger
Role stringName - LedgerRole associated with the Security Principal of Ledger
- Principal
Id string - UUID/GUID based Principal Id of the Security Principal
- Tenant
Id string - UUID/GUID based Tenant Id of the Security Principal
- ledger
Role StringName - LedgerRole associated with the Security Principal of Ledger
- principal
Id String - UUID/GUID based Principal Id of the Security Principal
- tenant
Id String - UUID/GUID based Tenant Id of the Security Principal
- ledger
Role stringName - LedgerRole associated with the Security Principal of Ledger
- principal
Id string - UUID/GUID based Principal Id of the Security Principal
- tenant
Id string - UUID/GUID based Tenant Id of the Security Principal
- ledger_
role_ strname - LedgerRole associated with the Security Principal of Ledger
- principal_
id str - UUID/GUID based Principal Id of the Security Principal
- tenant_
id str - UUID/GUID based Tenant Id of the Security Principal
- ledger
Role StringName - LedgerRole associated with the Security Principal of Ledger
- principal
Id String - UUID/GUID based Principal Id of the Security Principal
- tenant
Id String - UUID/GUID based Tenant Id of the Security Principal
CertBasedSecurityPrincipal, CertBasedSecurityPrincipalArgs
- Cert string
- Public key of the user cert (.pem or .cer)
- Ledger
Role string | Pulumi.Name Azure Native. Confidential Ledger. Ledger Role Name - LedgerRole associated with the Security Principal of Ledger
- Cert string
- Public key of the user cert (.pem or .cer)
- Ledger
Role string | LedgerName Role Name - LedgerRole associated with the Security Principal of Ledger
- cert String
- Public key of the user cert (.pem or .cer)
- ledger
Role String | LedgerName Role Name - LedgerRole associated with the Security Principal of Ledger
- cert string
- Public key of the user cert (.pem or .cer)
- ledger
Role string | LedgerName Role Name - LedgerRole associated with the Security Principal of Ledger
- cert str
- Public key of the user cert (.pem or .cer)
- ledger_
role_ str | Ledgername Role Name - LedgerRole associated with the Security Principal of Ledger
- cert String
- Public key of the user cert (.pem or .cer)
- ledger
Role String | "Reader" | "Contributor" | "Administrator"Name - LedgerRole associated with the Security Principal of Ledger
CertBasedSecurityPrincipalResponse, CertBasedSecurityPrincipalResponseArgs
- Cert string
- Public key of the user cert (.pem or .cer)
- Ledger
Role stringName - LedgerRole associated with the Security Principal of Ledger
- Cert string
- Public key of the user cert (.pem or .cer)
- Ledger
Role stringName - LedgerRole associated with the Security Principal of Ledger
- cert String
- Public key of the user cert (.pem or .cer)
- ledger
Role StringName - LedgerRole associated with the Security Principal of Ledger
- cert string
- Public key of the user cert (.pem or .cer)
- ledger
Role stringName - LedgerRole associated with the Security Principal of Ledger
- cert str
- Public key of the user cert (.pem or .cer)
- ledger_
role_ strname - LedgerRole associated with the Security Principal of Ledger
- cert String
- Public key of the user cert (.pem or .cer)
- ledger
Role StringName - LedgerRole associated with the Security Principal of Ledger
LedgerProperties, LedgerPropertiesArgs
- Aad
Based List<Pulumi.Security Principals Azure Native. Confidential Ledger. Inputs. AADBased Security Principal> - Array of all AAD based Security Principals.
- Cert
Based List<Pulumi.Security Principals Azure Native. Confidential Ledger. Inputs. Cert Based Security Principal> - Array of all cert based Security Principals.
- Ledger
Storage stringAccount - Name of the Blob Storage Account for saving ledger files
- Ledger
Type string | Pulumi.Azure Native. Confidential Ledger. Ledger Type - Type of Confidential Ledger
- Aad
Based []AADBasedSecurity Principals Security Principal - Array of all AAD based Security Principals.
- Cert
Based []CertSecurity Principals Based Security Principal - Array of all cert based Security Principals.
- Ledger
Storage stringAccount - Name of the Blob Storage Account for saving ledger files
- Ledger
Type string | LedgerType - Type of Confidential Ledger
- aad
Based List<AADBasedSecurity Principals Security Principal> - Array of all AAD based Security Principals.
- cert
Based List<CertSecurity Principals Based Security Principal> - Array of all cert based Security Principals.
- ledger
Storage StringAccount - Name of the Blob Storage Account for saving ledger files
- ledger
Type String | LedgerType - Type of Confidential Ledger
- aad
Based AADBasedSecurity Principals Security Principal[] - Array of all AAD based Security Principals.
- cert
Based CertSecurity Principals Based Security Principal[] - Array of all cert based Security Principals.
- ledger
Storage stringAccount - Name of the Blob Storage Account for saving ledger files
- ledger
Type string | LedgerType - Type of Confidential Ledger
- aad_
based_ Sequence[AADBasedsecurity_ principals Security Principal] - Array of all AAD based Security Principals.
- cert_
based_ Sequence[Certsecurity_ principals Based Security Principal] - Array of all cert based Security Principals.
- ledger_
storage_ straccount - Name of the Blob Storage Account for saving ledger files
- ledger_
type str | LedgerType - Type of Confidential Ledger
- aad
Based List<Property Map>Security Principals - Array of all AAD based Security Principals.
- cert
Based List<Property Map>Security Principals - Array of all cert based Security Principals.
- ledger
Storage StringAccount - Name of the Blob Storage Account for saving ledger files
- ledger
Type String | "Unknown" | "Public" | "Private" - Type of Confidential Ledger
LedgerPropertiesResponse, LedgerPropertiesResponseArgs
- Identity
Service stringUri - Endpoint for accessing network identity.
- Ledger
Internal stringNamespace - Internal namespace for the Ledger
- Ledger
Name string - Unique name for the Confidential Ledger.
- Ledger
Uri string - Endpoint for calling Ledger Service.
- Provisioning
State string - Provisioning state of Ledger Resource
- Aad
Based List<Pulumi.Security Principals Azure Native. Confidential Ledger. Inputs. AADBased Security Principal Response> - Array of all AAD based Security Principals.
- Cert
Based List<Pulumi.Security Principals Azure Native. Confidential Ledger. Inputs. Cert Based Security Principal Response> - Array of all cert based Security Principals.
- Ledger
Storage stringAccount - Name of the Blob Storage Account for saving ledger files
- Ledger
Type string - Type of Confidential Ledger
- Identity
Service stringUri - Endpoint for accessing network identity.
- Ledger
Internal stringNamespace - Internal namespace for the Ledger
- Ledger
Name string - Unique name for the Confidential Ledger.
- Ledger
Uri string - Endpoint for calling Ledger Service.
- Provisioning
State string - Provisioning state of Ledger Resource
- Aad
Based []AADBasedSecurity Principals Security Principal Response - Array of all AAD based Security Principals.
- Cert
Based []CertSecurity Principals Based Security Principal Response - Array of all cert based Security Principals.
- Ledger
Storage stringAccount - Name of the Blob Storage Account for saving ledger files
- Ledger
Type string - Type of Confidential Ledger
- identity
Service StringUri - Endpoint for accessing network identity.
- ledger
Internal StringNamespace - Internal namespace for the Ledger
- ledger
Name String - Unique name for the Confidential Ledger.
- ledger
Uri String - Endpoint for calling Ledger Service.
- provisioning
State String - Provisioning state of Ledger Resource
- aad
Based List<AADBasedSecurity Principals Security Principal Response> - Array of all AAD based Security Principals.
- cert
Based List<CertSecurity Principals Based Security Principal Response> - Array of all cert based Security Principals.
- ledger
Storage StringAccount - Name of the Blob Storage Account for saving ledger files
- ledger
Type String - Type of Confidential Ledger
- identity
Service stringUri - Endpoint for accessing network identity.
- ledger
Internal stringNamespace - Internal namespace for the Ledger
- ledger
Name string - Unique name for the Confidential Ledger.
- ledger
Uri string - Endpoint for calling Ledger Service.
- provisioning
State string - Provisioning state of Ledger Resource
- aad
Based AADBasedSecurity Principals Security Principal Response[] - Array of all AAD based Security Principals.
- cert
Based CertSecurity Principals Based Security Principal Response[] - Array of all cert based Security Principals.
- ledger
Storage stringAccount - Name of the Blob Storage Account for saving ledger files
- ledger
Type string - Type of Confidential Ledger
- identity_
service_ struri - Endpoint for accessing network identity.
- ledger_
internal_ strnamespace - Internal namespace for the Ledger
- ledger_
name str - Unique name for the Confidential Ledger.
- ledger_
uri str - Endpoint for calling Ledger Service.
- provisioning_
state str - Provisioning state of Ledger Resource
- aad_
based_ Sequence[AADBasedsecurity_ principals Security Principal Response] - Array of all AAD based Security Principals.
- cert_
based_ Sequence[Certsecurity_ principals Based Security Principal Response] - Array of all cert based Security Principals.
- ledger_
storage_ straccount - Name of the Blob Storage Account for saving ledger files
- ledger_
type str - Type of Confidential Ledger
- identity
Service StringUri - Endpoint for accessing network identity.
- ledger
Internal StringNamespace - Internal namespace for the Ledger
- ledger
Name String - Unique name for the Confidential Ledger.
- ledger
Uri String - Endpoint for calling Ledger Service.
- provisioning
State String - Provisioning state of Ledger Resource
- aad
Based List<Property Map>Security Principals - Array of all AAD based Security Principals.
- cert
Based List<Property Map>Security Principals - Array of all cert based Security Principals.
- ledger
Storage StringAccount - Name of the Blob Storage Account for saving ledger files
- ledger
Type String - Type of Confidential Ledger
LedgerRoleName, LedgerRoleNameArgs
- Reader
- Reader
- Contributor
- Contributor
- Administrator
- Administrator
- Ledger
Role Name Reader - Reader
- Ledger
Role Name Contributor - Contributor
- Ledger
Role Name Administrator - Administrator
- Reader
- Reader
- Contributor
- Contributor
- Administrator
- Administrator
- Reader
- Reader
- Contributor
- Contributor
- Administrator
- Administrator
- READER
- Reader
- CONTRIBUTOR
- Contributor
- ADMINISTRATOR
- Administrator
- "Reader"
- Reader
- "Contributor"
- Contributor
- "Administrator"
- Administrator
LedgerType, LedgerTypeArgs
- Unknown
- Unknown
- Public
- Public
- Private
- Private
- Ledger
Type Unknown - Unknown
- Ledger
Type Public - Public
- Ledger
Type Private - Private
- Unknown
- Unknown
- Public
- Public
- Private
- Private
- Unknown
- Unknown
- Public
- Public
- Private
- Private
- UNKNOWN
- Unknown
- PUBLIC
- Public
- PRIVATE
- Private
- "Unknown"
- Unknown
- "Public"
- Public
- "Private"
- Private
SystemDataResponse, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - The type of identity that last modified the resource.
- created_
at str - The timestamp of resource creation (UTC).
- created_
by str - The identity that created the resource.
- created_
by_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:confidentialledger:Ledger DummyLedgerName /subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/TestRG/providers/Microsoft.ConfidentialLedger/ledgers/DummyLedgerName
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0