创建服务
POST
/nacos/v1/ns/service
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request POST 'http://127.0.0.1:8848/nacos/v1/ns/service?serviceName={{serviceName2}}'
Response Response Example
ok
Request
Query Params
serviceName
string
required
Example:
{{serviceName2}}
groupName
string
optional
namespaceId
string
optional
protectThreshold
string
optional
Example:
0
metadata
string
optional
Example:
{{metadata}}
selector
string
optional