Share via


DocumentTranslationClient.GetDocumentsStatusAsync Method

Definition

Overloads

GetDocumentsStatusAsync(Guid, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, IEnumerable<Guid>, IEnumerable<String>, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>, IEnumerable<String>, RequestContext)

[Protocol Method] Returns the status for all documents in a batch document translation request

GetDocumentsStatusAsync(Guid, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, IEnumerable<Guid>, IEnumerable<String>, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>, IEnumerable<String>, CancellationToken)

Returns the status for all documents in a batch document translation request.

GetDocumentsStatusAsync(Guid, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, IEnumerable<Guid>, IEnumerable<String>, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>, IEnumerable<String>, RequestContext)

Source:
DocumentTranslationClient.cs

[Protocol Method] Returns the status for all documents in a batch document translation request

public virtual Azure.AsyncPageable<BinaryData> GetDocumentsStatusAsync (Guid id, int? maxCount, int? skip, int? maxpagesize, System.Collections.Generic.IEnumerable<Guid> ids, System.Collections.Generic.IEnumerable<string> statuses, DateTimeOffset? createdDateTimeUtcStart, DateTimeOffset? createdDateTimeUtcEnd, System.Collections.Generic.IEnumerable<string> orderby, Azure.RequestContext context);
abstract member GetDocumentsStatusAsync : Guid * Nullable<int> * Nullable<int> * Nullable<int> * seq<Guid> * seq<string> * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * seq<string> * Azure.RequestContext -> Azure.AsyncPageable<BinaryData>
override this.GetDocumentsStatusAsync : Guid * Nullable<int> * Nullable<int> * Nullable<int> * seq<Guid> * seq<string> * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * seq<string> * Azure.RequestContext -> Azure.AsyncPageable<BinaryData>
Public Overridable Function GetDocumentsStatusAsync (id As Guid, maxCount As Nullable(Of Integer), skip As Nullable(Of Integer), maxpagesize As Nullable(Of Integer), ids As IEnumerable(Of Guid), statuses As IEnumerable(Of String), createdDateTimeUtcStart As Nullable(Of DateTimeOffset), createdDateTimeUtcEnd As Nullable(Of DateTimeOffset), orderby As IEnumerable(Of String), context As RequestContext) As AsyncPageable(Of BinaryData)

Parameters

id
Guid

Format - uuid. The operation id.

maxCount
Nullable<Int32>

top indicates the total number of records the user wants to be returned across all pages.

Clients MAY use top and skip query parameters to specify a number of results to return and an offset into the collection. When both top and skip are given by a client, the server SHOULD first apply skip and then top on the collection.

Note: If the server can't honor top and/or skip, the server MUST return an error to the client informing about it instead of just ignoring the query options.

skip
Nullable<Int32>

skip indicates the number of records to skip from the list of records held by the server based on the sorting method specified. By default, we sort by descending start time.

Clients MAY use top and skip query parameters to specify a number of results to return and an offset into the collection. When both top and skip are given by a client, the server SHOULD first apply skip and then top on the collection.

Note: If the server can't honor top and/or skip, the server MUST return an error to the client informing about it instead of just ignoring the query options.

maxpagesize
Nullable<Int32>

maxpagesize is the maximum items returned in a page. If more items are requested via top (or top is not specified and there are more items to be returned), @nextLink will contain the link to the next page.

Clients MAY request server-driven paging with a specific page size by specifying a maxpagesize preference. The server SHOULD honor this preference if the specified page size is smaller than the server's default page size.

ids
IEnumerable<Guid>

Ids to use in filtering.

statuses
IEnumerable<String>

Statuses to use in filtering.

createdDateTimeUtcStart
Nullable<DateTimeOffset>

the start datetime to get items after.

createdDateTimeUtcEnd
Nullable<DateTimeOffset>

the end datetime to get items before.

orderby
IEnumerable<String>

the sorting query for the collection (ex: 'CreatedDateTimeUtc asc','CreatedDateTimeUtc desc').

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.

Applies to

GetDocumentsStatusAsync(Guid, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, IEnumerable<Guid>, IEnumerable<String>, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>, IEnumerable<String>, CancellationToken)

Source:
DocumentTranslationClient.cs

Returns the status for all documents in a batch document translation request.

public virtual Azure.AsyncPageable<Azure.AI.Translation.Document.DocumentStatusResult> GetDocumentsStatusAsync (Guid id, int? maxCount = default, int? skip = default, int? maxpagesize = default, System.Collections.Generic.IEnumerable<Guid> ids = default, System.Collections.Generic.IEnumerable<string> statuses = default, DateTimeOffset? createdDateTimeUtcStart = default, DateTimeOffset? createdDateTimeUtcEnd = default, System.Collections.Generic.IEnumerable<string> orderby = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetDocumentsStatusAsync : Guid * Nullable<int> * Nullable<int> * Nullable<int> * seq<Guid> * seq<string> * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * seq<string> * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.AI.Translation.Document.DocumentStatusResult>
override this.GetDocumentsStatusAsync : Guid * Nullable<int> * Nullable<int> * Nullable<int> * seq<Guid> * seq<string> * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * seq<string> * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.AI.Translation.Document.DocumentStatusResult>
Public Overridable Function GetDocumentsStatusAsync (id As Guid, Optional maxCount As Nullable(Of Integer) = Nothing, Optional skip As Nullable(Of Integer) = Nothing, Optional maxpagesize As Nullable(Of Integer) = Nothing, Optional ids As IEnumerable(Of Guid) = Nothing, Optional statuses As IEnumerable(Of String) = Nothing, Optional createdDateTimeUtcStart As Nullable(Of DateTimeOffset) = Nothing, Optional createdDateTimeUtcEnd As Nullable(Of DateTimeOffset) = Nothing, Optional orderby As IEnumerable(Of String) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of DocumentStatusResult)

Parameters

id
Guid

Format - uuid. The operation id.

maxCount
Nullable<Int32>

top indicates the total number of records the user wants to be returned across all pages.

Clients MAY use top and skip query parameters to specify a number of results to return and an offset into the collection. When both top and skip are given by a client, the server SHOULD first apply skip and then top on the collection.

Note: If the server can't honor top and/or skip, the server MUST return an error to the client informing about it instead of just ignoring the query options.

skip
Nullable<Int32>

skip indicates the number of records to skip from the list of records held by the server based on the sorting method specified. By default, we sort by descending start time.

Clients MAY use top and skip query parameters to specify a number of results to return and an offset into the collection. When both top and skip are given by a client, the server SHOULD first apply skip and then top on the collection.

Note: If the server can't honor top and/or skip, the server MUST return an error to the client informing about it instead of just ignoring the query options.

maxpagesize
Nullable<Int32>

maxpagesize is the maximum items returned in a page. If more items are requested via top (or top is not specified and there are more items to be returned), @nextLink will contain the link to the next page.

Clients MAY request server-driven paging with a specific page size by specifying a maxpagesize preference. The server SHOULD honor this preference if the specified page size is smaller than the server's default page size.

ids
IEnumerable<Guid>

Ids to use in filtering.

statuses
IEnumerable<String>

Statuses to use in filtering.

createdDateTimeUtcStart
Nullable<DateTimeOffset>

the start datetime to get items after.

createdDateTimeUtcEnd
Nullable<DateTimeOffset>

the end datetime to get items before.

orderby
IEnumerable<String>

the sorting query for the collection (ex: 'CreatedDateTimeUtc asc','CreatedDateTimeUtc desc').

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Remarks

Returns the status for all documents in a batch document translation request.

If the number of documents in the response exceeds our paging limit, server-side paging is used. Paginated responses indicate a partial result and include a continuation token in the response. The absence of a continuation token means that no additional pages are available.

top, skip and maxpagesize query parameters can be used to specify a number of results to return and an offset for the collection.

top indicates the total number of records the user wants to be returned across all pages. skip indicates the number of records to skip from the list of document status held by the server based on the sorting method specified. By default, we sort by descending start time. maxpagesize is the maximum items returned in a page. If more items are requested via top (or top is not specified and there are more items to be returned), @nextLink will contain the link to the next page.

orderby query parameter can be used to sort the returned list (ex "orderby=createdDateTimeUtc asc" or "orderby=createdDateTimeUtc desc"). The default sorting is descending by createdDateTimeUtc. Some query parameters can be used to filter the returned list (ex: "status=Succeeded,Cancelled") will only return succeeded and cancelled documents. createdDateTimeUtcStart and createdDateTimeUtcEnd can be used combined or separately to specify a range of datetime to filter the returned list by. The supported filtering query parameters are (status, ids, createdDateTimeUtcStart, createdDateTimeUtcEnd).

When both top and skip are included, the server should first apply skip and then top on the collection. Note: If the server can't honor top and/or skip, the server must return an error to the client informing about it instead of just ignoring the query options. This reduces the risk of the client making assumptions about the data returned.

Applies to