REST API  14
REST API for Luna Network HSMs
GET /api/lunasa/services/{serviceid}/actions

GET /api/lunasa/services/{serviceid}/actions

Gets all actions associated with the service.

User Privileges

Users with the following role privileges can perform this command:

  • admin
  • operator
  • monitor

Parameters

serviceid

The identifier of the service of interest. Valid Values: cbs, lsta, network, ntls, ntp, syslog, snmp, ssh, stc, sysstat, webserver, cluster, ismigration, ctc, clusteradmin.

Use: Required

JSON Schema:

   Object
   type: string
   minLength: 1
   maxLength: 12
   pattern: '^[a-z]*$'

Responses

200

The set of all actions associated with the service.

JSON Schema: Service Actions

404

APPLIANCE_SERVICE_DOES_NOT_EXIST

Service does not exist

Example Request

   GET
   https://1.2.3.4:8443/api/lunasa/services/stc/actions

Example Result

{
    "actions": [
        {
            "id": "start",
            "url": "/api/lunasa/lunasa/services/stc/actions/start"
        },
        {
            "id": "stop",
            "url": "/api/lunasa/lunasa/services/stc/actions/stop"
        },
        {
            "id": "restart",
            "url": "/api/lunasa/lunasa/services/stc/actions/restart"
        }
    ]
}