# Alibaba Cloud Cloud Governance Center API

> Alibaba Cloud Cloud Governance Center API on Apizie: 20 endpoints (Applies an account baseline to multiple existing resource accounts at a time, Creates a baseline of the account factory, Disables and unsubscribes from Cloud Governance Center, Deletes an account factory baseline, …) returned as clean JSON through one API key. Send your own provider key in the x-upstream-key header. Call it over REST at https://zieapi.vercel.app/v1/cloud:aliyun-governance/{endpoint} or from Claude, ChatGPT and Cursor through the Apizie MCP server. Free plan: 1,000 requests a month.

- Project key: `cloud:aliyun-governance`
- Category: Cloud
- Status: byok
- Source: https://api.alibabacloud.com/product/governance
- Page: https://zieapi.vercel.app/api/cloud/aliyun-governance
- OpenAPI: https://zieapi.vercel.app/api/cloud/aliyun-governance/openapi.json

Alibaba Cloud OpenAPI for Cloud Governance Center (governance, version 2021-01-20). Calls are signed with ACS3-HMAC-SHA256 using your AccessKey ID and secret.

## Endpoints

### Applies an account baseline to multiple existing resource accounts at a time
`POST https://zieapi.vercel.app/v1/cloud:aliyun-governance/batch-enroll-accounts` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://governance.ap-southeast-1.aliyuncs.com |
| Accounts | string | no | The resource accounts (JSON-encoded) |
| BaselineItems | string | no | The baseline items. If you specify this parameter, the baseline item configurations are merged with the configurations of the baseline… |
| BaselineId | string | no | The ID of the baseline. If you leave this parameter empty, the default baseline is used |
| RegionId | string | no | The region ID |

### Creates a baseline of the account factory
`POST https://zieapi.vercel.app/v1/cloud:aliyun-governance/create-account-factory-baseline` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://governance.ap-southeast-1.aliyuncs.com |
| BaselineName | string | no | The name of the baseline |
| BaselineItems | string | no | An array that contains the baseline items. You can call the [ListAccountFactoryBaselineItems](~~ListAccountFactoryBaselineItems~~)… |
| Description | string | no | The description of the baseline |
| RegionId | string | no | The region ID |

### Disables and unsubscribes from Cloud Governance Center
`POST https://zieapi.vercel.app/v1/cloud:aliyun-governance/decommission-governance` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://governance.ap-southeast-1.aliyuncs.com |
| RegionId | string | no | RegionId |

### Deletes an account factory baseline
`POST https://zieapi.vercel.app/v1/cloud:aliyun-governance/delete-account-factory-baseline` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://governance.ap-southeast-1.aliyuncs.com |
| BaselineId | string | no | The baseline ID |
| RegionId | string | no | The region ID |

### Creates a new resource account or enrolls an existing resource account in Account Factory
`POST https://zieapi.vercel.app/v1/cloud:aliyun-governance/enroll-account` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://governance.ap-southeast-1.aliyuncs.com |
| AccountNamePrefix | string | no | The prefix for the account name. If you are creating a new resource account, this parameter is required. If you are enrolling an existing… |
| DisplayName | string | no | The display name of the account. If you are creating a new resource account, this parameter is required. If you are enrolling an existing… |
| FolderId | string | no | The ID of the parent folder. If you are creating a new resource account and do not specify this parameter, the account is created in the… |
| PayerAccountUid | integer | no | The ID of the billing account. If you are creating a new resource account and do not specify this parameter, the self-pay settlement… |
| AccountUid | integer | no | The ID of the account to enroll. If you are creating a new resource account, this parameter is not required. If you are enrolling an… |
| BaselineItems | string | no | The baseline items. If you specify this parameter, the baseline item configurations are merged with the configurations of the baseline… |
| BaselineId | string | no | The ID of the baseline. If you leave this parameter empty, the default baseline is used |
| ResellAccountType | string | no | The identity type of the member. Valid values: resell (default): The member is a reseller account. A reseller relationship is… |
| RegionId | string | no | The region ID |
| Tag | string | no | The tags. You can specify up to 20 tags (JSON-encoded) |

