StacClient.SearchAsync 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
| Name | Description |
|---|---|
| SearchAsync(StacSearchParameters, Nullable<StacAssetUrlSigningMode>, Nullable<Int32>, CancellationToken) |
STAC search operation. |
| SearchAsync(RequestContent, String, Nullable<Int32>, RequestContext) |
[Protocol Method] STAC search operation.
|
SearchAsync(StacSearchParameters, Nullable<StacAssetUrlSigningMode>, Nullable<Int32>, CancellationToken)
- Source:
- StacClient.cs
STAC search operation.
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Analytics.PlanetaryComputer.StacItemCollection>> SearchAsync(Azure.Analytics.PlanetaryComputer.StacSearchParameters body, Azure.Analytics.PlanetaryComputer.StacAssetUrlSigningMode? sign = default, int? durationInMinutes = default, System.Threading.CancellationToken cancellationToken = default);
abstract member SearchAsync : Azure.Analytics.PlanetaryComputer.StacSearchParameters * Nullable<Azure.Analytics.PlanetaryComputer.StacAssetUrlSigningMode> * Nullable<int> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Analytics.PlanetaryComputer.StacItemCollection>>
override this.SearchAsync : Azure.Analytics.PlanetaryComputer.StacSearchParameters * Nullable<Azure.Analytics.PlanetaryComputer.StacAssetUrlSigningMode> * Nullable<int> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Analytics.PlanetaryComputer.StacItemCollection>>
Public Overridable Function SearchAsync (body As StacSearchParameters, Optional sign As Nullable(Of StacAssetUrlSigningMode) = Nothing, Optional durationInMinutes As Nullable(Of Integer) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of StacItemCollection))
Parameters
- body
- StacSearchParameters
Request body.
Whether to sign asset URLs in the response.
- cancellationToken
- CancellationToken
The cancellation token that can be used to cancel the operation.
Returns
Exceptions
body is null.
Service returned a non-success status code.
Applies to
SearchAsync(RequestContent, String, Nullable<Int32>, RequestContext)
- Source:
- StacClient.cs
[Protocol Method] STAC search operation.
- This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual System.Threading.Tasks.Task<Azure.Response> SearchAsync(Azure.Core.RequestContent content, string sign = default, int? durationInMinutes = default, Azure.RequestContext context = default);
abstract member SearchAsync : Azure.Core.RequestContent * string * Nullable<int> * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
override this.SearchAsync : Azure.Core.RequestContent * string * Nullable<int> * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function SearchAsync (content As RequestContent, Optional sign As String = Nothing, Optional durationInMinutes As Nullable(Of Integer) = Nothing, Optional context As RequestContext = Nothing) As Task(Of Response)
Parameters
- content
- RequestContent
The content to send as the body of the request.
- sign
- String
Whether to sign asset URLs in the response.
- context
- RequestContext
The request options, which can override default behaviors of the client pipeline on a per-call basis.
Returns
The response returned from the service.
Exceptions
content is null.
Service returned a non-success status code.