Skip to content

Job

Bases: DuploTenantResourceV3

apply

Apply a service.

create

Create a job.

delete

Delete a Job resource by name.

cli usage
duploctl job delete <name>

Parameters:

Name Type Description Default
name NAME

The name of the Job resource to delete.

required

Returns:

Name Type Description
message dict

A success message.

Raises:

Type Description
DuploError

If the {{kind}} resource could not be found or deleted.

find

Find Job resources by name.

cli usage
duploctl job find <name>

Parameters:

Name Type Description Default
name NAME

The name of the Job resource to find.

required

Returns:

Name Type Description
resource dict

The Job object.

Raises:

Type Description
DuploError

If the {{kind}} could not be found.

list

Retrieve a List of Job resources

cli usage
duploctl job list

Returns:

Name Type Description
list list

A list of Job.

pods

Get the pods for a service.

Parameters:

Name Type Description Default
name str

The name of the service to get pods for.

required

Returns: A list of pods for the service. Raises: DuploError: If the service could not be found.

update

Update a V3 resource by name.

Parameters:

Name Type Description Default
body str

The resource to update.

required

Returns: Success message. Raises: DuploError: If the resource could not be created.