SecretsOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

CdnManagementClient's

secrets attribute.

Constructor

SecretsOperations(*args, **kwargs)

Methods

begin_create

Creates a new Secret within the specified profile.

begin_delete

Deletes an existing Secret within profile.

get

Gets an existing Secret within a profile.

list_by_profile

Lists existing AzureFrontDoor secrets.

begin_create

Creates a new Secret within the specified profile.

begin_create(resource_group_name: str, profile_name: str, secret_name: str, secret: _models.Secret, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[_models.Secret]

Parameters

Name Description
resource_group_name
Required
str

Name of the Resource group within the Azure subscription. Required.

profile_name
Required
str

Name of the Azure Front Door Standard or Azure Front Door Premium profile which is unique within the resource group. Required.

secret_name
Required
str

Name of the Secret under the profile. Required.

secret
Required

The Secret properties. Is either a Secret type or a IO[bytes] type. Required.

Returns

Type Description

An instance of LROPoller that returns either Secret or the result of cls(response)

Exceptions

Type Description

begin_delete

Deletes an existing Secret within profile.

begin_delete(resource_group_name: str, profile_name: str, secret_name: str, **kwargs: Any) -> LROPoller[None]

Parameters

Name Description
resource_group_name
Required
str

Name of the Resource group within the Azure subscription. Required.

profile_name
Required
str

Name of the Azure Front Door Standard or Azure Front Door Premium profile which is unique within the resource group. Required.

secret_name
Required
str

Name of the Secret under the profile. Required.

Returns

Type Description

An instance of LROPoller that returns either None or the result of cls(response)

Exceptions

Type Description

get

Gets an existing Secret within a profile.

get(resource_group_name: str, profile_name: str, secret_name: str, **kwargs: Any) -> Secret

Parameters

Name Description
resource_group_name
Required
str

Name of the Resource group within the Azure subscription. Required.

profile_name
Required
str

Name of the Azure Front Door Standard or Azure Front Door Premium profile which is unique within the resource group. Required.

secret_name
Required
str

Name of the Secret under the profile. Required.

Returns

Type Description

Secret or the result of cls(response)

Exceptions

Type Description

list_by_profile

Lists existing AzureFrontDoor secrets.

list_by_profile(resource_group_name: str, profile_name: str, **kwargs: Any) -> Iterable[Secret]

Parameters

Name Description
resource_group_name
Required
str

Name of the Resource group within the Azure subscription. Required.

profile_name
Required
str

Name of the Azure Front Door Standard or Azure Front Door Premium profile which is unique within the resource group. Required.

Returns

Type Description

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

Exceptions

Type Description

Attributes

models

models = <module 'azure.mgmt.cdn.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.10\\x64\\Lib\\site-packages\\py2docfx\\venv\\venv77\\Lib\\site-packages\\azure\\mgmt\\cdn\\models\\__init__.py'>