MC-RouterAPI

所属分类:collect
开发工具:PowerShell
文件大小:0KB
下载次数:0
上传日期:2021-11-14 13:30:15
上 传 者sh-1993
说明:  用于itzg mc路由器的Powershell模块,
(Powershell Module for itzg mc-router,)

文件列表:
MC-RouterAPI.psd1 (9216, 2021-11-14)
MC-RouterAPI.psm1 (332, 2021-11-14)
Public/ (0, 2021-11-14)
Public/func_Get-MCRoutes.ps1 (385, 2021-11-14)
Public/func_New-MCRoute.ps1 (684, 2021-11-14)
Public/func_Remove-MCRoute.ps1 (354, 2021-11-14)
Public/func_Set-MCDefaultRoute.ps1 (548, 2021-11-14)

# MC-RouterAPI Powershell Module for [itzg/mc-router](https://github.com/itzg/mc-router) # Installation: 1. Add my Repository for easy use: \ `Register-PSRepository -Name Minenbauer -SourceLocation http://repo.minenbauer.de/repository/powershell/ -PackageManagementProvider nuget -InstallationPolicy Trusted` 2. Import this Module: \ `Import-Module -Name MC-RouterAPI` 3. Use it like described [here](#Examples) # Examples Lets say your mc-router runs under *192.168.1.1* and you have [exposed the API](https://github.com/itzg/mc-router#usage) under port *25575*: 1. List all Routes: \ `Get-MCRoutes -Uri http://192.168.1.1:25575` ``` Output: {"vanilla.example.com":"192.168.1.10:25565","forge.example.com":"192.168.1.11:25565"} ``` 2. Add a new route: \ `New-MCRoute -uri http://192.168.1.1:25575 -address paper.example.com -backend 192.168.1.12:25565` 3. Remove a route: \ `Remove-MCRoute -uri http://192.168.1.1:25575 -address paper.example.com` 4. Set the default route: \ `Set-MCDefaultRoute -uri http://192.168.1.1:25575 -backend "192.168.1.10:25566"`

近期下载者

相关文件


收藏者