Storage jobs represent long running operations on a storage subsystem. These operations can either be user-initiated through the various management interfaces defined by this MOF, or automatically by intelligent storage subsystems.
{'Description':'RequestStateChange changes the state of a job. The possible values are as follows: 2 - 'Start' changes the state to 'Running'. 3 - 'Suspend' stops the job temporarily. The intention is to subsequently restart the job with a second call to RequestStateChange requesting 1 - 'Start'. It might be possible to enter the 'Service' state while suspended. (This is job-specific.) 4 - 'Terminate' stops the job cleanly, saving data, preserving the state, and shutting down all underlying processes in an orderly manner. 5 - 'Kill' terminates the job immediately with no requirement to save data or preserve the state. 6 - 'Service' puts the job into a vendor-specific service state. It might be possible to restart the job.','In':True,'Values':['Start', 'Suspend', 'Terminate', 'Kill', 'Service', 'DMTF Reserved', 'Vendor Reserved']}
'Requests that the state of the job be changed to the value specified in the RequestedState parameter. Invoking the RequestStateChange method multiple times could result in earlier requests being overwritten or lost.'
Values
['Success', 'Not Supported', 'Unspecified Error', 'Timeout', 'Failed', 'Invalid Parameter', 'State transition started', 'Invalid state transition', 'Access denied', 'There are not enough resources to complete the operation.', 'Cannot connect to the storage provider.', 'The storage provider cannot connect to the storage subsystem.']
RequestStateChange method is in 1 class (MSFT_StorageJob) of ROOT\Microsoft\Windows\Storage\ms_409 and in 15 namespaces
Detailed description of MSFT_StorageJob properties
'If the operation that this storage job was tracking has failed, the provider will set this with an error code defined by the method that invoked the operation. If this job tracked a background task, the error code can be set to any valid Storage Management error code as defined in the value map below. If there was no error, this property must be set to 0 - 'Success'. This property should be NULL until the operation has completed.'
'If TRUE, this storage job represents an automated background task initiated by the storage subsystem. For all user / management initiated operations, this value should be set to FALSE.'
IsBackgroundTask property is in 1 class (MSFT_StorageJob) of ROOT\Microsoft\Windows\Storage\ms_409 and in 3 namespaces
'A free-form string that represents the status of the job. The primary status is reflected in the inherited OperationalStatus property. JobStatus provides additional, implementation-specific details.'
JobStatus property is in 1 class (MSFT_StorageJob) of ROOT\Microsoft\Windows\Storage\ms_409 and in 15 namespaces
'This property indicates whether the times represented in the StartTime, TimeOfLastStateChange, and TimeSubmitted properties represent local times or UTC times. Time values are synchronized worldwide by using the enumeration value 2 - 'UTC Time'.'
Values
['Local Time', 'UTC Time']
LocalOrUtcTime property is in 1 class (MSFT_StorageJob) of ROOT\Microsoft\Windows\Storage\ms_409 and in 13 namespaces
'Denotes a vendor-specific recovery action to be taken for an unsuccessfully run job. This value should only be set if RecoveryAction is set to 1 - 'Other'.'
OtherRecoveryAction property is in 1 class (MSFT_StorageJob) of ROOT\Microsoft\Windows\Storage\ms_409 and in 11 namespaces
'Describes the recovery action to be taken for an unsuccessfully run job. The possible values are: 0 - 'Unknown' meaning it is unknown as to what recovery action to take 1 - 'Other' indicating that the recovery action will be specified in the OtherRecoveryAction property 2 - 'Do Not Continue' meaning stop the execution of the job and appropriately update its status 3 - 'Continue With Next Job' meaning continue with the next job in the queue 4 - 'Re-run Job' indicating that the job should be re-run '
Values
['Unknown', 'Other', 'Do Not Continue', 'Continue With Next Job', 'Re-run Job']
RecoveryAction property is in 1 class (MSFT_StorageJob) of ROOT\Microsoft\Windows\Storage\ms_409 and in 11 namespaces
'Strings describing the various OperationalStatus array values. For example, if "Stopping" is the value assigned to OperationalStatus, this property may contain an explanation as to why an object is being stopped. Note that entries in this array are correlated with those at the same array index in OperationalStatus.'
StatusDescriptions property is in 1 class (MSFT_StorageJob) of ROOT\Microsoft\Windows\Storage\ms_409 and in 18 namespaces
'The amount of time that the Job is retained after it has finished executing, regardless of whether it failed during execution. The job must remain in existence for some period of time regardless of the value of the DeleteOnCompletion property. '
TimeBeforeRemoval property is in 1 class (MSFT_StorageJob) of ROOT\Microsoft\Windows\Storage\ms_409 and in 13 namespaces
'The date or time when the state of the job last changed. If the state of the job has not changed and this property is populated, it must be set to a 0 interval value. If a state change was requested, but was rejected or not yet processed, the property must not be updated.'
TimeOfLastStateChange property is in 1 class (MSFT_StorageJob) of ROOT\Microsoft\Windows\Storage\ms_409 and in 17 namespaces
'ObjectId is a mandatory property that is used to opaquely and uniquely identify an instance of a class. ObjectIds must be unique within the scope of the management server (which is hosting the provider). The ObjectId is created and maintained for use of the Storage Management Providers and their clients to track instances of objects. If an object is visible through two different paths (for example: there are two separate Storage Management Providers that point to the same storage subsystem) then the same object may appear with two different ObjectIds. For determining if two object instances are the same object, refer to the UniqueId property.'
'PassThroughIds is a comma-separated list of all implementation specific keys. It is used by storage management applications to access the vendor proprietary object model. This field should be in the form: key1='value1',key2='value2'.'
'UniqueId is a mandatory property that is used to uniquely identify a logical instance of a storage subsystem's object. This value must be the same for an object viewed by two or more provider instances (even if they are running on seperate management servers). UniqueId can be any globally unique, opaque value unless otherwise specified by a derived class.'
'Storage jobs represent long running operations on a storage subsystem. These operations can either be user-initiated through the various management interfaces defined by this MOF, or automatically by intelligent storage subsystems.'