调用 AssociateAllowList 接口绑定实例与白名单。
同步请求。
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
InstanceIds | Array of String | 是 | ["vedbm-ca12cbqv****"] | 需要绑定白名单的实例 ID。 说明
|
AllowListIds | Array of String | 是 | ["acl-c2402ba601374808aeb19d06acc2****","acl-b2a5bf3e471c433096232082c199****"] | 需要绑定实例的白名单 ID。 说明
|
null
POST /?Action=AssociateAllowList&Version=2022-01-01 HTTP/1.1 Accept: application/json Content-Type: application/json Host: vedbm.volcengineapi.com X-Date: 20220614T114308Z Authorization: HMAC-SHA256 Credential=AKIAIAGMBG4SXSQQ****/20220614/cn-beijing/veDB/request, SignedHeaders=accept;content-type;host;x-date, Signature=6a593bf5f59e7c1109fb205c739d1cff4c672fe2d251963f4d48c8701d16**** { "InstanceIds":["vedbm-ca12cbqv****"], "AllowListIds":[ "acl-c2402ba601374808aeb19d06acc2****", "acl-b2a5bf3e471c433096232082c199****" ] }
正常返回示例
{ "ResponseMetadata": { "RequestId": "20220316164600010225243081008D****", "Action": "AssociateAllowList", "Version": "2022-01-01", "Service": "vedbm", "Region": "cn-beijing" }, "Result": null }
更多详情,请参见错误码。