Dominio de acciones

template

Todas las acciones que este dominio expone vía gitlab_execute_action, del manifiesto gitlab://tools. Cada entrada se despliega a su descripción completa y sus parámetros obligatorios.

12 · acciones0 · destructivas12 · solo lectura

Contado con un token Free contra gitlab.com, que es el único host con el que habla este endpoint: para usarlo contra una instancia self-managed, levanta tú el servidor — su documentación lo cubre. El catálogo depende del token que pregunta, así que el recuento se mueve con su tier y con sus permisos: los tiers superiores exponen más acciones, y los dominios de administración solo aparecen a tokens autorizados a usarlos. Por eso las cifras difieren en otros sitios: el proyecto upstream cuenta 868 operaciones en Community Edition y hasta 1.094 en el tier más alto de GitLab.com, mientras que este despliegue publica 768 porque es solo-OAuth y actúa con tu token, así que los dominios de administración que una cuenta sin admin no puede llamar no aparecen nunca. Las tres describen el mismo catálogo, contado desde tres sitios distintos.

Cada entrada dice también qué necesita un token de acceso personal fine-grained de GitLab para ejecutarla, tal como lo declara GitLab 19.4.1: todos los permisos de una línea, en uno de los ámbitos indicados. Cuando hay alternativas, basta con cualquiera.

Volver a la ficha del servidor

  1. template.ci_yml_get

    Get CI Yml Templatesolo lectura

    Get a single GitLab CI/CD pipeline YAML template by key. Returns: the template name and full YAML content to copy into a .gitlab-ci.yml file. See also: template.ci_yml_list, template.lint, repository.file_create.

    Parámetros obligatorios: key (string)

    Token fine-grained: la concesión no lo juzga (GitLab autentica esta petición de otra forma)

  2. template.ci_yml_list

    List CI Yml Templatessolo lectura

    List the GitLab-provided CI/CD pipeline YAML templates. Returns: available templates with key and name, plus pagination metadata. See also: template.ci_yml_get, template.lint, repository.file_create.

    Parámetros obligatorios: Sin parámetros obligatorios

    Token fine-grained: la concesión no lo juzga (GitLab autentica esta petición de otra forma)

  3. template.dockerfile_get

    Get Dockerfile Templatesolo lectura

    Get a single Dockerfile template by key. Returns: the template name and full Dockerfile content ready to commit as a project's Dockerfile. See also: template.dockerfile_list, template.gitignore_get.

    Parámetros obligatorios: key (string)

    Token fine-grained: la concesión no lo juzga (GitLab autentica esta petición de otra forma)

  4. template.dockerfile_list

    List Dockerfile Templatessolo lectura

    List available Dockerfile templates with pagination and sorting. Returns: matching templates with key and name plus pagination metadata. See also: template.dockerfile_get, template.gitignore_list.

    Parámetros obligatorios: Sin parámetros obligatorios

    Token fine-grained: la concesión no lo juzga (GitLab autentica esta petición de otra forma)

  5. template.gitignore_get

    Get Gitignore Templatesolo lectura

    Get one .gitignore template by key (e.g. Go, Python, Node). Returns: the template's name and full file content ready to copy into .gitignore. See also: template.gitignore_list, repository.file_create.

    Parámetros obligatorios: key (string)

    Token fine-grained: la concesión no lo juzga (GitLab autentica esta petición de otra forma)

  6. template.gitignore_list

    List Gitignore Templatessolo lectura

    List available .gitignore templates with order_by, sort, and offset or keyset pagination. Returns: each template's key and name, plus pagination metadata. See also: template.gitignore_get, repository.file_create.

    Parámetros obligatorios: Sin parámetros obligatorios

    Token fine-grained: la concesión no lo juzga (GitLab autentica esta petición de otra forma)

  7. template.license_get

    Get License Templatesolo lectura

    Get a single license template by key, optionally substituting project and fullname placeholders. Returns: the license's key, name, nickname, featured flag, source/HTML URLs, description, conditions, permissions, limitations, and rendered content. See also: template.license_list, repository.file_create.

    Parámetros obligatorios: key (string)

    Token fine-grained: la concesión no lo juzga (GitLab autentica esta petición de otra forma)

  8. template.license_list

    List License Templatessolo lectura

    List available license templates with an optional popular filter, order_by/sort, and offset or keyset pagination. Returns: each template's key, name, nickname, featured flag, source/HTML URLs, description, conditions, permissions, limitations, and content, with pagination metadata. See also: template.license_get, repository.file_create.

    Parámetros obligatorios: Sin parámetros obligatorios

    Token fine-grained: la concesión no lo juzga (GitLab autentica esta petición de otra forma)

  9. template.lint

    CI Lintsolo lectura

    Validate inline .gitlab-ci.yml content within a project namespace. Returns: validity flag, errors, warnings, the merged YAML, and resolved includes. See also: template.lint_project, pipeline.create, ci_catalog.list.

    Parámetros obligatorios: content (string), project_id (string|integer)

    Token fine-grained: CI Config: Validate en proyecto

  10. template.lint_project

    CI Lint Projectsolo lectura

    Validate a project's committed .gitlab-ci.yml at a branch or tag. Returns: validity flag, errors, warnings, the merged YAML, and resolved includes. See also: template.lint, pipeline.create, repository.file_get.

    Parámetros obligatorios: project_id (string|integer)

    Token fine-grained: CI Config: Read en proyecto

  11. template.project_template_get

    Get Project Templatesolo lectura

    Returns: one project template's full content by template_type and key. See also: template.project_template_list, project.create.

    Parámetros obligatorios: key (string), project_id (string|integer), template_type (string)

    Token fine-grained: Template: Read en proyecto

  12. template.project_template_list

    List Project Templatessolo lectura

    List project templates of a given template_type with optional id/type filters, order_by/sort, and offset or keyset pagination. Returns: each template's key, name, nickname, popularity, and source/HTML URLs. See also: template.project_template_get, project.create.

    Parámetros obligatorios: project_id (string|integer), template_type (string)

    Token fine-grained: Template: Read en proyecto