Microsoft Graphの機能が変更されています。 SharePointサイトからdrives
のリストを要求すると、私はもはやdrives
コレクションとの関係に言及しドライブエンティティはdriveType属性を返さなくなりました
site
documentation 11月14のように存在しているようだdriveItem
属性を参照するために使用しました。
drive
documentationは説明driveType
属性として:
は、このリソースによって表されるドライブの種類を記述します。 OneDriveパーソナルドライブは
personal
を返します。 OneDrive for Businessはbusiness
を返します。 SharePointドキュメントライブラリはdocumentLibrary
を返します。読み取り専用。ここで
は、例呼び出しです:
https://graph.microsoft.com/v1.0/sites/{site-id}/drives
応答:
client-request-id →d822c749-baf6-4857-abd9-6d80f70823d9
request-id →d822c749-baf6-4857-abd9-6d80f70823d9
x-ms-ags-diagnostic →{"ServerInfo":{"DataCenter":"EastUS","Slice":"SliceB","Ring":"NA","ScaleUnit":"003","Host":"AGSFE_IN_28","ADSiteName":"EST"}}
{
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#drives",
"value": [
{
"createdBy": {
"user": {
"displayName": "System Account"
}
},
"createdDateTime": "2015-05-22T17:21:01Z",
"description": "This system library was created by the PointPublishing feature to store application pages.",
"id": "b!a4YqXM4QKkOPmOj73xfdss5bbYPr7MlFlXKVhtK0Dpjf4OJPyoBFQo2-YK5095t1",
"lastModifiedDateTime": "2015-05-22T17:21:03Z",
"name": "AppPages",
"webUrl": "https://mysharepoint.sharepoint.com/portals/hub/AppPages",
"quota": {
"deleted": 0,
"remaining": 0,
"total": 0,
"used": 0
}
}
<snipped a few values>
]
}
は、私が設計によって、ここで見ても非意図していた機能の変化ですか?
編集:コールしようとすると:site-id
(/sites/{site-id}/drives
)に基づいてサイトのdrives
を要求する場合
https://graph.microsoft.com/v1.0/sites/root/drives?$select=id,driveType,Name
driveType
が
{
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#drives(id,driveType,name)",
"value": [
{
"id": "fakeId",
"name": "Documents",
"driveType": "documentLibrary"
}
]
}
を返されたが、我々は異なる属性が返さご覧ください。
'driveType'プロパティが正しく返されています。 '/v1.0/sites/root/drives?$ select = id、driveType、Name'をチェックして、その結果を投稿できますか? –
@MarcLaFleur:上記のクエリを追加しましたが、それでもdriveTypesは返されません。 { "@ odata.context": "https://graph.microsoft.com/v1.0/$metadata#drives(id,driveType,name)" "value":[ { "id" "!B a4YqXM4QKkOPmOj73xfdss5bbYPr7MlFlXKVhtK0Dpjf4OJPyoBFQo2-YK5095t1"、 "名": "AppPages" } ] } – ruelloehr
私は結果を見ていませんよ。編集内容を保存しましたか? (私のURIは最初に投稿したURIと同じではありません) –