IngestionClient.CreateSourceAsync 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 |
|---|---|
| CreateSourceAsync(IngestionSource, CancellationToken) |
Create a new ingestion source in a geo-catalog. |
| CreateSourceAsync(RequestContent, RequestContext) |
[Protocol Method] Create a new ingestion source in a geo-catalog
|
CreateSourceAsync(IngestionSource, CancellationToken)
- Source:
- IngestionClient.cs
Create a new ingestion source in a geo-catalog.
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Analytics.PlanetaryComputer.IngestionSource>> CreateSourceAsync(Azure.Analytics.PlanetaryComputer.IngestionSource body, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateSourceAsync : Azure.Analytics.PlanetaryComputer.IngestionSource * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Analytics.PlanetaryComputer.IngestionSource>>
override this.CreateSourceAsync : Azure.Analytics.PlanetaryComputer.IngestionSource * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Analytics.PlanetaryComputer.IngestionSource>>
Public Overridable Function CreateSourceAsync (body As IngestionSource, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of IngestionSource))
Parameters
- body
- IngestionSource
Definition of the ingestion source.
- 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
CreateSourceAsync(RequestContent, RequestContext)
- Source:
- IngestionClient.cs
[Protocol Method] Create a new ingestion source in a geo-catalog
- 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> CreateSourceAsync(Azure.Core.RequestContent content, Azure.RequestContext context = default);
abstract member CreateSourceAsync : Azure.Core.RequestContent * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
override this.CreateSourceAsync : Azure.Core.RequestContent * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function CreateSourceAsync (content As RequestContent, Optional context As RequestContext = Nothing) As Task(Of Response)
Parameters
- content
- RequestContent
The content to send as the body of the request.
- 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.