curl -X POST -H "Content-Type: application/json" -d {json_body} http://ccr_syncer_host:ccr_syncer_port/operator
json_body: 以json的格式发送操作所需信息
operator:对应Syncer的不同操作
- create_ccr
创建CCR任务,详见README - get_lag
查看同步进度
其中job_name是create_ccr时创建的name
curl -X POST -L --post303 -H "Content-Type: application/json" -d '{ "name": "job_name" }' http://ccr_syncer_host:ccr_syncer_port/get_lag
- pause
暂停同步任务
curl -X POST -L --post303 -H "Content-Type: application/json" -d '{ "name": "job_name" }' http://ccr_syncer_host:ccr_syncer_port/pause
- resume
恢复同步任务
curl -X POST -L --post303 -H "Content-Type: application/json" -d '{ "name": "job_name" }' http://ccr_syncer_host:ccr_syncer_port/resume
- delete
删除同步任务
curl -X POST -L --post303 -H "Content-Type: application/json" -d '{ "name": "job_name" }' http://ccr_syncer_host:ccr_syncer_port/delete
- list_jobs
列出所有job名称
curl -X POST -L --post303 -H "Content-Type: application/json" -d '{}' http://ccr_syncer_host:ccr_syncer_port/list_jobs
- job_detail
展示job的详细信息
curl -X POST -L --post303 -H "Content-Type: application/json" -d '{ "name": "job_name" }' http://ccr_syncer_host:ccr_syncer_port/job_detail
- job_progress
展示job的详细进度信息
curl -X POST -L --post303 -H "Content-Type: application/json" -d '{ "name": "job_name" }' http://ccr_syncer_host:ccr_syncer_port/job_progress
- metrics
获取golang以及ccr job的metrics信息
curl -L --post303 http://ccr_syncer_host:ccr_syncer_port/metrics