Compartir a través de


SiteSlotFunctionResource.CreateOrUpdateFunctionSecretSlotAsync 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}/slots/{slot}/functions/{functionName}/keys/{keyName}
  • IdWebApps_CreateOrUpdateFunctionSecretSlot de operaciones
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.AppService.Models.WebAppKeyInfo>> CreateOrUpdateFunctionSecretSlotAsync (string keyName, Azure.ResourceManager.AppService.Models.WebAppKeyInfo info, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateFunctionSecretSlotAsync : string * Azure.ResourceManager.AppService.Models.WebAppKeyInfo * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.AppService.Models.WebAppKeyInfo>>
override this.CreateOrUpdateFunctionSecretSlotAsync : string * Azure.ResourceManager.AppService.Models.WebAppKeyInfo * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.AppService.Models.WebAppKeyInfo>>
Public Overridable Function CreateOrUpdateFunctionSecretSlotAsync (keyName As String, info As WebAppKeyInfo, Optional cancellationToken As CancellationToken = Nothing) As Task(Of 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