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 Azure.
- Inheritance
-
JobTarget
Constructor
JobTarget(*, type: Union[str, azure.mgmt.sql.models._sql_management_client_enums.JobTargetType], membership_type: Optional[Union[str, azure.mgmt.sql.models._sql_management_client_enums.JobTargetGroupMembershipType]] = 'Include', server_name: Optional[str] = None, database_name: Optional[str] = None, elastic_pool_name: Optional[str] = None, shard_map_name: Optional[str] = None, refresh_credential: Optional[str] = None, **kwargs)
Parameters
- membership_type
- str or JobTargetGroupMembershipType
Whether the target is included or excluded from the group. Possible values include: "Include", "Exclude". Default value: "Include".
- type
- str or JobTargetType
Required. The target type. Possible values include: "TargetGroup", "SqlDatabase", "SqlElasticPool", "SqlShardMap", "SqlServer".
- refresh_credential
- str
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.
Feedback
Submit and view feedback for