DigitalTwinsClient.ImportGraph(String, ImportJob, CancellationToken) 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.
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 Azure.Response<Azure.DigitalTwins.Core.ImportJob> ImportGraph(string jobId, Azure.DigitalTwins.Core.ImportJob importJob, System.Threading.CancellationToken cancellationToken = default);
abstract member ImportGraph : string * Azure.DigitalTwins.Core.ImportJob * System.Threading.CancellationToken -> Azure.Response<Azure.DigitalTwins.Core.ImportJob>
override this.ImportGraph : string * Azure.DigitalTwins.Core.ImportJob * System.Threading.CancellationToken -> Azure.Response<Azure.DigitalTwins.Core.ImportJob>
Public Overridable Function ImportGraph (jobId As String, importJob As ImportJob, Optional cancellationToken As CancellationToken = Nothing) As 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.