修改指定連接埠列表的名稱、條目,支援增加、修改和刪除條目。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
ecs:ModifyPortRangeList |
update |
*PortRangeList
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| RegionId |
string |
是 |
連接埠列表所在地區 ID。您可以調用 DescribeRegions 查看最新的阿里雲地區列表。 |
cn-hangzhou |
| RegionId |
string |
是 |
連接埠列表所在地區 ID。您可以調用 DescribeRegions 查看最新的阿里雲地區列表。 |
cn-hangzhou |
| ClientToken |
string |
否 |
保證請求等冪性。 |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
| PortRangeListId |
string |
是 |
待修改的連接埠列表 ID。 |
prl-2ze9743**** |
| PortRangeListName |
string |
否 |
連接埠列表的名稱。長度為 2~128 個字元,必須以大小字母或中文開頭,不能以 http://、https://、com.aliyun 和 com.alibabacloud 開頭。可以包含中文、英文、數字、半形冒號(:)、底線(_)、半形句號(.)或者短劃線(-)。 |
PortRangeListNameSample |
| Description |
string |
否 |
連接埠列表的描述資訊。長度為 2~256 個英文或中文字元,不能以 http://和 https://開頭。 |
This is description. |
| AddEntry |
array<object> |
否 |
增加或修改的連接埠列表條目數組。 |
|
|
object |
否 |
增加或修改的連接埠列表條目對象。 |
||
| PortRange |
string |
否 |
連接埠範圍,N 的取值範圍:0~200。使用限制:
|
80/80 |
| Description |
string |
否 |
連接埠範圍的描述資訊。長度為 2~32 個英文或中文字元,不能以 http://和 https://開頭。N 的取值範圍:0~200。 |
This is description. |
| RemoveEntry |
array<object> |
否 |
刪除的連接埠列表條目數組。 |
|
|
object |
否 |
刪除的連接埠列表條目對象。 |
||
| PortRange |
string |
否 |
連接埠範圍,N 的取值範圍:0~200。使用限制:
|
80/80 |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
返回參數集合。 |
||
| RequestId |
string |
請求 ID。 |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
樣本
正常返回樣本
JSON格式
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E"
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | InvalidOperation.Conflict | The port range list has conflict task. | 連接埠列表存在衝突的任務。 |
| 400 | InvalidPortRangeListId.NotFound | The specified port range list was not found. | 未找到指定的連接埠列表。 |
| 400 | InvalidOperation.MaxEntriesCountExceed | The specified MaxEntries exceeded the upper limit. | 指定的MaxEntries參數超過了最大限制值。 |
| 400 | InvalidOperation.EntryCountExceedMaxEntries | The number of entries in the port list exceeds MaxEntries. | 指定的條目數量超過了連接埠列表的MaxEntries的值。 |
| 400 | LimitExceed.MaxEntries | The number of entries exceeds the MaxEntries of the specified PortRangeList. | 連接埠列表中的條目數量超過了MaxEntries的值。 |
| 400 | LimitExceed.Entry | The number of entries added or removed exceeds the limit. | 單次增加或刪除的條目數量超出限制。 |
| 400 | InvalidParameter.PortRangeDuplicated | The specified PortRange is duplicated. | 指定的連接埠範圍存在重複。 |
| 400 | InvalidParameter.PortRangeListName | The specified parameter PortRangeListName is not valid. | 指定的連接埠列表名稱不合法。 |
| 400 | InvalidMaxEntries.LessThanCurrentEntries | The specified MaxEntries is less than current entries. | 連接埠列表最大條目數,小於當前條目數量。 |
| 400 | InvalidParameter.PortRange | The specified parameter PortRange is not valid. It should be two integers less than 65535 in specified format. | 連接埠列表中的條目PortRange不符合格式要求。應該指定小於65535的兩個整數,用斜杠分隔。 |
| 400 | MissingParameter | Missing mandatory parameter. | 參數不得為空白。 |
| 400 | InvalidDescription.Malformed | The specifid Description is not valid. | 指定的資源描述格式不合法。長度為 2-256 個字元,不能以 http:// 和 https:// 開頭。 |
| 403 | AuthorizationLimitExceed | The limit of authorization records in the security group reaches. | |
| 404 | InvalidRegionId.NotFound | The specified parameter RegionId is not valid. | 指定的RegionId不存在,請您檢查此產品在該地區是否可用。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。