Job Target Executions - Get
ターゲットの実行を取得します。
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/executions/{jobExecutionId}/steps/{stepName}/targets/{targetId}?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 Resource Manager API またはポータルから取得できます。 |
server
|
path | True |
string |
サーバーの名前。 |
step
|
path | True |
string |
ステップの名前。 |
subscription
|
path | True |
string |
Azure サブスクリプションを識別するサブスクリプション ID。 |
target
|
path | True |
string (uuid) |
ターゲット ID。 |
api-version
|
query | True |
string |
要求に使用する API バージョン。 |
応答
名前 | 型 | 説明 |
---|---|---|
200 OK |
ターゲットの実行が正常に取得されました。 |
|
Other Status Codes |
エラー応答: ***
|
例
Get a job step target execution
要求のサンプル
GET https://management.azure.com/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/server1/jobAgents/agent1/jobs/job1/executions/5A86BF65-43AC-F258-2524-9E92992F97CA/steps/step1/targets/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee?api-version=2021-11-01
応答のサンプル
{
"properties": {
"jobVersion": 1,
"stepName": "step1",
"stepId": 1,
"jobExecutionId": "5A86BF65-43AC-F258-2524-9E92992F97CA",
"lifecycle": "Succeeded",
"provisioningState": "Succeeded",
"createTime": "2017-11-05T04:33:17.5133333Z",
"startTime": "2017-11-05T04:33:18.1230403Z",
"endTime": "2017-11-05T04:33:18.7031029Z",
"currentAttempts": 1,
"currentAttemptStartTime": "2017-11-05T04:33:18.2391013Z",
"lastMessage": "Step 1 succeeded execution on target (server 'server1', database 'database1').",
"target": {
"type": "SqlDatabase",
"serverName": "server1",
"databaseName": "database1"
}
},
"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/targets/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
"name": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
"type": "Microsoft.Sql/servers/jobAgents/jobs/executions/steps/targets"
}
定義
名前 | 説明 |
---|---|
Job |
ジョブの実行 |
Job |
ジョブ実行の詳細な状態。 |
Job |
ジョブ実行が実行されるターゲット。 |
Job |
ターゲットの型。 |
Provisioning |
ジョブ実行の ARM プロビジョニング状態。 |
JobExecution
ジョブの実行
名前 | 型 | 説明 |
---|---|---|
id |
string |
リソース ID。 |
name |
string |
リソース名。 |
properties.createTime |
string (date-time) |
ジョブの実行が作成された時刻。 |
properties.currentAttemptStartTime |
string (date-time) |
現在の試行の開始時刻。 |
properties.currentAttempts |
integer (int32) |
ジョブの実行が試行された回数。 |
properties.endTime |
string (date-time) |
ジョブの実行が完了した時刻。 |
properties.jobExecutionId |
string (uuid) |
ジョブ実行の一意識別子。 |
properties.jobVersion |
integer (int32) |
ジョブのバージョン番号。 |
properties.lastMessage |
string |
最後の状態またはエラー メッセージ。 |
properties.lifecycle |
ジョブ実行の詳細な状態。 |
|
properties.provisioningState |
ジョブ実行の ARM プロビジョニング状態。 |
|
properties.startTime |
string (date-time) |
ジョブの実行が開始された時刻。 |
properties.stepId |
integer (int32) |
ジョブ ステップ 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 |