天翼云CLI工具——企业级命令行工具,轻松管理天翼云资源。支持ECS、VPC、EBS、ELB、CCE、Redis、Kafka、CSS、EMR、监控、账务、IAM、Aone、CloudPC、AIServer等17大服务模块,覆盖397+ API、383+ 命令。
天翼云 CLI (ctyun-cli)是一项面向实际任务的技能,主要用于天翼云 CLI 工具,功能强大的企业级命令行工具,帮助您轻松管理天翼云资源;支持云服务器(ECS)、监控告警、安全防护、Redis分布式缓存、弹性负载均衡(ELB)、容器引擎(CCE)、VPC网络、费用查询等核心功能;
它将相关步骤、工具调用和结果整理方式集中到统一流程中,帮助使用者更快完成目标并减少重复操作。从功能定位来看,该技能强调把分散的操作要求整理成清晰、可复用的处理流程,使用户能够围绕既定目标快速准备输入、选择执行方式并获得结构化结果。实际使用前应先确认任务范围、数据来源、运行环境、必要权限和关键参数,再依据技能说明逐步执行;若输入条件不完整,应先补齐信息或采用保守配置,避免因错误假设导致结果偏离需求。
执行过程中需要关注工具调用是否成功、接口或依赖是否可用、输出格式是否符合预期,并对异常提示、缺失字段和边界情况进行处理;涉及批量任务时,还应保存进度,避免中断后重复操作。该技能适合用于一次性任务,也可以接入自动化工作流,与其他技能或上层代理配合完成更完整的业务链路;在组合使用时,应明确每一步的输入输出关系,并避免不同步骤之间出现参数冲突。
天翼云 CLI 工具,功能强大的企业级命令行工具,帮助您轻松管理天翼云资源。支持云服务器(ECS)、监控告警、安全防护、Redis分布式缓存、弹性负载均衡(ELB)、容器引擎(CCE)、VPC网络、费用查询等核心功能。
规模统计: 55,000+行代码,650+个API,580+个命令,29+大服务模块
pip install ctyun-cli
pipx install ctyun-cli
git clone https://github.com/fengyucn/ctyun-cli.git cd ctyun-cli pip install -e .
ctyun-cli --version ctyun-cli --help
export CTYUN_ACCESS_KEY=your_access_key export CTYUN_SECRET_KEY=your_secret_key
将上述命令添加到 ~/.bashrc 或 ~/.zshrc 以实现永久配置。
ctyun-cli configure --access-key YOUR_ACCESS_KEY --secret-key YOUR_SECRET_KEY --region cn-north-1
ctyun-cli show-config
ctyun-cli list-profiles
ctyun-cli test
所有命令都支持以下全局选项:
--profile TEXT: 指定配置文件名称--access-key TEXT: 访问密钥--secret-key TEXT: 密钥--region TEXT: 区域--endpoint TEXT: API 端点--output [table|json|yaml]: 输出格式(默认 table)--debug: 启用调试模式ctyun-cli ecs list ctyun-cli ecs list --region cn-north-1 --output json
ctyun-cli ecs detail --instance-id YOUR_INSTANCE_ID
ctyun-cli ecs multidetail --instance-ids ID1,ID2,ID3
ctyun-cli ecs statistics
ctyun-cli ecs regions
ctyun-cli ecs query-price --flavor-id FLAVOR_ID --quantity 1
ctyun-cli ecs renew-price --region-id REGION_ID --resource-type VM --resource-uuid RESOURCE_UUID --cycle-type MONTH --cycle-count 1
ctyun-cli vpc list ctyun-cli vpc new-list
ctyun-cli vpc show --vpc-id YOUR_VPC_ID
ctyun-cli vpc subnet --vpc-id YOUR_VPC_ID
ctyun-cli vpc security --vpc-id YOUR_VPC_ID
ctyun-cli vpc route-table --vpc-id YOUR_VPC_ID
ctyun-cli vpc eip
ctyun-cli vpc nat-gateway
ctyun-cli vpc peering
ctyun-cli vpc flow-log
ctyun-cli ebs list ctyun-cli ebs list --region cn-north-1 --output json
ctyun-cli elb loadbalancer --help ctyun-cli elb loadbalancer list
ctyun-cli elb listener --help
ctyun-cli elb targetgroup --help
ctyun-cli elb health-check --help
ctyun-cli elb monitor --help
# 创建询价 ctyun-cli elb pgelb-create-price --region-id REGION_ID --subnet-id SUBNET_ID --name my-elb --sla-name elb.s2.small --resource-type internal --cycle-type month --cycle-count 1 # 续订询价 ctyun-cli elb pgelb-renew-price --region-id REGION_ID --elb-id ELB_ID --cycle-type month --cycle-count 1 # 变配询价 ctyun-cli elb pgelb-modify-price --region-id REGION_ID --elb-id ELB_ID --sla-name elb.s3.small
# 访问控制 ctyun-cli elb list-access-controls --region-id REGION_ID ctyun-cli elb show-access-control --region-id REGION_ID --access-control-id AC_ID # 规格/证书 ctyun-cli elb list-sla --region-id REGION_ID ctyun-cli elb list-certificates --region-id REGION_ID ctyun-cli elb show-certificate --region-id REGION_ID --certificate-id CERT_ID ctyun-cli elb list-domain-cert-links --region-id REGION_ID # 转发规则/健康检查 ctyun-cli elb list-rules --region-id REGION_ID --listener-id LISTENER_ID ctyun-cli elb show-rule --region-id REGION_ID --policy-id POLICY_ID ctyun-cli elb list-health-checks --region-id REGION_ID # 旧版监控 ctyun-cli elb legacy-history-monitor --region-id REGION_ID --device-ids '["ID"]' --metric-names '["metric"]' --start-time 2026-07-01 --end-time 2026-07-17 ctyun-cli elb legacy-realtime-monitor --region-id REGION_ID # GWLB 网关负载均衡 ctyun-cli elb list-gwlb --region-id REGION_ID ctyun-cli elb show-gwlb --region-id REGION_ID --gwlb-id GWLB_ID ctyun-cli elb gwlb-list-targets --region-id REGION_ID ctyun-cli elb gwlb-show-target --region-id REGION_ID ctyun-cli elb gwlb-list-target-groups --region-id REGION_ID ctyun-cli elb gwlb-show-target-group --region-id REGION_ID # IP 监听器 ctyun-cli elb list-ip-listeners --region-id REGION_ID ctyun-cli elb show-ip-listener --region-id REGION_ID # 标签 ctyun-cli elb list-labels --region-id REGION_ID --elb-id ELB_ID
ctyun-cli cce list-clusters
ctyun-cli cce describe-cluster --cluster-id YOUR_CLUSTER_ID
ctyun-cli cce get-kubeconfig --cluster-id YOUR_CLUSTER_ID
ctyun-cli cce list-nodes --cluster-id YOUR_CLUSTER_ID
ctyun-cli cce get-node-detail --cluster-id CLUSTER_ID --node-id NODE_ID
ctyun-cli cce list-pods --cluster-id CLUSTER_ID
ctyun-cli cce list-deployments --cluster-id CLUSTER_ID
ctyun-cli cce list-services --cluster-id CLUSTER_ID
ctyun-cli cce logs --help
ctyun-cli cce nodepool --help
ctyun-cli cce autoscaling --help
ctyun-cli cce configmap --help
ctyun-cli cce tag --help
# 列出命名空间
ctyun-cli cce namespace list --cluster-id CLUSTER_ID --region-id REGION_ID
# 查询命名空间详情
ctyun-cli cce namespace show --cluster-id CLUSTER_ID --namespace-name default --region-id REGION_ID
# 创建命名空间
ctyun-cli cce namespace create --cluster-id CLUSTER_ID --region-id REGION_ID --namespace-yaml "apiVersion: v1
kind: Namespace
metadata:
name: my-namespace"
# 更新命名空间
ctyun-cli cce namespace update --cluster-id CLUSTER_ID --namespace-name my-namespace --region-id REGION_ID --namespace-yaml "apiVersion: v1
kind: Namespace
metadata:
name: my-namespace
labels:
env: production"
# 删除命名空间
ctyun-cli cce namespace delete --cluster-id CLUSTER_ID --namespace-name my-namespace --region-id REGION_ID
ctyun-cli redis list
ctyun-cli redis describe --instance-id YOUR_INSTANCE_ID ctyun-cli redis describe -i YOUR_INSTANCE_ID -f table
ctyun-cli redis network --instance-id YOUR_INSTANCE_ID ctyun-cli redis network -i YOUR_INSTANCE_ID --region-id RESOURCE_POOL_ID
ctyun-cli redis topology --instance-id YOUR_INSTANCE_ID
ctyun-cli redis cluster-nodes ctyun-cli redis cluster-nodes --page 1 --size 20
ctyun-cli redis create-instance --help
ctyun-cli redis zones
ctyun-cli redis engine-version --instance-id INSTANCE_ID ctyun-cli redis instance-version --instance-id INSTANCE_ID
ctyun-cli redis monitor-history --instance-id INSTANCE_ID
ctyun-cli redis diagnose --instance-id INSTANCE_ID
ctyun-cli redis clients --instance-id INSTANCE_ID
ctyun-cli redis node-list --prod-inst-id INSTANCE_ID --region-id REGION_ID
ctyun-cli redis log-download --prod-inst-id INSTANCE_ID --node-name NODE_NAME --date 2026-06-23
ctyun-cli redis replication-state --prod-inst-id INSTANCE_ID --fragment-name redis-0
ctyun-cli redis labels --region-id REGION_ID ctyun-cli redis labels -r REGION_ID --label-key APPNAME
ctyun-cli redis running-logs --prod-inst-id INSTANCE_ID --node-name NODE_NAME
ctyun-cli redis accounts --prod-inst-id INSTANCE_ID
# 订购询价 ctyun-cli redis price --order-type BUY --charge-type PrePaid --period 1 --edition DirectCluster --shard-mem-size 1 --shard-count 3 --engine-version 6.0 --capacity 3 # 变配询价 ctyun-cli redis price --order-type EXPANSION --prod-inst-id INSTANCE_ID
# 回收站实例 ctyun-cli redis recycle-bin --region-id REGION_ID ctyun-cli redis running-statistics --region-id REGION_ID ctyun-cli redis quota --region-id REGION_ID ctyun-cli redis dedicated-cluster-instances --region-id REGION_ID ctyun-cli redis export-task --task-id TASK_ID --region-id REGION_ID ctyun-cli redis auto-renew -i INSTANCE_ID --region-id REGION_ID ctyun-cli redis can-expand -i INSTANCE_ID --region-id REGION_ID ctyun-cli redis maintain-time -i INSTANCE_ID --region-id REGION_ID ctyun-cli redis maintain-az -i INSTANCE_ID --region-id REGION_ID ctyun-cli redis port-modify-range -i INSTANCE_ID --region-id REGION_ID
ctyun-cli redis backups -i INSTANCE_ID --region-id REGION_ID ctyun-cli redis backup-tasks -i INSTANCE_ID --region-id REGION_ID ctyun-cli redis backup-policy -i INSTANCE_ID --region-id REGION_ID ctyun-cli redis backup-download-url -i INSTANCE_ID --restore-name BACKUP_NAME --ip-type publicIp --region-id REGION_ID ctyun-cli redis data-flashback -i INSTANCE_ID --region-id REGION_ID
ctyun-cli redis ssl -i INSTANCE_ID --region-id REGION_ID ctyun-cli redis security-ips -i INSTANCE_ID --region-id REGION_ID ctyun-cli redis rename-command -i INSTANCE_ID --region-id REGION_ID
ctyun-cli redis slow-log -i INSTANCE_ID --node-name NODE_NAME --region-id REGION_ID ctyun-cli redis slow-log-history -i INSTANCE_ID --node-name NODE_NAME --start-time '2026-07-20 08:00:00' --end-time '2026-07-20 10:00:00' --region-id REGION_ID ctyun-cli redis command-audit-status -i INSTANCE_ID --region-id REGION_ID ctyun-cli redis monitor-items-v2 -i INSTANCE_ID --region-id REGION_ID ctyun-cli redis node-monitor-values -i INSTANCE_ID --type string --node-name NODE_NAME --start-time '...' --end-time '...' --region-id REGION_ID ctyun-cli redis node-command-list -i INSTANCE_ID --node-name NODE_NAME --start-time '...' --end-time '...' --region-id REGION_ID ctyun-cli redis node-command-monitor -i INSTANCE_ID --node-name NODE_NAME --start-time '...' --end-time '...' --type redis_latency_insight_max --region-id REGION_ID ctyun-cli redis hit-rate -i INSTANCE_ID --node-name NODE_NAME --region-id REGION_ID
ctyun-cli redis client-map -i INSTANCE_ID --node-name NODE_NAME --region-id REGION_ID
ctyun-cli redis instance-config-v3 -i INSTANCE_ID --region-id REGION_ID ctyun-cli redis param-history -i INSTANCE_ID --region-id REGION_ID ctyun-cli redis templates --type sys --region-id REGION_ID ctyun-cli redis templates --type custom --region-id REGION_ID ctyun-cli redis template-detail --template-id TEMPLATE_ID --region-id REGION_ID
ctyun-cli redis dbkey-count -i INSTANCE_ID --groups 1 --region-id REGION_ID ctyun-cli redis auto-scan-conf -i INSTANCE_ID --region-id REGION_ID ctyun-cli redis scan-logs -i INSTANCE_ID --region-id REGION_ID ctyun-cli redis eviction-strategy -i INSTANCE_ID --region-id REGION_ID ctyun-cli redis big-and-hot-keys -i INSTANCE_ID --region-id REGION_ID ctyun-cli redis big-hot-key-history -i INSTANCE_ID --node-name NODE_NAME --start-time '...' --end-time '...' --region-id REGION_ID
ctyun-cli redis big-key-tasks -i INSTANCE_ID --region-id REGION_ID ctyun-cli redis hot-key-tasks -i INSTANCE_ID --region-id REGION_ID ctyun-cli redis big-key-policy -i INSTANCE_ID --region-id REGION_ID ctyun-cli redis hot-key-policy -i INSTANCE_ID --region-id REGION_ID ctyun-cli redis key-task-record -i INSTANCE_ID --task-id TASK_ID --region-id REGION_ID ctyun-cli redis diagnosis-tasks -i INSTANCE_ID --region-id REGION_ID ctyun-cli redis offline-key-analysis-list -i INSTANCE_ID --region-id REGION_ID ctyun-cli redis offline-key-analysis-info -i INSTANCE_ID --task-id TASK_ID --region-id REGION_ID
ctyun-cli redis transfer-tasks --page-num 1 --page-size 10 --region-id REGION_ID ctyun-cli redis transfer-task-info --task-id TASK_ID --region-id REGION_ID ctyun-cli redis transfer-progress --task-id TASK_ID --region-id REGION_ID ctyun-cli redis transfer-running-log --task-id TASK_ID --search-date 2026-07-20 --region-id REGION_ID ctyun-cli redis task-center-list --start-time 20260701 --end-time 20260720 --status -1 --region-id REGION_ID ctyun-cli redis task-center-info --task-id TASK_ID --region-id REGION_ID
ctyun-cli redis experiments -i INSTANCE_ID --region-id REGION_ID
ctyun-cli monitor list
ctyun-cli monitor query-alarm-rules
ctyun-cli monitor query-alert-history
ctyun-cli monitor query-resource-groups
ctyun-cli monitor query-custom-trend
ctyun-cli monitor cpu-top
ctyun-cli monitor mem-top
ctyun-cli monitor disk-top
ctyun-cli monitor query-message-subscription ctyun-cli monitor describe-message-subscription
ctyun-cli monitor notice-pack-list ctyun-cli monitor notice-pack-used ctyun-cli monitor notice-pack-limit-detail
ctyun-cli monitor list-monitor-board ctyun-cli monitor query-monitor-board-sys-services ctyun-cli monitor query-monitor-board-view-data
ctyun-cli monitor query-ecs-list --region-id RESOURCE_POOL_ID ctyun-cli monitor query-pms-list --region-id RESOURCE_POOL_ID ctyun-cli monitor query-evs-list --region-id RESOURCE_POOL_ID ctyun-cli monitor query-eip-list --region-id RESOURCE_POOL_ID ctyun-cli monitor query-traffic-list --region-id RESOURCE_POOL_ID ctyun-cli monitor query-elb-list --region-id RESOURCE_POOL_ID ctyun-cli monitor query-listener-list --region-id RESOURCE_POOL_ID ctyun-cli monitor query-scaling-group-list --region-id RESOURCE_POOL_ID ctyun-cli monitor query-zos-user-list --region-id RESOURCE_POOL_ID ctyun-cli monitor query-zos-bucket-list --region-id RESOURCE_POOL_ID ctyun-cli monitor query-vpc-endpoint-list --region-id RESOURCE_POOL_ID ctyun-cli monitor query-vpc-endpoint-service-list --region-id RESOURCE_POOL_ID
ctyun-cli monitor query-monitor-items-by-device --region-id RESOURCE_POOL_ID
# 查询数据导出任务列表 ctyun-cli monitor data-export-tasks --region-id REGION_ID # 创建数据导出任务 ctyun-cli monitor create-data-export-task --region-id REGION_ID --task-name my-task # 删除数据导出任务 ctyun-cli monitor delete-data-export-task --region-id REGION_ID --task-ids TASK_ID1,TASK_ID2 # 下载导出文件 ctyun-cli monitor download-data-export-task --region-id REGION_ID --task-id TASK_ID
# 查询拨测点列表 ctyun-cli monitor query-detection-point # 查询即时拨测任务结果 ctyun-cli monitor query-instant-detection-task --task-id TASK_ID --detect-type http
ctyun-cli billing bill-summary 202606
ctyun-cli billing account-bill 202606 --account-id ACCOUNT_ID
ctyun-cli billing bill-detail BILL_ID
ctyun-cli billing cycle-flow 202606 --page-size 10
ctyun-cli billing cycle-bill 202606 --page-size 10
ctyun-cli billing cycle-product 202606
ctyun-cli billing ondemand-flow 202606 --page-size 10
ctyun-cli billing ondemand-product 202606
ctyun-cli billing bill-list 202606 --page-size 10
ctyun-cli billing ondemand-resource-cycle 202606
ctyun-cli billing ondemand-usage 202606
ctyun-cli billing ondemand-detail 202606
ctyun-cli iam list-projects
ctyun-cli iam get-project --project-id PROJECT_ID
ctyun-cli iam list-resources
ctyun-cli security examples
ctyun-cli security wrapper --help
ctyun-cli security tamper-update --help
# 服务器列表 ctyun-cli csscn list --size 20 # 服务器详情 ctyun-cli csscn describe --agent-guid AGENT_GUID
# 待处理风险统计 ctyun-cli csscn risk-stats # 服务器统计 ctyun-cli csscn server-stats # Agent防护状态统计 ctyun-cli csscn agent-stats # Agent在线/离线分布 ctyun-cli csscn agent-distribution # 漏洞统计 ctyun-cli csscn vuln-stats
# 告警列表 ctyun-cli csscn alarms --time-type LAST_ONE_WEEK --severity 3 # 病毒事件列表 ctyun-cli csscn viruses --os-type 3 --time-type LAST_ONE_MONTH
ctyun-cli csscn quotas --version 3 --size 20
ctyun-cli ctmysql list --region-id REGION_ID --page-size 10 ctyun-cli ctmysql list --region-id REGION_ID --engine 8.0 --name mysql-prod
# 绑定标签 ctyun-cli ctmysql batch-label --region-id REGION_ID --action bind --instance-ids ID1,ID2 --label env=prod # 解绑标签 ctyun-cli ctmysql batch-label --region-id REGION_ID --action unbind --instance-ids ID1 --label env=prod
ctyun-cli ctmysql batch-monitor --region-id REGION_ID --instance-ids ID1,ID2 --metric mysql_monitor_tcp_states --period 60 --last-hours 1
# 新建实例询价 ctyun-cli ctmysql inquiry --region-id REGION_ID --project-id 0 --bill-mode 1 --prod-version 5.7 --host-type S7 --period 1 --count 1 --auto-renew 0 --prod-id 10001003 --node-type master --inst-spec 1 --storage-type SATA --storage-space 100 --perf-spec 2C4G --az-name AZ_NAME # 变更实例询价(磁盘扩容) ctyun-cli ctmysql inquiry-upgrade --region-id REGION_ID --project-id 0 --inst-id INSTANCE_ID --disk-volume 200 --node-type master # 续费询价 ctyun-cli ctmysql inquiry-renew --region-id REGION_ID --inst-id INSTANCE_ID --month 1
ctyun-cli cda physical-line --help
ctyun-cli cda gateway --help
ctyun-cli cda vpc --help
ctyun-cli cda bgp-route --help
ctyun-cli cda static-route --help
ctyun-cli cda health-check --help
ctyun-cli cda account-auth --help
ctyun-cli kafka list --region-id RESOURCE_POOL_ID ctyun-cli kafka list -r xxx --name test --exact-match ctyun-cli kafka list -r xxx --status 1 --page 1 --size 20
ctyun-cli kafka node-status --region-id RESOURCE_POOL_ID --instance-id INSTANCE_ID
ctyun-cli kafka floating-ips --region-id RESOURCE_POOL_ID
ctyun-cli kafka config --region-id RESOURCE_POOL_ID --instance-id INSTANCE_ID
ctyun-cli css list --region-id RESOURCE_POOL_ID --type 1 ctyun-cli css list -r xxx --name test
ctyun-cli css describe --cluster-id CLUSTER_ID
ctyun-cli css logstash-list --region-id RESOURCE_POOL_ID
ctyun-cli emr list --region-id RESOURCE_POOL_ID ctyun-cli emr list -r xxx --name test --v2
ctyun-cli emr describe --cluster-id CLUSTER_ID ctyun-cli emr describe --cluster-id CLUSTER_ID --v2
ctyun-cli emr node-groups --cluster-id CLUSTER_ID ctyun-cli emr node-groups --cluster-id CLUSTER_ID --v2
ctyun-cli emr node-detail --cluster-id CLUSTER_ID ctyun-cli emr node-detail --cluster-id CLUSTER_ID --node-state 8
ctyun-cli emr meta-overview --cluster-id CLUSTER_ID
ctyun-cli emr meta-table --cluster-id CLUSTER_ID --database test_db --table test_table
ctyun-cli lts --help
ctyun-cli sfs --help
ctyun-cli oceanfs --help ctyun-cli oceanfs renew-price --region-id REGION_ID --sfs-uid FS_ID --cycle-type month --cycle-cnt 1 ctyun-cli oceanfs upgrade-price --region-id REGION_ID --sfs-uid FS_ID --sfs-size 100
# 查询所有桶 ctyun-cli zos list-buckets --region-id REGION_ID # 桶信息/位置/统计 ctyun-cli zos get-bucket-info --region-id REGION_ID --bucket BUCKET ctyun-cli zos get-bucket-location --region-id REGION_ID --bucket BUCKET ctyun-cli zos get-bucket-statistics --region-id REGION_ID --bucket BUCKET # 桶配置查询 ctyun-cli zos get-bucket-acl --region-id REGION_ID --bucket BUCKET ctyun-cli zos get-bucket-encryption --region-id REGION_ID --bucket BUCKET ctyun-cli zos get-bucket-lifecycle --region-id REGION_ID --bucket BUCKET ctyun-cli zos get-bucket-logging --region-id REGION_ID --bucket BUCKET ctyun-cli zos get-bucket-policy --region-id REGION_ID --bucket BUCKET ctyun-cli zos get-bucket-versioning --region-id REGION_ID --bucket BUCKET ctyun-cli zos get-bucket-tagging --region-id REGION_ID --bucket BUCKET ctyun-cli zos head-bucket --region-id REGION_ID --bucket BUCKET
# 对象列表/版本/分段 ctyun-cli zos list-objects --region-id REGION_ID --bucket BUCKET ctyun-cli zos list-object-versions --region-id REGION_ID --bucket BUCKET ctyun-cli zos list-multipart-uploads --region-id REGION_ID --bucket BUCKET ctyun-cli zos list-all-parts --region-id REGION_ID --bucket BUCKET ctyun-cli zos list-parts --region-id REGION_ID --bucket BUCKET --key OBJECT_KEY --upload-id UPLOAD_ID # 对象详情/ACL/标签 ctyun-cli zos head-object --region-id REGION_ID --bucket BUCKET --key OBJECT_KEY ctyun-cli zos get-object-acl --region-id REGION_ID --bucket BUCKET --key OBJECT_KEY ctyun-cli zos get-object-tagging --region-id REGION_ID --bucket BUCKET --key OBJECT_KEY ctyun-cli zos get-object-retention --region-id REGION_ID --bucket BUCKET --key OBJECT_KEY # 碎片/数量 ctyun-cli zos get-fragment-num --region-id REGION_ID --bucket BUCKET ctyun-cli zos get-object-num --region-id REGION_ID --bucket BUCKET
ctyun-cli zos get-keys --region-id REGION_ID ctyun-cli zos get-endpoint --region-id REGION_ID ctyun-cli zos list-regions --region-id REGION_ID ctyun-cli zos get-service-status --region-id REGION_ID ctyun-cli zos list-policies --region-id REGION_ID ctyun-cli zos get-policy-detail --region-id REGION_ID --policy-id POLICY_ID ctyun-cli zos list-roles --region-id REGION_ID ctyun-cli zos get-role-detail --region-id REGION_ID --role-id ROLE_ID ctyun-cli zos get-user-event-bridge --region-id REGION_ID ctyun-cli zos get-object-lock-conf --region-id REGION_ID --bucket BUCKET
# 设置/查询/删除桶标签 ctyun-cli zos put-bucket-tagging --region-id REGION_ID --bucket BUCKET --tag key1=value1 --tag key2=value2 ctyun-cli zos get-bucket-tagging --region-id REGION_ID --bucket BUCKET ctyun-cli zos delete-bucket-tagging --region-id REGION_ID --bucket BUCKET # 设置/查询/删除对象标签 ctyun-cli zos put-object-tagging --region-id REGION_ID --bucket BUCKET --key OBJECT_KEY --tag env=prod ctyun-cli zos get-object-tagging --region-id REGION_ID --bucket BUCKET --key OBJECT_KEY ctyun-cli zos delete-object-tagging --region-id REGION_ID --bucket BUCKET --key OBJECT_KEY
ctyun-cli zos query-price --region-id REGION_ID --pkg-type zosSize --pkg-spec-type ...
终端节点 arms-global.ctapi.ctyun.cn,regionId 通过 header 传递。共 44 个查询类命令,分 8 个子组。
ctyun-cli apm meta project-metadata --region-id REGION_ID ctyun-cli apm meta env-types --region-id REGION_ID ctyun-cli apm meta envs --region-id REGION_ID ctyun-cli apm meta app-conf --region-id REGION_ID --service-name APP --project-code PROJ --deployment ENV ctyun-cli apm meta license-key --region-id REGION_ID ctyun-cli apm meta monitor-status --region-id REGION_ID --environment-code ENV_CODE ctyun-cli apm meta default-jobs --region-id REGION_ID --environment-code ENV_CODE ctyun-cli apm meta common-labels --region-id REGION_ID --environment-code ENV_CODE
ctyun-cli apm app list --region-id REGION_ID ctyun-cli apm app transaction-types --region-id REGION_ID ctyun-cli apm app agents --region-id REGION_ID --agent-status 1 ctyun-cli apm app env-instances --region-id REGION_ID --env-type CS ctyun-cli apm app tasks --region-id REGION_ID --start-time 1715656183201 --end-time 1716174583201 --deployment ENV --env-uuid ENV_UUID ctyun-cli apm app instances-stat --region-id REGION_ID --start-time 1715656183201 --end-time 1716174583201 --service-name APP
ctyun-cli apm trace detail --region-id REGION_ID --trace-id TRACE_ID ctyun-cli apm trace span-detail --region-id REGION_ID --trace-id TRACE_ID --span-id SPAN_ID ctyun-cli apm trace list --region-id REGION_ID --start-time 1715656183201 --end-time 1716174583201 --service-name APP ctyun-cli apm trace topology --region-id REGION_ID --start-time 1715656183201 --end-time 1716174583201 --service-name APP
ctyun-cli apm perf overview --region-id REGION_ID --start-time 1715656183201 --end-time 1716174583201 --service-name APP ctyun-cli apm perf request-curve --region-id REGION_ID --start-time 1715656183201 --end-time 1716174583201 --service-name APP ctyun-cli apm perf http-code-curve --region-id REGION_ID --start-time 1715656183201 --end-time 1716174583201 --service-name APP ctyun-cli apm perf slow-transactions --region-id REGION_ID --start-time 1715656183201 --end-time 1716174583201 --service-name APP ctyun-cli apm perf exceptions --region-id REGION_ID --start-time 1715656183201 --end-time 1716174583201 --service-name APP ctyun-cli apm perf sql-stat-page --region-id REGION_ID --start-time 1715656183201 --end-time 1716174583201 --service-name APP --db-types mysql ctyun-cli apm perf sql-stat-histogram --region-id REGION_ID --start-time 1715656183201 --end-time 1716174583201 --service-name APP ctyun-cli apm perf nosql-stat-histogram --region-id REGION_ID --start-time 1715656183201 --end-time 1716174583201 --service-name APP ctyun-cli apm perf nosql-stat-page --region-id REGION_ID --start-time 1715656183201 --end-time 1716174583201 --service-name APP ctyun-cli apm perf mq-stat-page --region-id REGION_ID --start-time 1715656183201 --end-time 1716174583201 --service-name APP ctyun-cli apm perf transaction-stat --region-id REGION_ID --start-time 1715656183201 --end-time 1716174583201 --service-name APP ctyun-cli apm perf jvm-info --region-id REGION_ID --start-time 1715656183201 --end-time 1716174583201 --service-name APP ctyun-cli apm perf app-instance-curve --region-id REGION_ID --start-time 1715656183201 --end-time 1716174583201 --service-name APP ctyun-cli apm perf jvm-gc-count --region-id REGION_ID --start-time 1715656183201 --end-time 1716174583201 --service-name APP ctyun-cli apm perf jvm-thread-count --region-id REGION_ID --start-time 1715656183201 --end-time 1716174583201 --service-name APP
ctyun-cli apm usage total-view --region-id REGION_ID --start-time 1715656183201 --end-time 1716174583201 ctyun-cli apm usage span-report --region-id REGION_ID --start-time 1715656183201 --end-time 1716174583201 --step 3600 ctyun-cli apm usage agent-hour --region-id REGION_ID --start-time 1715656183201 --end-time 1716174583201 --step 3600 ctyun-cli apm usage span-store --region-id REGION_ID --start-time 1715656183201 --end-time 1716174583201 --step 3600
# 告警规则 ctyun-cli apm alert rules --region-id REGION_ID --obj-type ctgcache ctyun-cli apm alert rule-templates --region-id REGION_ID --obj-type ctgcache ctyun-cli apm alert send-history --region-id REGION_ID --page-num 1 --page-size 10 # 通知管理 ctyun-cli apm notify contacts --region-id REGION_ID --page-num 1 --page-size 10 ctyun-cli apm notify contact-groups --region-id REGION_ID --page-num 1 --page-size 10 ctyun-cli apm notify strategies --region-id REGION_ID --page-num 1 --page-size 10 # Webhook ctyun-cli apm webhook list --region-id REGION_ID --page-num 1 --page-size 10
ctyun-cli dps list-os --region-id REGION_ID --az-name AZ_NAME
ctyun-cli dps list --region-id REGION_ID --az-name AZ_NAME ctyun-cli dps list --region-id REGION_ID --az-name AZ_NAME --status RUNNING --page-size 20
ctyun-cli dps describe --region-id REGION_ID --az-name AZ_NAME --instance-uuid INSTANCE_UUID
ctyun-cli dps interfaces --region-id REGION_ID --az-name AZ_NAME --instance-uuid INSTANCE_UUID
ctyun-cli dps volumes --region-id REGION_ID --az-name AZ_NAME --instance-uuid INSTANCE_UUID
ctyun-cli dps image --region-id REGION_ID --az-name AZ_NAME --instance-uuid INSTANCE_UUID
ctyun-cli dps metadata --region-id REGION_ID --az-name AZ_NAME --instance-uuid INSTANCE_UUID
ctyun-cli dps stock --region-id REGION_ID --az-name AZ_NAME ctyun-cli dps stock --region-id REGION_ID --az-name AZ_NAME --device-type physical.t3.large --count 2
ctyun-cli aone --help
ctyun-cli network --help
ctyun-cli storage --help
ctyun-cli clear-cache
ctyun-cli ecs list --output json | jq '.[] | select(.status=="running")'
ctyun-cli vpc show --vpc-id vpc-xxx --output yaml
ctyun-cli ecs list --debug
ctyun-cli ecs list --profile production
--help 查看具体子命令的详细参数arms-global.ctapi.ctyun.cn,实现 44 个查询类 API相关专题
热门下载
相关下载
精品课程
共6课时 | 54.6万人学习
共89课时 | 133.4万人学习
共49课时 | 82.2万人学习
最新文章