CodeTransparencyClient.GetEntryIdsAsync 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
GetEntryIdsAsync(Nullable<Int64>, Nullable<Int64>, RequestContext) |
[Protocol Method] Historical query to get a list of entries of a given range
|
GetEntryIdsAsync(Nullable<Int64>, Nullable<Int64>, CancellationToken) |
Historical query to get a list of entries of a given range. |
GetEntryIdsAsync(Nullable<Int64>, Nullable<Int64>, RequestContext)
- Source:
- CodeTransparencyClient.cs
[Protocol Method] Historical query to get a list of entries of a given range
- This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
- Please try the simpler GetEntryIdsAsync(Nullable<Int64>, Nullable<Int64>, CancellationToken) convenience overload with strongly typed models first.
public virtual Azure.AsyncPageable<BinaryData> GetEntryIdsAsync (long? from, long? to, Azure.RequestContext context);
abstract member GetEntryIdsAsync : Nullable<int64> * Nullable<int64> * Azure.RequestContext -> Azure.AsyncPageable<BinaryData>
override this.GetEntryIdsAsync : Nullable<int64> * Nullable<int64> * Azure.RequestContext -> Azure.AsyncPageable<BinaryData>
Public Overridable Function GetEntryIdsAsync (from As Nullable(Of Long), to As Nullable(Of Long), context As RequestContext) As AsyncPageable(Of BinaryData)
Parameters
- context
- RequestContext
The request context, which can override default behaviors of the client pipeline on a per-call basis.
Returns
The AsyncPageable<T> from the service containing a list of BinaryData objects. Details of the body schema for each item in the collection are in the Remarks section below.
Exceptions
Service returned a non-success status code.
Examples
This sample shows how to call GetEntryIdsAsync and parse the result.
Uri endpoint = new Uri("<https://my-service.azure.com>");
AzureKeyCredential credential = new AzureKeyCredential("<key>");
CodeTransparencyClient client = new CodeTransparencyClient(endpoint, credential);
await foreach (BinaryData item in client.GetEntryIdsAsync(null, null, null))
{
JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement;
Console.WriteLine(result.ToString());
}
This sample shows how to call GetEntryIdsAsync 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);
await foreach (BinaryData item in client.GetEntryIdsAsync(1234L, 1234L, null))
{
JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement;
Console.WriteLine(result.ToString());
}
Applies to
GetEntryIdsAsync(Nullable<Int64>, Nullable<Int64>, CancellationToken)
- Source:
- CodeTransparencyClient.cs
Historical query to get a list of entries of a given range.
public virtual Azure.AsyncPageable<string> GetEntryIdsAsync (long? from = default, long? to = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetEntryIdsAsync : Nullable<int64> * Nullable<int64> * System.Threading.CancellationToken -> Azure.AsyncPageable<string>
override this.GetEntryIdsAsync : Nullable<int64> * Nullable<int64> * System.Threading.CancellationToken -> Azure.AsyncPageable<string>
Public Overridable Function GetEntryIdsAsync (Optional from As Nullable(Of Long) = Nothing, Optional to As Nullable(Of Long) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of String)
Parameters
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Examples
This sample shows how to call GetEntryIdsAsync.
Uri endpoint = new Uri("<https://my-service.azure.com>");
AzureKeyCredential credential = new AzureKeyCredential("<key>");
CodeTransparencyClient client = new CodeTransparencyClient(endpoint, credential);
await foreach (string item in client.GetEntryIdsAsync())
{
}
This sample shows how to call GetEntryIdsAsync with all parameters.
Uri endpoint = new Uri("<https://my-service.azure.com>");
AzureKeyCredential credential = new AzureKeyCredential("<key>");
CodeTransparencyClient client = new CodeTransparencyClient(endpoint, credential);
await foreach (string item in client.GetEntryIdsAsync(from: 1234L, to: 1234L))
{
}