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