你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Data Registry - Get Operation
使用 检查 数据寄存器或替换 请求的状态。
API Get Operation
是一个 HTTP GET
请求,用于获取 数据寄存器的状态或替换 请求在寄存器或替换响应的 标头中作为键的值 Operation-Location
返回。 在进行过程中,HTTP 200 OK
响应将返回标头 Retry-After
-完成后返回没有额外标头的 HTTP 200 OK
。
数据注册表服务终结点的范围仅限于 Azure Maps 帐户的区域,不适用于全局 Azure Maps 帐户。
GET https://{geography}.atlas.microsoft.com/dataRegistries/operations/{operationId}?api-version=2023-06-01
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
geography
|
path | True |
string |
此参数指定 Azure Maps 帐户所在的位置。 有效值为 us (美国东部、美国中西部、美国西部 2) 和 eu (North Europe、West Europe) 。 |
operation
|
path | True |
string |
用于查询数据注册请求状态的 ID。 正则表达式模式: |
api-version
|
query | True |
string |
Azure Maps API 的版本号。 |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
长时间运行的操作的状态。 标头 Retry-After: integer |
|
Other Status Codes |
发生了意外错误。 标头 x-ms-error-code: string |
安全性
AADToken
这些是 Microsoft Entra OAuth 2.0 流。 与 Azure 基于角色的访问控制 配对时,它可用于控制对 Azure Maps REST API 的访问。 Azure 基于角色的访问控制用于指定对一个或多个 Azure Maps 资源帐户或子资源的访问权限。 可以通过内置角色或由 Azure Maps REST API 的一个或多个权限组成的自定义角色授予任何用户、组或服务主体的访问权限。
若要实现方案,建议查看 身份验证概念。 总之,此安全定义提供了一种解决方案,用于通过能够对特定 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 管理平面创建 Azure Maps 资源 时预配的共享密钥。
使用此密钥,任何应用程序都有权访问所有 REST API。 换句话说,这些密钥当前可被视为颁发帐户的主密钥。
对于公开的应用程序,我们建议使用 Azure Maps REST API 的服务器到服务器访问,以便安全地存储此密钥。
类型:
apiKey
在:
header
SAS Token
这是通过 Azure 门户、PowerShell、CLI、Azure SDK 或 REST API 通过 Azure 管理平面通过 Azure Maps 资源 上的列出 SAS 操作创建的共享访问签名令牌。
使用此令牌,任何应用程序都有权使用 Azure 基于角色的访问控制进行访问,并精细控制特定令牌的过期、速率和区域 () 。 换句话说,SAS 令牌可用于允许应用程序以比共享密钥更安全的方式控制访问。
对于公开的应用程序,我们建议在 Map 帐户资源 上配置允许的来源的特定列表,以限制呈现滥用,并定期续订 SAS 令牌。
类型:
apiKey
在:
header
示例
Get the status of an operation that failed |
Get the status of an operation that finished successfully |
Get the status of an operation that is still running |
Get the status of an operation that failed
示例请求
GET https://us.atlas.microsoft.com/dataRegistries/operations/0522b4fe-0539-4c6c-ba70-e35ec865d8e2?api-version=2023-06-01
示例响应
{
"id": "0522b4fe-0539-4c6c-ba70-e35ec865d8e2",
"status": "Failed",
"error": {
"code": "InvalidData",
"message": "The data is not a valid GeoJSON."
}
}
Get the status of an operation that finished successfully
示例请求
GET https://us.atlas.microsoft.com/dataRegistries/operations/0522b4fe-0539-4c6c-ba70-e35ec865d8e2?api-version=2023-06-01
示例响应
{
"id": "0522b4fe-0539-4c6c-ba70-e35ec865d8e2",
"status": "Completed"
}
Get the status of an operation that is still running
示例请求
GET https://us.atlas.microsoft.com/dataRegistries/operations/0522b4fe-0539-4c6c-ba70-e35ec865d8e2?api-version=2023-06-01
示例响应
Retry-After: 10
{
"id": "0522b4fe-0539-4c6c-ba70-e35ec865d8e2",
"status": "Running"
}
定义
名称 | 说明 |
---|---|
Long |
长时间运行的操作的响应模型。 |
Long |
长时间运行的操作的状态。 |
Maps |
错误详细信息。 |
Maps |
Azure Maps API 的常见错误响应,用于返回失败操作的错误详细信息。 |
Maps |
一个 对象,该对象包含比当前对象更具体的错误信息。 |
LongRunningOperationResult
长时间运行的操作的响应模型。
名称 | 类型 | 说明 |
---|---|---|
error |
错误详细信息。 |
|
id |
string |
operationId |
status |
长时间运行的操作的状态。 |
LongRunningOperationStatus
长时间运行的操作的状态。
名称 | 类型 | 说明 |
---|---|---|
Completed |
string |
请求已成功完成。 |
Failed |
string |
请求有一个或多个失败。 |
Running |
string |
请求当前正在处理。 |
MapsErrorDetail
错误详细信息。
名称 | 类型 | 说明 |
---|---|---|
code |
string |
服务器定义的一组错误代码中的一个。 |
details |
有关导致此项报告错误的特定错误的详细信息数组。 |
|
innererror |
一个 对象,该对象包含比当前对象更具体的错误信息。 |
|
message |
string |
错误的用户可读表示形式。 |
target |
string |
错误的目标。 |
MapsErrorResponse
Azure Maps API 的常见错误响应,用于返回失败操作的错误详细信息。
名称 | 类型 | 说明 |
---|---|---|
error |
错误详细信息。 |
MapsInnerError
一个 对象,该对象包含比当前对象更具体的错误信息。
名称 | 类型 | 说明 |
---|---|---|
code |
string |
错误代码。 |
innererror |
一个 对象,该对象包含比当前对象更具体的错误信息。 |