Azure 关联 ID 和请求 ID [英] Azure Corelation Id and Request ID
问题描述
我有一个 Azure 帐户,我正在使用邮递员对该帐户进行 AD API 调用,由于某些问题,我联系了 Microsoft,他们要求提供相同的关联 ID 和请求 ID,我在哪里可以找到这两件事?
I have an Azure account and I am making AD API calls for that account using postman, due to some issue I contacted Microsoft and they are asking for Correlation ID and request ID for the same, where can I find these two things?
这是我一直在调用的 APIhttps:///docs.microsoft.com/en-gb/graph/api/user-delta?view=graph-rest-1.0&tabs=http
This is the API I have been calling https://docs.microsoft.com/en-gb/graph/api/user-delta?view=graph-rest-1.0&tabs=http
推荐答案
您可以在响应标头中找到此信息.例如,当我执行失败的请求时,这是我在使用 Graph Explorer 时在响应标头中得到的:
You can find this information in the response headers. For example, when I execute a failed request, this is what I get in the response headers when I use Graph Explorer:
{
"cache-control": "no-cache",
"client-request-id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"content-type": "application/json",
"preference-applied": "odata.track-changes",
"request-id": "yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy"
}
我找不到任何文档,但是我相信 client-request-id
响应标头是相关 ID,而 request-id
响应标头是您的请求 ID正在寻找.
I was not able to find any documentation however I believe client-request-id
response header is the correlation id and request-id
response header is the request id you're looking for.
对于错误,此信息也包含在错误响应正文中:
For errors, this information is also included in the error response body:
{
"error": {
"code": "Authorization_RequestDenied",
"message": "Insufficient privileges to complete the operation.",
"innerError": {
"date": "2021-07-09T12:50:35",
"request-id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"client-request-id": "yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy"
}
}
}
更新
基于 Graph API 响应中的关联 ID 在哪里?,client-request-id
是关联id.
这篇关于Azure 关联 ID 和请求 ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!