端口映射管理

更新Provider端口配置

管理员更新Provider的端口映射配置

put/admin/provider/{id}/port-config

Request

  • Base URL
    http://localhost:8888/api/v1
  • URL
    http://localhost:8888/api/v1/admin/provider/{id}/port-config
  • Auth
    API key in header Authorization

Path parameters

idinteger required

Provider ID

Request body

defaultPortCountinteger

All fields are optional so callers can update one setting (for example networkType) without having to repeat the provider's complete port pool. The service layer merges omitted values with the persisted configuration and still validates the resulting complete configuration.

fixedPortsinteger[]

固定实例内端口,22强制保留

networkType'nat_ipv4' | 'nat_ipv4_ipv6' | 'dedicated_ipv4' | 'dedicated_ipv4_ipv6' | 'ipv6_only' | 'no_port_mapping'

网络配置类型

portRangeEndinteger

端口映射范围结束

portRangeStartinteger

端口映射范围起始

Response

更新成功

codeinteger
dataunknown
messagestring
msgstring

Changes

No recorded changes to this operation across all 122 revisions of this API.