← 返回
未分类

Alibabacloud Hologres Instance Manage

Alibaba Cloud Hologres Instance Management Skill. Use for listing and querying Hologres instances. Triggers: "hologres", "list instances", "get instance deta...
阿里云 Hologres 实例管理技能,用于列出和查询 Hologres 实例。触发词:"hologres"、"list instances"、"get instance details"。
sdk-team sdk-team 来源
未分类 clawhub v0.0.2 1 版本 99715.9 Key: 无需
★ 0
Stars
📥 351
下载
💾 0
安装
1
版本
#latest

概述

Hologres Instance Management

Skill for managing Alibaba Cloud Hologres instances - list all instances and get instance details.

Architecture

User → Aliyun CLI → Hologres API (hologram) → Instance List / Instance Details

Installation

Pre-check: Aliyun CLI >= 3.3.3 required

> Run aliyun version to verify >= 3.3.3. If not installed or version too low,

> run curl -fsSL https://aliyuncli.alicdn.com/setup.sh | bash to update,

> or see references/cli-installation-guide.md for installation instructions.

Pre-check: Aliyun CLI plugin update required

> [MUST] run aliyun configure set --auto-plugin-install true to enable automatic plugin installation.

> [MUST] run aliyun plugin update to ensure that any existing plugins are always up-to-date.

curl -fsSL --connect-timeout 4 --max-time 120 https://aliyuncli.alicdn.com/setup.sh | bash
aliyun version

[MUST] CLI User-Agent — Every aliyun CLI command invocation must include:

--user-agent AlibabaCloud-Agent-Skills/alibabacloud-hologres-instance-manage

Authentication

This skill relies on the Alibaba Cloud default credential chain. It never reads, prints, or explicitly handles AK/SK values.

> Security Rules:

> - NEVER read, echo, or print AK/SK values

> - NEVER ask the user to input AK/SK directly

> - NEVER use aliyun configure set with literal credential values

> - ONLY use aliyun configure list to verify credential status

aliyun configure list

Check the output for a valid profile (AK, STS, EcsRamRole, or RamRoleArn).

If no valid profile exists, STOP here. The user must configure credentials outside of this session and return after aliyun configure list shows a valid profile.

RAM Policy

The following RAM permissions are required for this skill:

