PSRecoveryServicesClient.GenerateAgentAuthenticationHeader Method

Definition

Site Recovery requests that go to on-premise components (like the Provider installed in VMM) require an authentication token that is signed with the vault key to indicate that the request indeed originated from the end-user client. Generating that authentication token here and sending it via http headers.

public static string GenerateAgentAuthenticationHeader (string clientRequestId, DateTime? dateTime = default);
static member GenerateAgentAuthenticationHeader : string * Nullable<DateTime> -> string
Public Shared Function GenerateAgentAuthenticationHeader (clientRequestId As String, Optional dateTime As Nullable(Of DateTime) = Nothing) As String

Parameters

clientRequestId
String

Unique identifier for the client's request

dateTime
Nullable<DateTime>

Optional , datetime used for header genertion

Returns

The authentication token for the provider

Applies to