共用方式為


NginxDeploymentApiKeyResource.Update 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 Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Nginx.NginxDeploymentApiKeyResource> Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.Nginx.Models.NginxDeploymentApiKeyCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member Update : Azure.WaitUntil * Azure.ResourceManager.Nginx.Models.NginxDeploymentApiKeyCreateOrUpdateContent * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Nginx.NginxDeploymentApiKeyResource>
override this.Update : Azure.WaitUntil * Azure.ResourceManager.Nginx.Models.NginxDeploymentApiKeyCreateOrUpdateContent * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Nginx.NginxDeploymentApiKeyResource>
Public Overridable Function Update (waitUntil As WaitUntil, content As NginxDeploymentApiKeyCreateOrUpdateContent, Optional cancellationToken As CancellationToken = Nothing) As 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