config : server-policy service custom
 
server-policy service custom
Use this command to configure a custom service.
You can add a custom services to a policy to define the protocol and listening port of a virtual server. For details, see “config server-policy policy”.
To use this command, your administrator account’s access control profile must have either w or rw permission to the traroutegrp area. For more information, see “Permissions”.
Syntax
config server-policy service custom
edit <service_name>
set port <port_int>
set protocol TCP
next
end
Variable
Description
Default
<service_name>
Type the name of the new or existing custom network service, such as SOAP1. The maximum length is 63 characters.
To display the list of existing services, type:
edit ?
No default.
port <port_int>
Type the port number on which a virtual server will receive TCP/IP connections for HTTP or HTTPS requests. The valid range is from 1 to 65,535.
No default.
Example
This example configures a service definition named SOAP1.
config server-policy service custom
edit "SOAP1"
set port 8081
set protocol TCP
next
end
Related topics
config server-policy vserver
config server-policy policy
config server-policy service predefined