Security

Alibaba Cloud Security Content Moderation Green

Discover, call, and verify Alibaba Cloud Green resource APIs with SDKs or OpenAPI Explorer.

What it does

Manage Alibaba Cloud Content Moderation (Green) resources through RPC OpenAPI calls using official SDKs or OpenAPI Explorer. It discovers APIs and schemas from metadata, confirms region and resource IDs, performs list, describe, create, update, or status operations, then verifies results and saves reproducible evidence under the designated output directory.

When to use it

  • Inventorying Green resources
  • Creating or updating resource configuration
  • Checking resource status and troubleshooting
  • Discovering available Green APIs and schemas

The skill document

Category: service

Content Moderation (Green)

Use Alibaba Cloud OpenAPI (RPC) with official SDKs or OpenAPI Explorer to manage resources for Content Moderation.

Workflow

  1. Confirm region, resource identifiers, and desired action.
  2. Discover API list and required parameters (see references).
  3. Call API with SDK or OpenAPI Explorer.
  4. Verify results with describe/list APIs.

AccessKey priority (must follow)

  1. Environment variables: ALICLOUD_ACCESS_KEY_ID / ALICLOUD_ACCESS_KEY_SECRET / ALICLOUD_REGION_ID Region policy: ALICLOUD_REGION_ID is an optional default. If unset, decide the most reasonable region for the task; if unclear, ask the user.
  2. Shared config file: ~/.alibabacloud/credentials

API discovery

  • Product code: Green
  • Default API version: 2022-09-26
  • Use OpenAPI metadata endpoints to list APIs and get schemas (see references).

High-frequency operation patterns

  1. Inventory/list: prefer List* / Describe* APIs to get current resources.
  2. Change/configure: prefer Create* / Update* / Modify* / Set* APIs for mutations.
  3. Status/troubleshoot: prefer Get* / Query* / Describe*Status APIs for diagnosis.

Minimal executable quickstart

Use metadata-first discovery before calling business APIs:

python scripts/list_openapi_meta_apis.py

Optional overrides:

python scripts/list_openapi_meta_apis.py --product-code  --version 

The script writes API inventory artifacts under the skill output directory.

Output policy

If you need to save responses or generated artifacts, write them under: output/alicloud-security-content-moderation-green/

Validation

mkdir -p output/alicloud-security-content-moderation-green
for f in skills/security/content/alicloud-security-content-moderation-green/scripts/*.py; do
  python3 -m py_compile "$f"
done
echo "py_compile_ok" > output/alicloud-security-content-moderation-green/validate.txt

Pass criteria: command exits 0 and output/alicloud-security-content-moderation-green/validate.txt is generated.

Output And Evidence

  • Save artifacts, command outputs, and API response summaries under output/alicloud-security-content-moderation-green/.
  • Include key parameters (region/resource id/time range) in evidence files for reproducibility.

Prerequisites

  • Configure least-privilege Alibaba Cloud credentials before execution.
  • Prefer environment variables: ALICLOUD_ACCESS_KEY_ID, ALICLOUD_ACCESS_KEY_SECRET, optional ALICLOUD_REGION_ID.
  • If region is unclear, ask the user before running mutating operations.

References

  • Sources: references/sources.md

Questions people ask

How does it determine which Green API and parameters to use?
It uses OpenAPI metadata for product code `Green` and defaults to API version `2022-09-26` to list APIs and inspect their schemas before making business API calls.
Where does it read Alibaba Cloud credentials and region settings?
It first checks `ALICLOUD_ACCESS_KEY_ID`, `ALICLOUD_ACCESS_KEY_SECRET`, and the optional `ALICLOUD_REGION_ID`, then falls back to `~/.alibabacloud/credentials`. If the region is unclear, it asks before mutating resources.
How are changes verified and documented?
It verifies outcomes with list or describe APIs. Artifacts, command output, API response summaries, and key parameters such as region and resource ID are saved under `output/alicloud-security-content-moderation-green/`.

Related skills

Forecast cash, calculate runway, model financing, and prepare finance decisions for boards and founders.

214 installs7 stars

Builds CMO-level strategy, budgets, channel plans, team design, and pipeline targets tied to revenue.

131 installs16 stars

Coordinate local multi-agent work with shared state, budget checks, validation, and advisory permission gates.

164 installs6 stars

Monitor signed advisories, match affected installed skills, and gate risky installs or removals on approval.

357 installs8 stars

Audit, reconcile, and record machine-facing entity identity with evidence and provenance.

87 installs2 stars

Monitor NVD CVEs, community advisories, and pre-CVE GitHub advisories in one agent security feed.

by davida-ps103 installs1 stars