应用管控
提供ADP应用的license授权等接口。
获取License信息
GET http://{adp-local}/console-backend/api/v1/products/adp/license
调用样例:
curl --request GET \
--url http://{adp-local}:31000/console-backend/api/v1/products/adp/license?_s_token=xxx
{
"code": 1,
"msg": "",
"data": {
"status": "OnTrial",
"expireTime": "2022-09-13T11:42:42Z",
"diffDays": 83,
"foundation": {
"fingerprint": "TiighXN8Xm8CdyI3g70+c/+sIhZ46V1nPTKSeIuoWVN3WVDLE2Fh2WForm68bH8wrY2QPB/XtPKsP6VWIlOwEabfvWtoMWAH51LnmEBRrbChbUbX2dKllPhgFRlTjSVmXYxl1ylw+VxLN2xVcbU/rGlZD0wYtH55qW4gZZqkDRGvvbjbMapg202d57MORwut3IQxPCT/VTpwGx+bSKZ10viWt+Sif+ZqDFe3lXupln8sG3MOknnodqRYISAvSNyVLnJnigDpNBhVFUcZ5h2Opguaqg6eV1uGBv//DmUzQr6xEt2bOexF1A==",
"vCPUAssignment": "--/--",
"instanceUsages": [
{
"componentName": "minio",
"provider": "harmonycloud.cn",
"authorizedInstance": 1,
"usedInstance": 0
},
{
"componentName": "mysql",
"provider": "harmonycloud.cn",
"authorizedInstance": 1,
"usedInstance": 0
}
]
}
}
}
激活License
POST http://{adp-local}/console-backend/api/v1/products/adp/license
body样例:
{
"content": "hZ46V1nPTKSeIuoWVN3WVDLE2Fh2WForm68bH8wrY2QPB/XtPKsP6VWIlOwEabfvWtoMWAH51LnmEBRrbChbUbX2dKllPhgFRlTjSVmXYxl1ylw+VxLN2xVcbU/rGlZD0wYtH55qW4gZZqkDRGvvbjbMapg202d57MORwut3IQxPCT/VTpwGx+bSKZ10viWt+Sif+ZqDFe3lXupln8sG3MOknnodqRYISAvSNyVLnJnigDpNBhVFUcZ5h2Opguaqg6eV1uGBv//DmUzQr6xEt2bOexF1"
}
返回样例:
{
"code": 1010,
"msg": "License 激活成功",
"data": null
}
若有收获,就点个赞吧