Managed Instance Operations - List By Managed Instance
관리되는 인스턴스에서 수행되는 작업 목록을 가져옵니다.
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/operations?api-version=2023-08-01
URI 매개 변수
Name | In(다음 안에) | 필수 | 형식 | Description |
---|---|---|---|---|
managed
|
path | True |
string |
관리되는 인스턴스의 이름입니다. |
resource
|
path | True |
string |
리소스를 포함하는 리소스 그룹의 이름입니다. Azure Resource Manager API 또는 포털에서 이 값을 가져올 수 있습니다. |
subscription
|
path | True |
string |
Azure 구독을 식별하는 구독 ID입니다. |
api-version
|
query | True |
string |
요청에 사용할 API 버전입니다. |
응답
Name | 형식 | Description |
---|---|---|
200 OK |
관리되는 인스턴스 작업을 가져오기 위한 요청이 성공적으로 실행되었습니다. |
|
Other Status Codes |
오류 응답: ***
|
예제
List the managed instance management operations
샘플 요청
샘플 응답
{
"value": [
{
"properties": {
"managedInstanceName": "sqlcrudtest-4645",
"operation": "UpsertManagedServer",
"operationFriendlyName": "UPDATE MANAGED SERVER",
"percentComplete": 100,
"startTime": "2019-12-06T11:08:44.49Z",
"state": "Cancelled",
"isCancellable": false
},
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-7398/providers/Microsoft.Sql/managedInstances/sqlcrudtest-4645/operations/11111111-1111-1111-1111-111111111111",
"name": "11111111-1111-1111-1111-111111111111",
"type": "Microsoft.Sql/managedInstances/operations"
},
{
"properties": {
"managedInstanceName": "sqlcrudtest-4645",
"operation": "UpsertManagedServer",
"operationFriendlyName": "UPDATE MANAGED SERVER",
"percentComplete": 50,
"startTime": "2019-12-06T11:08:44.49Z",
"state": "InProgress",
"isCancellable": true,
"operationParameters": {
"currentParameters": {
"family": "Gen4",
"tier": "GeneralPurpose",
"vCores": 8,
"storageSizeInGB": 32
},
"requestedParameters": {
"family": "Gen4",
"tier": "BusinessCritical",
"vCores": 8,
"storageSizeInGB": 128
}
},
"operationSteps": {
"totalSteps": "3",
"currentStep": 3,
"stepsList": [
{
"order": 1,
"name": "Request validation",
"status": "Completed",
"stepEndTime": "2019-12-06T11:08:45.57Z",
"stepStartTime": "2019-12-06T11:08:44.49Z",
"timeElapsed": "0"
},
{
"order": 2,
"name": "Virtual Cluster resize/creation",
"status": "Completed",
"stepEndTime": "2019-12-06T11:22:47.35Z",
"stepStartTime": "2019-12-06T11:08:46.15Z",
"timeElapsed": "14"
},
{
"order": 3,
"name": "New SQL Instance Startup",
"status": "InProgress",
"stepEndTime": "2019-12-06T11:24:50.51Z",
"stepStartTime": "2019-12-06T11:22:47.42Z",
"timeElapsed": "2"
}
]
}
},
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-7398/providers/Microsoft.Sql/managedInstances/sqlcrudtest-4645/operations/22222222-2222-2222-2222-222222222222",
"name": "22222222-2222-2222-2222-222222222222",
"type": "Microsoft.Sql/managedInstances/operations"
},
{
"properties": {
"managedInstanceName": "sqlcrudtest-4645",
"operation": "UpsertManagedServer",
"operationFriendlyName": "UPDATE MANAGED SERVER",
"percentComplete": 100,
"startTime": "2019-12-06T14:48:34.583Z",
"state": "Failed",
"errorCode": 45157,
"errorDescription": "Server 'sqlcrudtest-4645' is busy with another operation. Please try your operation later.",
"errorSeverity": 16,
"isUserError": true,
"isCancellable": false
},
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-7398/providers/Microsoft.Sql/managedInstances/sqlcrudtest-4645/operations/33333333-3333-3333-3333-333333333333",
"name": "33333333-3333-3333-3333-333333333333",
"type": "Microsoft.Sql/managedInstances/operations"
},
{
"properties": {
"managedInstanceName": "sqlcrudtest-4645",
"operation": "MakeAllManagedDatabasesAccessible",
"operationFriendlyName": "MAKE ALL MANAGED DBS ACCESSIBLE",
"percentComplete": 100,
"startTime": "2019-12-04T09:00:08.1Z",
"state": "Failed",
"operationSteps": {
"totalSteps": "1",
"currentStep": 1,
"stepsList": [
{
"order": 1,
"name": "Request validation",
"status": "Failed",
"stepEndTime": "2019-12-04T09:01:00.57Z",
"stepStartTime": "2019-12-04T09:00:30.15Z",
"timeElapsed": "0"
}
]
}
},
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-7398/providers/Microsoft.Sql/managedInstances/sqlcrudtest-4645/operations/44444444-4444-4444-4444-444444444444",
"name": "44444444-4444-4444-4444-444444444444",
"type": "Microsoft.Sql/managedInstances/operations"
}
]
}
정의
Name | Description |
---|---|
Error |
리소스 관리 오류 추가 정보입니다. |
Error |
오류 세부 정보입니다. |
Error |
오류 응답 |
Managed |
관리되는 인스턴스 작업입니다. |
Managed |
목록 관리되는 인스턴스 작업 요청에 대한 응답 |
Managed |
관리되는 인스턴스 작업의 매개 변수입니다. |
Managed |
관리되는 인스턴스 작업의 단계입니다. |
Management |
작업 상태입니다. |
Management |
|
Upsert |
|
Upsert |
ErrorAdditionalInfo
리소스 관리 오류 추가 정보입니다.
Name | 형식 | Description |
---|---|---|
info |
object |
추가 정보입니다. |
type |
string |
추가 정보 유형입니다. |
ErrorDetail
오류 세부 정보입니다.
Name | 형식 | Description |
---|---|---|
additionalInfo |
오류 추가 정보입니다. |
|
code |
string |
오류 코드입니다. |
details |
오류 세부 정보입니다. |
|
message |
string |
오류 메시지입니다. |
target |
string |
오류 대상입니다. |
ErrorResponse
오류 응답
Name | 형식 | Description |
---|---|---|
error |
오류 개체입니다. |
ManagedInstanceOperation
관리되는 인스턴스 작업입니다.
Name | 형식 | Description |
---|---|---|
id |
string |
리소스 ID입니다. |
name |
string |
리소스 이름입니다. |
properties.description |
string |
작업 설명입니다. |
properties.errorCode |
integer (int32) |
작업 오류 코드입니다. |
properties.errorDescription |
string |
작업 오류 설명입니다. |
properties.errorSeverity |
integer (int32) |
작업 오류 심각도입니다. |
properties.estimatedCompletionTime |
string (date-time) |
작업의 예상 완료 시간입니다. |
properties.isCancellable |
boolean |
작업을 취소할 수 있는지 여부입니다. |
properties.isUserError |
boolean |
오류가 사용자 오류인지 여부입니다. |
properties.managedInstanceName |
string |
작업이 수행되는 관리되는 인스턴스의 이름입니다. |
properties.operation |
string |
작업의 이름입니다. |
properties.operationFriendlyName |
string |
작업의 이름입니다. |
properties.operationParameters |
작업 매개 변수입니다. |
|
properties.operationSteps |
작업 단계입니다. |
|
properties.percentComplete |
integer (int32) |
완료된 작업의 백분율입니다. |
properties.startTime |
string (date-time) |
작업 시작 시간입니다. |
properties.state |
작업 상태입니다. |
|
type |
string |
리소스 종류입니다. |
ManagedInstanceOperationListResult
목록 관리되는 인스턴스 작업 요청에 대한 응답
Name | 형식 | Description |
---|---|---|
nextLink |
string |
결과의 다음 페이지를 검색하는 링크입니다. |
value |
결과 배열입니다. |
ManagedInstanceOperationParametersPair
관리되는 인스턴스 작업의 매개 변수입니다.
Name | 형식 | Description |
---|---|---|
currentParameters |
현재 매개 변수입니다. |
|
requestedParameters |
요청된 매개 변수입니다. |
ManagedInstanceOperationSteps
관리되는 인스턴스 작업의 단계입니다.
Name | 형식 | Description |
---|---|---|
currentStep |
integer (int32) |
현재 작업 단계의 수입니다. |
stepsList |
작업 단계 목록입니다. |
|
totalSteps |
string |
총 작업 단계 수입니다. |
ManagementOperationState
작업 상태입니다.
값 | Description |
---|---|
CancelInProgress | |
Cancelled | |
Failed | |
InProgress | |
Pending | |
Succeeded |
ManagementOperationStepState
값 | Description |
---|---|
Canceled | |
Completed | |
Failed | |
InProgress | |
NotStarted | |
SlowedDown |
UpsertManagedServerOperationParameters
Name | 형식 | Description |
---|---|---|
family |
string |
|
storageSizeInGB |
integer (int32) |
|
tier |
string |
|
vCores |
integer (int32) |
UpsertManagedServerOperationStepWithEstimatesAndDuration
Name | 형식 | Description |
---|---|---|
name |
string |
|
order |
integer (int32) |
|
status | ||
stepEndTime |
string (date-time) |
|
stepStartTime |
string (date-time) |
|
timeElapsed |
string |