SonicOS/X API Reference Guide

Schema Attributes

Attribute Type

Description

status object Status object.
status.success boolean (true|false) Boolean success flag. Refer to the status.info array for more detailed information as to what caused the error if the success flag is false.
status.cli object

CLI status.

This attribute is included only when an API sent one or more commands to the CLI backend.

status.cli.depth number (uint8)

Current mode depth of the CLI:

  • 0 = top-level mode
  • >= 1 config mode
status.cli.mode string Name of the current mode.
status.cli.command string

Command last executed.

This attribute is only included upon command error(s).

status.cli.configuring boolean (true|false) Boolean configuring flag. Should always be true upon one or more consecutive POST, PUT or DELETE API calls that modify the configuration.
status.cli.pending_config boolean (true|false) Boolean pending-config flag. Should always be true upon one or more consecutive POST, PUT or DELETE API calls that modify the configuration. This flag should be cleared once any/all pending changes are committed (saved).
status.cli.restart_required string

Appliance restart status. To take effect, some configuration changes require an appliance restart. These values indicate the type of restart needed:

NONE

APPLIANCE

CHASSIS

CHASSIS_SHUTDOWN

ALL_BLADES

status.info array Informational message(s).
status.info.level string Status level: info, warning, error.
status.info.code string Status code. If success, E_OK is returned, else E_{XXX} where XXX = error code.
status.info.message string Status message.

Was This Article Helpful?

Help us to improve our support portal

Techdocs Article Helpful form

  • Hidden
  • Hidden

Techdocs Article NOT Helpful form

  • Still can't find what you're looking for? Try our knowledge base or ask our community for more help.
  • Hidden
  • Hidden