You need to enable JavaScript to run this app.
文档中心
配置审计

配置审计

复制全文
下载 pdf
规则管理
PutResourceExemption - 设置资源豁免
复制全文
下载 pdf
PutResourceExemption - 设置资源豁免

为当前账号指定资源设置规则豁免;生效后该资源在指定规则下不合规时会标记为豁免,直到豁免过期或被取消。

调试

请求参数

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

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

PutResourceExemption

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

Version
String
是

2025-01-01

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

RuleId
String
是

rule-123456

规则 ID

ResourceIdentifier
String
是

i-1234567890abcdef0

资源唯一标识符

Region
String
是

cn-beijing

资源所属地域

ResourceType
String
是

Volcengine::Ecs::Instance

资源类型

Description
String
是

example description

描述

ExpireAt
String
是

2026-12-31T23:59:59Z

豁免过期时间

返回参数

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

请求示例

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

{
  "RuleId": "rule-123456",
  "ResourceIdentifier": "i-1234567890abcdef0",
  "Region": "cn-beijing",
  "ResourceType": "Volcengine::Ecs::Instance",
  "Description": "example description",
  "ExpireAt": "2026-06-18T00:00:00Z"
}

返回示例

{
    "ResponseMetadata": {
        "RequestId": "202605181646490000000000000000",
        "Action": "PutResourceExemption",
        "Version": "2025-01-01",
        "Service": "config",
        "Region": "cn-beijing"
    }
}

错误码

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

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

The specified parameter %s is invalid.

400
ServiceNotEnabled

The operation are prohibited when service is not enabled.

服务处于非开启状态时,禁止执行该操作

400
ConcurrentException

The operations frequency exceeds limit, please retry later.

400
NotFound.Rule

The rule is not found.

500
InternalError

The request has failed due to an unknown error.

最近更新时间:2026.07.10 14:52:24
这个页面对您有帮助吗?
有用
有用
无用
无用