Loading...
Loading...
Alibaba Cloud Hologres Instance Management Skill. Use for listing and querying Hologres instances. Triggers: "hologres", "list instances", "get instance details", "hologres instance", "hologram".
npx skill4agent add aliyun/alibabacloud-aiops-skills alibabacloud-hologres-instance-manageUser → Aliyun CLI → Hologres API (hologram) → Instance List / Instance DetailsPre-check: Aliyun CLI >= 3.3.1 required Runto verify >= 3.3.1. If not installed or version too low, seealiyun versionfor installation instructions. Then [MUST] runreferences/cli-installation-guide.mdto enable automatic plugin installation.aliyun configure set --auto-plugin-install true
curl -fsSL --connect-timeout 4 --max-time 120 https://aliyuncli.alicdn.com/install.sh | bash
aliyun versionSecurity Rules:
- NEVER read, echo, or print AK/SK values
- NEVER ask the user to input AK/SK directly
- NEVER use
with literal credential valuesaliyun configure set- ONLY use
to verify credential statusaliyun configure list
aliyun configure listaliyun configure list| Product | RAM Action | Resource Scope | Description |
|---|---|---|---|
| Hologram | hologram:ListInstances | | List all Hologres instances |
| Hologram | hologram:GetInstance | | Get instance details |
[MUST] Permission Failure Handling: When any command or API call fails due to permission errors at any point during execution, follow this process:
- Read
to get the full list of permissions required by this SKILLreferences/ram-policies.md- Use
skill to guide the user through requesting the necessary permissionsram-permission-diagnose- Pause and wait until the user confirms that the required permissions have been granted
IMPORTANT: Parameter Confirmation — Before executing any command or API call, ALL user-customizable parameters (e.g., RegionId, instance names, resource group IDs, tags, etc.) MUST be confirmed with the user. Do NOT assume or use default values without explicit user approval.
| Parameter Name | Required/Optional | Description | Default Value |
|---|---|---|---|
| RegionId | Optional | Region where instances are located | User's default region |
| InstanceId | Required (for GetInstance) | The ID of the Hologres instance | None |
| resourceGroupId | Optional | Filter by resource group ID | None |
| tag | Optional | Filter by tags (key-value pairs) | None |
| cmsInstanceType | Optional | Cloud Monitor instance type (standard/follower/mc-acceleration/warehouse/high-memory/serverless) | None |
# List all instances
aliyun hologram POST /api/v1/instances \
--header "Content-Type=application/json" --body "{}" \
--read-timeout 4 --user-agent AlibabaCloud-Agent-Skills
# List instances with resource group filter
aliyun hologram POST /api/v1/instances \
--header "Content-Type=application/json" \
--body '{"resourceGroupId":"rg-acfmvscak73zmby"}' \
--read-timeout 4 --user-agent AlibabaCloud-Agent-Skills
# List instances with tag filter
aliyun hologram POST /api/v1/instances \
--header "Content-Type=application/json" \
--body '{"tag":[{"key":"env","value":"production"}]}' \
--read-timeout 4 --user-agent AlibabaCloud-Agent-Skills
# List instances by CMS instance type
aliyun hologram POST /api/v1/instances \
--header "Content-Type=application/json" \
--body '{"cmsInstanceType":"standard"}' \
--read-timeout 4 --user-agent AlibabaCloud-Agent-SkillsInstanceIdInstanceNameInstanceStatusInstanceTypeInstanceChargeTypeRegionIdEndpoints# Get instance details by ID
aliyun hologram GET /api/v1/instances/{instanceId} \
--read-timeout 4 --user-agent AlibabaCloud-Agent-Skills
# Example with actual instance ID
aliyun hologram GET /api/v1/instances/hgprecn-cn-i7m2v08uu00a \
--read-timeout 4 --user-agent AlibabaCloud-Agent-SkillsInstanceIdInstanceNameInstanceStatusInstanceTypeInstanceChargeTypeCpuMemoryDiskColdStorageVersionEndpointsAutoRenewalEnableHiveAccessEnableServerlessEnableSSLStorageType# Verify ListInstances
aliyun hologram POST /api/v1/instances \
--header "Content-Type=application/json" --body "{}" \
--read-timeout 4 --user-agent AlibabaCloud-Agent-Skills | jq '.InstanceList'
# Verify GetInstance
aliyun hologram GET /api/v1/instances/{your-instance-id} \
--read-timeout 4 --user-agent AlibabaCloud-Agent-Skills | jq '.Instance.InstanceStatus'SuccesstrueInstanceListInstance| Action | CLI Command | Description |
|---|---|---|
| List Instances | | Get list of all Hologres instances |
| Get Instance | | Get details of a specific instance |
aliyun configure listRunningExpirationTime| Reference | Description |
|---|---|
| references/cli-installation-guide.md | Aliyun CLI installation guide |
| references/ram-policies.md | Required RAM permissions |
| references/related-commands.md | Complete CLI commands reference |
| references/verification-method.md | Success verification steps |
| Hologres API Documentation | Official API documentation |
| HTTP Status | Error Code | Error Message | Resolution |
|---|---|---|---|
| 403 | NoPermission | RAM user permission is insufficient | Grant |
| 400 | InvalidParameter | Invalid parameter value | Check parameter format and constraints |
| 404 | InstanceNotFound | Instance does not exist | Verify instance ID is correct |