A valid retention lease prevents automated systems from deleting a pipeline run.

interface RetentionLease {
    createdOn?: Date;
    definitionId?: number;
    leaseId?: number;
    ownerId?: string;
    protectPipeline?: boolean;
    runId?: number;
    validUntil?: Date;
}

Properties

createdOn?: Date

When the lease was created.

definitionId?: number

The pipeline definition of the run.

leaseId?: number

The unique identifier for this lease.

ownerId?: string

Non-unique string that identifies the owner of a retention lease.

protectPipeline?: boolean

If set, this lease will also prevent the pipeline from being deleted while the lease is still valid.

runId?: number

The pipeline run protected by this lease.

validUntil?: Date

The last day the lease is considered valid.