Deletes an authentication cookie.
Request syntax
DELETE /2019-09-30/auth/cookies/ Token
Authorization: Authorization
Request parameters
Parameter | Type | Required | Description |
Token | String | Yes | The token of the authentication cookie. |
Authorization | String | Yes | The Basic authorization information. The format is For example, the value of the parameter can be |
Response syntax
HTTP/1.1 StatusCode
Content-Type: application/json
Payload
Response Parameters
Parameter | Type | Description |
StatusCode | Number | The HTTP status code. If the request is successful, 200 is returned. If the request fails, an error code is returned. For information about error codes, see Status codes. |
Payload | JSON | The returned message. |
The format of the returned Payload is as follows:
{
"Code": 200,
"Message": "success|reason for failure"
}
Example
$ curl -i -u admin:admin1234 -k -X DELETE https://127.0.0.1:9999/2019-09-30/auth/cookies/57e22d4f9fb237fcf5c0b59abf621ddeecde1ef740a84fbeb78540******bbe4
HTTP/1.1 200 OK
Server: openresty/1.13.6.2
Date: Thu, 31 Oct 2019 07:57:23 GMT
Content-Type: application/json; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
{"Code":200,"Message":"success"}