Language

HcpOpenShiftClusterResource.RequestAdminCredentialAsync Method

Definition

Request a temporary admin kubeconfig for the cluster

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/hcpOpenShiftClusters/{hcpOpenShiftClusterName}/requestAdminCredential.
  • Operation Id. : HcpOpenShiftClusters_RequestAdminCredential.
  • Default Api Version. : 2026-09-01-preview.
  • Resource. : HcpOpenShiftClusterResource.
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.RedHatOpenShiftHcp.Models.HcpOpenShiftClusterAdminCredential>> RequestAdminCredentialAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.RedHatOpenShiftHcp.Models.HcpOpenShiftClusterAdminCredentialRequestContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member RequestAdminCredentialAsync : Azure.WaitUntil * Azure.ResourceManager.RedHatOpenShiftHcp.Models.HcpOpenShiftClusterAdminCredentialRequestContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.RedHatOpenShiftHcp.Models.HcpOpenShiftClusterAdminCredential>>
override this.RequestAdminCredentialAsync : Azure.WaitUntil * Azure.ResourceManager.RedHatOpenShiftHcp.Models.HcpOpenShiftClusterAdminCredentialRequestContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.RedHatOpenShiftHcp.Models.HcpOpenShiftClusterAdminCredential>>
Public Overridable Function RequestAdminCredentialAsync (waitUntil As WaitUntil, content As HcpOpenShiftClusterAdminCredentialRequestContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of HcpOpenShiftClusterAdminCredential))

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
HcpOpenShiftClusterAdminCredentialRequestContent

The content of the action request.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

content is null.

Applies to