Language

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