通过 DELETE 调用/stacks/{StackName}/{StackId} 删除某个资源栈,并同时删除资源栈下所有资源。

请求参数

名称 位置 类型 是否必须 描述
StackName URI String 资源栈名称,需符合该正则表达式 ^[a-zA-Z][a-zA-Z0-9_.-]*$。长度不超过 255 个字符。
StackId URI String 资源栈 ID。
RegionId Query String 创建资源栈时,指定的地域。

错误码

错误代码 描述 HTTP状态码 语义
InternalError Server error 500 服务器端出现未知异常。
StackNotFound The Stack (%(stack_name)s) could not be found. 404 资源栈不存在。
ActionInProgress Stack %(stack_name)s already has an action (%(action)s) in progress. 409 正在处理中,请稍后再试。
StopActionFailed Failed to stop stack (%(stack_name)s) on other engine (%(engine_id)s) 404 已有进程正在操作资源栈,无法停止,删除失败。

示例

请求示例

DELETE http://ros.aliyuncs.com/stacks/myStack/28087440-3701-40ef-bbe8-6e80787d307f HTTP/1.1
x-acs-signature-method: HMAC-SHA1
Authorization: acs ACSTQDkNtSMrZtwL:3TCZAbfoSw8bpVeg/X5Uag1KgM8=
Date: Fri, 11 Sep 2015 05:30:02 GMT
x-acs-signature-version: 1.0
x-sdk-client: Java/2.0.0
Accept: application/octet-stream
x-acs-version: 2015-09-01
Cache-Control: no-cache
Pragma: no-cache
User-Agent: Java/1.6.0_27
Host: ros.aliyuncs.com
Connection: keep-alive


返回示例

HTTP/1.1 204 No Content
Date: Fri, 11 Sep 2015 05:29:18 GMT
Content-Type: application/json; charset=UTF-8
Content-Length: 521
Connection: close
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: POST, GET, OPTIONS
Access-Control-Allow-Headers: X-Requested-With, X-Sequence, _aop_secret, _aop_signature
Access-Control-Max-Age: 172800
X-Acs-Request-Id: 8E3F90A8-2F10-443E-9F54-4895CFEFD342
Server: Jetty(7.2.2.v20101205)