JobTargetGroupsOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:job_target_groups> attribute.
Constructor
JobTargetGroupsOperations(*args, **kwargs)
Methods
| create_or_update |
Creates or updates a target group. |
| delete |
Deletes a target group. |
| get |
Gets a target group. |
| list_by_agent |
Gets all target groups in an agent. |
create_or_update
Creates or updates a target group.
async create_or_update(resource_group_name: str, server_name: str, job_agent_name: str, target_group_name: str, parameters: _models.JobTargetGroup, *, content_type: str = 'application/json', **kwargs: Any) -> _models.JobTargetGroup
Parameters
| Name | Description |
|---|---|
|
resource_group_name
Required
|
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. |
|
server_name
Required
|
The name of the server. Required. |
|
job_agent_name
Required
|
The name of the job agent. Required. |
|
target_group_name
Required
|
The name of the target group. Required. |
|
parameters
Required
|
The requested state of the target group. Is either a JobTargetGroup type or a IO[bytes] type. Required. |
Returns
| Type | Description |
|---|---|
|
JobTargetGroup or the result of cls(response) |
Exceptions
| Type | Description |
|---|---|
delete
Deletes a target group.
async delete(resource_group_name: str, server_name: str, job_agent_name: str, target_group_name: str, **kwargs: Any) -> None
Parameters
| Name | Description |
|---|---|
|
resource_group_name
Required
|
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. |
|
server_name
Required
|
The name of the server. Required. |
|
job_agent_name
Required
|
The name of the job agent. Required. |
|
target_group_name
Required
|
The name of the target group. Required. |
Returns
| Type | Description |
|---|---|
|
None or the result of cls(response) |
Exceptions
| Type | Description |
|---|---|
get
Gets a target group.
async get(resource_group_name: str, server_name: str, job_agent_name: str, target_group_name: str, **kwargs: Any) -> JobTargetGroup
Parameters
| Name | Description |
|---|---|
|
resource_group_name
Required
|
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. |
|
server_name
Required
|
The name of the server. Required. |
|
job_agent_name
Required
|
The name of the job agent. Required. |
|
target_group_name
Required
|
The name of the target group. Required. |
Returns
| Type | Description |
|---|---|
|
JobTargetGroup or the result of cls(response) |
Exceptions
| Type | Description |
|---|---|
list_by_agent
Gets all target groups in an agent.
list_by_agent(resource_group_name: str, server_name: str, job_agent_name: str, **kwargs: Any) -> AsyncItemPaged[JobTargetGroup]
Parameters
| Name | Description |
|---|---|
|
resource_group_name
Required
|
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required. |
|
server_name
Required
|
The name of the server. Required. |
|
job_agent_name
Required
|
The name of the job agent. Required. |
Returns
| Type | Description |
|---|---|
|
An iterator like instance of either JobTargetGroup or the result of cls(response) |
Exceptions
| Type | Description |
|---|---|
Attributes
models
models = <module 'azure.mgmt.sql.models' from 'C:\\ToolCache\\Python\\3.12.10\\x64\\Lib\\site-packages\\py2docfx\\venv\\venv268\\Lib\\site-packages\\azure\\mgmt\\sql\\models\\__init__.py'>