Compartir a través de


SiteFunctionResource.CreateOrUpdateFunctionSecret Método

Definición

Descripción para Agregar o actualizar un secreto de función.

  • Ruta de acceso de solicitud/suscripciones/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/functions/{functionName}/keys/{keyName}
  • IdWebApps_CreateOrUpdateFunctionSecret de operaciones
public virtual Azure.Response<Azure.ResourceManager.AppService.Models.WebAppKeyInfo> CreateOrUpdateFunctionSecret (string keyName, Azure.ResourceManager.AppService.Models.WebAppKeyInfo info, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateFunctionSecret : string * Azure.ResourceManager.AppService.Models.WebAppKeyInfo * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.AppService.Models.WebAppKeyInfo>
override this.CreateOrUpdateFunctionSecret : string * Azure.ResourceManager.AppService.Models.WebAppKeyInfo * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.AppService.Models.WebAppKeyInfo>
Public Overridable Function CreateOrUpdateFunctionSecret (keyName As String, info As WebAppKeyInfo, Optional cancellationToken As CancellationToken = Nothing) As Response(Of WebAppKeyInfo)

Parámetros

keyName
String

El nombre de la clave.

info
WebAppKeyInfo

Clave que se va a crear o actualizar.

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

Excepciones

keyName es una cadena vacía y se espera que no esté vacía.

keyName o info es null.

Se aplica a