简体   繁体   English

将 Azure DevOps 管道详细信息发送到 SIEM

[英]Send Azure DevOps Pipeline Details to SIEM

I want to add pipeline details(status, id, who triggered it) to my SIEM solution.我想将管道详细信息(状态、ID、触发它的人)添加到我的 SIEM 解决方案中。 For that, can you suggest me how to get that information.为此,您能否建议我如何获取该信息。

Some rough Ideas一些粗略的想法

  1. Invoke a lambda from Pipeline and supply pipeline related information through SNS从Pipeline调用一个lambda,通过SNS提供pipeline相关信息

If the above is possible, can you tell me how.如果以上是可能的,你能告诉我怎么做。 I couldn't find a way to do it dynamically for all pipelines.我找不到为所有管道动态执行此操作的方法。 I don't want to hardcore Project and Organization details.我不想硬核项目和组织细节。

Not very familiar with SIEM, but for azure devops pipelines, you can get their detailed information programmatically by REST APIs.不太熟悉 SIEM,但对于 azure devops 管道,您可以通过 REST API 以编程方式获取其详细信息。

You can use Pipelines - Get to get information about pipeline's status, id, who triggered it and so on.您可以使用Pipelines - Get获取有关管道的状态、ID、触发它的人等信息。

GET https://dev.azure.com/{organization}/{project}/_apis/pipelines/{pipelineId}?api-version=6.0-preview.1

You can click this link for more resources of Azure DevOps Pipelines REST APIs.您可以单击此链接以获取 Azure DevOps Pipelines REST API 的更多资源。

It uses PAT or OAuth2 as the authentication method and returns information as JSON.它使用PAT或 OAuth2 作为身份验证方法,并返回信息为 JSON。

Updates:更新:

Here is a REST API Pipelines - List that can get a list of pipelines in a project.这是一个 REST API Pipelines - List可以获取项目中的管道列表。

GET https://dev.azure.com/{organization}/{project}/_apis/pipelines?api-version=6.0-preview.1

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在 Azure Devops 发布管道中启动 Python 看门狗 - Launching a Python watchdog in an Azure Devops Release pipeline 运行 Azure DevOps 管道存在 ##[error]Bash exited with code '1' - Running Azure DevOps pipeline exists with ##[error]Bash exited with code '1' Python Azure devOps Build Pipeline 中的突变测试报告 - Python Mutation testing reporting in Azure devOps Build Pipeline 在 Azure Devops 中运行管道期间下载任务附件 - Download Task attachment during a pipeline run in Azure Devops 在 Azure Devops Pipeline 中运行 Python 代码并将输出导出到 Devops Repos ($(Build.SourcesDirectory)) 中的文件夹 - Run Python Code within Azure Devops Pipeline and Export output to folder in Devops Repos ($(Build.SourcesDirectory)) 在Azure Devops中为基于Python的Azure Function设置发布管道的正确方法 - Proper way to set up a release pipeline in Azure Devops for Python based Azure Function 如何在 azure devops 管道上进行 python 覆盖测试时引发错误? - How can i raising error while python coverage test on azure devops pipeline? 如何在 Azure Devops 的另一个构建管道中使用/pip 安装自定义 Python 包工件? - How to consume/pip install a custom Python package artifact in another build pipeline in Azure Devops? 在多阶段 YAML Azure DevOps 管道中,发布阶段是否无权访问 Source? - In a Multi-Stage YAML Azure DevOps Pipeline, Does the Release Stage not have access to Source? Azure DevOps、发布管道、Powershell 任务:即使操作成功,提取 .tar.gz 仍显示为失败 - Azure DevOps, Release Pipeline, Powershell task: Extracting .tar.gz shown as failure even after operation succeeds
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM