![]() |
REST API
16
REST API for Luna Network HSMs
|
Performs the specified action on a ctc measurement service. The actions available are "enable" and "disable".
Users with the following role privileges can perform this command:
This parameter specifies the id of the action to be performed. Could be action "enable" or "disable".
Use: Required
JSON Schema:
Object
type:string
This parameter specifies the interval duration for the measurement to be enabled.
Note: The interval will be provided in seconds by default. It's value can have a range of 1-99999.
Use: Optional
Note: For enabling ctc measurement service, interval is required.
JSON Schema:
Object
type: integer
Success.
Failed to perform specified action.
One of the provided values has an inappropriate format.
If trying to enable the ctc measurement service but not provided interval
Failed to match action
POST
https://1.2.3.4:8443/api/lunasa/network/measurement/actions/enable
{
"interval": 99
}
POST
https://1.2.3.4:8443/api/lunasa/network/measurement/actions/disable
{}
{}