Skill for managing Alibaba Cloud Hologres instances - list all instances and get instance details.
text
User → Aliyun CLI → Hologres API (hologram) → Instance List / Instance Details
Pre-check: Aliyun CLI >= 3.3.3 required
Run
aliyun versionto verify >= 3.3.3. If not installed or version too low, runcurl -fsSL https://aliyuncli.alicdn.com/setup.sh | bashto update, or seereferences/cli-installation-guide.mdfor installation instructions.
Pre-check: Aliyun CLI plugin update required
[MUST] run
aliyun configure set --auto-plugin-install trueto enable automatic plugin installation. [MUST] runaliyun plugin updateto ensure that any existing plugins are always up-to-date.
bash
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
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 setwith literal credential values- ONLY use
aliyun configure listto verify credential status
bash
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.
The following RAM permissions are required for this skill:
ProductRAM ActionResource ScopeDescriptionHologramhologram:ListInstancesacs:hologram:{#regionId}:{#accountId}:instance/*List all Hologres instancesHologramhologram: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:
- Read
references/ram-policies.mdto get the full list of permissions required by this SKILL- Use
ram-permission-diagnoseskill to guide the user through requesting the necessary permissions- 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 NameRequired/OptionalDescriptionDefault ValueRegionIdOptionalRegion where instances are locatedUser's default regionInstanceIdRequired (for GetInstance)The ID of the Hologres instanceNoneresourceGroupIdOptionalFilter by resource group IDNonetagOptionalFilter by tags (key-value pairs)NonecmsInstanceTypeOptionalCloud Monitor instance type (standard/follower/mc-acceleration/warehouse/high-memory/serverless)None
Query all Hologres instances in the specified region.
bash
# 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 IDInstanceName: Instance nameInstanceStatus: Status (Creating/Running/Suspended/Allocating)InstanceType: Type (Warehouse/Follower/Standard/Serverless/Shared)InstanceChargeType: Payment type (PostPaid/PrePaid)RegionId: Region IDEndpoints: Network endpoints listGet detailed information about a specific Hologres instance.
bash
# 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 IDInstanceName: 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 coresMemory: Memory in GBDisk: Standard storage size in GBColdStorage: Cold storage capacity in GBVersion: Instance versionEndpoints: Network endpoints with VPC/Internet/Intranet detailsAutoRenewal: Whether auto-renewal is enabledEnableHiveAccess: Whether data lake acceleration is enabledEnableServerless: Whether serverless computing is enabledEnableSSL: Whether SSL is enabledStorageType: Storage type (redundant/local)See references/verification-method.md for detailed verification steps.
bash
# 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:
Success field is trueInstanceList or Instance field contains valid dataThis skill performs read-only operations. No cleanup is required.
See references/related-commands.md for the complete CLI commands reference.
ActionCLI CommandDescriptionList Instancesaliyun hologram POST /api/v1/instances --read-timeout 4 --user-agent AlibabaCloud-Agent-Skills/alibabacloud-hologres-instance-manageGet list of all Hologres instancesGet Instancealiyun hologram GET /api/v1/instances/{instanceId} --read-timeout 4 --user-agent AlibabaCloud-Agent-Skills/alibabacloud-hologres-instance-manageGet details of a specific instance
aliyun configure listRunning stateExpirationTime for PrePaid instances to avoid service interruptionReferenceDescriptionreferences/cli-installation-guide.mdAliyun CLI installation guidereferences/ram-policies.mdRequired RAM permissionsreferences/related-commands.mdComplete CLI commands referencereferences/verification-method.mdSuccess verification stepsHologres API DocumentationOfficial API documentation
HTTP StatusError CodeError MessageResolution403NoPermissionRAM user permission is insufficientGrant AliyunHologresReadOnlyAccess permission400InvalidParameterInvalid parameter valueCheck parameter format and constraints404InstanceNotFoundInstance does not existVerify instance ID is correct
For more error codes, see Hologres Error Center.