Events - Enumerate Events
Gets a list of events in the migrate project.
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/migrateProjects/{migrateProjectName}/migrateEvents?api-version=2018-09-01-preview
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/migrateProjects/{migrateProjectName}/migrateEvents?api-version=2018-09-01-preview&continuationToken={continuationToken}&pageSize={pageSize}
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
migrate
|
path | True |
string |
Name of the Azure Migrate project. |
resource
|
path | True |
string |
Name of the Azure Resource Group that migrate project is part of. |
subscription
|
path | True |
string |
Azure Subscription Id in which migrate project was created. |
api-version
|
query | True |
string |
Standard request header. Used by service to identify API version used by client. |
continuation
|
query |
string |
The continuation token. |
|
page
|
query |
integer |
The number of items to be returned in a single page. This value is honored only if it is less than the 100. |
Request Header
Name | Required | Type | Description |
---|---|---|---|
Accept-Language |
string |
Standard request header. Used by service to respond to client in appropriate language. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
OK |
Security
azure_auth
Azure Active Directory OAuth2 Flow
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
Name | Description |
---|---|
user_impersonation | impersonate your user account |
Examples
MigrateEvents_List
Sample request
GET https://management.azure.com/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.Migrate/migrateProjects/project01/migrateEvents?api-version=2018-09-01-preview
Sample response
{
"value": [
{
"id": "/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.Migrate/MigrateProjects/project01/MigrateEvents/b80e3c0f-70c0-4057-81e7-14cfa9ebb205",
"name": "b80e3c0f-70c0-4057-81e7-14cfa9ebb205",
"type": "Microsoft.Migrate/MigrateProjects/MigrateEvents",
"properties": {
"instanceType": "Servers",
"machine": "server1",
"errorCode": "600",
"errorMessage": "The message does not contain the required parameters to identify the machine.",
"recommendation": "Resolve the error and try again.",
"possibleCauses": "The mandatory fields are not provided.",
"solution": "serversolution",
"clientRequestId": "a5dd7e42-4fd1-4512-af04-83ad9864335c"
}
},
{
"id": "/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.Migrate/MigrateProjects/project01/MigrateEvents/041dc61e-8568-40f7-b9b3-c66233ace714",
"name": "041dc61e-8568-40f7-b9b3-c66233ace714",
"type": "Microsoft.Migrate/MigrateProjects/MigrateEvents",
"properties": {
"instanceType": "Databases",
"database": "db1",
"databaseInstanceId": "cD",
"errorCode": "608",
"errorMessage": "The message does not contain the required parameters to identify the database.",
"recommendation": "Resolve the error and try again.",
"possibleCauses": "The mandatory fields are not provided.",
"solution": "dbsolution",
"clientRequestId": "cf861fa5-9a2e-4a9f-b51c-8054efa8e75f"
}
}
]
}
Definitions
Name | Description |
---|---|
Database |
Properties of the database error resource. |
Event |
Collection of events. |
Machine |
Properties of the machine error resource. |
Migrate |
MigrateEvent REST resource. |
DatabaseMigrateEventProperties
Properties of the database error resource.
Name | Type | Description |
---|---|---|
clientRequestId |
string |
Gets or sets the client request Id of the payload for which the event is being reported. |
database |
string |
Gets or sets the database for which the error is being reported. |
databaseInstanceId |
string |
Gets or sets the database instance for which the error is being reported. |
errorCode |
string |
Gets or sets the error code. |
errorMessage |
string |
Gets or sets the error message. |
instanceType |
string:
Databases |
Gets the Instance type. |
possibleCauses |
string |
Gets or sets the possible causes for the error. |
recommendation |
string |
Gets or sets the recommendation for the error. |
solution |
string |
Gets or sets the solution for which the error is being reported. |
EventCollection
Collection of events.
Name | Type | Description |
---|---|---|
nextLink |
string |
Gets or sets the value of nextLink. |
value |
Gets or sets the machines. |
MachineMigrateEventProperties
Properties of the machine error resource.
Name | Type | Description |
---|---|---|
clientRequestId |
string |
Gets or sets the client request Id of the payload for which the event is being reported. |
errorCode |
string |
Gets or sets the error code. |
errorMessage |
string |
Gets or sets the error message. |
instanceType |
string:
Servers |
Gets the Instance type. |
machine |
string |
Gets or sets the machine for which the error is being reported. |
possibleCauses |
string |
Gets or sets the possible causes for the error. |
recommendation |
string |
Gets or sets the recommendation for the error. |
solution |
string |
Gets or sets the solution for which the error is being reported. |
MigrateEvent
MigrateEvent REST resource.
Name | Type | Description |
---|---|---|
id |
string |
Gets or sets the relative URL to get to this REST resource. |
name |
string |
Gets or sets the name of this REST resource. |
properties | MigrateEventProperties: |
Gets or sets the properties of the event. |
type |
string |
Gets the type of this REST resource. |