最近更新时间:2021-12-16 19:54:45
GET /GetToken?ExpireTime=<ExpireTime> HTTP/1.1
Authorization: <AuthorizationString>
x-klog-api-version: 0.1.0
Host: <Project Endpoint>
x-klog-signature-method: hmac-sha1
x-klog-compress-type: lz4
Date: <GMT Date>
Content-Type: application/x-protobuf
Content-MD5: <Content-MD5>
Content-Length: <ContentLength>
Connection: Keep-Alive
ExpireTime接口无特有请求头。获取更多信息,请参见公共请求头
参数详情具体如下表。
参数名称 | 类型 | 是否必须 | 描述 |
---|---|---|---|
ExpireTime | String | 否 | ExpireTime单位为分钟,不填则默认token过期时间为30分钟 |
参数名称 | 类型 | 描述 |
---|---|---|
Token | String | 返回加密串,用于Iframe,日志Tail,日志下载等 |
ExpireAt | Int | 过期时间戳 |
GET /GetToken?ExpireTime=20 HTTP/1.1
Authorization: <AuthorizationString>
x-klog-api-version: 0.1.0
Host: <Project Endpoint>
x-klog-signature-method: hmac-sha1
x-klog-compress-type: lz4
Date: <GMT Date>
Content-Type: application/x-protobuf
Content-MD5: <Content-MD5>
Content-Length: <ContentLength>
Connection: Keep-Alive
HTTP/1.1 200
Server: nginx
Content-Length: 0
Connection: close
Access-Control-Allow-Origin: *
Date: Sun, 27 May 2018 07:43:27 GMT
x-klog-requestid: 5B0A619F205DC3F30EDA9322
{
"Token": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2MzE4NTMyOTEsInN1YiI6ImFjY291bnRJZDogMjMzIn0.jTLYzjQJ4LOB-cX_OVXkZ-8DmL2gEgyr7srHj58_LRQ"
"ExpireAt": 1631850328
}
纯净模式