首页 删除App

删除App

更新时间: 2018-11-18 00:15:30

接口

delete_app

参数

参数 类型 是否必须 描述
app_name string App 标识符。

返回值

delete_app 方法将返回一个 ActionResponse 对象, ActionResponse 仅提供了 requestId 和状态码两个属性。

例子

Python源码:

  1. import time
  2. import string
  3. import random
  4. import batchcompute
  5. from batchcompute import CN_SHENZHEN as REGION
  6. from batchcompute import Client, ClientError
  7. #from batchcompute.resources import (AppDescription, InputParameter, OutputParameter)
  8. ACCESS_KEY_ID = 'Your Access Key Id'
  9. ACCESS_KEY_SECRET = 'Your Access Key Secret'
  10. client = Client(REGION, ACCESS_KEY_ID, ACCESS_KEY_SECRET)
  11. def delete_app():
  12. try:
  13. app_name = 'test-copy'
  14. #qualifier = '0'
  15. #rsp = client.delete_app(app_name, qualifier)
  16. rsp = client.delete_app(app_name)
  17. print rsp
  18. return True
  19. except ClientError, e:
  20. print (e.get_status_code(), e.get_code(), e.get_requestid(), e.get_msg())
  21. return False
  22. if __name__ == '__main__':
  23. delete_app()

执行结果:

  1. {
  2. "Date": "Tue, 13 Nov 2018 06:47:49 GMT",
  3. "RequestId": "B3E48F68-B017-4785-8B06-43B88F4C46B1",
  4. "StatusCode": 204
  5. }
阿里云首页 批量计算 相关技术圈