【发布时间】:2019-01-13 00:46:14
【问题描述】:
我使用 Microsoft Graph .NET 客户端库 (https://github.com/microsoftgraph/msgraph-sdk-dotnet)。
我想调用这个 API 方法:
https://docs.microsoft.com/en-us/graph/api/domain-list-verificationdnsrecords?view=graph-rest-1.0
GET https://graph.microsoft.com/v1.0/domains/{domain-name}/verificationDnsRecords
我尝试执行以下操作:
List<QueryOption> options = new List<QueryOption>
{
new QueryOption("domain-name", domain)
};
var r = await graphClient.Domains.Request(options).Select(p => p.VerificationDnsRecords).GetAsync();
但我收到类似“未知域名”参数的错误。我试过 id 而不是 domain-name 并得到相同的结果。
出了什么问题,怎么办?
【问题讨论】: