Template
build
template: The template to buildname: Template name in ‘name’ or ‘name:tag’ formatalias: (Deprecated) Alias name for the template. Use name instead.tags: Optional additional tags to assign to the templatecpu_count: Number of CPUs allocated to the sandboxmemory_mb: Amount of memory in MB allocated to the sandboxskip_cache: If True, forces a complete rebuild ignoring cacheon_build_logs: Callback function to receive build logs during the build process Example
build_in_background
template: The template to buildname: Template name in ‘name’ or ‘name:tag’ formatalias: (Deprecated) Alias name for the template. Use name instead.tags: Optional additional tags to assign to the templatecpu_count: Number of CPUs allocated to the sandboxmemory_mb: Amount of memory in MB allocated to the sandboxskip_cache: If True, forces a complete rebuild ignoring cache
get_build_status
build_info: Build identifiers returned from build_in_backgroundlogs_offset: Offset for fetching logs
exists
name: Template name to check
alias_exists
exists instead.
Arguments:
alias: Template alias to check
assign_tags
target_name: Template name in ‘name:tag’ format (the source build to tag from)tags: Tag or tags to assign
remove_tags
name: Template nametags: Tag or tags to remove Example
check_alias_exists
client- Authenticated API clientalias- Template alias to check
assign_tags
client- Authenticated API clienttarget_name- Template name in ‘name:tag’ format (the source build to tag from)tags- Tags to assign
remove_tags
client- Authenticated API clientname- Template nametags- List of tags to remove