Skip to content

Commit ca48f16

Browse files
authored
Merge branch 'trunk' into master
2 parents e73f1b5 + ef8405e commit ca48f16

File tree

4 files changed

+2829
-1
lines changed

4 files changed

+2829
-1
lines changed

README.rst

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ Service 服务
6262
| cn-shanghai-2 | 上海2区 |
6363
+-------------------+------------+
6464

65+
6566
+ 已支持服务列表 service_name,具体方法与API的Action对应,如kec服务RunInstances对应为run_instances方法。 `详情参考API手册 <http://docs.ksyun.com>`__
6667

6768
+-------------------+----------------+
@@ -88,6 +89,7 @@ Service 服务
8889
| offline | 视频转码 |
8990
+-------------------+----------------+
9091

92+
9193
----------------
9294
Method 方法
9395
----------------
@@ -215,7 +217,23 @@ Examples 示例
215217
#获取模板信息接口调用示例 : get_preset_detail
216218
res = client.get_preset_detail(preset = presetname)
217219
print json.dumps(res)
220+
221+
+ CDN
222+
223+
::
224+
225+
from kscore.session import get_session
218226

227+
if __name__ == "__main__":
228+
# CDN API调用 详细示例位于 ./examples/cdn.py
229+
s = get_session()
230+
231+
client = s.create_client("cdn", use_ssl=False)
232+
233+
res = client.get_cdn_domains(PageSize=20,PageNumber=0,DomainStatus='online',CdnType='download')
234+
235+
print res
236+
219237
+ 更多
220238

221239
--------------------

0 commit comments

Comments
 (0)