1、 get 方法 : curl -XGET --cacert /etc/flocker/cluster.crt --cert /etc/flocker/apiuser.crt --key /etc/flocker/apiuser.key https://172.18.8.100:4523/v1/state/nodes| python -mjson.tool|less
2、 post方法 : curl -X POST -H 'Content-Type: application/json' -d "{ \"dataset_id\": \"ad0a05dd-a1ed-449f-b44b-e1e2757bda00\", \"primary\": \"a45ab118-fe0a-4729-b05a-70fe0a14efa7\"}" --cacert /etc/flocker/cluster.crt --cert /etc/flocker/apiuser.crt --key /etc/flocker/apiuser.key https://172.18.8.100:4523/v1/configuration/datasets