获取模型和库信息
获取有关模型及应用该模型的库的信息(请参阅示例)。
HTTP 请求
GET /_api/machinelearning/publications/getbymodeluniqueid('{modelUniqueId}') HTTP/1.1
URI 参数
名称 | 位置 | 必需 | 类型 | 说明 |
---|---|---|---|---|
ModelUniqueId | 查询 | True | GUID | 模型文件的唯一 ID。 |
请求标头
标头 | 值 |
---|---|
Accept | application/json;odata=verbose |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK | 成功 |
示例
在存储库网站获取有关合同模型和主要文档库的信息
此示例中,Contoso 合同文档理解模型的 ID 为 7645e69d-21fb-4a24-a17a-9bdfa7cb63dc
。
示例请求
GET /sites/TestCC/_api/machinelearning/publications/getbymodeluniqueid('7645e69d-21fb-4a24-a17a-9bdfa7cb63dc') HTTP/1.1
示例响应
状态代码:200
{
"@odata.context": "https://contoso.sharepoint.com/sites/TestCC/_api/$metadata#publications",
"value": [
{
"@odata.type": "#Microsoft.Office.Server.ContentCenter.SPMachineLearningPublication",
"@odata.id": "https://contoso.sharepoint.com/sites/repository /_api/machinelearning/publications/getbyuniqueId('7645e69d-21fb-4a24-a17a-9bdfa7cb63dc')",
"@odata.etag": "\"7645e69d-21fb-4a24-a17a-9bdfa7cb63dc,94\"",
"@odata.editLink": " https://contoso.sharepoint.com/sites/TestCC /_api/machinelearning/publications/getbyuniqueId('7645e69d-21fb-4a24-a17a-9bdfa7cb63dc')",
"Created": "2021-04-27T03:05:25Z",
"CreatedBy": "i:0#.f|membership|meganb@contoso.com",
"DriveId": "b!O-aG9qer5UiXx2jEwd8pL0221maIb9lNs9tH5vAMU-gPy9BrxT7GTrtXtdtv1Uzb",
"ID": 26,
"ModelId": 16,
"ModelName": "contosocontract.classifier",
"ModelType": 0,
"ModelUniqueId": "7645e69d-21fb-4a24-a17a-9bdfa7cb63dc",
"ModelVersion": "8.0",
"Modified": "2021-03-17T17:56:42Z",
"ModifiedBy": "i:0#.f|membership|joedoe@contoso.com",
"ObjectId": "01ZBWEM5FZRILGLXTEB5CZ2NNNSCTWBJMQ",
"PublicationType": 1,
"TargetLibraryRemoved": false,
"TargetLibraryServerRelativeUrl": "/sites/repository/contracts",
"TargetLibraryUrl": " https://contoso.sharepoint.com/sites/repository/contracts",
"TargetSiteUrl": "https://contoso.sharepoint.com/sites/repository",
"TargetWebServerRelativeUrl": "/sites/repository",
"UniqueId": "7645e69d-21fb-4a24-a17a-9bdfa7cb63dc",
"ViewOption": "NewViewAsDefault"
},
{
"@odata.type": "#Microsoft.Office.Server.ContentCenter.SPMachineLearningPublication",
"@odata.id": "https://contoso.sharepoint.com /sites/legal/_api/machinelearning/publications/getbyuniqueId('7645e69d-21fb-4a24-a17a-9bdfa7cb63dc')",
"@odata.etag": "\"7645e69d-21fb-4a24-a17a-9bdfa7cb63dc,101\"",
"@odata.editLink": "https://contoso.sharepoint.com /sites/legal/_api/machinelearning/publications/getbyuniqueId('7645e69d-21fb-4a24-a17a-9bdfa7cb63dc')",
"Created": "2021-01-27T03:17:44Z",
"CreatedBy": "i:0#.f|membership|esherman@contoso.com ",
"DriveId": "b!O-aG9qer5UiXx2jEwd8pL0221maIb9lNs9tH5vAMU-gPy9BrxT7GTrtXtdtv1Uzb",
"ID": 27,
"ModelId": 16,
"ModelName": "dispositions.classifier",
"ModelType": 0,
"ModelUniqueId": "7645e69d-21fb-4a24-a17a-9bdfa7cb63dc",
"ModelVersion": "8.0",
"Modified": "2021-03-17T23:17:46Z",
"ModifiedBy": "i:0#.f|membership|esherman@contoso.com ",
"ObjectId": "01ZBWEM5B3ERSZK4PAARGLFZ7JP6GMXG2R",
"PublicationType": 1,
"TargetLibraryRemoved": false,
"TargetLibraryServerRelativeUrl": "/sites/legal/dispositions",
"TargetLibraryUrl": "https://contoso.sharepoint.com/sites/legal/dispositions",
"TargetSiteUrl": " https://contoso.sharepoint.com/sites/legal",
"TargetWebServerRelativeUrl": "/sites/legal",
"UniqueId": "7645e69d-21fb-4a24-a17a-9bdfa7cb63dc",
"ViewOption": "NewViewAsDefault"
}
]
}