519
iPhone_iPad_Mac_apple
废弃堆栈__堆栈相关接口_API 文档_资源编排-阿里云
废弃堆栈
描述:废弃某个stack,但是保留堆栈下所有资源
请求参数
名称 |
位置 |
类型 |
是否必须 |
描述 |
---|
StackName |
URI |
String |
是 |
堆栈名称,需符合该正则表达式^[a-zA-Z][a-zA-Z0-9_.-]*$,最大不超过255个字符。 |
---|
StackId |
URI |
String |
是 |
堆栈ID |
---|
RegionId |
Query |
String |
是 |
堆栈创建时指定的地域 |
---|
返回参数
名称 |
参数类型 |
描述 |
---|
Id |
String |
stack的ID |
---|
Name |
String |
stack的名称 |
---|
Action |
String |
行为 |
---|
Status |
String |
状态 |
---|
Template |
Json |
|
---|
Resources |
Json |
资源 |
---|
Environment |
Json |
资源 |
---|
错误码
错误代码 |
描述 |
Http状态码 |
语义 |
---|
InternalError |
Server error |
500 |
服务器端出现未知异常 |
---|
StackNotFound |
The Stack (%(stack_name)s) could not be found. |
404 |
Stack不存在 |
---|
示例
请求示例
DELETE https://ros.aliyuncs.com/stacks/myStack/28087440-3701-40ef-bbe8-6e80787d307f/abandon 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 200 OK
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)
{
"Status" : "COMPLETE",
"Name" : "test",
"Environment" : {
"parameter_defaults" : {},
"parameters" : {},
"resource_registry" : {
"resources" : {}
}
},
"Template" : {
"Outputs" : {
"secret1_v" : {
"Description" : "secret1",
"Value" : {
"get_attr" : ["secret1", "value"]
}
}
},
"Resources" : {
"secret1" : {
"Type" : "ALIYUN::RandomString"
},
"securet3" : {
"Type" : "ALIYUN::RandomString",
"Properties" : {
"length" : 100,
"sequence" : "octdigits"
}
},
"securet2" : {
"Type" : "ALIYUN::RandomString",
"Properties" : {
"length" : 10
}
}
},
"ROSTemplateFormatVersion" : "2015-09-01"
},
"Action" : "CREATE",
"Id" : "698ac08a-239d-4f2c-9609-afda80823531",
"Resources" : {
"secret1" : {
"status" : "COMPLETE",
"name" : "secret1",
"resource_data" : {
"value" : "ccsE2UZXxWX4oqu0lUpFqaZFulSc70jx"
},
"resource_id" : "test-secret1-x7equc4ngnfw",
"action" : "CREATE",
"type" : "ALIYUN::RandomString",
"metadata" : {}
},
"securet3" : {
"status" : "COMPLETE",
"name" : "securet3",
"resource_data" : {
"value" : "asfdasdf"
},
"resource_id" : "test-securet3-hj5nvc7xaerg",
"action" : "CREATE",
"type" : "ALIYUN::RandomString",
"metadata" : {}
},
"securet2" : {
"status" : "COMPLETE",
"name" : "securet2",
"resource_data" : {
"value" : "qGOkT6QX61"
},
"resource_id" : "test-securet2-xehhwo52odw6",
"action" : "CREATE",
"type" : "ALIYUN::RandomString",
"metadata" : {}
}
}
}
最后更新:2016-11-23 17:16:06