### Generate Governance Evaluation Report
`POST https://zieapi.vercel.app/v1/cloud:aliyun-governance/generate-evaluation-report` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://governance.ap-southeast-1.aliyuncs.com |
| RegionId | string | no | RegionId |
| AccountId | integer | no | The account ID. If this parameter is not specified, the report is generated for the current account by default. A management account (MA)… |
| ReportType | string | no | The report type. Valid values: EvaluationAccountHtmlReport: single-account HTML report. EvaluationAccountExcelReport: single-account Excel… |
| AccountIds | string | no | The list of member account IDs for which to generate reports. Note: This parameter is required only when you generate a multi-account… |
| EvaluationDomain | string | no | The EvaluationDomain |

### Obtains the details of an account factory baseline
`POST https://zieapi.vercel.app/v1/cloud:aliyun-governance/get-account-factory-baseline` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://governance.ap-southeast-1.aliyuncs.com |
| BaselineId | string | no | The ID of the baseline |
| RegionId | string | no | The region ID |

### Queries the details about an account that is enrolled in the account factory
`POST https://zieapi.vercel.app/v1/cloud:aliyun-governance/get-enrolled-account` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://governance.ap-southeast-1.aliyuncs.com |
| AccountUid | integer | yes | The ID of the account |
| RegionId | string | no | The region ID |

### 查询云治理中心服务开通状态
`POST https://zieapi.vercel.app/v1/cloud:aliyun-governance/get-governance-service-status` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://governance.ap-southeast-1.aliyuncs.com |
| RegionId | string | yes | 必填。待操作或查询的地域 ID，必须为服务支持的合法地域，且与本次调用 endpoint 对应的地域一致；不提供隐式默认地域 |

### Queries a list of baseline items that are supported by the account factory of Cloud Governance Center (CGC)
`POST https://zieapi.vercel.app/v1/cloud:aliyun-governance/list-account-factory-baseline-items` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://governance.ap-southeast-1.aliyuncs.com |
| Type | string | no | The type of the baseline items |
| Names | string | no | The names of the baseline items (JSON-encoded) |
| Versions | string | no | The versions of the baseline items (JSON-encoded) |
| NextToken | string | no | The pagination token that is used in the next request to retrieve a new page of results. You do not need to specify this parameter for the… |
| MaxResults | integer | no | The maximum number of entries per page. Valid values: 1 to 100. Default value: 10 |
| RegionId | string | no | The region ID |

### Obtains a list of baselines in the account factory
`POST https://zieapi.vercel.app/v1/cloud:aliyun-governance/list-account-factory-baselines` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://governance.ap-southeast-1.aliyuncs.com |
| NextToken | string | no | The pagination token that is used in the next request to retrieve a new page of results. You do not need to specify this parameter for the… |
| MaxResults | integer | no | The maximum number of entries to return on each page. Valid values: 1 to 100. Default value: 10 |
| RegionId | string | no | The region ID |

### Queries a list of accounts that are enrolled in the account factory
`POST https://zieapi.vercel.app/v1/cloud:aliyun-governance/list-enrolled-accounts` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://governance.ap-southeast-1.aliyuncs.com |
| NextToken | string | no | The pagination token that is used in the next request to retrieve a new page of results. You do not need to specify this parameter for the… |
| MaxResults | integer | no | The maximum number of entries per page. Valid values: 1 to 100. Default value: 10 |
| RegionId | string | no | The region ID |

### Retrieves information about all available governance evaluation items, including names, IDs, descriptions,…
`POST https://zieapi.vercel.app/v1/cloud:aliyun-governance/list-evaluation-metadata` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://governance.ap-southeast-1.aliyuncs.com |
| RegionId | string | no | The region ID |
| Language | string | no | The language type. Governance evaluation definitions are returned in this language. Valid values: en: English. zh: Chinese |
| LensCode | string | no | The specialized evaluation code. Valid values: basic (default): foundation model (governance maturity) evaluation. ack: container building… |
| TopicCode | string | no | The governance topic code |
| EvaluationDomain | string | no | The EvaluationDomain |

### Retrieves non-compliant resource information for a specified check item, including the name, ID, category,…
`POST https://zieapi.vercel.app/v1/cloud:aliyun-governance/list-evaluation-metric-details` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://governance.ap-southeast-1.aliyuncs.com |
| Id | string | no | The ID of the check item for which you want to retrieve non-compliant resources. You can call the… |
| AccountId | integer | no | The ID of the member account. This parameter is applicable only to the multi-account check pattern |
| NextToken | string | no | The token for the next query |
| MaxResults | integer | no | The maximum number of entries to return in a single request. Default value: 5 |
| RegionId | string | no | The region ID |
| SnapshotId | string | no | The check snapshot ID |
| Scope | string | no | The scope of the governance maturity check. Valid values: Account (default): queries the check item details for the current account.… |
| Date | string | no | The date to query |
| EvaluationDomain | string | no | The EvaluationDomain |

