Compartilhar via


WebSiteSlotResource.CreateOrUpdateHostSecretSlotAsync Método

Definição

Descrição para Adicionar ou atualizar um segredo no nível do host.

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

Parâmetros

keyType
String

O tipo de chave de host.

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

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

keyType, keyName ou info é nulo.

Aplica-se a