你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Sync Agents - Get
获取同步代理。
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/syncAgents/{syncAgentName}?api-version=2023-08-01
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
resource
|
path | True |
string |
包含资源的资源组的名称。 可以从 Azure 资源管理器 API 或门户获取此值。 |
server
|
path | True |
string |
托管同步代理的服务器的名称。 |
subscription
|
path | True |
string |
标识 Azure 订阅的订阅 ID。 |
sync
|
path | True |
string |
同步代理的名称。 |
api-version
|
query | True |
string |
要用于请求的 API 版本。 |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
已成功检索指定的同步代理。 |
|
Other Status Codes |
错误响应: ***
|
示例
Get a sync agent
示例请求
GET https://management.azure.com/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/syncagentcrud-65440/providers/Microsoft.Sql/servers/syncagentcrud-8475/syncAgents/syncagentcrud-3187?api-version=2023-08-01
示例响应
{
"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"
}
定义
名称 | 说明 |
---|---|
Error |
资源管理错误附加信息。 |
Error |
错误详细信息。 |
Error |
错误响应 |
Sync |
Azure SQL 数据库同步代理。 |
Sync |
同步代理的状态。 |
ErrorAdditionalInfo
资源管理错误附加信息。
名称 | 类型 | 说明 |
---|---|---|
info |
object |
其他信息。 |
type |
string |
其他信息类型。 |
ErrorDetail
错误详细信息。
名称 | 类型 | 说明 |
---|---|---|
additionalInfo |
错误附加信息。 |
|
code |
string |
错误代码。 |
details |
错误详细信息。 |
|
message |
string |
错误消息。 |
target |
string |
错误目标。 |
ErrorResponse
错误响应
名称 | 类型 | 说明 |
---|---|---|
error |
错误对象。 |
SyncAgent
Azure SQL 数据库同步代理。
名称 | 类型 | 说明 |
---|---|---|
id |
string |
资源 ID。 |
name |
string |
资源名称。 |
properties.expiryTime |
string (date-time) |
同步代理版本的过期时间。 |
properties.isUpToDate |
boolean |
如果同步代理版本是最新的。 |
properties.lastAliveTime |
string (date-time) |
同步代理的最后一个活动时间。 |
properties.name |
string |
同步代理的名称。 |
properties.state |
同步代理的状态。 |
|
properties.syncDatabaseId |
string |
同步代理中同步数据库的 ARM 资源 ID。 |
properties.version |
string |
同步代理的版本。 |
type |
string |
资源类型。 |
SyncAgentState
同步代理的状态。
值 | 说明 |
---|---|
NeverConnected | |
Offline | |
Online |