You need to enable JavaScript to run this app.
导航
EnableServiceControlPolicy - 启用管控策略
最近更新时间:2025.06.23 10:37:25首次发布时间:2024.01.11 17:42:36
我的收藏
有用
有用
无用
无用

启用管控策略功能

调试

请求参数

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

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

EnableServiceControlPolicy

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

Version
String

2022-01-01

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

返回参数

下表仅列出本接口特有的返回参数。更多信息请参见返回结构

参数
类型
示例值
描述
Status
String

Enabled

开启状态,Enabled Disabled PendingEnable PendingDisable

请求示例

GET /?Action= EnableServiceControlPolicy&Version=2022-01-01 

返回示例

{
    "ResponseMetadata":{
        "RequestId":"202205191150550102252431470183A0D5",
        "Action":"EnableServiceControlPolicy",
        "Version":"2020-01-01",
        "Service":"organization"
    },
    "Result":{
        "Status":"Enabled" 
    }
}

错误码

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

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

No permission to perform action[%s] on resource %s

无权限,没有对该资源进行该操作的权限

400
ConcurrentException

concurrent request exception

并发请求异常

400
PolicyTypeAlreadyEnabledException

管控策略功能已开启

管控策略功能已开启

409
PolicyEnablementSwitchTooFrequentException

开启管控策略操作过于频繁。请在 %d 分钟后再尝试。

操作过于频繁

500
InternalError

Unknown internal error: %v

未知错误,根据错误信息判断详情