Delen via


Snapshots - Restore Files

een nieuwe aanvraag voor bestanden voor het herstellen van momentopnamen Creatie
De opgegeven bestanden van de opgegeven momentopname herstellen naar het actieve bestandssysteem

POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}/restoreFiles?api-version=2023-11-01

URI-parameters

Name In Vereist Type Description
accountName
path True

string

De naam van het NetApp-account

Regex pattern: ^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,127}$

poolName
path True

string

De naam van de capaciteitspool

Regex pattern: ^[a-zA-Z0-9][a-zA-Z0-9\-_]{0,63}$

resourceGroupName
path True

string

De naam van de resourcegroep. De naam is niet hoofdlettergevoelig.

snapshotName
path True

string

De naam van de momentopname

subscriptionId
path True

string

uuid

De id van het doelabonnement. De waarde moet een UUID zijn.

volumeName
path True

string

De naam van het volume

Regex pattern: ^[a-zA-Z][a-zA-Z0-9\-_]{0,63}$

api-version
query True

string

De API-versie die voor deze bewerking moet worden gebruikt.

Aanvraagbody

Name Vereist Type Description
filePaths True

string[]

Lijst met bestanden die moeten worden hersteld

destinationPath

string

Doelmap waarin de bestanden worden hersteld

Antwoorden

Name Type Description
200 OK

OK - terminalstatus

202 Accepted

Geaccepteerd

Other Status Codes

ErrorResponse

Foutreactie waarin wordt beschreven waarom de bewerking is mislukt.

Beveiliging

azure_auth

Azure Active Directory OAuth2-stroom

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

Scopes

Name Description
user_impersonation uw gebruikersaccount imiteren

Voorbeelden

Snapshots_SingleFileRestore

Sample Request

POST https://management.azure.com/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/volume1/snapshots/snapshot1/restoreFiles?api-version=2023-11-01

{
  "filePaths": [
    "/dir1/customer1.db",
    "/dir1/customer2.db"
  ]
}

Sample Response

Location: https://management.azure.com/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/providers/Microsoft.NetApp/locations/eastus/operationResults/616ee961-4042-4935-b4a0-ed6f4dae0172?api-version=2023-11-01&operationResultResponseType=Location

Definities

Name Description
ErrorAdditionalInfo

Aanvullende informatie over de resourcebeheerfout.

ErrorDetail

De foutdetails.

ErrorResponse

Foutreactie

snapshotRestoreFiles

Nettolading herstellen voor herstel van momentopnamen van één bestand

ErrorAdditionalInfo

Aanvullende informatie over de resourcebeheerfout.

Name Type Description
info

object

De aanvullende informatie.

type

string

Het type aanvullende informatie.

ErrorDetail

De foutdetails.

Name Type Description
additionalInfo

ErrorAdditionalInfo[]

Aanvullende informatie over de fout.

code

string

De foutcode.

details

ErrorDetail[]

De foutdetails.

message

string

Het foutbericht.

target

string

Het foutdoel.

ErrorResponse

Foutreactie

Name Type Description
error

ErrorDetail

Het foutobject.

snapshotRestoreFiles

Nettolading herstellen voor herstel van momentopnamen van één bestand

Name Type Description
destinationPath

string

Doelmap waarin de bestanden worden hersteld

filePaths

string[]

Lijst met bestanden die moeten worden hersteld