IoTHubJobManager Class
A class to provide convenience APIs for IoTHub Job Manager operations, based on top of the auto generated IotHub REST APIs
- Inheritance
-
builtins.objectIoTHubJobManager
Constructor
IoTHubJobManager(connection_string=None, host=None, auth=None)
Parameters
- connection_string
- host
- auth
Methods
| cancel_import_export_job |
Cancels an import/export job on an IoT hub. |
| cancel_scheduled_job |
Cancels a scheduled job on an IoT hub. |
| create_import_export_job |
Creates a new import/export job on an IoT hub. |
| create_scheduled_job |
Creates a new job to schedule update twins or device direct methods on an IoT hub. |
| from_connection_string |
Classmethod initializer for a IoTHubJobManager Service client. Creates IoTHubJobManager class from connection string. After a successful creation the class has been authenticated with IoTHub and it is ready to call the member APIs to communicate with IoTHub. |
| from_token_credential |
Classmethod initializer for a IoTHubJobManager Service client. Creates IoTHubJobManager class from host name url and Azure token credential. After a successful creation the class has been authenticated with IoTHub and it is ready to call the member APIs to communicate with IoTHub. |
| get_import_export_job |
Retrieves the status of an import/export job on an IoTHub. |
| get_import_export_jobs |
Retrieves the status of all import/export jobs on an IoTHub. |
| get_scheduled_job |
Retrieves the details of a scheduled job on an IoTHub. |
| query_scheduled_jobs |
Query an IoT hub to retrieve information regarding jobs using the IoT Hub query language. |
cancel_import_export_job
Cancels an import/export job on an IoT hub.
cancel_import_export_job(job_id)
Parameters
Returns
Object.
Exceptions
cancel_scheduled_job
Cancels a scheduled job on an IoT hub.
cancel_scheduled_job(job_id)
Parameters
Returns
JobResponse object containing the cancelled job.
Return type
Exceptions
create_import_export_job
Creates a new import/export job on an IoT hub.
create_import_export_job(job_properties)
Parameters
- job_properties
- <xref:azure.iot.hub.models.JobProperties>
Specifies the job specification.
Returns
JobProperties object containing the created job.
Return type
Exceptions
create_scheduled_job
Creates a new job to schedule update twins or device direct methods on an IoT hub.
create_scheduled_job(job_id, job_request)
Parameters
- job_request
- <xref:azure.iot.hub.models.JobRequest>
Specifies the job.
Returns
JobResponse object containing the created job.
Return type
Exceptions
from_connection_string
Classmethod initializer for a IoTHubJobManager Service client. Creates IoTHubJobManager class from connection string.
After a successful creation the class has been authenticated with IoTHub and it is ready to call the member APIs to communicate with IoTHub.
from_connection_string(connection_string)
Parameters
- connection_string
- str
The IoTHub connection string used to authenticate connection with IoTHub.
- connection_string
Return type
Exceptions
from_token_credential
Classmethod initializer for a IoTHubJobManager Service client. Creates IoTHubJobManager class from host name url and Azure token credential.
After a successful creation the class has been authenticated with IoTHub and it is ready to call the member APIs to communicate with IoTHub.
from_token_credential(url, token_credential)
Parameters
- token_credential
Return type
Exceptions
get_import_export_job
Retrieves the status of an import/export job on an IoTHub.
get_import_export_job(job_id)
Parameters
Returns
The JobProperties object containing the requested job.
Return type
Exceptions
get_import_export_jobs
Retrieves the status of all import/export jobs on an IoTHub.
get_import_export_jobs()
Returns
The list[job_properties] object.
Return type
Exceptions
get_scheduled_job
Retrieves the details of a scheduled job on an IoTHub.
get_scheduled_job(job_id)
Parameters
Returns
The JobResponse object containing the requested details.
Return type
Exceptions
query_scheduled_jobs
Query an IoT hub to retrieve information regarding jobs using the IoT Hub query language.
query_scheduled_jobs(job_type, job_status)
Parameters
Returns
QueryResult object containing the jobs.
Return type
Exceptions
Feedback
Submit and view feedback for