Skip to main content
Astra Automation
本产品推出了新版本。
简体中文版经机器翻译而成,仅供参考。如与英语版出现任何冲突,应以英语版为准。

删除应用程序的 AppMirror 资源

DELETE /accounts/{account_id}/k8s/v1/apps/{app_id}/appMirrors/{appMirror_id}

删除指定的 AppMirror API 资源。启动一个进程以异步删除 AppMirror 资源,以及由于 AppMirror 关系而在源和目标集群上创建的任何资源。删除的资源取决于删除时关系的状态。

副作用

  • stateDesired 字段设置为"deleted"。

  • 状态字段设置为"删除"。

  • 如果状态为“established”,则由 AppMirror 关系创建的 TridentMirrorRelationships 和 PersistentVolumeClaims 将被删除。

  • 如果状态为“failedOver”,则由AppMirror关系创建的TridentMirrorRelationships将被删除,目标应用中的PersistentVolumeClaims将被保留。

  • 异步删除操作完成后,将从源应用程序和目标应用程序中删除 AppMirror API 资源。

参数

名称 Type Required Description

account_id

string

path

True

包含帐户资源的 ID

  • 示例:{{.Account}}

app_id

string

path

True

包含应用程序资源的 ID

appMirror_id

string

path

True

要列出的 appMirror 集合的 ID

响应

Status: 204, Indicates if the appMirror resource was deleted.

响应

Status: 401, Unauthorized
名称 Type Required Description

type

string

True

标题

string

True

详细信息

string

True

状态

string

True

correlationID

string

False

响应示例
{
  "type": "https://astra.netapp.io/problems/3",
  "title": "Missing bearer token",
  "detail": "The request is missing the required bearer token.",
  "status": "401"
}

响应

Status: 400, Bad request
名称 Type Required Description

type

string

True

标题

string

True

详细信息

string

True

状态

string

True

correlationID

string

False

invalidParams

数组["invalidParams"]

False

无效查询参数列表

响应示例
{
  "type": "https://astra.netapp.io/problems/5",
  "title": "Invalid query parameters",
  "detail": "The supplied query parameters are invalid.",
  "status": "400"
}

响应

Status: 403, Forbidden
名称 Type Required Description

type

string

True

标题

string

True

详细信息

string

True

状态

string

True

correlationID

string

False

响应示例
{
  "type": "https://astra.netapp.io/problems/11",
  "title": "Operation not permitted",
  "detail": "The requested operation isn't permitted.",
  "status": "403"
}

错误

Status: 404, Not found
名称 Type Required Description

type

string

True

标题

string

True

详细信息

string

True

状态

string

True

correlationID

string

False

错误响应示例
{
  "type": "https://astra.netapp.io/problems/1",
  "title": "Resource not found",
  "detail": "The resource specified in the request URI wasn't found.",
  "status": "404"
}

定义

查看定义

invalidParams

名称 Type Required Description

name

string

True

无效查询参数的名称

原因

string

True

查询参数无效的原因