你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Sql Pool Operations - List
获取对 SQL 池执行的操作的列表。
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/operations?api-version=2021-06-01
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
resource
|
path | True |
string |
资源组的名称。 此名称不区分大小写。 |
sql
|
path | True |
string |
SQL 池名称 |
subscription
|
path | True |
string |
目标订阅的 ID。 |
workspace
|
path | True |
string |
工作区的名称。 |
api-version
|
query | True |
string |
要用于此操作的 API 版本。 |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
确定 |
|
Other Status Codes |
错误响应: ***
|
示例
List the Sql Analytics pool management operations
Sample Request
GET https://management.azure.com/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-7398/providers/Microsoft.Synapse/workspaces/sqlcrudtest-4645/sqlPools/testdb/operations?api-version=2021-06-01
Sample Response
{
"value": [
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-7398/providers/Microsoft.Synapse/workspaces/sqlcrudtest-4645/sqlPools/testdb/operations/11111111-1111-1111-1111-111111111111",
"name": "11111111-1111-1111-1111-111111111111",
"type": "Microsoft.Synapse/workspaces/sqlPools/operations",
"properties": {
"databaseName": "testdb",
"operation": "UpdateLogicalDatabase",
"operationFriendlyName": "ALTER DATABASE",
"percentComplete": 100,
"serverName": "sqlcrudtest-4645",
"startTime": "2017-06-01T09:10:08.10Z",
"state": "Succeeded",
"estimatedCompletionTime": "2017-06-01T13:10:10Z",
"description": "UpdateLogicalDatabase on 'testdb', target ServiceLevelObjective S3",
"isCancellable": false
}
},
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-7398/providers/Microsoft.Synapse/workspaces/sqlcrudtest-4645/sqlPools/testdb/operations/55555555-5555-5555-5555-555555555555",
"name": "55555555-5555-5555-5555-555555555555",
"type": "Microsoft.Synapse/workspaces/sqlPools/operations",
"properties": {
"databaseName": "testdb",
"operation": "UpdateLogicalDatabase",
"operationFriendlyName": "ALTER DATABASE",
"percentComplete": 19,
"serverName": "sqlcrudtest-4645",
"startTime": "2017-06-01T10:10:08.10Z",
"state": "InProgress",
"estimatedCompletionTime": "2017-06-01T13:10:10Z",
"description": "UpdateLogicalDatabase on 'testdb', target ServiceLevelObjective S3",
"isCancellable": true
}
}
]
}
定义
名称 | 说明 |
---|---|
Management |
操作状态。 |
Sql |
对列表 Sql 池操作请求的响应 |
Sql |
Sql 池操作。 |
ManagementOperationState
操作状态。
名称 | 类型 | 说明 |
---|---|---|
CancelInProgress |
string |
|
Cancelled |
string |
|
Failed |
string |
|
InProgress |
string |
|
Pending |
string |
|
Succeeded |
string |
SqlPoolBlobAuditingPolicySqlPoolOperationListResult
对列表 Sql 池操作请求的响应
名称 | 类型 | 说明 |
---|---|---|
nextLink |
string |
用于检索下一页结果的链接。 |
value |
结果数组。 |
SqlPoolOperation
Sql 池操作。
名称 | 类型 | 说明 |
---|---|---|
id |
string |
资源的完全限定的资源 ID。 例如 - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
name |
string |
资源的名称 |
properties.databaseName |
string |
正在其上执行操作的 Sql 池的名称。 |
properties.description |
string |
操作说明。 |
properties.errorCode |
integer |
操作错误代码。 |
properties.errorDescription |
string |
操作错误说明。 |
properties.errorSeverity |
integer |
操作错误严重性。 |
properties.estimatedCompletionTime |
string |
操作的估计完成时间。 |
properties.isCancellable |
boolean |
是否可以取消操作。 |
properties.isUserError |
boolean |
错误是否为用户错误。 |
properties.operation |
string |
操作的名称。 |
properties.operationFriendlyName |
string |
操作的友好名称。 |
properties.percentComplete |
integer |
操作已完成的百分比。 |
properties.serverName |
string |
服务器的名称。 |
properties.startTime |
string |
操作开始时间。 |
properties.state |
操作状态。 |
|
type |
string |
资源类型。 例如“Microsoft.Compute/virtualMachines”或“Microsoft.Storage/storageAccounts” |