Sync Agents - Get
Gets a sync agent.
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/syncAgents/{syncAgentName}?api-version=2021-11-01
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
resource
|
path | True |
string |
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. |
server
|
path | True |
string |
The name of the server on which the sync agent is hosted. |
subscription
|
path | True |
string |
The subscription ID that identifies an Azure subscription. |
sync
|
path | True |
string |
The name of the sync agent. |
api-version
|
query | True |
string |
The API version to use for the request. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
Successfully retrieved the specified sync agent. |
|
Other Status Codes |
*** Error Responses: ***
|
Examples
Get a sync agent
Sample request
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"
}
Definitions
Name | Description |
---|---|
Sync |
An Azure SQL Database sync agent. |
Sync |
State of the sync agent. |
SyncAgent
An Azure SQL Database sync agent.
Name | Type | Description |
---|---|---|
id |
string |
Resource ID. |
name |
string |
Resource name. |
properties.expiryTime |
string |
Expiration time of the sync agent version. |
properties.isUpToDate |
boolean |
If the sync agent version is up to date. |
properties.lastAliveTime |
string |
Last alive time of the sync agent. |
properties.name |
string |
Name of the sync agent. |
properties.state |
State of the sync agent. |
|
properties.syncDatabaseId |
string |
ARM resource id of the sync database in the sync agent. |
properties.version |
string |
Version of the sync agent. |
type |
string |
Resource type. |
SyncAgentState
State of the sync agent.
Name | Type | Description |
---|---|---|
NeverConnected |
string |
|
Offline |
string |
|
Online |
string |