方法列表
创建密钥
admin
user
RPC
createNSKey (CreateNSKeyRequest) returns (CreateNSKeyResponse)
HTTP
POST /NSKeyService/createNSKey
输入对象:CreateNSKeyRequest:
输出对象:CreateNSKeyResponse:
修改密钥
admin
user
RPC
updateNSKey (UpdateNSKeyRequest) returns (RPCSuccess)
HTTP
POST /NSKeyService/updateNSKey
输入对象:UpdateNSKeyRequest:
{ int64 nsKeyId; // 名称 string name; string algo; string secret; string secretType; // 是否启用 bool isOn; }
输出对象:RPCSuccess:
{ }
删除密钥
admin
user
RPC
deleteNSKey (DeleteNSKeyRequest) returns (RPCSuccess)
HTTP
POST /NSKeyService/deleteNSKey
输入对象:DeleteNSKeyRequest:
输出对象:RPCSuccess:
{ }
查找单个密钥
admin
user
RPC
findNSKey (FindNSKeyRequest) returns (FindNSKeyResponse)
HTTP
POST /NSKeyService/findNSKey
输入对象:FindNSKeyRequest:
输出对象:FindNSKeyResponse:
计算密钥数量
admin
user
RPC
countAllNSKeys (CountAllNSKeysRequest) returns (RPCCountResponse)
HTTP
POST /NSKeyService/countAllNSKeys
输入对象:CountAllNSKeysRequest:
输出对象:RPCCountResponse:
{ // 数量 int64 count; }
列出单页密钥
admin
user
RPC
listNSKeys (ListNSKeysRequest) returns (ListNSKeysResponse)
HTTP
POST /NSKeyService/listNSKeys
输入对象:ListNSKeysRequest:
{ int64 nsDomainId; int64 nsZoneId; // 读取位置 int64 offset; // 数量,通常不能小于0 int64 size; }
输出对象:ListNSKeysResponse: