SuperAPI AI Directory

bk-cli-nodeman

Deployment & operations

View repository

Updated 10-16 08:45

About this skill

bk-cli nodeman — Node management capability usage instructions

Used to call the BlueKing Node Management (bk-nodeman) API system subcommands via bk-cli nodeman .

CRITICAL — Before starting, you MUST first use the Read tool to read ../bk-cli-shared/SKILL.md. The shared skill handles authentication, context, tenant, stage, dry-run, verbose, header/body, and general request rules; this skill only supplements nodeman the command's own semantics and input conventions.

Current coverage

This skill currently covers these commonly used commands:

  • install_job
  • get_job_details

Commands

install_job

bk-cli nodeman install_job --body '{"job_type":"INSTALL_AGENT","hosts":[{"bk_biz_id":2,"bk_cloud_id":0,"os_type":"LINUX","inner_ip":"10.0.0.1","auth_type":"PASSWORD","account":"root","password":"xxx","port":22}]}'
  • Create installation-type tasks (install/reinstall/uninstall/upgrade Agent/Proxy)
  • The payload is relatively complex and must be provided as complete JSON via --body Provide the complete JSON
  • Supported job_type:INSTALL_AGENT、INSTALL_PROXY、REINSTALL_AGENT、REINSTALL_PROXY、REPLACE_PROXY、UNINSTALL_AGENT、UNINSTALL_PROXY、UPGRADE_AGENT、UPGRADE_PROXY、RELOAD_AGENT、RELOAD_PROXY
  • call paths:POST /api/job/install/

get_job_details

bk-cli nodeman get_job_details --job_id 123
bk-cli nodeman get_job_details --job_id 123 --page 1 --pagesize 50
  • Query task execution details
  • Default pagesize=-1(return all)
  • Call path:POST /api/job/{job_id}/details/