DeleteAuthCookie
Updated at:
Copy as MD
Deletes an authentication cookie.
Request syntax
DELETE /2019-09-30/auth/cookies/Token
Authorization: AuthorizationRequest parameters
Parameter name | Type | Required | Description |
Token | String | Yes | The token of the authentication cookie. |
Authorization | String | Yes | The basic authorization information. The format is For example, |
Return syntax
HTTP/1.1 StatusCode
Content-Type: application/json
PayloadResponse parameters
Parameter name | Type | Description |
StatusCode | Number | The HTTP status code. A value of 200 indicates success. Other values indicate failure. For more information about error codes, see Status codes. |
Payload | JSON | The response message. |
The format of the `Payload` parameter is as follows.
{
"Code": 200,
"Message": "success|reason for failure"
}Complete 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"}Is this page helpful?