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=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. |
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 |
---|---|
Management |
The operation state. |
Server |
A server operation. |
Server |
The response to a list server operations request |
ManagementOperationState
The operation state.
Name | Type | Description |
---|---|---|
CancelInProgress |
string |
|
Cancelled |
string |
|
Failed |
string |
|
InProgress |
string |
|
Pending |
string |
|
Succeeded |
string |
ServerOperation
A server operation.
Name | Type | Description |
---|---|---|
id |
string |
Resource ID. |
name |
string |
Resource name. |
properties.description |
string |
The operation description. |
properties.errorCode |
integer |
The operation error code. |
properties.errorDescription |
string |
The operation error description. |
properties.errorSeverity |
integer |
The operation error severity. |
properties.estimatedCompletionTime |
string |
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 |
The percentage of the operation completed. |
properties.serverName |
string |
The name of the server. |
properties.startTime |
string |
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. |