次の方法で共有


NginxDeploymentApiKeyResource.UpdateAsync Method

Definition

Create or update an API Key for the Nginx deployment in order to access the dataplane API endpoint

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments/{deploymentName}/apiKeys/{apiKeyName}
  • Operation Id: ApiKeys_CreateOrUpdate
  • Default Api Version: 2024-11-01-preview
  • Resource: NginxDeploymentApiKeyResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Nginx.NginxDeploymentApiKeyResource>> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Nginx.Models.NginxDeploymentApiKeyCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateAsync : Azure.WaitUntil * Azure.ResourceManager.Nginx.Models.NginxDeploymentApiKeyCreateOrUpdateContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Nginx.NginxDeploymentApiKeyResource>>
override this.UpdateAsync : Azure.WaitUntil * Azure.ResourceManager.Nginx.Models.NginxDeploymentApiKeyCreateOrUpdateContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Nginx.NginxDeploymentApiKeyResource>>
Public Overridable Function UpdateAsync (waitUntil As WaitUntil, content As NginxDeploymentApiKeyCreateOrUpdateContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of NginxDeploymentApiKeyResource))

Parameters

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

content
NginxDeploymentApiKeyCreateOrUpdateContent

The API Key object containing fields (e.g. secret text, expiration date) to upsert the key.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

content is null.

Applies to