CertificatesOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

WebSiteManagementClient's

<xref:certificates> attribute.

Inheritance
builtins.object
CertificatesOperations

Constructor

CertificatesOperations(*args, **kwargs)

Methods

create_or_update

Create or update a certificate.

Create or update a certificate.

delete

Delete a certificate.

Delete a certificate.

get

Get a certificate.

Get a certificate.

list

Get all certificates for a subscription.

Get all certificates for a subscription.

list_by_resource_group

Get all certificates in a resource group.

Get all certificates in a resource group.

update

Create or update a certificate.

Create or update a certificate.

create_or_update

Create or update a certificate.

Create or update a certificate.

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

Parameters

Name Description
resource_group_name
Required
str

Name of the resource group to which the resource belongs. Required.

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.

Delete a certificate.

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

Parameters

Name Description
resource_group_name
Required
str

Name of the resource group to which the resource belongs. Required.

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.

Get a certificate.

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

Parameters

Name Description
resource_group_name
Required
str

Name of the resource group to which the resource belongs. Required.

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 for a subscription.

Get all certificates for a subscription.

list(**kwargs: Any) -> Iterable[Certificate]

Returns

Type Description

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

Exceptions

Type Description

list_by_resource_group

Get all certificates in a resource group.

Get all certificates in a resource group.

list_by_resource_group(resource_group_name: str, **kwargs: Any) -> Iterable[Certificate]

Parameters

Name Description
resource_group_name
Required
str

Name of the resource group to which the resource belongs. 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.

Create or update a certificate.

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

Parameters

Name Description
resource_group_name
Required
str

Name of the resource group to which the resource belongs. Required.

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.v2020_09_01.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\azure\\mgmt\\web\\v2020_09_01\\models\\__init__.py'>