许可证 API

ENTERPRISE

使用 许可证 API 管理您的 DC/OS 许可证

路由

对 许可证 API 的访问是通过每个管理节点上的 Admin Router 使用以下路由以代理的方式完成:

/licensing/v1

要确定群集的 URL,请参阅 群集访问.

格式

许可证 API 请求和响应主体在 JSON 中格式化。

请求必须包含接受标题:

Accept: application/json

响应包括内容类型标题:

Content-Type: application/json

Content-Type: application/x-tar

验证

使用所有 许可证 API 路由都需要身份认证。

要验证 API 请求,请参阅 获取认证令牌传递认证令牌.

许可证 API 还需要通过以下权限授权:

资源 ID 操作
dcos:adminrouter:licensing full

所有路由也可以被具有 dcos:superuser 权限的用户抵达。

要为您的帐户分配权限,请参阅 权限参考.

API 参考

许可证 API 允许您管理 DC/OS 群集上的许可证操作。

DC/OS Licensing Component
 1.0.0 

[ Base URL: /licensing/v1 ]
/mesosphere/dcos/2.1/api/dcos-licensing-component-spec.yaml

default

GET/ping
Return 'pong' if service is up.
GET/version
Return service version.
GET/licenses
Read all licenses.
POST/licenses
Post a new license.
GET/licenses/{id}
Read a license document by id.
GET/licenses/active
Read the active license document.
GET/status
Returns summary of licensing state.
GET/audit
Get all audit data in an archive tar file.
GET/audit/{id}
Get license audit file by Id.
GET/audit/active
Get license audit file for active license.

Models

#/definitions/LicenseLicense{...}
Licenses[...]
#/definitions/StatusStatus{...}