[英]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一些粗略的想法
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.