Skip to content

Commit fb0ee1a

Browse files
author
刘一辰
committed
更新添加Tag服务。
1 parent fbaffc9 commit fb0ee1a

File tree

3 files changed

+51
-1
lines changed

3 files changed

+51
-1
lines changed

examples/tag.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# -*- encoding:utf-8 -*-
2+
3+
from kscore.session import get_session
4+
5+
if __name__ == "__main__":
6+
7+
s = get_session()
8+
9+
client = s.create_client("tag", region_name="cn-beijing-6", use_ssl=True)
10+
11+
print client.describe_tags()

kscore/data/endpoints.yaml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ partitions:
7272
defaults:
7373
credentialScope:
7474
service: kec
75-
EndpointRegion: cn-beijing-6
7675
endpoints:
7776
cn-beijing-6:
7877
protocols:
@@ -133,3 +132,16 @@ partitions:
133132
cn-shanghai-2:
134133
protocols:
135134
- http
135+
tag:
136+
defaults:
137+
credentialScope:
138+
service: tag
139+
endpoints:
140+
cn-beijing-6:
141+
protocols:
142+
- http
143+
- https
144+
cn-shanghai-2:
145+
protocols:
146+
- http
147+
- https
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
version: '2.0'
3+
metadata:
4+
apiVersion: '2016-03-04'
5+
endpointPrefix: tag
6+
jsonVersion: '1.1'
7+
serviceFullName: Tag Service
8+
signatureVersion: v4
9+
targetPrefix: tag
10+
protocol: query-json
11+
12+
operations:
13+
CreateTags:
14+
http:
15+
method: GET
16+
DeleteTags:
17+
http:
18+
method: GET
19+
DescribeTags:
20+
http:
21+
method: GET
22+
DescribeTagValues:
23+
http:
24+
method: GET
25+
DescribeTagKeys:
26+
http:
27+
method: GET

0 commit comments

Comments
 (0)