Top
Systemwalker Operation Manager  Reference Guide
FUJITSU Software

17.2.3 Common Specifications

This section describes the common specifications of each API when using the Web API.

17.2.3.1 Data Type

The following table shows the data types used by the Web API.

Specify each parameter in the request and reference the field values in the response body to the data type.

Type Name

Corresponding JSON Type

Description

String

string

Text data.
The character encoding is UTF -8.

  • Path Parameters

    If the URL contains characters other than those available, specify the URL-encoded string on the request line.

  • Request Body

    It is specified in JSON. If you include double quotes or control characters, specify the escaped string in the request body according to the JSON format.

Numeric

number

Numeric data.

List

string

Data that handles the specified value.
The default value varies for each field. See the description of each field for details.

Date and time

string

Date and time data.
The date and time format is as follows.

  • YYYY/MM/DD hh:mm:ss

  • YYYY/MM/DD

YYYY: The year is represented by 4 digits, 0000 -9999.
MM: The month is represented by 2 digits, 01 - 12.
DD: The day is represented by 2 digits, 00 - Last day of the specified month.
hh: The time is represented by 2 digits, 00 - 23.
mm: The minutes is represented by 2 digits, 00 - 59.
ss: The seconds is represented by 2 digits, 00 - 59.

Truth value

true, false

Boolean data.
Can be true or false.

17.2.3.2 Request Format

Request Line

Specify the request lines according to the resources you want to use.

Request lines are specified in ASCII characters. If part of the path name (path parameter) contains multibyte characters, URL-encode in UTF -8.

Request Line

Specification

Method

Specify the HTTP methods available for each resource.

Path Name

Specify the URI and query string for each resource.

HTTP Version

Specify "HTTP/1.1".

To get a list of each resource, use query parameters to narrow down the list and control the response. Common specifications for query parameters that can be used for list retrieval are as follows.

Parameter Name

Default Value

Specification

subsystem

Refer to the "17.2.3.5 Subsystem Number"

Specify the subsystem to list. Refer to the "17.2.3.5 Subsystem Number" for possible values.

offset

0

Specify the start position of the record to return.
Skips the elements of the returned object array by the specified value.

limit

100

Specify the maximum number of records to return.
If there are more elements in the object array than specified, set the request body's next field value to true and return records up to the specified value.

The possible value is 0 - 15000.

Request Header

Specify the following request headers.

Request Header

Specified Contents

Host

Specify the host name and IP address of the Systemwalker Operation Manager server to connect to in the following format.

host:port

Authorization

Specify credentials for basic authentication.
For the details, refer to the "17.2.3.4 User authentication".

Content-Type

Specify that you want to specify parameters for the request body.
Specify "application/json".

Request Body

Specify the request parameters in JSON.

The parameters you can specify are different for each resource, refer to the "Request" section for each resource for more information.

17.2.3.3 Response Format

Status Line

Returns the result of processing the request as an HTTP status code.

Response Header

Set and return the following response header.

Response Header

Specified Contents

Specification

Content-Type

application/json;charset=UTF-8

Media type of the response body.

Response Body

Media type with response header "Content-Type" is returned.

The format of the response body is as follows.

Response upon normal termination

The format of a successful request for each resource is as follows.

{
  "next": false,
  "total: n,
  "data": [              <--+
    { ... },                 |
     ...             Object array for each resource
    { ... }                  |
  ]                        <--+
}
  n: Number of elements in the array of objects to be returned

If there is at least one target object, the data field contains the target object array. The values in the next and total fields determine whether all objects have been returned.

If there are zero objects, next is false, total is 0, and data is an empty array.


Filed Name

Type

Specification

next

truth value

Indicates whether an object that has not been stored in the data field exists in the object to be returned. It is "true" if the number of elements in the object array to be returned is greater than or equal to the value specified by the query parameter limit.

true: There are unreturned objects.
false: There are not unreturned objects.

total

Numeric

The number of elements in the object array to return.
It is not the number of elements in the object array stored in the data field. If the next field is true, this value and the number of elements in the object array stored in the data field are different.

data

-

An array of objects to return.
Stores the number of elements up to the value specified by the query parameter limit.

Response upon error termination

Note

Non-JSON data formats, such as text/html, may be returned in the response body on failure. Check the response header "Content-Type" and refer to the appropriate data format.

If an error occurs in the processing of a request for each resource, the format is as follows.

{
  "code": "Error code",
  "message": "Message statement"
}

Returns error information using HTTP status codes, error codes, and message statements. For more information about error codes and message statements, refer to the "Messages of Web API [Windows version][Linux version]" in the "Systemwalker Operation Manager Message Guide".


Filed Name

Type

Specification

code

String

Code indicating error information.

message

String

Message indicating error information.

17.2.3.4 User authentication

Each API request requires authentication.

Set basic authentication information in the request header.

The user ID and password are the credentials of the Systemwalker Operation Manager server deployment machine to which you are connecting.

If extended user management is enabled, specify the Operation Manager user. [Linux version]

Operates each resource with the permissions of the specified user ID. Refer to the description of each resource for required permissions.

Authorization: Basic <UserID: Base 64 encoded string of the password >

17.2.3.5 Subsystem Number

Specify the subsystem number as follows.

SE Version
  • Path Parameters

    /subsystems/{subsystem} does not need to be specified.

    It can be specified as subsystem number 0. You cannot specify a value of from 1 to 9.

  • Query Parameters

    ?subsystem={subsystem} does not need to be specified.

    It can be specified as subsystem number 0. If you specify a value of 1 - 9, the filtering result of list acquisition is 0.

EE Version
  • Path Parameters

    Can be specified by /subsystems/{subsystem}.

    The subsystem number is required to uniquely identify the resource.

    If specified, the subsystem number is assumed; if omitted, the subsystem number 0 is assumed.

  • Query Parameters

    Can be specified by ?subsystem={subsystem}.

    If omitted, all subsystem numbers are processed. Therefore, if you have subsystems that you did not intend to start, specify only those subsystems that you do not want.

Example Request (After /Systemwalker-omgr/api)