### Get governance evaluation results and status
`POST https://zieapi.vercel.app/v1/cloud:aliyun-governance/list-evaluation-results` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://governance.ap-southeast-1.aliyuncs.com |
| AccountId | integer | no | Member account ID. This parameter is only applicable to multi-account evaluation mode |
| RegionId | string | no | Region ID |
| Filters | string | no | Filter conditions (JSON-encoded) |
| SnapshotId | string | no | Evaluation snapshot ID |
| Scope | string | no | Governance maturity evaluation scope. Valid values: Account (default): Performs single-account governance maturity evaluation, evaluating… |
| LensCode | string | no | Special evaluation code. Valid values: basic (default): Basic model (governance maturity) evaluation. ack: Container construction special… |
| TopicCode | string | no | Governance topic code |
| EvaluationDomain | string | no | The EvaluationDomain |

### Retrieves the historical scores of governance detection
`POST https://zieapi.vercel.app/v1/cloud:aliyun-governance/list-evaluation-score-history` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://governance.ap-southeast-1.aliyuncs.com |
| RegionId | string | no | The region ID |
| StartDate | string | no | The start date of the query. Format: YYYY-MM-DD. You can query records from the last 180 days |
| EndDate | string | no | The end date of the query. Format: YYYY-MM-DD. By default, the historical scores from the last 7 days are returned |
| AccountId | integer | no | The ID of the member accounts. This parameter is applicable only to the multi-account detection pattern |
| EvaluationDomain | string | no | The EvaluationDomain |

### Enables Cloud Governance Center
`POST https://zieapi.vercel.app/v1/cloud:aliyun-governance/open-governance-service` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://governance.ap-southeast-1.aliyuncs.com |
| RegionId | string | no | RegionId |

### Runs a Cloud Governance Center governance check
`POST https://zieapi.vercel.app/v1/cloud:aliyun-governance/run-evaluation` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://governance.ap-southeast-1.aliyuncs.com |
| AccountId | integer | no | The ID of the member account. This parameter is applicable only to the multi-account check pattern |
| RegionId | string | no | The region ID |
| Scope | string | no | The scope of the governance maturity check. Valid values: Account (default): runs a single-account governance maturity check that checks… |
| MetricIds | string | no | The list of check item IDs to check (JSON-encoded) |
| EvaluationDomain | string | no | The EvaluationDomain |

### Updates a baseline of the account factory
`POST https://zieapi.vercel.app/v1/cloud:aliyun-governance/update-account-factory-baseline` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://governance.ap-southeast-1.aliyuncs.com |
| BaselineId | string | no | The baseline ID |
| BaselineName | string | no | The name of the baseline |
| BaselineItems | string | no | The baseline items. You can call the [ListAccountFactoryBaselineItems](~~ListAccountFactoryBaselineItems~~) operation to query a list of… |
| Description | string | no | The description of the baseline |
| RegionId | string | no | The region ID |

### version
`POST https://zieapi.vercel.app/v1/cloud:aliyun-governance/version` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://governance.ap-southeast-1.aliyuncs.com |

## Example
```
curl "https://zieapi.vercel.app/v1/cloud:aliyun-governance/batch-enroll-accounts" \
  -H "x-api-key: $APIZIE_KEY" \
  -H "x-upstream-key: $PROVIDER_KEY"
```

## FAQ

### How do I call the Alibaba Cloud Cloud Governance Center API?
Create a free Apizie key, then send POST https://zieapi.vercel.app/v1/cloud:aliyun-governance/batch-enroll-accounts with the header x-api-key. Every endpoint returns { project, data, timestamp }.

### Is the Alibaba Cloud Cloud Governance Center API free on Apizie?
Yes. The Free plan includes 1,000 requests a month at 100 requests a minute, no credit card. Alibaba Cloud Cloud Governance Center itself also needs your own key from aliyuncs.com.

### Can AI agents use the Alibaba Cloud Cloud Governance Center API?
Yes. Add the Apizie MCP server (https://zieapi.vercel.app/mcp) to Claude, ChatGPT, Cursor or VS Code, then ask in plain language. The agent calls run_scraper with project key cloud:aliyun-governance.

### What is the status of the Alibaba Cloud Cloud Governance Center API?
Needs your own provider key (bring your own key)
