Partilhar via


SiteFunctionResource.CreateOrUpdateFunctionSecretAsync Método

Definição

Descrição para Adicionar ou atualizar um segredo de função.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/functions/{functionName}/keys/{keyName}
  • Operação IdWebApps_CreateOrUpdateFunctionSecret
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.AppService.Models.WebAppKeyInfo>> CreateOrUpdateFunctionSecretAsync (string keyName, Azure.ResourceManager.AppService.Models.WebAppKeyInfo info, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateFunctionSecretAsync : string * Azure.ResourceManager.AppService.Models.WebAppKeyInfo * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.AppService.Models.WebAppKeyInfo>>
override this.CreateOrUpdateFunctionSecretAsync : string * Azure.ResourceManager.AppService.Models.WebAppKeyInfo * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.AppService.Models.WebAppKeyInfo>>
Public Overridable Function CreateOrUpdateFunctionSecretAsync (keyName As String, info As WebAppKeyInfo, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of WebAppKeyInfo))

Parâmetros

keyName
String

O nome da chave.

info
WebAppKeyInfo

A chave a ser criada ou atualizada.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

keyName é uma cadeia de caracteres vazia e esperava-se que não estivesse vazia.

keyName ou info é nulo.

Aplica-se a