Share via


ServerTrustCertificatesOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

SqlManagementClient's

<xref:server_trust_certificates> attribute.

Constructor

ServerTrustCertificatesOperations(*args, **kwargs)

Methods

begin_create_or_update

Uploads a server trust certificate from box to Sql Managed Instance.

begin_delete

Deletes a server trust certificate that was uploaded from box to Sql Managed Instance.

get

Gets a server trust certificate that was uploaded from box to Sql Managed Instance.

list_by_instance

Gets a list of server trust certificates that were uploaded from box to the given Sql Managed Instance.

begin_create_or_update

Uploads a server trust certificate from box to Sql Managed Instance.

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

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.

certificate_name
Required
str

Name of of the certificate to upload. Required.

parameters
Required

The server trust certificate info. Is either a ServerTrustCertificate type or a IO[bytes] type. Required.

Returns

Type Description

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

Exceptions

Type Description

begin_delete

Deletes a server trust certificate that was uploaded from box to Sql Managed Instance.

async begin_delete(resource_group_name: str, managed_instance_name: str, certificate_name: str, **kwargs: Any) -> AsyncLROPoller[None]

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.

certificate_name
Required
str

Name of of the certificate to delete. 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 certificate that was uploaded from box to Sql Managed Instance.

async get(resource_group_name: str, managed_instance_name: str, certificate_name: str, **kwargs: Any) -> ServerTrustCertificate

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.

certificate_name
Required
str

Name of of the certificate to get. Required.

Returns

Type Description

ServerTrustCertificate or the result of cls(response)

Exceptions

Type Description

list_by_instance

Gets a list of server trust certificates that were uploaded from box to the given Sql Managed Instance.

list_by_instance(resource_group_name: str, managed_instance_name: str, **kwargs: Any) -> AsyncItemPaged[ServerTrustCertificate]

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 ServerTrustCertificate 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'>