Documentation

Crons extends CloudApiBase implements CloudApiInterface

Class Crons

Table of Contents

$client ClientInterface
getAll() Show all cron tasks for an environment. CronsResponse
get() Get information about a cron task. CronResponse
create() Add a cron task. OperationResponse
update() Update a cron task. OperationResponse
delete() Delete a cron task. OperationResponse
disable() Disable a cron task. OperationResponse
enable() Enable a cron task. OperationResponse
__construct() Client constructor. mixed

Properties

Methods

getAll()

Show all cron tasks for an environment.

public getAll( $environmentUuid : string ) : CronsResponse
Parameters
$environmentUuid : string

The environment ID

Return values
CronsResponse

get()

Get information about a cron task.

public get( $environmentUuid : string , $cronId : int ) : CronResponse
Parameters
$environmentUuid : string

The environment ID

$cronId : int
Return values
CronResponse

create()

Add a cron task.

public create( $environmentUuid : string , $command : string , $frequency : string , $label : string [, $serverId : string = null ] ) : OperationResponse
Parameters
$environmentUuid : string
$command : string
$frequency : string
$label : string
$serverId : string = null
Return values
OperationResponse

update()

Update a cron task.

public update( $environmentUuid : string , $cronId : string , $command : string , $frequency : string , $label : string [, $serverId : string = null ] ) : OperationResponse
Parameters
$environmentUuid : string
$cronId : string
$command : string
$frequency : string
$label : string
$serverId : string = null
Return values
OperationResponse

Search results