Virtual Machines - Retrieve Boot Diagnostics Data
De bewerking voor het ophalen van SAS-URI's voor de diagnostische opstartlogboeken van een virtuele machine.
POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/retrieveBootDiagnosticsData?api-version=2024-03-01
POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/retrieveBootDiagnosticsData?sasUriExpirationTimeInMinutes={sasUriExpirationTimeInMinutes}&api-version=2024-03-01
URI-parameters
Name | In | Vereist | Type | Description |
---|---|---|---|---|
resource
|
path | True |
string |
De naam van de resourcegroep. |
subscription
|
path | True |
string |
Abonnementsreferenties waarmee het Microsoft Azure-abonnement uniek wordt geïdentificeerd. De abonnements-id maakt deel uit van de URI voor elke service-aanroep. |
vm
|
path | True |
string |
De naam van de virtuele machine. |
api-version
|
query | True |
string |
Client-API-versie. |
sas
|
query |
integer int32 |
Verloopduur in minuten voor de SAS-URI's met een waarde tussen 1 en 1440 minuten. Opmerking: Als dit niet is opgegeven, worden SAS-URI's gegenereerd met een standaardverlooptijd van 120 minuten. |
Antwoorden
Name | Type | Description |
---|---|---|
200 OK |
OK |
|
Other Status Codes |
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
RetrieveBootDiagnosticsData of a virtual machine.
Sample Request
POST https://management.azure.com/subscriptions/{subscription-id}/resourceGroups/ResourceGroup/providers/Microsoft.Compute/virtualMachines/VMName/retrieveBootDiagnosticsData?sasUriExpirationTimeInMinutes=60&api-version=2024-03-01
Sample Response
{
"consoleScreenshotBlobUri": "https://storageuri/vm.screenshot.bmp?{sasKey}",
"serialConsoleLogBlobUri": "https://storageuri/vm.serialconsole.log?{sasKey}"
}
Definities
Name | Description |
---|---|
Api |
API-fout. |
Api |
API-foutbasis. |
Cloud |
Een foutreactie van de Compute-service. |
Inner |
Details van interne fout. |
Retrieve |
De SAS-URI's van de schermopname van de console en seriële logboekblobs. |
ApiError
API-fout.
Name | Type | Description |
---|---|---|
code |
string |
De foutcode. |
details |
De API-foutdetails |
|
innererror |
De interne api-fout |
|
message |
string |
Het foutbericht. |
target |
string |
Het doel van de specifieke fout. |
ApiErrorBase
API-foutbasis.
Name | Type | Description |
---|---|---|
code |
string |
De foutcode. |
message |
string |
Het foutbericht. |
target |
string |
Het doel van de specifieke fout. |
CloudError
Een foutreactie van de Compute-service.
Name | Type | Description |
---|---|---|
error |
API-fout. |
InnerError
Details van interne fout.
Name | Type | Description |
---|---|---|
errordetail |
string |
Het interne foutbericht of de uitzonderingsdump. |
exceptiontype |
string |
Het uitzonderingstype. |
RetrieveBootDiagnosticsDataResult
De SAS-URI's van de schermopname van de console en seriële logboekblobs.
Name | Type | Description |
---|---|---|
consoleScreenshotBlobUri |
string |
De blob-URI voor de schermopname van de console |
serialConsoleLogBlobUri |
string |
De blob-URI van het seriële consolelogboek. |