Local Actions Objects

This page contains descriptions of the Local Action related objects in the FlexSwitch object models.

Attention

Attributes without default values listed are required in API calls.

Configuration Objects

ResetConfig

action/ResetConfig

This action object has no arguments.

SaveConfig

action/SaveConfig

Attribute Data Type Description Permitted Values
DstFileURI string URI of the saved config file DEFAULT: ///opt/flexswitch/startup-config
Timestamp string Option to indicate whether the file needs to be saved with timestamp. SELECTION: append/prepend/disabled
DEFAULT:disabled
Timeout uint8 Time to wait before giving up contacting the remote host (in seconds) DEFAULT:30
RetryCount uint8 Number of times to try to contact the remote host DEFAULT:3
Passphrase string Passphrase for encrypting secure configurations DEFAULT: ""
Nonce string Nonce used in the encryption algorithm DEFAULT: ""

ApplyConfig

action/ApplyConfig

Attribute Data Type Description Permitted Values
ConfigData map[string][]json.RawMessage json:"ConfigData
Merge bool Existing config in flexswitch will be merged with this config DEFAULT: true
Passphrase string Passphrase for encrypting secure configurations DEFAULT: ""
Nonce string Nonce used in the encryption algorithm DEFAULT:""

ApplyConfigByFile

action/ApplyConfigByFile

Attribute Data Type Description Permitted Values
SrcFileURI string URI of the config file to be applied DEFAULT: ///opt/flexswitch/startup-config
Merge bool Existing config in flexswitch will be merged with this config DEFAULT: true
Timeout uint8 Time to wait before giving up contacting the remote host (in seconds) DEFAULT:30
RetryCount uint8 Number of times to try to contact the remote host DEFAULT:3
Passphrase string Passphrase for encrypting secure configurations DEFAULT: ""
Nonce string Nonce used in the encryption algorithm DEFAULT:""

ClearConfigLog

action/ClearConfigLog

This action object has no arguments.