Workspace Manager Assignment Jobs - Get
Gets a job
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/workspaceManagerAssignments/{workspaceManagerAssignmentName}/jobs/{jobName}?api-version=2024-01-01-preview
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
job
|
path | True |
string |
The job name Regex pattern: |
resource
|
path | True |
string |
The name of the resource group. The name is case insensitive. |
subscription
|
path | True |
string |
The ID of the target subscription. |
workspace
|
path | True |
string |
The name of the workspace manager assignment Regex pattern: |
workspace
|
path | True |
string |
The name of the workspace. Regex pattern: |
api-version
|
query | True |
string |
The API version to use for this operation. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
OK |
|
Other Status Codes |
Error response describing why the operation failed. |
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
Get a workspace manager job
Sample request
GET https://management.azure.com/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/workspaceManagerAssignments/47cdc5f5-37c4-47b5-bd5f-83c84b8bdd58/jobs/cfbe1338-8276-4d5d-8b96-931117f9fa0e?api-version=2024-01-01-preview
Sample response
{
"id": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/workspaceManagerAssignments/47cdc5f5-37c4-47b5-bd5f-83c84b8bdd58/jobs/cfbe1338-8276-4d5d-8b96-931117f9fa0e",
"etag": "\"f20a2523-7817-47b5-a3b2-21539c00c788\"",
"name": "cfbe1338-8276-4d5d-8b96-931117f9fa0e",
"type": "Microsoft.SecurityInsights/workspaceManagerAssignments/jobs",
"properties": {
"endTime": "2022-06-14T04:52:52.9614956Z",
"items": [
{
"resourceId": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/alertRules/microsoftSecurityIncidentCreationRuleExampleOne",
"status": "Succeeded",
"executionTime": "2022-06-14T04:49:52.9614956Z"
},
{
"resourceId": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/alertRules/microsoftSecurityIncidentCreationRuleExampleTwo",
"status": "Failed",
"executionTime": "2022-06-14T04:50:52.9614956Z",
"errors": [
{
"memberResourceName": "f5fa104e-c0e3-4747-9182-d342dc048a9e",
"errorMessage": "Failed to write. Status code: Forbidden."
}
]
}
],
"startTime": "2022-06-14T04:47:52.9614956Z",
"provisioningState": "Failed"
}
}
Definitions
Name | Description |
---|---|
created |
The type of identity that created the resource. |
error |
The error description for why a publication failed |
Error |
The resource management error additional info. |
Error |
The error detail. |
Error |
Error response |
Job |
The assignment job |
job |
An entity describing the publish status of a content item. |
provisioning |
State of the last job associated to this assignment |
status |
Status of the item publication |
system |
Metadata pertaining to creation and last modification of the resource. |
createdByType
The type of identity that created the resource.
Name | Type | Description |
---|---|---|
Application |
string |
|
Key |
string |
|
ManagedIdentity |
string |
|
User |
string |
error
The error description for why a publication failed
Name | Type | Description |
---|---|---|
errorMessage |
string |
The error message |
memberResourceName |
string |
The member resource name for which the publication error occured |
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. |
Job
The assignment job
Name | Type | Description |
---|---|---|
etag |
string |
Etag of the azure resource |
id |
string |
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
name |
string |
The name of the resource |
properties.endTime |
string |
The time the job completed |
properties.errorMessage |
string |
Message to describe error, if an error exists |
properties.items |
job |
List of items published by the job |
properties.provisioningState |
State of the job |
|
properties.startTime |
string |
The time the job started |
systemData |
Azure Resource Manager metadata containing createdBy and modifiedBy information. |
|
type |
string |
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" |
jobItem
An entity describing the publish status of a content item.
Name | Type | Description |
---|---|---|
errors |
error[] |
The list of error descriptions if the item publication fails. |
executionTime |
string |
The time the item publishing was completed |
resourceId |
string |
The resource id of the content item |
status |
Status of the item publication |
provisioningState
State of the last job associated to this assignment
Name | Type | Description |
---|---|---|
Canceled |
string |
The job was canceled |
Failed |
string |
The job failed |
InProgress |
string |
The job is in progress |
Succeeded |
string |
The job succeeded |
status
Status of the item publication
Name | Type | Description |
---|---|---|
Failed |
string |
The item publication failed |
InProgress |
string |
The item publication is in progress |
Succeeded |
string |
The item publication succeeded |
systemData
Metadata pertaining to creation and last modification of the resource.
Name | Type | Description |
---|---|---|
createdAt |
string |
The timestamp of resource creation (UTC). |
createdBy |
string |
The identity that created the resource. |
createdByType |
The type of identity that created the resource. |
|
lastModifiedAt |
string |
The timestamp of resource last modification (UTC) |
lastModifiedBy |
string |
The identity that last modified the resource. |
lastModifiedByType |
The type of identity that last modified the resource. |