全部产品
Search
文档中心

AI 云治理中心:GetGovernanceServiceStatus - 查询云治理中心服务开通状态

更新时间:Nov 02, 2026

查询云治理中心服务开通状态。

接口说明

按 RegionId 查询 AI 云治理中心服务状态。开通和关闭均异步执行,调用方应轮询至结果状态。查询成功的 ServiceStatus 为 EnableFailed/DisableFailed 时,失败原因随 FailureCode/FailureMessage 返回,仍属于成功查询。Enabling/Disabling 是进行中状态;开通补偿未完成或补偿失败后继续补偿时仍为 Enabling。仅缺失/非法地域、地域与 endpoint 不匹配、无权限等请求问题走错误响应;不得将子服务的业务失败转为查询请求失败。既有开通记录保持原有兼容口径;本次 API 新发起开通仅在 AI 云治理中心和治理成熟度检测均开通成功后返回 Enabled。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

调试

授权信息

下表是API对应的授权信息,可以在RAM权限策略语句的Action元素中使用,用来给RAM用户或RAM角色授予调用此API的权限。具体说明如下:

  • 操作:是指具体的权限点。

  • 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。

  • 资源类型:是指操作中支持授权的资源类型。具体说明如下:

    • 对于必选的资源类型,用前面加 * 表示。

    • 对于不支持资源级授权的操作,用全部资源表示。

  • 条件关键字:是指云产品自身定义的条件关键字。

  • 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。

操作

访问级别

资源类型

条件关键字

关联操作

governance:GetGovernanceServiceStatus

get

*全部资源

*

无 无

请求参数

名称

类型

必填

描述

示例值

RegionId

string

是

RegionId

cn-hangzhou

返回参数

名称

类型

描述

示例值

object

Schema of Response

RequestId

string

Id of the request

60D54503-F1F6-51B6-B6FA-A70CBDA2A68C

ServiceStatus

string

The status of the Cloud Governance Center service.

Enabled

FailureCode

string

The code that identifies the cause of an enablement or disablement failure. Returned when ServiceStatus is EnableFailed or DisableFailed; otherwise, this parameter is empty or omitted.

Governance.DisableFailed

FailureMessage

string

The description of an enablement or disablement failure and the recommended action. Returned when ServiceStatus is EnableFailed or DisableFailed; otherwise, this parameter is empty or omitted.

The service could not be disabled. Query the service status before retrying. If the problem persists, submit a ticket.

示例

正常返回示例

JSON格式

{
  "RequestId": "60D54503-F1F6-51B6-B6FA-A70CBDA2A68C",
  "ServiceStatus": "Enabled",
  "FailureCode": "Governance.DisableFailed",
  "FailureMessage": "The service could not be disabled. Query the service status before retrying. If the problem persists, submit a ticket."
}

错误码

HTTP status code

错误码

错误信息

描述

400 MissingParameter.RegionId The required parameter RegionId is missing. 缺少必填参数 RegionId,请在请求中提供地域 ID。
400 InvalidParameter.RegionId The specified RegionId is invalid. 指定的 RegionId 无效,请检查并提供有效的地域 ID。
500 InternalError A system error occurred. 系统错误。
403 InvalidRegion.NotMatch The specified region is invalid. Please switch to the region where the service is activated. 当前请求地域与服务所在地域不一致,请切换至对应地域后重试。
403 NoPermission You are not authorized to perform this operation. Action: %s. Resource: %s. 当前账号没有权限执行该操作
404 InvalidUser.NotFound The specified user does not exist. 用户不存在。

访问错误中心查看更多错误码。

变更历史

更多信息,参考变更详情。