你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Job Step Executions - Get
获取作业执行的步骤执行。
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/executions/{jobExecutionId}/steps/{stepName}?api-version=2021-11-01
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
job
|
path | True |
string |
作业代理的名称。 |
job
|
path | True |
string uuid |
作业执行的唯一 ID |
job
|
path | True |
string |
要获取的作业的名称。 |
resource
|
path | True |
string |
包含该资源的资源组名称。 可以从 Azure 资源管理器 API 或门户获取此值。 |
server
|
path | True |
string |
服务器的名称。 |
step
|
path | True |
string |
步骤的名称。 |
subscription
|
path | True |
string |
用于标识 Azure 订阅的订阅 ID。 |
api-version
|
query | True |
string |
要用于请求的 API 版本。 |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
已成功检索步骤执行。 |
|
Other Status Codes |
错误响应:***
|
示例
Get a job step execution
示例请求
示例响应
{
"properties": {
"jobVersion": 1,
"stepName": "step1",
"stepId": 1,
"jobExecutionId": "5A86BF65-43AC-F258-2524-9E92992F97CA",
"lifecycle": "Succeeded",
"provisioningState": "Succeeded",
"createTime": "2017-12-27T04:33:15.7189151Z",
"startTime": "2017-12-27T04:33:16.176937Z",
"endTime": "2017-12-27T04:33:19.0600862Z",
"currentAttempts": 1,
"currentAttemptStartTime": "2017-12-27T04:33:17.4840068Z",
"lastMessage": "Step 1 succeeded."
},
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/server1/jobAgents/agent1/jobs/job1/executions/5555-6666-7777-8888-999999999999/steps/step1",
"name": "step1",
"type": "Microsoft.Sql/servers/jobAgents/jobs/executions/steps"
}
定义
名称 | 说明 |
---|---|
Job |
作业的执行 |
Job |
作业执行的详细状态。 |
Job |
执行作业的目标。 |
Job |
目标的类型。 |
Provisioning |
作业执行的 ARM 预配状态。 |
JobExecution
作业的执行
名称 | 类型 | 说明 |
---|---|---|
id |
string |
资源 ID。 |
name |
string |
资源名称。 |
properties.createTime |
string |
创建作业执行的时间。 |
properties.currentAttemptStartTime |
string |
当前尝试的开始时间。 |
properties.currentAttempts |
integer |
已尝试执行作业的次数。 |
properties.endTime |
string |
作业执行完成的时间。 |
properties.jobExecutionId |
string |
作业执行的唯一标识符。 |
properties.jobVersion |
integer |
作业版本号。 |
properties.lastMessage |
string |
上一个状态或错误消息。 |
properties.lifecycle |
作业执行的详细状态。 |
|
properties.provisioningState |
作业执行的 ARM 预配状态。 |
|
properties.startTime |
string |
作业执行开始的时间。 |
properties.stepId |
integer |
作业步骤 ID。 |
properties.stepName |
string |
作业步骤名称。 |
properties.target |
执行此执行的目标。 |
|
type |
string |
资源类型。 |
JobExecutionLifecycle
作业执行的详细状态。
值 | 说明 |
---|---|
Canceled | |
Created | |
Failed | |
InProgress | |
Skipped | |
Succeeded | |
SucceededWithSkipped | |
TimedOut | |
WaitingForChildJobExecutions | |
WaitingForRetry |
JobExecutionTarget
执行作业的目标。
名称 | 类型 | 说明 |
---|---|---|
databaseName |
string |
数据库名称。 |
serverName |
string |
服务器名称。 |
type |
目标的类型。 |
JobTargetType
目标的类型。
值 | 说明 |
---|---|
SqlDatabase | |
SqlElasticPool | |
SqlServer | |
SqlShardMap | |
TargetGroup |
ProvisioningState
作业执行的 ARM 预配状态。
值 | 说明 |
---|---|
Canceled | |
Created | |
Failed | |
InProgress | |
Succeeded |