接口
get_app_revisions
参数
参数 | 类型 | 是否必须 | 描述 |
---|---|---|---|
app_name | string | 是 | App 标识符。 |
返回值
get_app_revisions 方法将返回一个GetResponse
对象。
例子
Python源码:
import time
import batchcompute
from batchcompute import CN_SHENZHEN as REGION
from batchcompute import Client, ClientError
ACCESS_KEY_ID = 'Your Access Key Id'
ACCESS_KEY_SECRET = 'Your Access Key Secret'
client = Client(REGION, ACCESS_KEY_ID, ACCESS_KEY_SECRET)
def get_app_revisions():
try:
app_name = "test-copy"
rsp = client.get_app_revisions(app_name)
print rsp
except ClientError, e:
print (e.get_status_code(), e.get_code(), e.get_requestid(), e.get_msg())
if __name__ == '__main__':
get_app_revisions()
执行结果:
{
"Date": "Tue, 13 Nov 2018 06:43:29 GMT",
"Items": [
{
"UpdateTime": "2018-11-13 11:40:11.976941",
"Revision": 0
},
{
"UpdateTime": "2018-11-13 11:40:20.301549",
"Revision": 1
}
],
"NextMarker": "",
"RequestId": "42D74A70-5ABB-4F2E-B7D5-B4133B569FFD",
"StatusCode": 200
}
文档内容是否对您有帮助?