Поделиться через


DigitalTwinsClient.ImportGraphAsync Method

Definition

Creates an import job. Status codes:

  • 201 Created
  • 400 Bad Request
    • JobLimitReached - The maximum number of import jobs allowed has been reached.
    • ValidationFailed - The import job request is not valid.
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.DigitalTwins.Core.ImportJob>> ImportGraphAsync(string jobId, Azure.DigitalTwins.Core.ImportJob importJob, System.Threading.CancellationToken cancellationToken = default);
abstract member ImportGraphAsync : string * Azure.DigitalTwins.Core.ImportJob * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.DigitalTwins.Core.ImportJob>>
override this.ImportGraphAsync : string * Azure.DigitalTwins.Core.ImportJob * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.DigitalTwins.Core.ImportJob>>
Public Overridable Function ImportGraphAsync (jobId As String, importJob As ImportJob, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ImportJob))

Parameters

jobId
String

The id for the import job. The id is unique within the service and case sensitive.

importJob
ImportJob

The import job being added.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

jobId or importJob is null.

Applies to