你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Dataset - List
用于提取所有现有数据集的列表。
注释
Azure Maps Creator 停用
Azure Maps Creator 室内地图服务现已弃用,将于 2025 年 9 月 30 日停用。 有关详细信息,请参阅 Azure Maps Creator 生命周期结束公告。
若要列出所有数据集,将发出 GET
请求,无需其他参数。
列出数据响应
列表 API 以 json
格式返回所有数据集的完整列表。 响应包含以下字段(如果这些字段不为 null 或为空):
created - 创建数据集的时间戳。 datasetId - 数据集的 ID。 description - 数据集的说明。 datasetSources - 发出创建请求时使用的源数据。 ontology - 在输入数据的转换服务中使用的源 本体。
datasetSources
描述了在发出创建请求时使用的源数据,并包含以下元素(如果这些元素不为 null 或为空):
conversionIds -
conversionId
列表(如果未提供,则为 null)。 appendDatasetId - 用于追加作的datasetId
(如果未使用 null)。 featureCounts - 数据集中每个功能类型的计数。
下面是返回 3 个数据集资源 timestamp
、datasetId
、description
、datasetSources
和 ontology
的示例响应:
{
"datasets": [
{
"timestamp": "2020-01-01T22:50:48.123Z",
"datasetId": "f6495f62-94f8-0ec2-c252-45626f82fcb2",
"description": "Some description or comment for the dataset.",
"datasetSources": {
"conversionIds": [
"15d21452-c9bb-27b6-5e79-743ca5c3205d"
], },
"": "facility-2.0",
"featureCounts": {
"directoryInfo": 2,
"category": 10,
"facility": 1,
"level": 3,
"unit": 183,
"zone": 3,
"verticalPenetration": 6,
"opening": 48,
"areaElement": 108
}
},
{
"timestamp": "2020-01-01T22:57:53.123Z",
"datasetId": "8b1288fa-1958-4a2b-b68e-13a7i5af7d7c",
"description": "Create from upload '0c1288fa-2058-4a1b-b68d-13a5f5af7d7c'.",
"datasetSources": {
"conversionIds": [
"0c1288fa-2058-4a1b-b68d-13a5f5af7d7c"
],
"appendDatasetId": "46d1edb6-d29e-4786-9589-dbd4efd7a977"
},
"ontology": "facility-2.0",
"featureCounts": {
"directoryInfo": 2,
"category": 10,
"facility": 1,
"level": 3,
"unit": 183,
"zone": 3,
"verticalPenetration": 6,
"opening": 48,
"areaElement": 108
}
}
]
}
GET https://{geography}.atlas.microsoft.com/datasets?api-version=2.0
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
geography
|
path | True |
string |
此参数指定 Azure Maps Creator 资源所在的位置。 有效值是我们和欧盟。 |
api-version
|
query | True |
string |
Azure Maps API 的版本号。 |
请求头
名称 | 必需 | 类型 | 说明 |
---|---|---|---|
x-ms-client-id |
string |
指定哪个帐户与 Microsoft Entra ID 安全模型结合使用。 它表示 Azure Maps 帐户的唯一 ID,可以从 Azure Maps 管理平面帐户 API 检索。 若要在 Azure Maps 中使用 Microsoft Entra ID 安全性,请参阅以下 文章 以获取指导。 |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
数据集请求成功完成。 响应正文包含以前创建的数据集。 |
|
Other Status Codes |
发生意外错误。 |
安全性
AADToken
这些 Microsoft Entra OAuth 2.0 流。 与 Azure 基于角色的访问配对时, 控制它可用于控制对 Azure Maps REST API 的访问。 Azure 基于角色的访问控制用于指定对一个或多个 Azure Maps 资源帐户或子资源的访问。 任何用户、组或服务主体都可以通过内置角色或由一个或多个对 Azure Maps REST API 的权限组成的自定义角色授予访问权限。
若要实现方案,建议查看
备注
- 此安全定义 要求 使用
x-ms-client-id
标头来指示应用程序请求访问的 Azure Maps 资源。 这可以从 地图管理 API获取。
Authorization URL
特定于 Azure 公有云实例。 主权云具有唯一的授权 URL,Microsoft Entra ID 配置。
* Azure 基于角色的访问控制是通过 Azure 门户、PowerShell、CLI、Azure SDK 或 REST API 从 Azure 管理平面 配置的。
* 使用 azure Maps Web SDK 允许为多个用例设置基于应用程序的配置。
- 有关Microsoft标识平台的详细信息,请参阅 Microsoft标识平台概述。
类型:
oauth2
流向:
implicit
授权 URL:
https://login.microsoftonline.com/common/oauth2/authorize
作用域
名称 | 说明 |
---|---|
https://atlas.microsoft.com/.default | https://atlas.microsoft.com/.default |
subscription-key
这是在 Azure 门户中或使用 PowerShell、CLI、Azure SDK 或 REST API 创建 Azure Maps 帐户 时预配的共享密钥。
使用此密钥,任何应用程序都可以访问所有 REST API。 换句话说,此密钥可用作颁发密钥的帐户中的主密钥。
对于公开的应用程序,我们建议使用 机密客户端应用程序 方法来访问 Azure Maps REST API,以便安全地存储密钥。
类型:
apiKey
在:
query
SAS Token
这是一个共享访问签名令牌,它通过 Azure 门户、PowerShell、CLI、Azure SDK 或 REST API 通过 Azure 管理平面在 azure Maps 资源
使用此令牌,任何应用程序都有权使用 Azure 基于角色的访问控制进行访问,并精细控制特定令牌的过期、速率和区域。 换句话说,SAS 令牌可用于允许应用程序以比共享密钥更安全的方式控制访问。
对于公开的应用程序,建议在 映射帐户资源 上配置允许的源的特定列表,以限制呈现滥用并定期续订 SAS 令牌。
类型:
apiKey
在:
header
示例
List all the previously created datasets
示例请求
GET https://us.atlas.microsoft.com/datasets?api-version=2.0
示例响应
{
"datasets": [
{
"created": "2021-05-21T03:04:05.678Z",
"datasetId": "f6495f62-94f8-0ec2-c252-45626f82fcb2",
"description": "Some description or comment for the dataset.",
"datasetSources": {
"conversionIds": [
"db63843c-3c70-4b4e-94ff-dfcf4013c4a9"
]
},
"featureCounts": {
"directoryInfo": 1,
"category": 18,
"facility": 1,
"level": 6,
"unit": 775,
"opening": 471,
"areaElement": 496
},
"ontology": "facility-2.0"
},
{
"created": "2021-05-21T03:04:05.678Z",
"datasetId": "7c1288fa-2058-4a1b-b68f-13a6h5af7d7c",
"description": "Some other description or comment for the dataset.",
"datasetSources": {
"conversionIds": [
"15d21452-c9bb-27b6-5e79-743ca5c3205d"
],
"appendDatasetId": "8b1288fa-1958-4a2b-b68e-13a7i5af7d7c"
},
"featureCounts": {
"directoryInfo": 2,
"category": 10,
"facility": 1,
"level": 3,
"unit": 183,
"zone": 3,
"verticalPenetration": 6,
"opening": 48,
"areaElement": 108
},
"ontology": "facility-2.0"
}
]
}
定义
名称 | 说明 |
---|---|
Dataset |
数据集的详细信息。 |
Dataset |
数据集列表 API 的响应模型。 响应正文将包含以前创建的所有数据集的列表。 |
Dataset |
有关数据集创建请求的详细信息。 |
Error |
资源管理错误附加信息。 |
Error |
错误详细信息。 |
Error |
错误响应 |
Dataset
数据集的详细信息。
名称 | 类型 | 说明 |
---|---|---|
created |
string (date-time) |
为数据集创建时间戳。 |
datasetId |
string |
数据集的 ID。 |
datasetSources |
有关数据集创建请求的详细信息。 |
|
description |
string |
数据集的说明。 |
featureCounts |
object |
数据集的功能计数。 |
ontology |
string |
此数据集的本体版本。 |
DatasetListResult
数据集列表 API 的响应模型。 响应正文将包含以前创建的所有数据集的列表。
名称 | 类型 | 说明 |
---|---|---|
datasets |
Dataset[] |
以前创建的所有数据集的列表。 |
nextLink |
string |
如果存在,则为下一页数据的位置。 |
DatasetSources
有关数据集创建请求的详细信息。
名称 | 类型 | 说明 |
---|---|---|
appendDatasetId |
string |
追加到创建当前数据集的数据集。 |
conversionIds |
string[] |
用于创建数据集的 |
ErrorAdditionalInfo
资源管理错误附加信息。
名称 | 类型 | 说明 |
---|---|---|
info |
object |
其他信息。 |
type |
string |
其他信息类型。 |
ErrorDetail
错误详细信息。
名称 | 类型 | 说明 |
---|---|---|
additionalInfo |
错误附加信息。 |
|
code |
string |
错误代码。 |
details |
错误详细信息。 |
|
message |
string |
错误消息。 |
target |
string |
错误目标。 |
ErrorResponse
错误响应
名称 | 类型 | 说明 |
---|---|---|
error |
错误对象。 |