This function suspends a profile or lifts an existing suspension. It returns true on success.
NOTE Suspended profiles are listed in Control Center under Exceptions.
Return value
Value | Meaning |
|---|---|
| Action completed successfully. |
| Action failed. Parameter |
Parameters
Parameter | Required | Default | Description |
|---|---|---|---|
| Yes | – | Name or ID of the profile to be suspended or unsuspended. |
| No |
| When |
| No |
| When |
| No | – | Start date (type: Date) of the scheduled suspension. The suspension starts at 00:00 on the specified date. Only takes effect when |
| No | – | End date (type: Date) of the scheduled suspension. The suspension ends at 00:00 on the specified date. Only takes effect when |
Notes
Only profiles on the same client can be handled.
A profile can suspend itself.
When a running profile is suspended, the system sets the status immediately. The current profile run still completes normally.
When
dandeare set andc = true, the profile appears in Control Center under Exceptions as Already scheduled for suspension.Parameters
dandecorrespond to the time frame of manual timed suspension. See Profile suspensions.Scheduled suspension via parameters
dandeis available from version 25.0.7.
WARNING
Known limitation: Parameters
dandecurrently support dates only, not timestamps. The suspension runs from 00:00 on the start date to 00:00 on the end date. Shorter time windows (for example, 30 minutes or 2 hours) are not possible.
Related functions
suspend profile(): Suspends the currently running profile and aborts the job.
de/activate profile(): Activates or deactivates a profile.