Share via


CodeTransparencyClient.GetEntryStatusesAsync Method

Definition

Overloads

GetEntryStatusesAsync(RequestContext)

[Protocol Method] Get the status of all entries operations

GetEntryStatusesAsync(CancellationToken)

Get the status of all entries operations.

GetEntryStatusesAsync(RequestContext)

Source:
CodeTransparencyClient.cs

[Protocol Method] Get the status of all entries operations

public virtual System.Threading.Tasks.Task<Azure.Response> GetEntryStatusesAsync (Azure.RequestContext context);
abstract member GetEntryStatusesAsync : Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
override this.GetEntryStatusesAsync : Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function GetEntryStatusesAsync (context As RequestContext) As Task(Of Response)

Parameters

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

Service returned a non-success status code.

Examples

This sample shows how to call GetEntryStatusesAsync and parse the result.

Uri endpoint = new Uri("<https://my-service.azure.com>");
AzureKeyCredential credential = new AzureKeyCredential("<key>");
CodeTransparencyClient client = new CodeTransparencyClient(endpoint, credential);

Response response = await client.GetEntryStatusesAsync(null);

JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
Console.WriteLine(result.GetProperty("operations")[0].GetProperty("operationId").ToString());
Console.WriteLine(result.GetProperty("operations")[0].GetProperty("status").ToString());

This sample shows how to call GetEntryStatusesAsync with all parameters and parse the result.

Uri endpoint = new Uri("<https://my-service.azure.com>");
AzureKeyCredential credential = new AzureKeyCredential("<key>");
CodeTransparencyClient client = new CodeTransparencyClient(endpoint, credential);

Response response = await client.GetEntryStatusesAsync(null);

JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
Console.WriteLine(result.GetProperty("operations")[0].GetProperty("entryId").ToString());
Console.WriteLine(result.GetProperty("operations")[0].GetProperty("error").ToString());
Console.WriteLine(result.GetProperty("operations")[0].GetProperty("operationId").ToString());
Console.WriteLine(result.GetProperty("operations")[0].GetProperty("status").ToString());

Applies to

GetEntryStatusesAsync(CancellationToken)

Source:
CodeTransparencyClient.cs

Get the status of all entries operations.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Security.CodeTransparency.ListOperationResult>> GetEntryStatusesAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member GetEntryStatusesAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Security.CodeTransparency.ListOperationResult>>
override this.GetEntryStatusesAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Security.CodeTransparency.ListOperationResult>>
Public Overridable Function GetEntryStatusesAsync (Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ListOperationResult))

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Examples

This sample shows how to call GetEntryStatusesAsync.

Uri endpoint = new Uri("<https://my-service.azure.com>");
AzureKeyCredential credential = new AzureKeyCredential("<key>");
CodeTransparencyClient client = new CodeTransparencyClient(endpoint, credential);

Response<ListOperationResult> response = await client.GetEntryStatusesAsync();

This sample shows how to call GetEntryStatusesAsync with all parameters.

Uri endpoint = new Uri("<https://my-service.azure.com>");
AzureKeyCredential credential = new AzureKeyCredential("<key>");
CodeTransparencyClient client = new CodeTransparencyClient(endpoint, credential);

Response<ListOperationResult> response = await client.GetEntryStatusesAsync();

Applies to