Endpoints - Delete
删除由给定 ID 标识的终结点。
DELETE {endpoint}/customvoice/endpoints/{id}?api-version=2024-02-01-preview
URI 参数
| 名称 | 在 | 必需 | 类型 | 说明 |
|---|---|---|---|---|
|
endpoint
|
path | True |
string |
支持的认知服务终结点(协议和主机名,例如:https://eastus.api.cognitive.microsoft.com)。 |
|
id
|
path | True |
string (uuid) |
资源 ID,应为 UUID。 |
|
api-version
|
query | True |
string minLength: 1 |
用于此作的 API 版本。 |
请求头
| 名称 | 必需 | 类型 | 说明 |
|---|---|---|---|
| Ocp-Apim-Subscription-Key | True |
string |
在此处提供语音资源密钥。 |
响应
| 名称 | 类型 | 说明 |
|---|---|---|
| 204 No Content |
无内容 |
|
| Other Status Codes |
发生错误。 标头 x-ms-error-code: string |
安全性
Ocp-Apim-Subscription-Key
在此处提供语音资源密钥。
类型:
apiKey
在:
header
示例
Delete an endpoint
示例请求
DELETE {endpoint}/customvoice/endpoints/9f50c644-2121-40e9-9ea7-544e48bfe3cb?api-version=2024-02-01-preview
示例响应
定义
| 名称 | 说明 |
|---|---|
| Error |
顶级错误遵循Microsoft Azure REST API 指南,https://github.com/microsoft/api-guidelines/blob/vNext/azure/Guidelines.md#handling-errors提供。 这包含一个顶级错误,其中包含错误代码、消息、详细信息、目标和内部错误,其中包含更具描述性的详细信息。 |
|
Error |
顶级错误代码 |
|
Error |
错误响应遵循Microsoft Azure REST API 指南,https://github.com/microsoft/api-guidelines/blob/vNext/azure/Guidelines.md#handling-errors提供。 |
|
Inner |
内部错误遵循 Microsoft Azure REST API 指南,https://github.com/microsoft/api-guidelines/blob/vNext/azure/Guidelines.md#handling-errors提供。 这包含必需的属性错误代码、消息和可选属性目标、内部错误(可嵌套)。 |
Error
顶级错误遵循Microsoft Azure REST API 指南,https://github.com/microsoft/api-guidelines/blob/vNext/azure/Guidelines.md#handling-errors提供。 这包含一个顶级错误,其中包含错误代码、消息、详细信息、目标和内部错误,其中包含更具描述性的详细信息。
| 名称 | 类型 | 说明 |
|---|---|---|
| code |
顶级错误代码 |
|
| details |
Error[] |
有关错误和/或预期策略的其他支持详细信息。 |
| innererror |
内部错误遵循 Microsoft Azure REST API 指南,https://github.com/microsoft/api-guidelines/blob/vNext/azure/Guidelines.md#handling-errors提供。 这包含必需的属性错误代码、消息和可选属性目标、内部错误(可嵌套)。 |
|
| message |
string |
顶级错误消息。 |
| target |
string |
错误的源。 例如,如果模型无效,则为“model”或“model id”。 |
ErrorCode
顶级错误代码
| 值 | 说明 |
|---|---|
| BadRequest | |
| BadArgument | |
| Unauthorized | |
| Forbidden | |
| NotFound | |
| UnsupportedMediaType | |
| TooManyRequests | |
| InternalServerError | |
| ServiceUnavailable |
ErrorResponse
错误响应遵循Microsoft Azure REST API 指南,https://github.com/microsoft/api-guidelines/blob/vNext/azure/Guidelines.md#handling-errors提供。
| 名称 | 类型 | 说明 |
|---|---|---|
| error |
顶级错误遵循Microsoft Azure REST API 指南,https://github.com/microsoft/api-guidelines/blob/vNext/azure/Guidelines.md#handling-errors提供。 这包含一个顶级错误,其中包含错误代码、消息、详细信息、目标和内部错误,其中包含更具描述性的详细信息。 |
InnerError
内部错误遵循 Microsoft Azure REST API 指南,https://github.com/microsoft/api-guidelines/blob/vNext/azure/Guidelines.md#handling-errors提供。 这包含必需的属性错误代码、消息和可选属性目标、内部错误(可嵌套)。
| 名称 | 类型 | 说明 |
|---|---|---|
| code |
string |
用于帮助诊断的详细错误代码。 |
| innererror |
内部错误遵循 Microsoft Azure REST API 指南,https://github.com/microsoft/api-guidelines/blob/vNext/azure/Guidelines.md#handling-errors提供。 这包含必需的属性错误代码、消息和可选属性目标、内部错误(可嵌套)。 |
|
| message |
string |
详细的错误消息。 |
| target |
string |
错误的源。 例如,如果模型无效,则为“model”或“model id”。 |