Share via


Ledger - Restore

Performs the restore operation to spin up a newly restored Confidential Ledger Resource.
Restores a Confidential Ledger Resource.

POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/ledgers/{ledgerName}/restore?api-version=2024-09-19-preview

URI Parameters

Name In Required Type Description
ledgerName
path True

string

pattern: ^[^-0-9][A-Za-z0-9-]{1,33}[A-Za-z0-9]$

Name of the Confidential Ledger

resourceGroupName
path True

string

minLength: 1
maxLength: 90

The name of the resource group. The name is case insensitive.

subscriptionId
path True

string

minLength: 1

The ID of the target subscription.

api-version
query True

string

minLength: 1

The API version to use for this operation.

Request Body

Name Required Type Description
fileShareName True

string

Fileshare where the ledger backup is stored.

restoreRegion True

string

The region the ledger is being restored to.

uri True

string

SAS URI used to access the backup fileshare.

Responses

Name Type Description
200 OK

ConfidentialLedgerRestoreResponse

The request was successful; response contains a message stating the Confidential Ledger Resource is successfully being restored.

202 Accepted

The Confidential Ledger Resource will be restored asynchronously. Check the provisioningState field to monitor the progress of your operation.

Other Status Codes

ErrorResponse

Error response describing the reason for operation failure.

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

ConfidentialLedgerRestore

Sample request

POST https://management.azure.com/subscriptions/0000000-0000-0000-0000-000000000001/resourceGroups/DummyResourceGroupName/providers/Microsoft.ConfidentialLedger/ledgers/DummyLedgerName/restore?api-version=2024-09-19-preview

{
  "fileShareName": "DummyFileShareName",
  "restoreRegion": "EastUS",
  "uri": "DummySASUri"
}

Sample response

{
  "message": "Restore Created for Ledger : DummyLedgerName."
}
azure-asyncoperation: http://azure.async.operation/status

Definitions

Name Description
ConfidentialLedgerRestore

Object representing Restore properties of a Confidential Ledger Resource.

ConfidentialLedgerRestoreResponse

Object representing the restore response of a Confidential Ledger Resource.

ErrorAdditionalInfo

The resource management error additional info.

ErrorDetail

The error detail.

ErrorResponse

Error response

ConfidentialLedgerRestore

Object representing Restore properties of a Confidential Ledger Resource.

Name Type Description
fileShareName

string

Fileshare where the ledger backup is stored.

restoreRegion

string

The region the ledger is being restored to.

uri

string

SAS URI used to access the backup fileshare.

ConfidentialLedgerRestoreResponse

Object representing the restore response of a Confidential Ledger Resource.

Name Type Description
message

string

Response body stating if the ledger is being restored.

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.