FaceSessionClient.GetLivenessWithVerifySessionAuditEntries 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.
Overloads
GetLivenessWithVerifySessionAuditEntries(String, String, Nullable<Int32>, RequestContext) |
[Protocol Method] Please refer to https://video2.skills-academy.com/rest/api/face/liveness-session-operations/get-liveness-with-verify-session-audit-entries for more details.
|
GetLivenessWithVerifySessionAuditEntries(String, String, Nullable<Int32>, CancellationToken) |
Please refer to https://video2.skills-academy.com/rest/api/face/liveness-session-operations/get-liveness-with-verify-session-audit-entries for more details. |
GetLivenessWithVerifySessionAuditEntries(String, String, Nullable<Int32>, RequestContext)
- Source:
- FaceSessionClient.cs
[Protocol Method] Please refer to https://video2.skills-academy.com/rest/api/face/liveness-session-operations/get-liveness-with-verify-session-audit-entries for more details.
- This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
- Please try the simpler GetLivenessWithVerifySessionAuditEntries(String, String, Nullable<Int32>, CancellationToken) convenience overload with strongly typed models first.
public virtual Azure.Response GetLivenessWithVerifySessionAuditEntries (string sessionId, string start, int? top, Azure.RequestContext context);
abstract member GetLivenessWithVerifySessionAuditEntries : string * string * Nullable<int> * Azure.RequestContext -> Azure.Response
override this.GetLivenessWithVerifySessionAuditEntries : string * string * Nullable<int> * Azure.RequestContext -> Azure.Response
Public Overridable Function GetLivenessWithVerifySessionAuditEntries (sessionId As String, start As String, top As Nullable(Of Integer), context As RequestContext) As Response
Parameters
- sessionId
- String
The unique ID to reference this session.
- start
- String
List resources greater than the "start". It contains no more than 64 characters. Default is empty.
- context
- RequestContext
The request context, which can override default behaviors of the client pipeline on a per-call basis.
Returns
The response returned from the service.
Exceptions
sessionId
is null.
sessionId
is an empty string, and was expected to be non-empty.
Service returned a non-success status code.
Examples
This sample shows how to call GetLivenessWithVerifySessionAuditEntries and parse the result.
Uri endpoint = new Uri("<endpoint>");
AzureKeyCredential credential = new AzureKeyCredential("<key>");
FaceSessionClient client = new FaceSessionClient(endpoint, credential);
Response response = client.GetLivenessWithVerifySessionAuditEntries("b12e033e-bda7-4b83-a211-e721c661f30e", "0", 20, null);
JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
Console.WriteLine(result[0].GetProperty("id").ToString());
Console.WriteLine(result[0].GetProperty("sessionId").ToString());
Console.WriteLine(result[0].GetProperty("requestId").ToString());
Console.WriteLine(result[0].GetProperty("clientRequestId").ToString());
Console.WriteLine(result[0].GetProperty("receivedDateTime").ToString());
Console.WriteLine(result[0].GetProperty("request").GetProperty("url").ToString());
Console.WriteLine(result[0].GetProperty("request").GetProperty("method").ToString());
Console.WriteLine(result[0].GetProperty("request").GetProperty("contentType").ToString());
Console.WriteLine(result[0].GetProperty("response").GetProperty("body").ToString());
Console.WriteLine(result[0].GetProperty("response").GetProperty("statusCode").ToString());
Console.WriteLine(result[0].GetProperty("response").GetProperty("latencyInMilliseconds").ToString());
Console.WriteLine(result[0].GetProperty("digest").ToString());
Applies to
GetLivenessWithVerifySessionAuditEntries(String, String, Nullable<Int32>, CancellationToken)
- Source:
- FaceSessionClient.cs
Please refer to https://video2.skills-academy.com/rest/api/face/liveness-session-operations/get-liveness-with-verify-session-audit-entries for more details.
public virtual Azure.Response<System.Collections.Generic.IReadOnlyList<Azure.AI.Vision.Face.LivenessSessionAuditEntry>> GetLivenessWithVerifySessionAuditEntries (string sessionId, string start = default, int? top = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetLivenessWithVerifySessionAuditEntries : string * string * Nullable<int> * System.Threading.CancellationToken -> Azure.Response<System.Collections.Generic.IReadOnlyList<Azure.AI.Vision.Face.LivenessSessionAuditEntry>>
override this.GetLivenessWithVerifySessionAuditEntries : string * string * Nullable<int> * System.Threading.CancellationToken -> Azure.Response<System.Collections.Generic.IReadOnlyList<Azure.AI.Vision.Face.LivenessSessionAuditEntry>>
Public Overridable Function GetLivenessWithVerifySessionAuditEntries (sessionId As String, Optional start As String = Nothing, Optional top As Nullable(Of Integer) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Response(Of IReadOnlyList(Of LivenessSessionAuditEntry))
Parameters
- sessionId
- String
The unique ID to reference this session.
- start
- String
List resources greater than the "start". It contains no more than 64 characters. Default is empty.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
sessionId
is null.
sessionId
is an empty string, and was expected to be non-empty.
Examples
This sample shows how to call GetLivenessWithVerifySessionAuditEntries.
Uri endpoint = new Uri("<endpoint>");
AzureKeyCredential credential = new AzureKeyCredential("<key>");
FaceSessionClient client = new FaceSessionClient(endpoint, credential);
Response<IReadOnlyList<LivenessSessionAuditEntry>> response = client.GetLivenessWithVerifySessionAuditEntries("b12e033e-bda7-4b83-a211-e721c661f30e");
Applies to
Azure SDK for .NET