Language

ArmSqlModelFactory.JobTarget Method

Definition

A job target, for example a specific database or a container of databases that is evaluated during job execution.

public static Azure.ResourceManager.Sql.Models.JobTarget JobTarget(Azure.ResourceManager.Sql.Models.JobTargetGroupMembershipType? membershipType = default, Azure.ResourceManager.Sql.Models.JobTargetType targetType = default, string serverName = default, string databaseName = default, string elasticPoolName = default, string shardMapName = default, string refreshCredential = default);
static member JobTarget : Nullable<Azure.ResourceManager.Sql.Models.JobTargetGroupMembershipType> * Azure.ResourceManager.Sql.Models.JobTargetType * string * string * string * string * string -> Azure.ResourceManager.Sql.Models.JobTarget
Public Shared Function JobTarget (Optional membershipType As Nullable(Of JobTargetGroupMembershipType) = Nothing, Optional targetType As JobTargetType = Nothing, Optional serverName As String = Nothing, Optional databaseName As String = Nothing, Optional elasticPoolName As String = Nothing, Optional shardMapName As String = Nothing, Optional refreshCredential As String = Nothing) As JobTarget

Parameters

membershipType
Nullable<JobTargetGroupMembershipType>

Whether the target is included or excluded from the group.

targetType
JobTargetType

The target type.

serverName
String

The target server name.

databaseName
String

The target database name.

elasticPoolName
String

The target elastic pool name.

shardMapName
String

The target shard map.

refreshCredential
String

The resource ID of the credential that is used during job execution to connect to the target and determine the list of databases inside the target.

Returns

A new JobTarget instance for mocking.

Applies to