Request headers

REST API Reference Guide for Virtual Storage Platform 5000, Virtual Storage Platform E Series, and Virtual Storage Platform G/F Series

Version
93-07-0x
90-09-0x
88-08-10
Audience
anonymous
Part Number
MK-98RD9014-17
Request headers are request messages sent from REST API clients to the REST API server.

The following table lists the request headers supported by REST API requests that include simple in the request line.

Header

Category

Description

Accept

Optional

Specifies the media type of the response.

Specifiable value: */* (json)

Default value: */* (json)

Accept-Language

Optional

Specifies the language of the messages received by the client.

Specify ja to set the language to Japanese. If any language other than Japanese is specified, or if this header is omitted, the language will be set to English (en).

Content-Type

Optional

Specifies the media type of the request body.

Specifiable value: application/json

Default value: application/json

Content-Length

Optional

Specifies the size of the request body.

You can specify the Content-Length header when specifying a request body. This header is automatically assigned depending on the specifications of the client software.

Specifiable value: Specify the header, in bytes.

Default value: None.

Authorization

Required

Specifies the authorization method and authorization credentials.

Session token

Specify a token that was obtained when the session was generated.

For details about how to use the API request for generating sessions, see the description of the following API request.

POST base-URL/v1/objects/sessions

If a header other than the above is specified, the specified header is ignored.