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

Feature: Add remove api for offline proxy #4422

Closed

Conversation

peter-wangxu
Copy link

@peter-wangxu peter-wangxu commented Sep 6, 2024

This PR adds api to remove a single proxy with name and type example:
curl -X DELETE -u admin:admin -v http://127.0.0.1:7500/api/proxy/tcp/test-tcp
output:
proxy "test-tcp" deleted

WHY

Currently, only clear all offline proxy api is provided, this PR provides api for singe proxy removal

add api to remove a single proxy with name and type
example:
  curl -X DELETE -u admin:admin -v http://127.0.0.1:7500/api/proxy/tcp/test-tcp
output:
  proxy "test-tcp" deleted
@peter-wangxu
Copy link
Author

@fatedier Please take a review

@fatedier
Copy link
Owner

fatedier commented Sep 6, 2024

Currently, there are no plans to support this API, and only the option to clear all is provided in the dashboard.

@peter-wangxu
Copy link
Author

Currently, there are no plans to support this API, and only the option to clear all is provided in the dashboard.

I am adding via this PR.

In our case, we check the proxy status via get api, we also want delete api to manually remove some unwanted or unexpected proxies on purpose.

Copy link

PRs go stale after 21d of inactivity. Stale PRs rot after an additional 7d of inactivity and eventually close.

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

Successfully merging this pull request may close these issues.

2 participants