Apps - Delete
删除 IoT Central 应用程序。
DELETE https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/iotApps/{resourceName}?api-version=2021-06-01
URI 参数
| 名称 | 在 | 必需 | 类型 | 说明 |
|---|---|---|---|---|
|
resource
|
path | True |
string |
包含 IoT Central 应用程序的资源组的名称。 |
|
resource
|
path | True |
string |
IoT Central 应用程序的 ARM 资源名称。 |
|
subscription
|
path | True |
string |
订阅标识符。 |
|
api-version
|
query | True |
string |
API 的版本。 |
响应
| 名称 | 类型 | 说明 |
|---|---|---|
| 200 OK |
这是作为对删除作的状态轮询请求的响应返回的。 正文包含指示过渡性预配状态的资源表示形式。 |
|
| 202 Accepted |
已接受 - 删除已接受的请求;作将以异步方式完成。 |
|
| 204 No Content |
长时间运行的删除作成功完成后,当状态轮询请求在服务中找到 IoT Central 应用程序元数据并将删除作的状态设置为已完成状态时,将返回 204“无内容”状态代码。 |
|
| Other Status Codes |
DefaultErrorResponse |
安全性
azure_auth
Azure Active Directory OAuth2 流
类型:
oauth2
流向:
implicit
授权 URL:
https://login.microsoftonline.com/common/oauth2/authorize
作用域
| 名称 | 说明 |
|---|---|
| user_impersonation | 模拟用户帐户 |
示例
Apps_Delete
示例请求
DELETE https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resRg/providers/Microsoft.IoTCentral/iotApps/myIoTCentralApp?api-version=2021-06-01
示例响应
message: Created
code: 200
{
"error": {
"code": "Error code",
"message": "Error message",
"target": "Error target"
}
}
定义
| 名称 | 说明 |
|---|---|
|
Cloud |
错误详细信息。 |
|
Cloud |
错误响应的详细信息。 |
CloudError
错误详细信息。
| 名称 | 类型 | 说明 |
|---|---|---|
| error.code |
string |
错误代码。 |
| error.details |
有关错误的其他详细信息的列表。 |
|
| error.message |
string |
错误消息。 |
| error.target |
string |
特定错误的目标。 |
CloudErrorBody
错误响应的详细信息。
| 名称 | 类型 | 说明 |
|---|---|---|
| code |
string |
错误代码。 |
| details |
有关错误的其他详细信息的列表。 |
|
| message |
string |
错误消息。 |
| target |
string |
特定错误的目标。 |