Retrieve all sub-elements: SD.sip-manipulation.mime-rules
get
https://cloud-native-SBC-IP/config/v1/sd/sip-manipulation/{ElementKey}/mime-rules
Retrieve all sub-elements: SD.sip-manipulation.mime-rules
Request
Path Parameters
-
ElementKey: string
Identifier for the element
Query Parameters
-
revision-id: string
Integer value of saved revision, or 'latest', 'active' to show the running config, or 'staging' to show complete configuration to be activated
There's no request body for this operation.
Back to TopResponse
Supported Media Types
- application/json
200 Response
return all sub elements: MimeRule
Nested Schema : schema
Type:
object
list of mime rules
Show Source
-
_elementKey: string
Read Only:
true
Identifier for the element or sub-element -
action: string
Allowed Values:
[ "none", "add", "delete", "manipulate", "store", "sip-manip", "find-replace-all", "reject", "log", "monitor" ]
-
comparison-type: string
Allowed Values:
[ "case-sensitive", "case-insensitive", "pattern-rule", "refer-case-sensitive", "refer-case-insensitive", "boolean" ]
-
content-type: string
Pattern:
^[A-Za-z0-9.!%*_+`'~/-]+(;.+)*(\[(([0-9]+)|([*^]))\])?$
Content-Type header for which rule needs to be applied -
format: string
Allowed Values:
[ "ascii-string", "hex-ascii", "binary-ascii" ]
-
match-value: string
value to match against the current object. To clear the match-value, enter an empty string
-
methods: array
methods
Unique Items Required:
true
specifies list of methods that the rule applies to(applies to all methods when none are specified) e.g.: INVITE,ACK,CANCEL -
mime-header-rules: array
mime-header-rules
list of mime-header-rules
-
msg-type: string
Allowed Values:
[ "any", "request", "reply", "out-of-dialog" ]
-
name(required): string
Minimum Length:
1
Pattern:^(([a-z][A-Za-z0-9_]+)|([A-Z][A-Za-z0-9_]*[a-z][A-Za-z0-9_]*))$
unique name for rule -
new-value: string
new value for the object. Quoted display names must be escaped within quotes(e.g. '\\'My Name\\' '). To clear the new-value, enter an empty string
Nested Schema : methods
Type:
array
Unique Items Required:
true
specifies list of methods that the rule applies to(applies to all methods when none are specified) e.g.: INVITE,ACK,CANCEL
Show Source
-
Array of:
string
Allowed Values:
[ "INVITE", "ACK", "BYE", "CANCEL", "REGISTER", "OPTIONS", "PRACK", "SUBSCRIBE", "NOTIFY", "PUBLISH", "INFO", "REFER", "MESSAGE", "UPDATE" ]
Nested Schema : mime-header-rules
Type:
array
list of mime-header-rules
Show Source
-
Array of:
object MimeHeaderRule
list of mime-header-rules
Nested Schema : MimeHeaderRule
Type:
object
list of mime-header-rules
Show Source
-
_elementKey: string
Read Only:
true
Identifier for the element or sub-element -
action: string
Allowed Values:
[ "none", "add", "store", "sip-manip", "replace", "find-replace-all", "delete", "log", "monitor", "reject" ]
-
comparison-type: string
Allowed Values:
[ "case-sensitive", "case-insensitive", "pattern-rule", "refer-case-sensitive", "refer-case-insensitive", "boolean" ]
-
match-value: string
value to match against the current object. To clear the match-value, enter an empty string
-
mime-header-name: string
Pattern:
^@status-line$|^[A-Za-z0-9@.!%*_+`'~-]+(\[(([0-9]+)|([*^]))\])?$
header within mime part for which rule needs to be applied. To change the preamble of a SIP body, use the header name @preamble. To change the epilogue of a SIP body, use the header name @epilogue -
name(required): string
Minimum Length:
1
Pattern:^(([a-z][A-Za-z0-9_]+)|([A-Z][A-Za-z0-9_]*[a-z][A-Za-z0-9_]*))$
unique name for rule -
new-value: string
new value for the object. Quoted display names must be escaped within quotes (e.g. '\\'My Name\\' '). To clear the new-value, enter an empty string
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" ]