Cloud Ksyun

通过 ksyun CLI 管理金山云资源,包括云服务器、对象存储、负载均衡、云数据库和 VPC。

Scoheart Updated 2 repo stars

File contents

金山云 Operator Skill

安装 CLI

pip install ks3client
# 或下载官方 CLI

认证

export KSYUN_ACCESS_KEY="your_access_key"
export KSYUN_SECRET_KEY="your_secret_key"

常用命令

# 云服务器 KE
ksyun kec describe-instances
ksyun kec run-instances --image-id xxx --instance-type S1.SMALL1
ksyun kec terminate-instances --instance-id xxx

# 对象存储 KS3
ksyun ks3 ls
ksyun ks3 mb s3://my-bucket
ksyun ks3 cp local-file s3://bucket/key

# 负载均衡
ksyun slb describe-loadbalancers

# 云数据库
ksyun kdb describe-db-instances

# VPC
ksyun vpc describe-vpcs

安全机制

  • 只读操作:直接执行
  • 写操作:先确认后执行

Scoheart/agentskills/tree/main/skills/cloud/cloud-ksyun commit d0eb95f080

Frequently asked questions

npx skillmds@latest add scoheart/cloud-ksyun