次の方法で共有


CodeTransparencyClient.GetEntryStatuses Method

Definition

Overloads

GetEntryStatuses(RequestContext)

[Protocol Method] Get the status of all entries operations

GetEntryStatuses(CancellationToken)

Get the status of all entries operations.

GetEntryStatuses(RequestContext)

Source:
CodeTransparencyClient.cs

[Protocol Method] Get the status of all entries operations

public virtual Azure.Response GetEntryStatuses (Azure.RequestContext context);
abstract member GetEntryStatuses : Azure.RequestContext -> Azure.Response
override this.GetEntryStatuses : Azure.RequestContext -> Azure.Response
Public Overridable Function GetEntryStatuses (context As RequestContext) As 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 GetEntryStatuses 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 = client.GetEntryStatuses(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 GetEntryStatuses 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 = client.GetEntryStatuses(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

GetEntryStatuses(CancellationToken)

Source:
CodeTransparencyClient.cs

Get the status of all entries operations.

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

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Examples

This sample shows how to call GetEntryStatuses.

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

Response<ListOperationResult> response = client.GetEntryStatuses();

This sample shows how to call GetEntryStatuses 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 = client.GetEntryStatuses();

Applies to