You need to enable JavaScript to run this app.
访问控制

访问控制

复制全文
安全设置
UpdateAllowedIPAddresses - 设置子用户IP白名单
复制全文
UpdateAllowedIPAddresses - 设置子用户IP白名单

设置子用户IP白名单

调试

请求参数

下表仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数

参数
类型
是否必填
示例值
描述
Action
String

UpdateAllowedIPAddresses

要执行的操作,取值:UpdateAllowedIPAddresses。

Version
String

2018-01-01

API的版本,取值:2018-01-01。

EnableIPList
Boolean

true

是否开启IP白名单

IPList
Array of Object

[{"IP":"10.1.1.5","Description":""},{"IP":"10.1.1.6","Description":""}]

IP白名单列表

返回参数

本接口无特有的返回参数。更多信息请见返回结构

请求示例

POST /?Action=UpdateAllowedIPAddresses&Version=2018-01-01 HTTP/1.1
Host: iam.volcengineapi.com
Content-Type: application/json; charset=UTF-8
X-Date: 20260115T104207Z
X-Content-Sha256: 287e874e******d653b44d21e
Authorization: HMAC-SHA256 Credential=Adfks******wekfwe/20260115/cn-beijing/iam/request, SignedHeaders=host;x-content-sha256;x-date, Signature=47a7d934ff7b37c03938******cd7b8278a40a1057690c401e92246a0e41085f

{
  "EnableIPList": true,
  "IPList": [
    {
      "IP": "10.1.1.5",
      "Description": ""
    }
  ]
}

返回示例

{
    "ResponseMetadata": {
        "RequestId": "202405301535509A14F63701A042065880",
        "Action": "UpdateAllowedIPAddresses",
        "Version": "2018-01-01",
        "Service": "iam",
        "Region": "cn-north-1"
    }
}

错误码

下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。

状态码
错误码
错误信息
说明
400
QuotaExceededIPList

The count of ip has exceeded the quota.

IP 数量已超出配额限制。

500
ServiceFailure

The requested service failed due to an unknown error

内部服务错误。

最近更新时间:2026.01.20 21:57:55
这个页面对您有帮助吗?
有用
有用
无用
无用