获取应用角色与运行时相关信息
更新时间:2019-06-14
获取应用角色与运行时相关信息
查看应用角色、运行时信息
方法 | API | 说明 |
---|---|---|
GET | /v1/runtime | 查看应用角色、运行时信息 |
返回参数
参数名称 | 参数类型 | 说明 |
---|---|---|
appRoles | List<appRole> | 请参看“appRole参数列表” |
appRole参数列表
参数名称 | 参数类型 | 说明 |
---|---|---|
approle | String | 应用类型,目前仅支持Web |
runtimes | List<runtime> | 请参看“runtime参数列表” |
runtime参数列表
参数名称 | 参数类型 | 说明 |
---|---|---|
runtime | String | runtime类型,目前可取(java7, java8, nodejs4, php5.4, php5.5, php5.6, php7.0, python2.7) |
description | String | runtime描述信息 |
请求示例
Plain Text
1GET /v1/runtime HTTP/1.1
2HOST: baepro.bj.baidubce.com
3Authorization: {authorization}
4Content-Type: application/json; charset=utf-8
5x-bce-date: 2016-06-01T23:00:10Z
返回示例
Plain Text
1HTTP/1.1 200 OK
2Content-Type: application/json; charset=utf-8
3x-bce-request-id: 9ebc57ed-1ff5-480f-b5b1-6847ff54f2b4
4
5{
6 "appRoles": [
7 {
8 "appRole": "Web",
9 "runtimes": [
10 {
11 "runtime": "java7",
12 "description": "具体版本:oracle-jdk-7u79, tomcat-7.0.47, lighttpd-1.5"
13 },
14 {
15 "runtime": "java8",
16 "description": "具体版本:oracle-jdk-8u66, tomcat-8.0.28, lighttpd-1.5"
17 },
18 {
19 "runtime": "nodejs4",
20 "description": "具体版本:node-4.2.2, npm-2.14.7, lighttpd-1.5"
21 },
22 {
23 "runtime": "php5.4",
24 "description": "具体版本:php-5.4.20, lighttpd-1.5"
25 },
26 {
27 "runtime": "php5.5",
28 "description": "具体版本:php-5.5.30, lighttpd-1.5"
29 },
30 {
31 "runtime": "php5.6",
32 "description": "具体版本:php-5.6.19, lighttpd-1.5"
33 },
34 {
35 "runtime": "php7.0",
36 "description": "具体版本:php-7.0.4, lighttpd-1.5"
37 },
38 {
39 "runtime": "python2.7",
40 "description": "具体版本:python-2.7.11, pip-7.1.2, gunicorn-19.4.4, lighttpd-1.5"
41 }
42 ]
43 }
44 ]
45}