Replace a config element: SD.local-policy

put

https://cloud-native-SBC-IP/config/v1/sd/local-policy/{ElementKey}

Replace a config element: SD.local-policy

Request

Path Parameters
Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
configure a session request routing policy
Show Source
Nested Schema : from-address
Type: array
Minimum Number of Items: 1
Unique Items Required: true
from address list
Show Source
Nested Schema : policy-attributes
Type: array
list of policy attributes
Show Source
Nested Schema : source-realm
Type: array
Unique Items Required: true
A '*' denotes route available from all realms
Show Source
Nested Schema : to-address
Type: array
Minimum Number of Items: 1
Unique Items Required: true
to address list
Show Source
Nested Schema : FromTo
Type: object
Show Source
Nested Schema : LocalPolicyAttribute
Type: object
list of policy attributes
Show Source
  • Read Only: true
    Identifier for the element or sub-element
  • Allowed Values: [ "none", "replace-uri", "redirect" ]
  • Allowed Values: [ "SIP" ]
  • Pattern: ^[A-Za-z0-9\!"#\$%&'\(\)\*\+-\./:;<=>\?@\[\]\^_\{\|\}~]{0,24}$|^[A-Za-z0-9\!"#\$%&'\(\)\*\+-\./:;<=>\?@\[\]\^_\{\|\}~]{1,24}$
    carrier identifier
  • Minimum Value: 0
    Maximum Value: 999999999
    cost (unitless)
  • Pattern: ^[MTWRFSUH,-]+$
    days of week policy is in effect day characters may be separated by ','s or a '-'\n M=Monday T=Tuesday W=Wednesday R=Thursday F=Friday S=Saturday U=Sunday H=Holidays\n H=holidays as defined in session router config. e.g. U-S,H meaning Saturday through Sunday and holidays
  • enable emergency location string lookup
  • Pattern: ^([A-Za-z0-9_][A-Za-z0-9._\-]{0,127})?$
    string used as key for emergency LRT lookup
  • Pattern: ^(([0-9])|([0-5][0-9])|([0-1]?[0-9][0-5][0-9])|(2[0-3][0-5][0-9])|(2400))$
    daily time policy is no longer in effect <0000..2400>
  • Allowed Values: [ "single", "multi" ]
  • media-profiles
    list of media profiles
  • methods
    Unique Items Required: true
    list of SIP methods for matching with a SIP request method
  • Minimum Length: 1
    Pattern: ^((([0-1]{0,1}[0-9]{0,1}|2[0-4])[0-9]|25[0-5])[.]){3}(([0-1]{0,1}[0-9]{0,1}|2[0-4])[0-9]|25[0-5])$|^((([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4})|(([0-9a-fA-F]{1,4}:){6}((:[0-9a-fA-F]{1,4})|(((([0-1]{0,1}[0-9]{0,1}|2[0-4])[0-9]|25[0-5])[.]){3}(([0-1]{0,1}[0-9]{0,1}|2[0-4])[0-9]|25[0-5]))))|(([0-9a-fA-F]{1,4}:){5}:((([0-9a-fA-F]{1,4}:)?[0-9a-fA-F]{1,4})|(((([0-1]{0,1}[0-9]{0,1}|2[0-4])[0-9]|25[0-5])[.]){3}(([0-1]{0,1}[0-9]{0,1}|2[0-4])[0-9]|25[0-5]))))|(([0-9a-fA-F]{1,4}:){4}:((([0-9a-fA-F]{1,4}:){0,2}[0-9a-fA-F]{1,4})|(([0-9a-fA-F]{1,4}:)?((([0-1]{0,1}[0-9]{0,1}|2[0-4])[0-9]|25[0-5])[.]){3}(([0-1]{0,1}[0-9]{0,1}|2[0-4])[0-9]|25[0-5]))))|(([0-9a-fA-F]{1,4}:){3}:((([0-9a-fA-F]{1,4}:){0,3}[0-9a-fA-F]{1,4})|(([0-9a-fA-F]{1,4}:){0,2}((([0-1]{0,1}[0-9]{0,1}|2[0-4])[0-9]|25[0-5])[.]){3}(([0-1]{0,1}[0-9]{0,1}|2[0-4])[0-9]|25[0-5]))))|(([0-9a-fA-F]{1,4}:){2}:((([0-9a-fA-F]{1,4}:){0,4}[0-9a-fA-F]{1,4})|(([0-9a-fA-F]{1,4}:){0,3}((([0-1]{0,1}[0-9]{0,1}|2[0-4])[0-9]|25[0-5])[.]){3}(([0-1]{0,1}[0-9]{0,1}|2[0-4])[0-9]|25[0-5]))))|([0-9a-fA-F]{1,4}::((([0-9a-fA-F]{1,4}:){0,5}[0-9a-fA-F]{1,4})|(([0-9a-fA-F]{1,4}:){0,4}((([0-1]{0,1}[0-9]{0,1}|2[0-4])[0-9]|25[0-5])[.]){3}(([0-1]{0,1}[0-9]{0,1}|2[0-4])[0-9]|25[0-5]))))|(::((([0-9a-fA-F]{1,4}:){0,6}[0-9a-fA-F]{1,4})|(([0-9a-fA-F]{1,4}:){0,5}((([0-1]{0,1}[0-9]{0,1}|2[0-4])[0-9]|25[0-5])[.]){3}(([0-1]{0,1}[0-9]{0,1}|2[0-4])[0-9]|25[0-5]))))|(([0-9a-fA-F]{1,4}:){1,7}:)|(::))$|^(([Ee][Nn][Uu][Mm])|([Ll][Dd][Aa][Pp])):[A-Za-z0-9_][A-Za-z0-9._\-]{0,127}(;key=[A-Za-z$@&][A-Za-z._\-]{0,24})?$|^([A-Za-z0-9]([A-Za-z0-9-]*[A-Za-z0-9]){0,1}[.])*([A-Za-z]([A-Za-z0-9-]*[A-Za-z0-9]){0,1})[.]{0,1}$|^(\*)$|^[Ll][Rr][Tt]:[A-Za-z_][A-Za-z0-9._\-]{0,23}(;key=[A-Za-z$@&][A-Za-z._\-]{0,24}(,[A-Za-z$@&][A-Za-z._\-]{0,24})?)?$|^[Ss][Aa][Gg]:[A-Za-z0-9_][A-Za-z0-9._\-]{0,127}$
    next signaling host address
  • next stage key for Multi-Stage Local Policy lookups
  • Pattern: ^([A-Za-z0-9_][A-Za-z0-9._\-]{0,127})?$|^[A-Za-z0-9_][A-Za-z0-9._\-]{0,127}$
    realm of next signaling. NOTE: does NOT need to be configure if matches the realm of Session Agent configured as next hop.
  • Pattern: ^(([0-9])|([0-5][0-9])|([0-1]?[0-9][0-5][0-9])|(2[0-3][0-5][0-9])|(2400))$
    daily time policy goes into effect <0000..2400>
  • administrative state
  • terminate route recursion with this next hop
Nested Schema : media-profiles
Type: array
list of media profiles
Show Source
Nested Schema : methods
Type: array
Unique Items Required: true
list of SIP methods for matching with a SIP request method
Show Source
  • Allowed Values: [ "INVITE", "REGISTER", "PRACK", "OPTIONS", "INFO", "SUBSCRIBE", "NOTIFY", "REFER", "UPDATE", "MESSAGE", "PUBLISH" ]
Back to Top

Response

Supported Media Types

200 Response

return one config element: LocalPolicy
Body ()
Root Schema : schema
Type: object
configure a session request routing policy
Show Source
Nested Schema : from-address
Type: array
Minimum Number of Items: 1
Unique Items Required: true
from address list
Show Source
Nested Schema : policy-attributes
Type: array
list of policy attributes
Show Source
Nested Schema : source-realm
Type: array
Unique Items Required: true
A '*' denotes route available from all realms
Show Source
Nested Schema : to-address
Type: array
Minimum Number of Items: 1
Unique Items Required: true
to address list
Show Source
Nested Schema : FromTo
Type: object
Show Source
Nested Schema : LocalPolicyAttribute
Type: object
list of policy attributes
Show Source
  • Read Only: true
    Identifier for the element or sub-element
  • Allowed Values: [ "none", "replace-uri", "redirect" ]
  • Allowed Values: [ "SIP" ]
  • Pattern: ^[A-Za-z0-9\!"#\$%&'\(\)\*\+-\./:;<=>\?@\[\]\^_\{\|\}~]{0,24}$|^[A-Za-z0-9\!"#\$%&'\(\)\*\+-\./:;<=>\?@\[\]\^_\{\|\}~]{1,24}$
    carrier identifier
  • Minimum Value: 0
    Maximum Value: 999999999
    cost (unitless)
  • Pattern: ^[MTWRFSUH,-]+$
    days of week policy is in effect day characters may be separated by ','s or a '-'\n M=Monday T=Tuesday W=Wednesday R=Thursday F=Friday S=Saturday U=Sunday H=Holidays\n H=holidays as defined in session router config. e.g. U-S,H meaning Saturday through Sunday and holidays
  • enable emergency location string lookup
  • Pattern: ^([A-Za-z0-9_][A-Za-z0-9._\-]{0,127})?$
    string used as key for emergency LRT lookup
  • Pattern: ^(([0-9])|([0-5][0-9])|([0-1]?[0-9][0-5][0-9])|(2[0-3][0-5][0-9])|(2400))$
    daily time policy is no longer in effect <0000..2400>
  • Allowed Values: [ "single", "multi" ]
  • media-profiles
    list of media profiles
  • methods
    Unique Items Required: true
    list of SIP methods for matching with a SIP request method
  • Minimum Length: 1
    Pattern: ^((([0-1]{0,1}[0-9]{0,1}|2[0-4])[0-9]|25[0-5])[.]){3}(([0-1]{0,1}[0-9]{0,1}|2[0-4])[0-9]|25[0-5])$|^((([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4})|(([0-9a-fA-F]{1,4}:){6}((:[0-9a-fA-F]{1,4})|(((([0-1]{0,1}[0-9]{0,1}|2[0-4])[0-9]|25[0-5])[.]){3}(([0-1]{0,1}[0-9]{0,1}|2[0-4])[0-9]|25[0-5]))))|(([0-9a-fA-F]{1,4}:){5}:((([0-9a-fA-F]{1,4}:)?[0-9a-fA-F]{1,4})|(((([0-1]{0,1}[0-9]{0,1}|2[0-4])[0-9]|25[0-5])[.]){3}(([0-1]{0,1}[0-9]{0,1}|2[0-4])[0-9]|25[0-5]))))|(([0-9a-fA-F]{1,4}:){4}:((([0-9a-fA-F]{1,4}:){0,2}[0-9a-fA-F]{1,4})|(([0-9a-fA-F]{1,4}:)?((([0-1]{0,1}[0-9]{0,1}|2[0-4])[0-9]|25[0-5])[.]){3}(([0-1]{0,1}[0-9]{0,1}|2[0-4])[0-9]|25[0-5]))))|(([0-9a-fA-F]{1,4}:){3}:((([0-9a-fA-F]{1,4}:){0,3}[0-9a-fA-F]{1,4})|(([0-9a-fA-F]{1,4}:){0,2}((([0-1]{0,1}[0-9]{0,1}|2[0-4])[0-9]|25[0-5])[.]){3}(([0-1]{0,1}[0-9]{0,1}|2[0-4])[0-9]|25[0-5]))))|(([0-9a-fA-F]{1,4}:){2}:((([0-9a-fA-F]{1,4}:){0,4}[0-9a-fA-F]{1,4})|(([0-9a-fA-F]{1,4}:){0,3}((([0-1]{0,1}[0-9]{0,1}|2[0-4])[0-9]|25[0-5])[.]){3}(([0-1]{0,1}[0-9]{0,1}|2[0-4])[0-9]|25[0-5]))))|([0-9a-fA-F]{1,4}::((([0-9a-fA-F]{1,4}:){0,5}[0-9a-fA-F]{1,4})|(([0-9a-fA-F]{1,4}:){0,4}((([0-1]{0,1}[0-9]{0,1}|2[0-4])[0-9]|25[0-5])[.]){3}(([0-1]{0,1}[0-9]{0,1}|2[0-4])[0-9]|25[0-5]))))|(::((([0-9a-fA-F]{1,4}:){0,6}[0-9a-fA-F]{1,4})|(([0-9a-fA-F]{1,4}:){0,5}((([0-1]{0,1}[0-9]{0,1}|2[0-4])[0-9]|25[0-5])[.]){3}(([0-1]{0,1}[0-9]{0,1}|2[0-4])[0-9]|25[0-5]))))|(([0-9a-fA-F]{1,4}:){1,7}:)|(::))$|^(([Ee][Nn][Uu][Mm])|([Ll][Dd][Aa][Pp])):[A-Za-z0-9_][A-Za-z0-9._\-]{0,127}(;key=[A-Za-z$@&][A-Za-z._\-]{0,24})?$|^([A-Za-z0-9]([A-Za-z0-9-]*[A-Za-z0-9]){0,1}[.])*([A-Za-z]([A-Za-z0-9-]*[A-Za-z0-9]){0,1})[.]{0,1}$|^(\*)$|^[Ll][Rr][Tt]:[A-Za-z_][A-Za-z0-9._\-]{0,23}(;key=[A-Za-z$@&][A-Za-z._\-]{0,24}(,[A-Za-z$@&][A-Za-z._\-]{0,24})?)?$|^[Ss][Aa][Gg]:[A-Za-z0-9_][A-Za-z0-9._\-]{0,127}$
    next signaling host address
  • next stage key for Multi-Stage Local Policy lookups
  • Pattern: ^([A-Za-z0-9_][A-Za-z0-9._\-]{0,127})?$|^[A-Za-z0-9_][A-Za-z0-9._\-]{0,127}$
    realm of next signaling. NOTE: does NOT need to be configure if matches the realm of Session Agent configured as next hop.
  • Pattern: ^(([0-9])|([0-5][0-9])|([0-1]?[0-9][0-5][0-9])|(2[0-3][0-5][0-9])|(2400))$
    daily time policy goes into effect <0000..2400>
  • administrative state
  • terminate route recursion with this next hop
Nested Schema : media-profiles
Type: array
list of media profiles
Show Source
Nested Schema : methods
Type: array
Unique Items Required: true
list of SIP methods for matching with a SIP request method
Show Source
  • Allowed Values: [ "INVITE", "REGISTER", "PRACK", "OPTIONS", "INFO", "SUBSCRIBE", "NOTIFY", "REFER", "UPDATE", "MESSAGE", "PUBLISH" ]

404 Response

Not Found
Body ()
Root Schema : ApiValidationError
Type: object
Show Source
Nested Schema : errors
Type: array
Show Source
Nested Schema : Errors
Type: object
Show Source

406 Response

Validation Failure
Body ()
Root Schema : ApiValidationError
Type: object
Show Source
Nested Schema : errors
Type: array
Show Source
Nested Schema : Errors
Type: object
Show Source
Back to Top