調用UpdateIpSet介面修改加速地區中指定的加速地區。
介面說明
- UpdateIpSet 介面屬於非同步介面,即系統會先返回一個請求 ID,但加速地區中指定的加速地區並未修改完成,系統背景修改任務仍在進行。您可以調用 DescribeIpSet 查詢加速地區的狀態:
當加速地區處於 updating 狀態時,表示加速地區正在修改中,在該狀態下,您只能執行查詢操作,不能執行其他動作。
當加速地區處於 active 狀態時,表示加速地區修改完成。
UpdateIpSet 介面不支援在同一個Global Acceleration執行個體內並發修改加速地區。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
ga:UpdateIpSet |
update |
*IpSet
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| RegionId |
string |
是 |
Global Acceleration執行個體所在的地區,僅取值cn-hangzhou。 |
cn-hangzhou |
| ClientToken |
string |
否 |
用戶端 Token,用於保證請求的等冪性。 從您的用戶端產生一個參數值,確保不同請求間該參數值唯一。ClientToken 只支援 ASCII 字元。 說明
若您未指定,則系統自動使用 API 請求的 RequestId 作為 ClientToken 標識。每次 API 請求的 RequestId 不一樣。 |
7D2F7E4E-B958-439C-9821-56D6213A31EC |
| IpSetId |
string |
是 |
要修改的加速地區 ID。 |
ips-bp11r5jb8ogp122xl**** |
| Bandwidth |
integer |
是 |
要修改的加速地區頻寬。單位:Mbps。 每個加速地區支援分配的最小頻寬為 2Mbps。 |
3 |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
返回請求列表。 |
||
| RequestId |
string |
請求 ID。 |
7D2F7E4E-B958-439C-9821-56D6213A31EC |
樣本
正常返回樣本
JSON格式
{
"RequestId": "7D2F7E4E-B958-439C-9821-56D6213A31EC"
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | Resource.QuotaFull | The resource quota is exceeded. | 該資源數量已達配額上限 |
| 400 | NotExist.IpSet | The IpSet does not exist. | IpSet不存在。 |
| 400 | StateError.IpSet | The state of IpSet is invalid. | IpSet狀態非法。 |
| 400 | NotExist.Accelerator | The accelerated instance does not exist. | 加速執行個體不存在。 |
| 400 | StateError.Accelerator | The state of the accelerated instance is invalid. | 加速執行個體狀態非法。 |
| 400 | NotExist.BasicBandwidthPackage | You must specify the basic bandwidth package. | 缺少基礎頻寬包 |
| 400 | GreaterThanGa.IpSetBandwidth | The total bandwidth for IpSet exceeds the total bandwidth of the GA instance. | IpSet配置的總頻寬超過GA執行個體的總頻寬 |
| 500 | UnknownError | An error occurred while processing your request. Please try again. If the error persists, please submit a ticket. | 處理請求時出現錯誤,請稍後重試。 |
| 403 | Forbbiden.SubUser | You are not authorized to operate on the specified resource because your account was created by another user. | 該帳號為其他帳號的子帳號,沒有操作特定資源的許可權。 |
| 403 | Forbidden | The user is not authorized to operate on the specified resource. | 該帳號沒有操作特定資源的許可權。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。