你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

SiteCertificatesOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

WebSiteManagementClient's

<xref:site_certificates> attribute.

Constructor

SiteCertificatesOperations(*args, **kwargs)

Methods

create_or_update

Create or update a certificate under a given site.

Create or update a certificate under a given site.

create_or_update_slot

Create or update a certificate in a given site and deployment slot.

Create or update a certificate in a given site and deployment slot.

delete

Delete a certificate from the site.

Delete a certificate from the site.

delete_slot

Delete a certificate for a given site and deployment slot.

Delete a certificate for a given site and deployment slot.

get

Get a certificate belonging to a given site.

Get a certificate belonging to a given site.

get_slot

Get a certificate for a given site and deployment slot.

Get a certificate for a given site and deployment slot.

list

Get all certificates in a resource group under a site.

Get all certificates in a resource group under a site.

list_slot

Get all certificates in a resource group for a given site and a deployment slot.

Get all certificates in a resource group for a given site and a deployment slot.

update

Create or update a certificate under a given site.

Create or update a certificate under a given site.

update_slot

Create or update a certificate for a site and deployment slot.

Create or update a certificate for a site and deployment slot.

create_or_update

Create or update a certificate under a given site.

Create or update a certificate under a given site.

create_or_update(resource_group_name: str, name: str, certificate_name: str, certificate_envelope: _models.Certificate, *, content_type: str = 'application/json', **kwargs: Any) -> _models.Certificate

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

name
Required
str

Name of the site. Required.

certificate_name
Required
str

Name of the certificate. Required.

certificate_envelope
Required

Details of certificate, if it exists already. Is either a Certificate type or a IO[bytes] type. Required.

Returns

Type Description

Certificate or the result of cls(response)

Exceptions

Type Description

create_or_update_slot

Create or update a certificate in a given site and deployment slot.

Create or update a certificate in a given site and deployment slot.

create_or_update_slot(resource_group_name: str, name: str, slot: str, certificate_name: str, certificate_envelope: _models.Certificate, *, content_type: str = 'application/json', **kwargs: Any) -> _models.Certificate

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

name
Required
str

Name of the site. Required.

slot
Required
str

Name of the deployment slot. If a slot is not specified, the API will create a binding for the production slot. Required.

certificate_name
Required
str

Name of the certificate. Required.

certificate_envelope
Required

Details of certificate, if it exists already. Is either a Certificate type or a IO[bytes] type. Required.

Returns

Type Description

Certificate or the result of cls(response)

Exceptions

Type Description

delete

Delete a certificate from the site.

Delete a certificate from the site.

delete(resource_group_name: str, name: str, certificate_name: str, **kwargs: Any) -> None

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

name
Required
str

Name of the site. Required.

certificate_name
Required
str

Name of the certificate. Required.

Returns

Type Description

None or the result of cls(response)

Exceptions

Type Description

delete_slot

Delete a certificate for a given site and deployment slot.

Delete a certificate for a given site and deployment slot.

delete_slot(resource_group_name: str, name: str, slot: str, certificate_name: str, **kwargs: Any) -> None

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

name
Required
str

Name of the site. Required.

slot
Required
str

Name of the deployment slot. If a slot is not specified, the API will create a binding for the production slot. Required.

certificate_name
Required
str

Name of the certificate. Required.

Returns

Type Description

None or the result of cls(response)

Exceptions

Type Description

get

Get a certificate belonging to a given site.

Get a certificate belonging to a given site.

get(resource_group_name: str, name: str, certificate_name: str, **kwargs: Any) -> Certificate

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

name
Required
str

Name of the site. Required.

certificate_name
Required
str

Name of the certificate. Required.

Returns

Type Description

Certificate or the result of cls(response)

Exceptions

Type Description

get_slot

Get a certificate for a given site and deployment slot.

Get a certificate for a given site and deployment slot.

get_slot(resource_group_name: str, name: str, slot: str, certificate_name: str, **kwargs: Any) -> Certificate

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

name
Required
str

Name of the site. Required.

slot
Required
str

Name of the deployment slot. If a slot is not specified, the API will create a binding for the production slot. Required.

certificate_name
Required
str

Name of the certificate. Required.

Returns

Type Description

Certificate or the result of cls(response)

Exceptions

Type Description

list

Get all certificates in a resource group under a site.

Get all certificates in a resource group under a site.

list(resource_group_name: str, name: str, **kwargs: Any) -> ItemPaged[Certificate]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

name
Required
str

Name of the site. Required.

Returns

Type Description

An iterator like instance of either Certificate or the result of cls(response)

Exceptions

Type Description

list_slot

Get all certificates in a resource group for a given site and a deployment slot.

Get all certificates in a resource group for a given site and a deployment slot.

list_slot(resource_group_name: str, name: str, slot: str, **kwargs: Any) -> ItemPaged[Certificate]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

name
Required
str

Name of the site. Required.

slot
Required
str

Name of the deployment slot. If a slot is not specified, the API will create a binding for the production slot. Required.

Returns

Type Description

An iterator like instance of either Certificate or the result of cls(response)

Exceptions

Type Description

update

Create or update a certificate under a given site.

Create or update a certificate under a given site.

update(resource_group_name: str, name: str, certificate_name: str, certificate_envelope: _models.CertificatePatchResource, *, content_type: str = 'application/json', **kwargs: Any) -> _models.Certificate

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

name
Required
str

Name of the site. Required.

certificate_name
Required
str

Name of the certificate. Required.

certificate_envelope
Required

Details of certificate, if it exists already. Is either a CertificatePatchResource type or a IO[bytes] type. Required.

Returns

Type Description

Certificate or the result of cls(response)

Exceptions

Type Description

update_slot

Create or update a certificate for a site and deployment slot.

Create or update a certificate for a site and deployment slot.

update_slot(resource_group_name: str, name: str, slot: str, certificate_name: str, certificate_envelope: _models.CertificatePatchResource, *, content_type: str = 'application/json', **kwargs: Any) -> _models.Certificate

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

name
Required
str

Name of the site. Required.

slot
Required
str

Name of the deployment slot. If a slot is not specified, the API will create a binding for the production slot. Required.

certificate_name
Required
str

Name of the certificate. Required.

certificate_envelope
Required

Details of certificate, if it exists already. Is either a CertificatePatchResource type or a IO[bytes] type. Required.

Returns

Type Description

Certificate or the result of cls(response)

Exceptions

Type Description

Attributes

models

models = <module 'azure.mgmt.web.v2024_11_01.models' from 'C:\\ToolCache\\Python\\3.11.9\\x64\\Lib\\site-packages\\py2docfx\\venv\\venv226\\Lib\\site-packages\\azure\\mgmt\\web\\v2024_11_01\\models\\__init__.py'>