Add a new config element: SD.translation-rules
post
https://cloud-native-SBC-IP/config/v1/sd/translation-rules
Add a new config element: SD.translation-rules
Request
There are no request parameters for this operation.
Supported Media Types
- application/json
Root Schema : schema
Type:
object
configure and apply session translation rules to agents and realms
Show Source
-
_elementKey: string
Read Only:
true
Identifier for the element or sub-element -
add-index: string
index for the add string. Use $ for appending string at the end of address
-
add-string: string
string to be added
-
delete-index: integer
(int64)
Minimum Value:
0
Maximum Value:999999999
index for the delete string -
delete-string: string
string to be deleted. Use @ for wild character
-
id(required): string
Minimum Length:
1
identifier/name for the translation rule -
type: string
Allowed Values:
[ "delete", "replace", "add", "none" ]
Response
Supported Media Types
- application/json
200 Response
return one config element: TranslationRules
Root Schema : schema
Type:
object
configure and apply session translation rules to agents and realms
Show Source
-
_elementKey: string
Read Only:
true
Identifier for the element or sub-element -
add-index: string
index for the add string. Use $ for appending string at the end of address
-
add-string: string
string to be added
-
delete-index: integer
(int64)
Minimum Value:
0
Maximum Value:999999999
index for the delete string -
delete-string: string
string to be deleted. Use @ for wild character
-
id(required): string
Minimum Length:
1
identifier/name for the translation rule -
type: string
Allowed Values:
[ "delete", "replace", "add", "none" ]
404 Response
Not Found
Root Schema : ApiValidationError
Type:
Show Source
object
-
_elementKey: string
Read Only:
true
Identifier for the element or sub-element -
code: string
-
errors: array
errors
-
message: string
-
timestamp: string
Nested Schema : Errors
Type:
Show Source
object
-
_elementKey: string
Read Only:
true
Identifier for the element or sub-element -
attribute: string
-
code: string
-
message: string
-
type: string
Allowed Values:
[ "error", "fatal", "warn" ]
406 Response
Validation Failure
Root Schema : ApiValidationError
Type:
Show Source
object
-
_elementKey: string
Read Only:
true
Identifier for the element or sub-element -
code: string
-
errors: array
errors
-
message: string
-
timestamp: string
Nested Schema : Errors
Type:
Show Source
object
-
_elementKey: string
Read Only:
true
Identifier for the element or sub-element -
attribute: string
-
code: string
-
message: string
-
type: string
Allowed Values:
[ "error", "fatal", "warn" ]