Sync Groups - List Logs
Hiermee haalt u een verzameling logboeken voor synchronisatiegroepen op.
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=2021-11-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=2021-11-01
URI-parameters
Name | In | Vereist | Type | Description |
---|---|---|---|---|
database
|
path | True |
string |
De naam van de database waarop de synchronisatiegroep wordt gehost. |
resource
|
path | True |
string |
De naam van de resourcegroep die de resource bevat. U kunt deze waarde verkrijgen via de Azure Resource Manager-API of de portal. |
server
|
path | True |
string |
De naam van de server. |
subscription
|
path | True |
string |
De abonnements-id waarmee een Azure-abonnement wordt geïdentificeerd. |
sync
|
path | True |
string |
De naam van de synchronisatiegroep. |
api-version
|
query | True |
string |
De API-versie die moet worden gebruikt voor de aanvraag. |
end
|
query | True |
string |
Haal logboeken op die vóór deze tijd zijn gegenereerd. |
start
|
query | True |
string |
Haal logboeken op die na deze tijd zijn gegenereerd. |
type
|
query | True |
De typen logboeken die moeten worden opgehaald. |
|
continuation
|
query |
string |
Het vervolgtoken voor deze bewerking. |
Antwoorden
Name | Type | Description |
---|---|---|
200 OK |
De synchronisatiegroeplogboeken zijn opgehaald. |
|
Other Status Codes |
Foutreacties: ***
|
Voorbeelden
Get sync group logs
Voorbeeldaanvraag
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=2021-11-01
Voorbeeldrespons
{
"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"
}
]
}
Definities
Name | Description |
---|---|
Sync |
Een lijst met eigenschappen van het synchronisatiegroeplogboek. |
Sync |
Eigenschappen van een logboek van een Azure SQL Database-synchronisatiegroep. |
Sync |
Type van het logboek van de synchronisatiegroep. |
Sync |
De typen logboeken die moeten worden opgehaald. |
SyncGroupLogListResult
Een lijst met eigenschappen van het synchronisatiegroeplogboek.
Name | Type | Description |
---|---|---|
nextLink |
string |
Koppeling om de volgende pagina met resultaten op te halen. |
value |
Matrix met resultaten. |
SyncGroupLogProperties
Eigenschappen van een logboek van een Azure SQL Database-synchronisatiegroep.
Name | Type | Description |
---|---|---|
details |
string |
Details van het logboek van de synchronisatiegroep. |
operationStatus |
string |
OperationStatus van het logboek van de synchronisatiegroep. |
source |
string |
Bron van het logboek van de synchronisatiegroep. |
timestamp |
string |
Tijdstempel van het logboek van de synchronisatiegroep. |
tracingId |
string |
TracingId van het logboek van de synchronisatiegroep. |
type |
Type van het logboek van de synchronisatiegroep. |
SyncGroupLogType
Type van het logboek van de synchronisatiegroep.
Waarde | Description |
---|---|
All | |
Error | |
Success | |
Warning |
SyncGroupsType
De typen logboeken die moeten worden opgehaald.
Waarde | Description |
---|---|
All | |
Error | |
Success | |
Warning |