共用方式為


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
msrest.serialization.Model
JobTarget

Constructor

JobTarget(*, type: str | JobTargetType, membership_type: str | JobTargetGroupMembershipType | None = '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)

Parameters

Name Description
membership_type
Required

Whether the target is included or excluded from the group. Possible values include: "Include", "Exclude". Default value: "Include".

type
Required

Required. The target type. Possible values include: "TargetGroup", "SqlDatabase", "SqlElasticPool", "SqlShardMap", "SqlServer".

server_name
Required
str

The target server name.

database_name
Required
str

The target database name.

elastic_pool_name
Required
str

The target elastic pool name.

shard_map_name
Required
str

The target shard map.

refresh_credential
Required
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.

Keyword-Only Parameters

Name Description
type
Required
membership_type
Default value: Include
server_name
Required
database_name
Required
elastic_pool_name
Required
shard_map_name
Required
refresh_credential
Required