JobTarget Class
A job target, for example a specific database or a container of databases that is evaluated during job execution.
All required parameters must be populated in order to send to server.
Constructor
JobTarget(*, type: str | _models.JobTargetType, membership_type: str | _models.JobTargetGroupMembershipType = 'Include', server_name: str | None = None, database_name: str | None = None, elastic_pool_name: str | None = None, shard_map_name: str | None = None, refresh_credential: str | None = None, **kwargs: Any)
Keyword-Only Parameters
| Name | Description |
|---|---|
|
membership_type
|
Whether the target is included or excluded from the group. Known values are: "Include" and "Exclude". Default value: Include
|
|
type
|
str or
JobTargetType
The target type. Required. Known values are: "TargetGroup", "SqlDatabase", "SqlElasticPool", "SqlShardMap", and "SqlServer". |
|
server_name
|
The target server name. Default value: None
|
|
database_name
|
The target database name. Default value: None
|
|
elastic_pool_name
|
The target elastic pool name. Default value: None
|
|
shard_map_name
|
The target shard map. Default value: None
|
|
refresh_credential
|
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. Default value: None
|
Variables
| Name | Description |
|---|---|
|
membership_type
|
Whether the target is included or excluded from the group. Known values are: "Include" and "Exclude". |
|
type
|
str or
JobTargetType
The target type. Required. Known values are: "TargetGroup", "SqlDatabase", "SqlElasticPool", "SqlShardMap", and "SqlServer". |
|
server_name
|
The target server name. |
|
database_name
|
The target database name. |
|
elastic_pool_name
|
The target elastic pool name. |
|
shard_map_name
|
The target shard map. |
|
refresh_credential
|
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. |