Get CSRF token

Content Platform for Cloud Scale Management API Reference

Version
2.5.x
Audience
anonymous
Part Number
MK-HCPCS007-08

You can use the method /csrf to obtain the XSRF token and Vert.x session token for use in subsequent MAPI calls.

HTTP request syntax (URI)

GET https://host_ip:9099/mapi/v1/csrf

Request structure

Not applicable.

Response structure

No applicable.

The XSRF token and Vert.x session token are returned in the response header as cookies with the names XSRF-TOKEN and vertx-web.session, respectively.

Return codes

Status code

HTTP name

Description

200 OK The request was executed successfully.
405 Method Not Allowed The specified HTTP method is not allowed. Resend using GET.

Example

Request example:

GET https://10.10.24.195:9099/mapi/v1/csrf