---
title: "更新应用端口信息"
method: PUT
path: "/v2/tenants/{tenant_name}/services/{service_alias}/ports"
tags: ["v2"]
---

# 更新应用端口信息

`PUT /v2/tenants/{tenant_name}/services/{service_alias}/ports`

## Request

- The document declares no server URL.
- Auth: none declared

update port

## Path parameters

- `tenant_name` string, required
- `service_alias` string, required

## Request body

- object
  - `Port` TenantServicesPort[]
    - `ID` integer
    - `container_port` integer
    - `is_inner_service` boolean
    - `is_outer_service` boolean
    - `mapping_port` integer
    - `port_alias` string
    - `protocol` string
    - `service_id` string
    - `tenant_id` string

## Response `default`

统一返回格式

- CommandResponse (unresolved $ref)

## Changes

- **2017-11-07** `5e3ca7f5dfc5`: 1 info
  - endpoint added
- **2017-11-07** `7b547fba71aa`: 1 breaking
  - api removed without deprecation

[Operation history](https://skmtc.dev/goodrain/apis/goodrain-cmd-api/changes/v2/tenants/:tenant_name/services/:service_alias/ports/put.md)

---

[API](https://skmtc.dev/goodrain/apis/goodrain-cmd-api.md) - [All operations](https://skmtc.dev/goodrain/apis/goodrain-cmd-api/llms.txt) - [OpenAPI document](https://skmtc.dev/goodrain/apis/goodrain-cmd-api/revisions/8c773e222448?raw)
