You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/06/03 08:56:11 UTC
[GitHub] [apisix] Marco-Zheng opened a new issue #4369: check duplicate service to avoid duplicate creation
Marco-Zheng opened a new issue #4369:
URL: https://github.com/apache/apisix/issues/4369
# Improve Docs
When i using below command to add upstream, apisix can create duplicate upstream
```
curl "http://127.0.0.1:9080/apisix/admin/upstreams" -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X POST -d '
{
"nodes": [
{
"host": "127.0.0.1",
"port": 8080,
"weight": 1
}
],
"timeout": {
"connect": 6000,
"read": 6000,
"send": 6000
},
"type": "roundrobin",
"pass_host": "pass",
"name": "dental-practice-patient-web-dev"
}'
```

## Please describe which part of docs should be improved or typo fixed
suggest that apisix can check duplicate service to avoid duplicate creation
## Describe the solution you'd like
avoid duplicate creation like upstream.. etc
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] spacewander closed issue #4369: check duplicate service to avoid duplicate creation
Posted by GitBox <gi...@apache.org>.
spacewander closed issue #4369:
URL: https://github.com/apache/apisix/issues/4369
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] spacewander closed issue #4369: check duplicate service to avoid duplicate creation
Posted by GitBox <gi...@apache.org>.
spacewander closed issue #4369:
URL: https://github.com/apache/apisix/issues/4369
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] spacewander commented on issue #4369: check duplicate service to avoid duplicate creation
Posted by GitBox <gi...@apache.org>.
spacewander commented on issue #4369:
URL: https://github.com/apache/apisix/issues/4369#issuecomment-853718590
Use PUT method.
```
curl "http://127.0.0.1:9080/apisix/admin/upstreams/dental-practice-patient-web-dev" -X PUT
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix] spacewander commented on issue #4369: check duplicate service to avoid duplicate creation
Posted by GitBox <gi...@apache.org>.
spacewander commented on issue #4369:
URL: https://github.com/apache/apisix/issues/4369#issuecomment-853718590
Use PUT method.
```
curl "http://127.0.0.1:9080/apisix/admin/upstreams/dental-practice-patient-web-dev" -X PUT
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org