![]() |
REST API
14
REST API for Luna Network HSMs
|
Performs the specified action on the service.
Users with the following role privileges can perform this command:
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]*$'
The identifier of the action of interest
Use: Required
JSON Schema:
Object type: string minLength: 1 maxLength: 10 pattern: '^[a-z]*$'
Force option used for cluster service start
Use: Not Required
JSON Schema:
type: boolean default: false
Success.
JSON Schema:
id: Object type: string
"Location" is the URL to the task spawned to perform the action on the service.
The identifier for the service actioned.
JSON Schema:
id: Object type: string
Unexpected error
Service does not exist
Action does not exist
POST https://1.2.3.4:8443/api/lunasa/services/stc/actions/restart
{'Access-Control-Allow-Origin': '*', 'Content-Type': 'application/json', 'Location': '/tasks/3', 'Content-Length': '2', 'Access-Control-Allow-Credentials': 'true'} {}