#!/bin/bash

scp -P 2202 /root/wdd/install/auth_file.json root@192.168.10.2:/data/nfs_data/zjejpt-uas-nfs-backend-log-pvc-pvc-6712a14b-2a03-48d6-9349-42b4642be91e/zjejpt-uas/cmii-uav-watchdog/

ssh -p 2202 root@192.168.10.2 "ls /data/nfs_data/zjejpt-uas-nfs-backend-log-pvc-pvc-6712a14b-2a03-48d6-9349-42b4642be91e/zjejpt-uas/cmii-uav-watchdog"


# 生成授权文件
curl http://localhost:8080/api/authorization/generate

# 处理授权码
curl -X POST \
  http://localhost:8080/api/authorization/auth \
  -H 'Content-Type: application/json' \
  --data-binary @auth_file.json


#
curl http://localhost:8080/api/authorization/hosts