Share via


Ledger - Update

Update Confidential Ledger properties
Updates properties of Confidential Ledger

PATCH https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/ledgers/{ledgerName}?api-version=2022-05-13

URI Parameters

Name In Required Type Description
ledgerName
path True

string

pattern: ^[a-zA-Z0-9]

Name of the Confidential Ledger

resourceGroupName
path True

string

minLength: 3
maxLength: 90

The name of the resource group.

subscriptionId
path True

string

The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000)

api-version
query True

string

The API version to be used with the HTTP request.

Request Body

Name Type Description
location

string

The Azure location where the Confidential Ledger is running.

properties

LedgerProperties

LedgerProperties
Properties of Confidential Ledger Resource.

tags

object

Additional tags for Confidential Ledger

Responses

Name Type Description
200 OK

ConfidentialLedger

The request was successful and ledger was recovered; response contains the Confidential Ledger

201 Created

The Confidential Ledger resource will be updated asynchronously

Other Status Codes

ErrorResponse

Error response describing the reason for operation failure. 404 - NotFound (Confidential Ledger could not be created/updated)

Security

azure_auth

Azure Active Directory OAuth2 Flow

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation impersonate your user account

Examples

ConfidentialLedgerUpdate

Sample request

PATCH https://management.azure.com/subscriptions/0000000-0000-0000-0000-000000000001/resourceGroups/DummyResourceGroupName/providers/Microsoft.ConfidentialLedger/ledgers/DummyLedgerName?api-version=2022-05-13

{
  "properties": {
    "ledgerType": "Public",
    "aadBasedSecurityPrincipals": [
      {
        "principalId": "34621747-6fc8-4771-a2eb-72f31c461f2e",
        "tenantId": "bce123b9-2b7b-4975-8360-5ca0b9b1cd08",
        "ledgerRoleName": "Administrator"
      }
    ],
    "certBasedSecurityPrincipals": [
      {
        "cert": "-----BEGIN CERTIFICATE-----\nMIIDUjCCAjqgAwIBAgIQJ2IrDBawSkiAbkBYmiAopDANBgkqhkiG9w0BAQsFADAmMSQwIgYDVQQDExtTeW50aGV0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"ledgerRoleName": "Reader"
      }
    ]
  },
  "location": "EastUS",
  "tags": {
    "additionalProps1": "additional properties",
    "additionProps2": "additional property value"
  }
}

Sample response

{
  "properties": {
    "ledgerName": "DummyLedgerName",
    "ledgerUri": "https://dummyledgername.confidential-ledger.azure.com",
    "identityServiceUri": "https://identity.confidential-ledger.core.azure.com/ledgerIdentity/dummyledgername",
    "ledgerType": "Public",
    "ledgerInternalNamespace": "dummyNamespace",
    "provisioningState": "Succeeded",
    "aadBasedSecurityPrincipals": [
      {
        "principalId": "34621747-6fc8-4771-a2eb-72f31c461f2e",
        "tenantId": "bce123b9-2b7b-4975-8360-5ca0b9b1cd08",
        "ledgerRoleName": "Administrator"
      }
    ],
    "certBasedSecurityPrincipals": [
      {
        "cert": "-----BEGIN CERTIFICATE-----\nMIIDUjCCAjqgAwIBAgIQJ2IrDBawSkiAbkBYmiAopDANBgkqhkiG9w0BAQsFADAmMSQwIgYDVQQDExtTeW50aGV0aWNzIExlZGdlciBVc2VyIENlcnQwHhcNMjAwOTIzMjIxODQ2WhcNMjEwOTIzMjIyODQ2WjAmMSQwIgYDVQQDExtTeW50aGV0aWNzIExlZGdlciBVc2VyIENlcnQwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCX2s/Eu4q/eQ63N+Ugeg5oAciZua/YCJr41c/696szvSY7Zg1SNJlW88/nbz70+QpO55OmqlEE3QCU+T0Vl/h0Gf//n1PYcoBbTGUnYEmV+fTTHict6rFiEwrGJ62tvcpYgwapInSLyEeUzjki0zhOLJ1OfRnYd1eGnFVMpE5aVjiS8Q5dmTEUyd51EIprGE8RYAW9aeWSwTH7gjHUsRlJnHKcdhaK/v5QKJnNu5bzPFUcpC0ZBcizoMPAtroLAD4B68Jl0z3op18MgZe6lRrVoWuxfqnk5GojuB/Vu8ohAZKoFhQ6NB6r+LL2AUs+Zr7Bt26IkEdR178n9JMEA4gHAgMBAAGjfDB6MA4GA1UdDwEB/wQEAwIFoDAJBgNVHRMEAjAAMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAfBgNVHSMEGDAWgBS/a7PU9iOfOKEyZCp11Oen5VSuuDAdBgNVHQ4EFgQUv2uz1PYjnzihMmQqddTnp+VUrrgwDQYJKoZIhvcNAQELBQADggEBAF5q2fDwnse8egXhfaJCqqM969E9gSacqFmASpoDJPRPEX7gqoO7v1ww7nqRtRDoRiBvo/yNk7jlSAkRN3nRRnZLZZ3MYQdmCr4FGyIqRg4Y94+nja+Du9pDD761rxRktMVPSOaAVM/E5DQvscDlPvlPYe9mkcrLCE4DXYpiMmLT8Tm55LJJq5m07dVDgzAIR1L/hmEcbK0pnLgzciMtMLxGO2udnyyW/UW9WxnjvrrD2JluTHH9mVbb+XQP1oFtlRBfH7aui1ZgWfKvxrdP4zdK9QoWSUvRux3TLsGmHRBjBMtqYDY3y5mB+aNjLelvWpeVb0m2aOSVXynrLwNCAVA=\n-----END CERTIFICATE-----",
        "ledgerRoleName": "Reader"
      }
    ]
  },
  "name": "DummyLedgerName",
  "id": "/subscriptions/00000000-0000-0000-0000-000000000001/providers/Microsoft.ConfidentialLedger/ledgers/DummyLedgerName",
  "type": "Microsoft.ConfidentialLedger/ledgers",
  "location": "EastUS",
  "tags": {
    "additionalProps1": "additional properties",
    "additionProps2": "additional property value"
  },
  "systemData": {
    "createdBy": "ledgerAdmin@contoso.com",
    "createdByType": "Admin1",
    "createdAt": "2020-12-01T00:00:00.1234567Z",
    "lastModifiedBy": "ledgerAdmin2@outlook.com",
    "lastModifiedByType": "Admin2",
    "lastModifiedAt": "2020-12-02T00:00:00.1234567Z"
  }
}

