本示例介绍如何通过Python SDK来管理集群云资源Tag。
安装 Python 3
安装 ack-tag-tool
git clone https://github.com/AliyunContainerService/ack-tag-tool
cd ack-tag-tool
pip3 install -r requirements.txt
ack-tag-tool
是一个简单的示意性的工具,通过Python SDK展示了如何操作和访问ACK集群中的资源,其中涉及了一系列 Python SDK 的代码示例。
export ACCESS_KEY_ID=xxxxxx
export ACCESS_KEY_SECRET=xxxxxx
$ python3 main.py --cluster_id=xxxxxx --region=cn-beijing --key=test-key --value=test-value
python3 main.py --cluster_id=xxxxxx --region=cn-beijing --key=test-key --value=test-value -s