Request headers

Storage Advisor Embedded User Guide

Version
93-07-2x
88-08-12
Audience
anonymous
Part Number
MK-97HM85022-25

Request headers are request messages sent from REST API clients to the REST API server.

The following table lists the request headers supported by the REST API.

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 is 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.

Specify the header in one of the following formats:

  • If a session is generated:

    Basic authorization-credentials

    For the authorization credentials, specify the user ID and password in a character string encoded by using Base64. Use the user ID and password of a user account that can perform operations on storage system resources.

  • If a session is not generated:

    Session token

    When the session was generated:

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

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