Condividi tramite


ServerConfigurationOptionsOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

SqlManagementClient's

<xref:server_configuration_options> attribute.

Constructor

ServerConfigurationOptionsOperations(*args, **kwargs)

Methods

begin_create_or_update

Updates managed instance server configuration option.

get

Gets managed instance server configuration option.

list_by_managed_instance

Gets a list of managed instance server configuration options.

begin_create_or_update

Updates managed instance server configuration option.

async begin_create_or_update(resource_group_name: str, managed_instance_name: str, server_configuration_option_name: str | _models.ServerConfigurationOptionName, parameters: _models.ServerConfigurationOption, *, content_type: str = 'application/json', **kwargs: Any) -> AsyncLROPoller[_models.ServerConfigurationOption]

Parameters

Name Description
resource_group_name
Required
str

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
str

The name of the managed instance. Required.

server_configuration_option_name
Required

The name of the server configuration option. "allowPolybaseExport" Required.

parameters
Required

Server configuration option parameters. Is either a ServerConfigurationOption type or a IO[bytes] type. Required.

Returns

Type Description

An instance of AsyncLROPoller that returns either ServerConfigurationOption or the result of cls(response)

Exceptions

Type Description

get

Gets managed instance server configuration option.

async get(resource_group_name: str, managed_instance_name: str, server_configuration_option_name: str | ServerConfigurationOptionName, **kwargs: Any) -> ServerConfigurationOption

Parameters

Name Description
resource_group_name
Required
str

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
str

The name of the managed instance. Required.

server_configuration_option_name
Required

The name of the server configuration option. "allowPolybaseExport" Required.

Returns

Type Description

ServerConfigurationOption or the result of cls(response)

Exceptions

Type Description

list_by_managed_instance

Gets a list of managed instance server configuration options.

list_by_managed_instance(resource_group_name: str, managed_instance_name: str, **kwargs: Any) -> AsyncItemPaged[ServerConfigurationOption]

Parameters

Name Description
resource_group_name
Required
str

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
str

The name of the managed instance. Required.

Returns

Type Description

An iterator like instance of either ServerConfigurationOption 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'>