Definitions

Name Description
AADBasedSecurityPrincipal

AAD based security principal with associated Ledger RoleName

CertBasedSecurityPrincipal

Cert based security principal with Ledger RoleName

ConfidentialLedger

Confidential Ledger. Contains the properties of Confidential Ledger Resource.

createdByType

The type of identity that created the resource.

ErrorAdditionalInfo

The resource management error additional info.

ErrorDetail

The error detail.

ErrorResponse

Error response

LedgerProperties

LedgerProperties

LedgerRoleName

LedgerRole associated with the Security Principal of Ledger

LedgerType

Type of Confidential Ledger

ProvisioningState

Object representing ProvisioningState for Confidential Ledger.

systemData

Metadata pertaining to creation and last modification of the resource.

AADBasedSecurityPrincipal

AAD based security principal with associated Ledger RoleName

Name Type Description
ledgerRoleName

LedgerRoleName

LedgerRole associated with the Security Principal of Ledger

principalId

string

UUID/GUID based Principal Id of the Security Principal

tenantId

string

UUID/GUID based Tenant Id of the Security Principal

CertBasedSecurityPrincipal

Cert based security principal with Ledger RoleName

Name Type Description
cert

string

Public key of the user cert (.pem or .cer)

ledgerRoleName

LedgerRoleName

LedgerRole associated with the Security Principal of Ledger

ConfidentialLedger

Confidential Ledger. Contains the properties of Confidential Ledger Resource.

Name Type Description
id

string

Fully qualified resource Id for the resource.

location

string

The Azure location where the Confidential Ledger is running.

name

string

Name of the Resource.

properties

LedgerProperties

LedgerProperties
Properties of Confidential Ledger Resource.

systemData

systemData

Metadata pertaining to creation and last modification of the resource

tags

object

Additional tags for Confidential Ledger

type

string

The type of the resource.

createdByType

The type of identity that created the resource.

Value Description
User
Application
ManagedIdentity
Key

ErrorAdditionalInfo

The resource management error additional info.

Name Type Description
info

object

The additional info.

type

string

The additional info type.

ErrorDetail

The error detail.

Name Type Description
additionalInfo

ErrorAdditionalInfo[]

The error additional info.

code

string

The error code.

details

ErrorDetail[]

The error details.

message

string

The error message.

target

string

The error target.

ErrorResponse

Error response

Name Type Description
error

ErrorDetail

The error object.

LedgerProperties

LedgerProperties

Name Type Description
aadBasedSecurityPrincipals

AADBasedSecurityPrincipal[]

Array of all AAD based Security Principals.

certBasedSecurityPrincipals

CertBasedSecurityPrincipal[]

Array of all cert based Security Principals.

identityServiceUri

string

Endpoint for accessing network identity.

ledgerInternalNamespace

string

Internal namespace for the Ledger

ledgerName

string

Unique name for the Confidential Ledger.

ledgerType

LedgerType

Type of Confidential Ledger

ledgerUri

string

Endpoint for calling Ledger Service.

provisioningState

ProvisioningState

Provisioning state of Ledger Resource

LedgerRoleName

LedgerRole associated with the Security Principal of Ledger

Value Description
Reader
Contributor
Administrator

LedgerType

Type of Confidential Ledger

Value Description
Unknown
Public
Private

ProvisioningState

Object representing ProvisioningState for Confidential Ledger.

Value Description
Unknown
Succeeded
Failed
Canceled
Creating
Deleting
Updating

systemData

Metadata pertaining to creation and last modification of the resource.

Name Type Description
createdAt

string (date-time)

The timestamp of resource creation (UTC).

createdBy

string

The identity that created the resource.

createdByType

createdByType

The type of identity that created the resource.

lastModifiedAt

string (date-time)

The timestamp of resource last modification (UTC)

lastModifiedBy

string

The identity that last modified the resource.

lastModifiedByType

createdByType

The type of identity that last modified the resource.