SqlServerJobExecutionCollection.GetJobTargetExecutionsAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetJobTargetExecutionsAsync(SqlServerJobExecutionCollectionGetJobTargetExecutionsOptions, CancellationToken) |
Lists target executions for all steps of a job execution.
|
GetJobTargetExecutionsAsync(Guid, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>, CancellationToken) |
Lists target executions for all steps of a job execution.
|
GetJobTargetExecutionsAsync(SqlServerJobExecutionCollectionGetJobTargetExecutionsOptions, CancellationToken)
Lists target executions for all steps of a job execution.
- Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/executions/{jobExecutionId}/targets
- Operation Id: JobTargetExecutions_ListByJobExecution
- Default Api Version: 2020-11-01-preview
- Resource: SqlServerJobExecutionStepTargetResource
public virtual Azure.AsyncPageable<Azure.ResourceManager.Sql.SqlServerJobExecutionStepTargetResource> GetJobTargetExecutionsAsync (Azure.ResourceManager.Sql.Models.SqlServerJobExecutionCollectionGetJobTargetExecutionsOptions options, System.Threading.CancellationToken cancellationToken = default);
abstract member GetJobTargetExecutionsAsync : Azure.ResourceManager.Sql.Models.SqlServerJobExecutionCollectionGetJobTargetExecutionsOptions * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Sql.SqlServerJobExecutionStepTargetResource>
override this.GetJobTargetExecutionsAsync : Azure.ResourceManager.Sql.Models.SqlServerJobExecutionCollectionGetJobTargetExecutionsOptions * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Sql.SqlServerJobExecutionStepTargetResource>
Public Overridable Function GetJobTargetExecutionsAsync (options As SqlServerJobExecutionCollectionGetJobTargetExecutionsOptions, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of SqlServerJobExecutionStepTargetResource)
Parameters
A property bag which contains all the parameters of this method except the LRO qualifier and request context parameter.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
An async collection of SqlServerJobExecutionStepTargetResource that may take multiple service requests to iterate over.
Exceptions
options
is null.
Applies to
GetJobTargetExecutionsAsync(Guid, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>, CancellationToken)
Lists target executions for all steps of a job execution.
- Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/executions/{jobExecutionId}/targets
- Operation Id: JobTargetExecutions_ListByJobExecution
public virtual Azure.AsyncPageable<Azure.ResourceManager.Sql.SqlServerJobExecutionStepTargetResource> GetJobTargetExecutionsAsync (Guid jobExecutionId, DateTimeOffset? createTimeMin = default, DateTimeOffset? createTimeMax = default, DateTimeOffset? endTimeMin = default, DateTimeOffset? endTimeMax = default, bool? isActive = default, int? skip = default, int? top = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetJobTargetExecutionsAsync : Guid * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * Nullable<bool> * Nullable<int> * Nullable<int> * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Sql.SqlServerJobExecutionStepTargetResource>
override this.GetJobTargetExecutionsAsync : Guid * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * Nullable<bool> * Nullable<int> * Nullable<int> * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Sql.SqlServerJobExecutionStepTargetResource>
Public Overridable Function GetJobTargetExecutionsAsync (jobExecutionId As Guid, Optional createTimeMin As Nullable(Of DateTimeOffset) = Nothing, Optional createTimeMax As Nullable(Of DateTimeOffset) = Nothing, Optional endTimeMin As Nullable(Of DateTimeOffset) = Nothing, Optional endTimeMax As Nullable(Of DateTimeOffset) = Nothing, Optional isActive As Nullable(Of Boolean) = Nothing, Optional skip As Nullable(Of Integer) = Nothing, Optional top As Nullable(Of Integer) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of SqlServerJobExecutionStepTargetResource)
Parameters
- jobExecutionId
- Guid
The id of the job execution.
- createTimeMin
- Nullable<DateTimeOffset>
If specified, only job executions created at or after the specified time are included.
- createTimeMax
- Nullable<DateTimeOffset>
If specified, only job executions created before the specified time are included.
- endTimeMin
- Nullable<DateTimeOffset>
If specified, only job executions completed at or after the specified time are included.
- endTimeMax
- Nullable<DateTimeOffset>
If specified, only job executions completed before the specified time are included.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
An async collection of SqlServerJobExecutionStepTargetResource that may take multiple service requests to iterate over.
Applies to
Azure SDK for .NET