Sync Agents - Create Or Update
Tworzy lub aktualizuje agenta synchronizacji.
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/syncAgents/{syncAgentName}?api-version=2022-02-01-preview
Parametry identyfikatora URI
Nazwa | W | Wymagane | Typ | Opis |
---|---|---|---|---|
resource
|
path | True |
string |
Nazwa grupy zasobów zawierającej zasób. Tę wartość można uzyskać z interfejsu API Resource Manager platformy Azure lub portalu. |
server
|
path | True |
string |
Nazwa serwera, na którym jest hostowany agent synchronizacji. |
subscription
|
path | True |
string |
Identyfikator subskrypcji identyfikujący subskrypcję platformy Azure. |
sync
|
path | True |
string |
Nazwa agenta synchronizacji. |
api-version
|
query | True |
string |
Wersja interfejsu API do użycia dla żądania. |
Treść żądania
Nazwa | Typ | Opis |
---|---|---|
properties.syncDatabaseId |
string |
Identyfikator zasobu usługi ARM bazy danych synchronizacji w agencie synchronizacji. |
Odpowiedzi
Nazwa | Typ | Opis |
---|---|---|
200 OK |
Pomyślnie zaktualizowano agenta synchronizacji. |
|
201 Created |
Pomyślnie utworzono agenta synchronizacji. |
|
202 Accepted |
Trwa tworzenie lub aktualizowanie agenta synchronizacji. |
|
Other Status Codes |
Odpowiedzi na błędy: ***
|
Przykłady
Create a new sync agent |
Update a sync agent |
Create a new sync agent
Sample Request
PUT https://management.azure.com/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/syncagentcrud-65440/providers/Microsoft.Sql/servers/syncagentcrud-8475/syncAgents/syncagentcrud-3187?api-version=2022-02-01-preview
{
"properties": {
"syncDatabaseId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default-SQL-Onebox/providers/Microsoft.Sql/servers/syncagentcrud-8475/databases/sync"
}
}
Sample Response
{
"properties": {
"syncDatabaseId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default-SQL-Onebox/providers/Microsoft.Sql/servers/syncagentcrud-8475/databases/sync",
"state": "NeverConnected",
"isUpToDate": true,
"expiryTime": "9999-12-31T23:59:59.9999999Z",
"version": "4.2.0.0"
},
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default-SQL-Onebox/providers/Microsoft.Sql/servers/syncagentcrud-8475/syncAgents/syncagentcrud-3187",
"name": "syncagent",
"type": "Microsoft.Sql/servers/syncAgents"
}
{
"properties": {
"syncDatabaseId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default-SQL-Onebox/providers/Microsoft.Sql/servers/syncagentcrud-8475/databases/sync",
"state": "NeverConnected",
"isUpToDate": true,
"expiryTime": "9999-12-31T23:59:59.9999999Z",
"version": "4.2.0.0"
},
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default-SQL-Onebox/providers/Microsoft.Sql/servers/syncagentcrud-8475/syncAgents/syncagentcrud-3187",
"name": "syncagent",
"type": "Microsoft.Sql/servers/syncAgents"
}
Update a sync agent
Sample Request
PUT https://management.azure.com/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/syncagentcrud-65440/providers/Microsoft.Sql/servers/syncagentcrud-8475/syncAgents/syncagentcrud-3187?api-version=2022-02-01-preview
{
"properties": {
"syncDatabaseId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default-SQL-Onebox/providers/Microsoft.Sql/servers/syncagentcrud-8475/databases/sync"
}
}
Sample Response
{
"properties": {
"syncDatabaseId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default-SQL-Onebox/providers/Microsoft.Sql/servers/syncagentcrud-8475/databases/sync",
"state": "NeverConnected",
"isUpToDate": true,
"expiryTime": "9999-12-31T23:59:59.9999999Z",
"version": "4.2.0.0"
},
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default-SQL-Onebox/providers/Microsoft.Sql/servers/syncagentcrud-8475/syncAgents/syncagentcrud-3187",
"name": "syncagent",
"type": "Microsoft.Sql/servers/syncAgents"
}
{
"properties": {
"syncDatabaseId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default-SQL-Onebox/providers/Microsoft.Sql/servers/syncagentcrud-8475/databases/sync",
"state": "NeverConnected",
"isUpToDate": true,
"expiryTime": "9999-12-31T23:59:59.9999999Z",
"version": "4.2.0.0"
},
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default-SQL-Onebox/providers/Microsoft.Sql/servers/syncagentcrud-8475/syncAgents/syncagentcrud-3187",
"name": "syncagent",
"type": "Microsoft.Sql/servers/syncAgents"
}
Definicje
Nazwa | Opis |
---|---|
Sync |
Agent synchronizacji bazy danych Azure SQL. |
Sync |
Stan agenta synchronizacji. |
SyncAgent
Agent synchronizacji bazy danych Azure SQL.
Nazwa | Typ | Opis |
---|---|---|
id |
string |
Identyfikator zasobu. |
name |
string |
Nazwa zasobu. |
properties.expiryTime |
string |
Czas wygaśnięcia wersji agenta synchronizacji. |
properties.isUpToDate |
boolean |
Jeśli wersja agenta synchronizacji jest aktualna. |
properties.lastAliveTime |
string |
Czas ostatniego życia agenta synchronizacji. |
properties.name |
string |
Nazwa agenta synchronizacji. |
properties.state |
Stan agenta synchronizacji. |
|
properties.syncDatabaseId |
string |
Identyfikator zasobu usługi ARM bazy danych synchronizacji w agencie synchronizacji. |
properties.version |
string |
Wersja agenta synchronizacji. |
type |
string |
Typ zasobu. |
SyncAgentState
Stan agenta synchronizacji.
Nazwa | Typ | Opis |
---|---|---|
NeverConnected |
string |
|
Offline |
string |
|
Online |
string |