Server Operations - List By Server
Gets a list of operations performed on the server.
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/operations?api-version=2023-08-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. |
|
subscription
|
path | True |
string |
The subscription ID that identifies an Azure subscription. |
|
api-version
|
query | True |
string |
The API version to use for the request. |
Responses
| Name | Type | Description |
|---|---|---|
| 200 OK |
The request for getting server operations has been executed successfully. |
|
| Other Status Codes |
*** Error Responses: ***
|
Examples
List the server management operations
Sample request
Sample response
{
"value": [
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-7398/providers/Microsoft.Sql/servers/sqlcrudtest-4645/operations/11111111-1111-1111-1111-111111111111",
"name": "11111111-1111-1111-1111-111111111111",
"type": "Microsoft.Sql/servers/operations",
"properties": {
"operation": "MakeAllLogicalDatabasesAccessible",
"operationFriendlyName": "MAKE ALL DBS ACCESSIBLE",
"percentComplete": 0,
"serverName": "sqlcrudtest-4645",
"startTime": "2017-06-01T09:10:08.1Z",
"state": "InProgress"
}
},
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-7398/providers/Microsoft.Sql/servers/sqlcrudtest-4645/operations/22222222-2222-2222-2222-222222222222",
"name": "22222222-2222-2222-2222-222222222222",
"type": "Microsoft.Sql/servers/operations",
"properties": {
"operation": "MakeAllLogicalDatabasesAccessible",
"operationFriendlyName": "MAKE ALL DBS ACCESSIBLE",
"percentComplete": 100,
"serverName": "sqlcrudtest-4645",
"startTime": "2017-06-01T09:00:08.1Z",
"state": "Succeeded"
}
}
]
}
Definitions
| Name | Description |
|---|---|
|
Error |
The resource management error additional info. |
|
Error |
The error detail. |
|
Error |
Error response |
|
Management |
The operation state. |
|
Server |
A server operation. |
|
Server |
The response to a list server operations request |
ErrorAdditionalInfo
The resource management error additional info.
| Name | Type | Description |
|---|---|---|
| info |
object |
The additional info. |
| type |
string |
The additional info type. |
ErrorDetail
The error detail.
| Name | Type | Description |
|---|---|---|
| additionalInfo |
The error additional info. |
|
| code |
string |
The error code. |
| details |
The error details. |
|
| message |
string |
The error message. |
| target |
string |
The error target. |
ErrorResponse
Error response
| Name | Type | Description |
|---|---|---|
| error |
The error object. |
ManagementOperationState
The operation state.
| Value | Description |
|---|---|
| Pending | |
| InProgress | |
| Succeeded | |
| Failed | |
| CancelInProgress | |
| Cancelled |
ServerOperation
A server operation.
| Name | Type | Description |
|---|---|---|
| id |
string |
Resource ID. |
| name |
string |
Resource name. |
| properties.description |
string |
The operation description. |
| properties.errorCode |
integer (int32) |
The operation error code. |
| properties.errorDescription |
string |
The operation error description. |
| properties.errorSeverity |
integer (int32) |
The operation error severity. |
| properties.estimatedCompletionTime |
string (date-time) |
The estimated completion time of the operation. |
| properties.isCancellable |
boolean |
Whether the operation can be cancelled. |
| properties.isUserError |
boolean |
Whether or not the error is a user error. |
| properties.operation |
string |
The name of operation. |
| properties.operationFriendlyName |
string |
The friendly name of operation. |
| properties.percentComplete |
integer (int32) |
The percentage of the operation completed. |
| properties.serverName |
string |
The name of the server. |
| properties.startTime |
string (date-time) |
The operation start time. |
| properties.state |
The operation state. |
|
| type |
string |
Resource type. |
ServerOperationListResult
The response to a list server operations request
| Name | Type | Description |
|---|---|---|
| nextLink |
string |
Link to retrieve next page of results. |
| value |
Array of results. |