Skip to main content

Create a service

POST 

/services

Create a new service.

Request

Body

Created

    oneOf
    folder stringrequired

    Possible values: <= 64 characters, Value must match regular expression ^[a-zA-Z\d-_\. ]+$

    The folder in which the resource is defined

    name stringrequired

    Possible values: <= 63 characters, Value must match regular expression ^[ a-zA-Z\d.-_]+$

    The name of the service

    description string

    Possible values: <= 1023 characters

    protocol object required
    oneOf
    tcp object
    port stringrequired

    Possible values: non-empty and <= 1023 characters

    source_port string

    Possible values: non-empty and <= 1023 characters

    override object
    timeout integer

    Possible values: >= 1 and <= 604800

    Default value: 3600

    tcp session timeout value (in second)

    halfclose_timeout integer

    Possible values: >= 1 and <= 604800

    Default value: 120

    tcp session half-close timeout value (in second)

    timewait_timeout integer

    Possible values: >= 1 and <= 600

    Default value: 15

    tcp session time-wait timeout value (in second)

    tag string[]

    Possible values: <= 64

    Tags for service object

Responses

Created

Loading...