Sync Groups - List Logs
Ruft eine Sammlung von Synchronisierungsgruppenprotokollen ab.
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}/logs?startTime={startTime}&endTime={endTime}&type={type}&api-version=2023-08-01
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}/logs?startTime={startTime}&endTime={endTime}&type={type}&continuationToken={continuationToken}&api-version=2023-08-01
URI-Parameter
| Name | In | Erforderlich | Typ | Beschreibung |
|---|---|---|---|---|
|
database
|
path | True |
string |
Der Name der Datenbank, in der die Synchronisierungsgruppe gehostet wird. |
|
resource
|
path | True |
string |
Der Name der Ressourcengruppe, die die Ressource enthält. Sie können diesen Wert aus der Azure Resource Manager-API oder dem Portal abrufen. |
|
server
|
path | True |
string |
Der Name des Servers. |
|
subscription
|
path | True |
string |
Die Abonnement-ID, die ein Azure-Abonnement identifiziert. |
|
sync
|
path | True |
string |
Der Name der Synchronisierungsgruppe. |
|
api-version
|
query | True |
string |
Die API-Version, die für die Anforderung verwendet werden soll. |
|
end
|
query | True |
string |
Ruft Protokolle ab, die vor dieser Zeit generiert wurden. |
|
start
|
query | True |
string |
Abrufen von Protokollen, die nach diesem Zeitpunkt generiert wurden. |
|
type
|
query | True |
Die Typen der abzurufenden Protokolle. |
|
|
continuation
|
query |
string |
Das Fortsetzungstoken für diesen Vorgang. |
Antworten
| Name | Typ | Beschreibung |
|---|---|---|
| 200 OK |
Die Synchronisierungsgruppenprotokolle wurden erfolgreich abgerufen. |
|
| Other Status Codes |
Fehlerantworten: ***
|
Beispiele
Get sync group logs
Beispielanforderung
GET https://management.azure.com/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/syncgroupcrud-65440/providers/Microsoft.Sql/servers/syncgroupcrud-8475/databases/syncgroupcrud-4328/syncGroups/syncgroupcrud-3187/logs?startTime=2017-01-01T00:00:00&endTime=2017-12-31T00:00:00&type=All&api-version=2023-08-01
Beispiel für eine Antwort
{
"value": [
{
"timestamp": "2017-05-30T07:16:08.25Z",
"type": "Success",
"source": "syncgroupcrud-8475.database.windows.net/hub",
"details": "Schema information obtained successfully.",
"tracingId": "c0480c8e-6269-424e-9404-b00efce0ebae",
"operationStatus": "SchemaRefreshSuccess"
},
{
"timestamp": "2017-05-30T07:03:37.5733333Z",
"type": "Error",
"source": "syncgroupcrud-8475.database.windows.net/member",
"details": "Getting schema information for the database failed with the exception \"Failed to connect to server .\nInner exception: SqlException Error Code: -2146232060 - SqlError Number:53, Message: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) \nInner exception: The network path was not found\n For more information, provide tracing ID ‘cd3aa28c-0c31-471f-8a77-f1b21c908cbd’ to customer support.\"",
"tracingId": "cd3aa28c-0c31-471f-8a77-f1b21c908cbd",
"operationStatus": "SchemaRefreshFailure"
}
]
}
Definitionen
| Name | Beschreibung |
|---|---|
|
Error |
Der Ressourcenverwaltungsfehler zusätzliche Informationen. |
|
Error |
Das Fehlerdetails. |
|
Error |
Fehlerantwort |
|
Sync |
Eine Liste der Eigenschaften des Synchronisierungsgruppenprotokolls. |
|
Sync |
Eigenschaften eines Azure SQL-Datenbanksynchronisierungsgruppenprotokolls. |
|
Sync |
Typ des Synchronisierungsgruppenprotokolls. |
|
Sync |
Die Typen der abzurufenden Protokolle. |
ErrorAdditionalInfo
Der Ressourcenverwaltungsfehler zusätzliche Informationen.
| Name | Typ | Beschreibung |
|---|---|---|
| info |
object |
Die zusätzlichen Informationen. |
| type |
string |
Der zusätzliche Informationstyp. |
ErrorDetail
Das Fehlerdetails.
| Name | Typ | Beschreibung |
|---|---|---|
| additionalInfo |
Die zusätzlichen Informationen des Fehlers. |
|
| code |
string |
Der Fehlercode. |
| details |
Die Fehlerdetails. |
|
| message |
string |
Die Fehlermeldung. |
| target |
string |
Das Fehlerziel. |
ErrorResponse
Fehlerantwort
| Name | Typ | Beschreibung |
|---|---|---|
| error |
Das Fehlerobjekt. |
SyncGroupLogListResult
Eine Liste der Eigenschaften des Synchronisierungsgruppenprotokolls.
| Name | Typ | Beschreibung |
|---|---|---|
| nextLink |
string |
Link zum Abrufen der nächsten Seite mit Ergebnissen. |
| value |
Array von Ergebnissen. |
SyncGroupLogProperties
Eigenschaften eines Azure SQL-Datenbanksynchronisierungsgruppenprotokolls.
| Name | Typ | Beschreibung |
|---|---|---|
| details |
string |
Details des Synchronisierungsgruppenprotokolls. |
| operationStatus |
string |
OperationStatus des Synchronisierungsgruppenprotokolls. |
| source |
string |
Quelle des Synchronisierungsgruppenprotokolls. |
| timestamp |
string (date-time) |
Zeitstempel des Synchronisierungsgruppenprotokolls. |
| tracingId |
string (uuid) |
TracingId des Synchronisierungsgruppenprotokolls. |
| type |
Typ des Synchronisierungsgruppenprotokolls. |
SyncGroupLogType
Typ des Synchronisierungsgruppenprotokolls.
| Wert | Beschreibung |
|---|---|
| All | |
| Error | |
| Warning | |
| Success |
SyncGroupsType
Die Typen der abzurufenden Protokolle.
| Wert | Beschreibung |
|---|---|
| All | |
| Error | |
| Warning | |
| Success |