ServerTrustGroupsOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:server_trust_groups> attribute.
Constructor
ServerTrustGroupsOperations(*args, **kwargs)
Methods
| begin_create_or_update |
Creates or updates a server trust group. |
| begin_delete |
Deletes a server trust group. |
| get |
Gets a server trust group. |
| list_by_instance |
Gets a server trust groups by instance name. |
| list_by_location |
Lists a server trust group. |
begin_create_or_update
Creates or updates a server trust group.
async begin_create_or_update(resource_group_name: str, location_name: str, server_trust_group_name: str, parameters: _models.ServerTrustGroup, *, content_type: str = 'application/json', **kwargs: Any) -> AsyncLROPoller[_models.ServerTrustGroup]
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. |
|
location_name
Required
|
The name of the region where the resource is located. Required. |
|
server_trust_group_name
Required
|
The name of the server trust group. Required. |
|
parameters
Required
|
The server trust group parameters. Is either a ServerTrustGroup type or a IO[bytes] type. Required. |
Returns
| Type | Description |
|---|---|
|
An instance of AsyncLROPoller that returns either ServerTrustGroup or the result of cls(response) |
Exceptions
| Type | Description |
|---|---|
begin_delete
Deletes a server trust group.
async begin_delete(resource_group_name: str, location_name: str, server_trust_group_name: str, **kwargs: Any) -> AsyncLROPoller[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. |
|
location_name
Required
|
The name of the region where the resource is located. Required. |
|
server_trust_group_name
Required
|
The name of the server trust group. Required. |
Returns
| Type | Description |
|---|---|
|
An instance of AsyncLROPoller that returns either None or the result of cls(response) |
Exceptions
| Type | Description |
|---|---|
get
Gets a server trust group.
async get(resource_group_name: str, location_name: str, server_trust_group_name: str, **kwargs: Any) -> ServerTrustGroup
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. |
|
location_name
Required
|
The name of the region where the resource is located. Required. |
|
server_trust_group_name
Required
|
The name of the server trust group. Required. |
Returns
| Type | Description |
|---|---|
|
ServerTrustGroup or the result of cls(response) |
Exceptions
| Type | Description |
|---|---|
list_by_instance
Gets a server trust groups by instance name.
list_by_instance(resource_group_name: str, managed_instance_name: str, **kwargs: Any) -> AsyncItemPaged[ServerTrustGroup]
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. |
|
managed_instance_name
Required
|
The name of the managed instance. Required. |
Returns
| Type | Description |
|---|---|
|
An iterator like instance of either ServerTrustGroup or the result of cls(response) |
Exceptions
| Type | Description |
|---|---|
list_by_location
Lists a server trust group.
list_by_location(resource_group_name: str, location_name: str, **kwargs: Any) -> AsyncItemPaged[ServerTrustGroup]
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. |
|
location_name
Required
|
The name of the region where the resource is located. Required. |
Returns
| Type | Description |
|---|---|
|
An iterator like instance of either ServerTrustGroup 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'>