All Products
Search
Document Center

Link IoT Edge:DeleteAuthCookie

Last Updated:Jan 23, 2024

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 Basic base64(username:password).

For example, the value of the parameter can be Basic Y2h5aW5n********NTY=.

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"}