注册实例
/nacos/v1/ns/instance
注册一个实例到服务。
请求参数
Query Params
ip
string
required
服务实例IP
Example:
11.11.11.11
port
integer
required
服务实例port
Example:
8848
namespaceId
string
optional
命名空间ID
Example:
n1
weight
string
optional
double,权重
Example:
1.0
enabled
string
optional
boolean,是否上线
healthy
string
optional
boolean,是否健康
Example:
true
metadata
string
optional
扩展信息
clusterName
string
optional
集群名
serviceName
string
required
服务名
Example:
{{serviceName3}}
groupName
string
optional
分组名
ephemeral
string
optional
boolean,是否临时实例
encoding
string
optional
Example:
GBK
示例代码
Responses
成功(200)
HTTP 状态码: 200
内容格式: Raw
Example
ok
Modified at 2 年前