PSRecoveryServicesClient.GenerateAgentAuthenticationHeader Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Returns
The authentication token for the provider