ProductRAM ActionResource ScopeDescription
-------------------------------------------------
Hologramhologram:ListInstancesacs:hologram:{#regionId}:{#accountId}:instance/*List all Hologres instances
Hologramhologram:GetInstanceacs:hologram:{#regionId}:{#accountId}:instance/{#InstanceId}Get instance details

See references/ram-policies.md for the complete RAM policy document.

> [MUST] Permission Failure Handling: When any command or API call fails due to permission errors at any point during execution, follow this process:

> 1. Read references/ram-policies.md to get the full list of permissions required by this SKILL

> 2. Use ram-permission-diagnose skill to guide the user through requesting the necessary permissions

> 3. Pause and wait until the user confirms that the required permissions have been granted

Parameter Confirmation

> 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 NameRequired/OptionalDescriptionDefault Value
--------------------------------------------------------------
RegionIdOptionalRegion where instances are locatedUser's default region
InstanceIdRequired (for GetInstance)The ID of the Hologres instanceNone
resourceGroupIdOptionalFilter by resource group IDNone
tagOptionalFilter by tags (key-value pairs)None
cmsInstanceTypeOptionalCloud Monitor instance type (standard/follower/mc-acceleration/warehouse/high-memory/serverless)None

Core Workflow

Task 1: List All Hologres Instances

Query all Hologres instances in the specified region.

# List all instances
aliyun hologram POST /api/v1/instances \
  --header "Content-Type=application/json" --body "{}" \
  --read-timeout 4 --user-agent AlibabaCloud-Agent-Skills/alibabacloud-hologres-instance-manage

# 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/alibabacloud-hologres-instance-manage

# 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/alibabacloud-hologres-instance-manage

# 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-Skills/alibabacloud-hologres-instance-manage

Response Fields:

  • InstanceId: Instance ID
  • InstanceName: Instance name
  • InstanceStatus: Status (Creating/Running/Suspended/Allocating)
  • InstanceType: Type (Warehouse/Follower/Standard/Serverless/Shared)
  • InstanceChargeType: Payment type (PostPaid/PrePaid)
  • RegionId: Region ID
  • Endpoints: Network endpoints list

Task 2: Get Instance Details

Get detailed information about a specific Hologres instance.

# Get instance details by ID
aliyun hologram GET /api/v1/instances/{instanceId} \
  --read-timeout 4 --user-agent AlibabaCloud-Agent-Skills/alibabacloud-hologres-instance-manage

# Example with actual instance ID
aliyun hologram GET /api/v1/instances/hgprecn-cn-i7m2v08uu00a \
  --read-timeout 4 --user-agent AlibabaCloud-Agent-Skills/alibabacloud-hologres-instance-manage

Response Fields:

  • InstanceId: Instance ID
  • InstanceName: Instance name (2-64 characters)
  • InstanceStatus: Status (Creating/Running/Suspended/Allocating)
  • InstanceType: Type (Warehouse/Follower/Standard/Serverless/Shared)
  • InstanceChargeType: Payment type (PostPaid/PrePaid)
  • Cpu: CPU cores
  • Memory: Memory in GB
  • Disk: Standard storage size in GB
  • ColdStorage: Cold storage capacity in GB
  • Version: Instance version
  • Endpoints: Network endpoints with VPC/Internet/Intranet details
  • AutoRenewal: Whether auto-renewal is enabled
  • EnableHiveAccess: Whether data lake acceleration is enabled
  • EnableServerless: Whether serverless computing is enabled
  • EnableSSL: Whether SSL is enabled
  • StorageType: Storage type (redundant/local)

Success Verification Method

See references/verification-method.md for detailed verification steps.

Quick Verification

# Verify ListInstances
aliyun hologram POST /api/v1/instances \
  --header "Content-Type=application/json" --body "{}" \
  --read-timeout 4 --user-agent AlibabaCloud-Agent-Skills/alibabacloud-hologres-instance-manage | jq '.InstanceList'

# Verify GetInstance
aliyun hologram GET /api/v1/instances/{your-instance-id} \
  --read-timeout 4 --user-agent AlibabaCloud-Agent-Skills/alibabacloud-hologres-instance-manage | jq '.Instance.InstanceStatus'

Success Indicators:

  • HTTP status code 200
  • Success field is true
  • InstanceList or Instance field contains valid data

Cleanup

This skill performs read-only operations. No cleanup is required.

Command Tables

See references/related-commands.md for the complete CLI commands reference.

ActionCLI CommandDescription
---------------------------------
List Instancesaliyun hologram POST /api/v1/instances --read-timeout 4 --user-agent AlibabaCloud-Agent-Skills/alibabacloud-hologres-instance-manageGet list of all Hologres instances
Get Instancealiyun hologram GET /api/v1/instances/{instanceId} --read-timeout 4 --user-agent AlibabaCloud-Agent-Skills/alibabacloud-hologres-instance-manageGet details of a specific instance

Best Practices

  1. Always verify credentials before executing commands using aliyun configure list
  2. Use filters (resourceGroupId, tags) to narrow down results when listing many instances
  3. Check instance status before performing operations - ensure instance is in Running state
  4. Use appropriate network endpoints - choose VPCSingleTunnel for internal access, Internet for external access
  5. Monitor instance expiration - check ExpirationTime for PrePaid instances to avoid service interruption
  6. Enable SSL for production environments to ensure secure connections

Reference Links

ReferenceDescription
------------------------
references/cli-installation-guide.mdAliyun CLI installation guide
references/ram-policies.mdRequired RAM permissions
references/related-commands.mdComplete CLI commands reference
references/verification-method.mdSuccess verification steps
Hologres API DocumentationOfficial API documentation

Error Handling

HTTP StatusError CodeError MessageResolution
---------------------------------------------------
403NoPermissionRAM user permission is insufficientGrant AliyunHologresReadOnlyAccess permission
400InvalidParameterInvalid parameter valueCheck parameter format and constraints
404InstanceNotFoundInstance does not existVerify instance ID is correct

For more error codes, see Hologres Error Center.

版本历史

共 1 个版本

  • v0.0.2 当前
    2026-05-03 09:25 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-agent

Alibabacloud Find Skills

sdk-team
用于搜索、发现、浏览或查找阿里云(Alibaba Cloud)代理技能。触发词包括“查找X技能”“搜索阿里云…”等。
★ 0 📥 1,012

Alibabacloud Lindorm Agent Skill

sdk-team
阿里云Lindorm云原生多模型数据库技能,涵盖实例管理、监控、性能、存储、连接、备份、迁移等。
★ 1 📥 602

Alibabacloud Pds Intelligent Workspace

sdk-team
阿里云 PDS(智能云盘/网盘)文件操作技能。支持:文件搜索、文件上传、文件下载、文档/音视频分析、打包下载、图像编辑(缩放、裁剪、旋转、分割、移除、水印等)、以图搜图、挂载网盘、文件分享链接管理。 当用户提到 PDS、网盘、云盘、个人空间
★ 0 📥 609