Add a new config element: SD.media-policy
post
https://cloud-native-SBC-IP/config/v1/sd/media-policy
Add a new config element: SD.media-policy
Request
There are no request parameters for this operation.
Supported Media Types
- application/json
Root Schema : schema
Type:
object
configure a media profile and apply it to a realm
Show Source
-
_elementKey: string
Read Only:
true
Identifier for the element or sub-element -
name(required): string
Minimum Length:
1
Pattern:^[A-Za-z0-9_][A-Za-z0-9._\-]{0,127}$
media policy name -
rtp-ttl: integer
(int32)
Minimum Value:
0
Maximum Value:255
RTP Time To Live (TTL) -
tos-settings: array
tos-settings
list of tos settings
Nested Schema : tos-settings
Type:
array
list of tos settings
Show Source
-
Array of:
object TosSetting
list of tos settings
Nested Schema : TosSetting
Type:
object
list of tos settings
Show Source
-
_elementKey: string
Read Only:
true
Identifier for the element or sub-element -
media-attributes: array
media-attributes
media attribute to match within SDP
-
media-sub-type: string
media sub-type to match against. If no value is entered, a wildcard is used
-
media-type(required): string
Minimum Length:
1
media type to match against for e.g. application|audio|image|message|text|video -
tos-value: string
a decimal or hex number
Response
Supported Media Types
- application/json
200 Response
return one config element: MediaPolicy
Root Schema : schema
Type:
object
configure a media profile and apply it to a realm
Show Source
-
_elementKey: string
Read Only:
true
Identifier for the element or sub-element -
name(required): string
Minimum Length:
1
Pattern:^[A-Za-z0-9_][A-Za-z0-9._\-]{0,127}$
media policy name -
rtp-ttl: integer
(int32)
Minimum Value:
0
Maximum Value:255
RTP Time To Live (TTL) -
tos-settings: array
tos-settings
list of tos settings
Nested Schema : tos-settings
Type:
array
list of tos settings
Show Source
-
Array of:
object TosSetting
list of tos settings
Nested Schema : TosSetting
Type:
object
list of tos settings
Show Source
-
_elementKey: string
Read Only:
true
Identifier for the element or sub-element -
media-attributes: array
media-attributes
media attribute to match within SDP
-
media-sub-type: string
media sub-type to match against. If no value is entered, a wildcard is used
-
media-type(required): string
Minimum Length:
1
media type to match against for e.g. application|audio|image|message|text|video -
tos-value: string
a decimal or hex number
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" ]