Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请增加一个OpenAPI接口:支持动态更新其实某几项元数据的功能 #3870

Closed
HaojunRen opened this issue Sep 19, 2020 · 5 comments
Labels
kind/feature type/feature

Comments

@HaojunRen
Copy link

对于业务服务利用Nacos通过动态修改元数据达到灰度发布的功能,目前只能在Nacos界面实现这个功能,但似乎OpenAPI还未支持

例如:curl -X PUT 127.0.0.1:8848/nacos/v1/ns/instance?serviceName=discovery-guide-service-a&ip=172.27.208.1&port=3001&metadata={"version", "stable"}

我只想把版本号的元数据更改掉,其它元数据不动。目前接口,似乎会把其它元数据都会冲掉

@horizonzy
Copy link
Collaborator

根据你的描述。你发的这个URL能够满足你的需求。传入的数据和之前的保持一致,单独对metadata的数据修改即可

@KomachiSion
Copy link
Collaborator

KomachiSion commented Sep 21, 2020

目前接口对于不填写的内容应该会采用默认值。将其他如权重等数据传修改之前的值即可。

@HaojunRen
Copy link
Author

我的意思,例如,原来在元数据里已经存在了10条数据,其中一条是a=1,我现在希望调用Open api达到把a=2更新到元数据里,而另外9条保持不变。并不是其它参数,而是元数据部分

@KomachiSion
Copy link
Collaborator

欢迎提方案进行讨论,方案如果问题不大可以提个PR完成这个功能

@KomachiSion KomachiSion added the kind/feature type/feature label Sep 23, 2020
@KomachiSion
Copy link
Collaborator

Refer to #3904

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature type/feature
Projects
None yet
Development

No branches or pull requests

3 participants