Skip to main content

EdgeJob

Resource EdgeJob in pulumi-portainer.
2 min read

Resource EdgeJob in pulumi-portainer.

Pulumi type: portainer:index/edgeJob:EdgeJob.

name is the Pulumi resource name. Nested object fields are documented under that object. They are not arguments of this resource.

Example#

Only required arguments are set. A string in angle brackets stands in for that argument. Any other value is an option or example written in the SDK description.

Arguments#

PropertyTypeRequiredDescription
cronExpressionstringyesCron expression that schedules execution of the edge job.
edgeGroupsnumber[]yesList of edge group identifiers targeted by the job.
edgeJobIdstringno
endpointsnumber[]yesList of edge endpoint identifiers explicitly targeted by the job (in addition to those in edgeGroups).
fileContentstringnoInline script executed by edge agents. Mutually exclusive with filePath.
filePathstringnoPath on the local filesystem to a script file uploaded as the job payload. Mutually exclusive with fileContent.
namestringnoName of the Portainer edge job.
recurringbooleannoWhether the edge job should run repeatedly according to the cron expression (true) or only once (false).

Outputs#

Computed outputs are produced by the provider. They are not constructor arguments.

PropertyTypeComputedDescription
cronExpressionstringnoCron expression that schedules execution of the edge job.
edgeGroupsnumber[]noList of edge group identifiers targeted by the job.
edgeJobIdstringno
endpointsnumber[]noList of edge endpoint identifiers explicitly targeted by the job (in addition to those in edgeGroups).
fileContentstringnoInline script executed by edge agents. Mutually exclusive with filePath.
filePathstringnoPath on the local filesystem to a script file uploaded as the job payload. Mutually exclusive with fileContent.
namestringnoName of the Portainer edge job.
recurringbooleannoWhether the edge job should run repeatedly according to the cron expression (true) or only once (false).