Datasets - Delete
删除给定数据集 ID 的数据集。
DELETE {endpoint}/datasets/{datasetId}?api-version=2023-11-01-preview
URI 参数
| 名称 | 在 | 必需 | 类型 | 说明 |
|---|---|---|---|---|
|
dataset
|
path | True |
string |
要删除的数据集的 ID。 |
|
endpoint
|
path | True |
string (uri) |
命名空间的主机名,例如 admaInstanceName.farmbeats.azure.net |
|
api-version
|
query | True |
string |
请求的 API 版本 |
请求头
| 名称 | 必需 | 类型 | 说明 |
|---|---|---|---|
| Authorization | True |
string |
请为授权的 API 调用提供有效的持有者令牌。 请注意,如果之前尝试了未经身份验证的调用,可能需要清除浏览器缓存。 |
响应
| 名称 | 类型 | 说明 |
|---|---|---|
| 204 No Content |
无内容 |
|
| Other Status Codes |
错误 标头 x-ms-error-code: string |
安全性
Authorization
请为授权的 API 调用提供有效的持有者令牌。 请注意,如果之前尝试了未经身份验证的调用,可能需要清除浏览器缓存。
类型:
apiKey
在:
header
示例
Datasets_Delete
示例请求
DELETE {endpoint}/datasets/Dataset1?api-version=2023-11-01-preview
示例响应
定义
| 名称 | 说明 |
|---|---|
| Error |
Azure AgPlatform 服务中的错误。 |
|
Error |
Azure AgPlatform 服务的错误响应。 请参阅 errorResponse 参考文档 https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses。 |
|
Inner |
包含错误列表的内部错误。请参阅 innerError 参考文档 https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#innererror--object。 |
Error
Azure AgPlatform 服务中的错误。
| 名称 | 类型 | 说明 |
|---|---|---|
| code |
string minLength: 1 |
服务器定义的错误代码集。 |
| details |
Error[] |
导致此报告错误的特定错误的详细信息数组。 |
| innererror |
包含错误列表的内部错误。请参阅 innerError 参考文档 https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#innererror--object。 |
|
| message |
string minLength: 1 |
错误的人工可读表示形式。 |
| target |
string |
错误的目标。 |
ErrorResponse
Azure AgPlatform 服务的错误响应。 请参阅 errorResponse 参考文档 https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses。
| 名称 | 类型 | 说明 |
|---|---|---|
| error |
Azure AgPlatform 服务中的错误。 |
|
| traceId |
string |
唯一跟踪 ID。 |
InnerError
包含错误列表的内部错误。请参阅 innerError 参考文档 https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#innererror--object。
| 名称 | 类型 | 说明 |
|---|---|---|
| code |
string |
包含的错误提供的特定错误代码。 |
| innererror |
包含错误列表的内部错误。请参阅 innerError 参考文档 https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#innererror--object。 |