你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Sync Agents - List Linked Databases
Lists链接到同步代理的数据库。
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/syncAgents/{syncAgentName}/linkedDatabases?api-version=2021-11-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 |
已成功检索到同步代理链接的 SQL Server 数据库。 |
|
Other Status Codes |
错误响应: ***
|
示例
Get sync agent linked databases
Sample Request
Sample Response
{
"value": [
{
"properties": {
"databaseType": "SqlServerDatabase",
"databaseId": "55555555-6666-7777-8888-999999999999",
"description": "",
"serverName": "DummySqlServer",
"databaseName": "DummySqlServerDb",
"userName": "DummyUser"
},
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default-SQL-Onebox/providers/Microsoft.Sql/servers/syncagentcrud-8475/syncAgents/syncagentcrud-3187/linkedDatabases/55555555-6666-7777-8888-999999999999"
}
]
}
定义
名称 | 说明 |
---|---|
Sync |
Azure SQL数据库同步代理链接数据库。 |
Sync |
同步代理链接数据库的列表。 |
Sync |
同步代理链接数据库的类型。 |
SyncAgentLinkedDatabase
Azure SQL数据库同步代理链接数据库。
名称 | 类型 | 说明 |
---|---|---|
id |
string |
资源 ID。 |
name |
string |
资源名称。 |
properties.databaseId |
string |
同步代理链接数据库的 ID。 |
properties.databaseName |
string |
同步代理链接数据库的数据库名称。 |
properties.databaseType |
同步代理链接数据库的类型。 |
|
properties.description |
string |
同步代理链接数据库的说明。 |
properties.serverName |
string |
同步代理链接数据库的服务器名称。 |
properties.userName |
string |
同步代理链接数据库的用户名。 |
type |
string |
资源类型。 |
SyncAgentLinkedDatabaseListResult
同步代理链接数据库的列表。
名称 | 类型 | 说明 |
---|---|---|
nextLink |
string |
用于检索下一页结果的链接。 |
value |
结果数组。 |
SyncMemberDbType
同步代理链接数据库的类型。
名称 | 类型 | 说明 |
---|---|---|
AzureSqlDatabase |
string |
|
SqlServerDatabase |
string |