Updated on 2026-09-14 GMT+08:00

CLI Command Reference

ExternalCOCTicket

API Name

Command

Description

Operation

List ticket

hcloud COC ListTickets

List ticket

Go debug

Search work order history

hcloud COC ListTicketOperationHistories

List Histories

Go debug

Work order operations

hcloud COC ExecuteTicketAction

Change order approval and cancellation and all operations for issue orders are completed through this interface

Go debug

Get Ticket info by id

hcloud COC ShowTicketInfo

Get Ticket info by id

Go debug

Download attachment

hcloud COC DownloadAttachment

Download attachment

Go debug

Create COC Change Or Incident Ticket

hcloud COC CreateTicket

Create COC Change Or Incident Ticket

Go debug

upload attachment

hcloud COC CreateAttachment

upload attachment

Go debug

ExternalCOCChange

API Name

Command

Description

Operation

Search change order sub-orders

hcloud COC ListSubTickets

Search change order sub-orders

Go debug

Update change ticket

hcloud COC UpdateTicket

Update change ticket

Go debug

delete change ticket

hcloud COC DeleteTicketInfo

delete change ticket

Go debug

CocChangeV2

API Name

Command

Description

Operation

update change order

hcloud COC UpdateChange

update change order

Go debug

Alarm

API Name

Command

Description

Operation

ShowAlarm

hcloud COC ShowAlarm

Get alarm info by id

Go debug

auto-process alarm

hcloud COC HandlerAlarm

auto-process alarm

Go debug

List Alarm History

hcloud COC ListAlarmHandleHistories

List Alarm History

Go debug

Transfer Alarm To Incident

hcloud COC TransferAlarmToIncident

Transfer Alarm To Incident

Go debug

Clear Alarm

hcloud COC ClearAlarm

Clear Alarm

Go debug

CocIncidentV2

API Name

Command

Description

Operation

Query list of incident ticket

hcloud COC ListIncidents

Query list of incident ticket

Go debug

Query list of incident operation histories

hcloud COC ListIncidentsHistories

Query list of incident operation histories

Go debug

Operate incident ticket

hcloud COC HandleIncident

Operate incident ticket

Go debug

Query incident ticket tasks

hcloud COC ShowIncidentTask

Query incident ticket tasks

Go debug

Diagnosis

API Name

Command

Description

Operation

Query the diagnostic task records as a list

hcloud COC ListDiagnosisTasks

Query the diagnostic task records as a list

Go debug

Submit the diagnostic task

hcloud COC CreateDiagnosisTask

Submit the diagnostic task

Go debug

Query the details of the specified diagnostic steps under the specified diagnostic record

hcloud COC ShowDiagnosisNode

Query the details of the specified diagnostic steps under the specified diagnostic record

Go debug

Query the details of a single diagnostic task

hcloud COC ShowDiagnosisTask

Query the details of a single diagnostic task

Go debug

Retry the diagnostic task

hcloud COC RetryDiagnosisTask

Retry the diagnostic task

Go debug

Cancel the diagnostic task

hcloud COC CancelDiagnosisTask

Cancel the diagnostic task

Go debug

Query the result summary of the batch diagnostic task

hcloud COC ShowDiagnosisSummary

Query the result summary of the batch diagnostic task

Go debug

WarRoom

API Name

Command

Description

Operation

Create a tenant WarRoom

hcloud COC CreateWarRoom

Create a tenant WarRoom

Go debug

Query list of WarRoom information

hcloud COC ListWarRooms

Query list of WarRoom information

Go debug

compliant

API Name

Command

Description

Operation

Obtaining a Node Compliance Report

hcloud COC ListInstanceCompliant

This API is used to obtaining node compliance reports by page.

Go debug

Obtaining Node Patch Details by Page

hcloud COC ShowInstancePatchItems

This API is used to obtain the patch details of a node by page

Go debug

ScriptExecutionManagement

API Name

Command

Description

Operation

Displaying Basic Information about Script Service Tickets

hcloud COC GetScriptJobInfo

Query Execution: Basic Information

Go debug

Displaying the Batch List

hcloud COC ListScriptJobBatches

Query:Batch List

Go debug

Displaying Instance Status Statistics

hcloud COC GetScriptJobStatistics

Query: instance status statistics.

Go debug

Displaying Batch Details

hcloud COC GetScriptJobBatch

Query: Batch details. You can obtain the list of instances in a batch by page.

Go debug

Displaying the Service Ticket List

hcloud COC ListScriptJobs

Queries the work order list on multiple pages.

Go debug

Operation Script Service Ticket

hcloud COC OperateScriptJob

Operation type: Cancel Instance, Skip Batch, Cancel Entire Work Order, Suspend Entire Work Order, Continue Entire Work Order

Go debug

ScriptManagement

API Name

Command

Description

Operation

Querying Scripts

hcloud COC ListScripts

Job Script List:Custom Scripts

Go debug

Creating a script

hcloud COC CreateScript

Create Job Script:Custom Script

Go debug

Obtaining Details About a Custom Script

hcloud COC GetScript

Obtaining Script Details

Go debug

Executing Customized Scripts

hcloud COC ExecuteScript

Execute scripts

Go debug

Modified Scripts

hcloud COC UpdateScript

Modifying Job Scripts: Custom Scripts

Go debug

Deleting a Customized Script

hcloud COC DeleteScript

Delete job scripts: Customized scripts.

Go debug

Obtaining the Automatic Batching Result

hcloud COC ListInstancesBatch

Obtain the batching result based on the batching policy. Only automatic batching is supported.

Go debug

Evaluate the risk level of the script

hcloud COC CheckScriptRisk

Evaluate the risks of the operation based on the operation content and return the analysis results and information. The results are for reference only.

Go debug

Approve the script to be approved.

hcloud COC AcceptScript

Function: Approve the script.

Go debug

ScriptPublicManagement

API Name

Command

Description

Operation

Obtaining the Public Script List

hcloud COC ListPublicScripts

Obtain the public script list and pagination logic: The limit+marker mode is used to improve the pagination efficiency. Use the auto-increment ID as the marker parameter.

Go debug

Displaying public script details

hcloud COC GetPublicScript

Displaying public script details

Go debug

Executing Common Scripts

hcloud COC ExecutePublicScript

Executing Common Scripts

Go debug

DocumentManagement

API Name

Command

Description

Operation

Querying the Custom Job List

hcloud COC ListDocuments

Querying the Custom Job List

Go debug

Creating a Custom Job

hcloud COC CreateDocument

Creating a Custom Job

Go debug

Obtains the atomic capability list

hcloud COC ListDocumentAtomics

Obtains the atomic capability list

Go debug

Obtains atomic capability details

hcloud COC GetDocumentAtomicInfo

Obtains atomic capability details

Go debug

Modifying a Custom Job

hcloud COC UpdateDocument

Modifying a Custom Job

Go debug

Executing a Custom Job

hcloud COC ExecuteDocument

Executing a Custom Job

Go debug

Querying Details About a User-defined Job

hcloud COC GetDocument

Querying Details About a User-defined Job

Go debug

Deleting a Custom Job

hcloud COC DeleteDocument

Deleting a Custom Job

Go debug

ExecutionManagement

API Name

Command

Description

Operation

Querying Work Order Details

hcloud COC GetExecution

Querying Work Order Details

Go debug

Querying Work Order Step Details

hcloud COC ListExecutionSteps

Querying Work Order Step Details

Go debug

Querying a Work Order Step Batch Instance

hcloud COC ListExecutionInstances

Query the batch instance of a work order step, for example, the ECS instance in the script batch operation.

Go debug

Querying the Work Order List

hcloud COC ListExecutions

Querying the Work Order List

Go debug

Operation work order

hcloud COC OperateExecution

Operation work order

Go debug

ResourceTagManagement

API Name

Command

Description

Operation

Querying the Resource Tag List

hcloud COC ListScriptResourceTags

Querying the Resource Tag List

Go debug

Updating Resource Tags

hcloud COC UpdateResourceTags

Updating Resource Tags

Go debug

resource

API Name

Command

Description

Operation

Query all resources of the user

hcloud COC ListResources

Query all resources of the user

Go debug

Synchronize all resources from RMS

hcloud COC SyncResource

Synchronize all resources from RMS

Go debug

Query the total number of various resources for a user

hcloud COC CountMultiResources

Query the total number of various resources for a user

Go debug

Query the total number of user resources

hcloud COC CountResources

Query the total number of user resources .

Go debug

synchronize Huawei cloud resource agent information

hcloud COC SyncResourceAgent

synchronize Huawei cloud resource agent information.

Go debug

multipleCloud

API Name

Command

Description

Operation

Querying Resources of a User in a Cloud Vendor

hcloud COC ListMultiCloudResources

Querying Resources of a User in a Cloud Vendor

Go debug

Query the total number of resources a user has in the cloud provider's system.

hcloud COC CountMultiCloudResources

Query the total number of resources a user has on cloud providers (Alibaba Cloud, AWS, Azure, and HCS).

Go debug

Manually synchronize user resources from cloud providers

hcloud COC SyncMultiCloudResource

Manually synchronize user resources from cloud providers.

Go debug

Check the latest synchronization status of cloud resources

hcloud COC ShowLastSyncStatus

Check the latest synchronization status of cloud resources.

Go debug

delegation_platform

API Name

Command

Description

Operation

Synchronize offline IDC resource agent information

hcloud COC SyncOtherResourceAgent

Synchronize offline IDC resource agent information.

Go debug

Import IDC Offline Resources

hcloud COC ImportOtherResource

Import IDC Offline Resources.

Go debug

Modify Resource

hcloud COC UpdateOtherResource

Manage and modify resources.

Go debug

Query the number of offline IDC resources

hcloud COC CountOtherResource

Query the number of offline IDC resources

Go debug

Querying resources in a list

hcloud COC ListOtherResource

Manage resources and query resources in a list.

Go debug

Resource management,delete resource

hcloud COC DeleteOtherResource

Resource management,delete resource

Go debug

resourceView

API Name

Command

Description

Operation

Query CMDB cross-account resource view

hcloud COC ListResourceViews

Query CMDB cross-account resource view.

Go debug

Create CMDB cross-account resource view

hcloud COC CreateResourceViews

Create CMDB cross-account resource view.

Go debug

Update CMDB Cross-Account Resource View

hcloud COC UpdateResourceViews

Update CMDB Cross-Account Resource View.

Go debug

Delete the cross-account resource management view in CMDB

hcloud COC DeleteResourceViews

Delete the cross-account resource management view in CMDB.

Go debug

Synchronized CMDB cross-account resource view

hcloud COC SyncResourcesOfResourceView

Synchronized CMDB cross-account resource view.

Go debug

Query the total number of resources aggregated in the CMDB cross-account resource view

hcloud COC CountResourcesOfResourceView

Query the total number of resources aggregated in the CMDB cross-account resource view.

Go debug

Query the aggregated resources of the CMDB cross-account resource view

hcloud COC ListResourcesOfResourceView

Query the aggregated resources of the CMDB cross-account resource view.

Go debug

ResourceTags

API Name

Command

Description

Operation

Query Resource Tags

hcloud COC ListResourceTags

Query Resource Tags.

Go debug

Add Resource Tag

hcloud COC CreateResourceTags

Add Resource Tag.

Go debug

groupRmsResourceRelation

API Name

Command

Description

Operation

Query resources associated with the group

hcloud COC ListGroupRmsResourceRelations

Query resources associated with the group.

Go debug

Transfer resources

hcloud COC UpdateGroupRmsResourceRelation

Transfer resources.

Go debug

Create group resource association

hcloud COC CreateGroupRmsResourceRelation

Create group resource association.

Go debug

Unbind Group Resource Association

hcloud COC DeleteGroupRmsResourceRelation

Unbind Group Resource Association.

Go debug

Query the total number of resources associated with the group

hcloud COC CountGroupRmsResourceRelations

Query the total number of resources associated with the group.

Go debug

Querying Application Capacity Data

hcloud COC ListCapacityView

Querying Application Capacity Data.

Go debug

Query the ranking of application, component, and group capacity data

hcloud COC ListCapacityOrder

Query the ranking of application, component, and group capacity data.

Go debug

groupResourceRelation

API Name

Command

Description

Operation

Query AliYun resources associated with the group

hcloud COC ListGroupAliResourceRelations

Query AliYun resources associated with the group.

Go debug

Query IDC resources associated with the group

hcloud COC ListGroupOtherResourceRelations

Query IDC resources associated with the group.

Go debug

applicationview

API Name

Command

Description

Operation

Query application, component, and group name list

hcloud COC ListApplicationView

Query application, component, and group name list.

Go debug

Batch create applications, groups, and components

hcloud COC BatchCreateApplicationView

Batch create applications, groups, and components

Go debug

enterpriseProjectCollect

API Name

Command

Description

Operation

Query Enterprise Project Collection

hcloud COC ListEnterpriseProjectCollect

Query Enterprise Project Collection.

Go debug

Update Enterprise Project Collection

hcloud COC UpdateEnterpriseProjectCollect

Update Enterprise Project Collection.

Go debug

vendorAccount

API Name

Command

Description

Operation

Querying a Cloud Vendor Account

hcloud COC ListVendorAccount

Query account information for all cloud providers (such as Alibaba Cloud, AWS, Azure, and HCS)

Go debug

Create cloud service provider account

hcloud COC CreateVendorAccount

Create accounts with cloud service providers (such as Alibaba Cloud, AWS, Azure, and HCS).

Go debug

Modify Cloud Provider Account

hcloud COC UpdateVendorAccount

Update account information for all cloud service providers (Alibaba Cloud, AWS, Azure, HCS, etc.).

Go debug

Deleting a Cloud Vendor Account

hcloud COC DeleteVendorAccount

Add a cloud service provider account, and you can delete it when it is no longer needed.

Go debug

job

API Name

Command

Description

Operation

Querying Task Details

hcloud COC ShowJobDetail

Querying Task Details.

Go debug

application

API Name

Command

Description

Operation

Query application

hcloud COC ListApplications

Query application

Go debug

Create Application

hcloud COC CreateApplication

Create Application.

Go debug

Update Application

hcloud COC UpdateApplication

Update Application.

Go debug

Delete Application

hcloud COC DeleteApplication

Delete Application.

Go debug

group

API Name

Command

Description

Operation

Query Grouping

hcloud COC ListApplicationGroups

Query Grouping.

Go debug

Create Group

hcloud COC CreateApplicationGroup

Create Group.

Go debug

Intelligent Synchronization of Group Resources

hcloud COC SyncGroupResource

Intelligent Synchronization of Group Resources.

Go debug

Update Group

hcloud COC UpdateApplicationGroup

Update Group.

Go debug

Delete Group

hcloud COC DeleteApplicationGroup

Delete Group.

Go debug

component

API Name

Command

Description

Operation

Query Component

hcloud COC ListApplicationComponents

Query Component.

Go debug

Create Component

hcloud COC CreateApplicationComponents

Create Component.

Go debug

Update Component

hcloud COC UpdateApplicationComponent

Update Component.

Go debug

Delete Component

hcloud COC DeleteApplicationComponent

Delete Component.

Go debug

ExternalCocIncident

API Name

Command

Description

Operation

CreateExternalIncident Creating an incident ticket

hcloud COC CreateCocIncident

CreateExternalIncident Creating an incident ticket

Go debug

HandleCocIncident Handling Event Tickets

hcloud COC HandleCocIncident

HandleCocIncident Handling Event Tickets

Go debug

GetCocIncidentDetail Obtain event ticket details

hcloud COC ShowCocIncidentDetail

ShowCocIncidentDetail Obtain event ticket details

Go debug

Query Simplified Incident Ticket List

hcloud COC ListIncidentSimpleTickets

This API supports paginated queries for incident ticket lists using limit and offset parameters.

Go debug

GetCocTicketOperationHistories Obtain event ticket history

hcloud COC ListCocTicketOperationHistories

ListCocTicketOperationHistories Obtain event ticket history

Go debug

Upload file to server.

hcloud COC CreateExternalCocAttachment

Upload file to server.

Go debug

ListAuthorizableTicketsExternal

API Name

Command

Description

Operation

Querying the List of COCs That Can Be Authorized

hcloud COC ListAuthorizableTicketsExternal

Querying the List of COCs That Can Be Authorized (Change Request No, Event No, War Room, and Alarm)

Go debug

ExternalCocIssues

API Name

Command

Description

Operation

CreateExternalIssues Create a trouble ticket

hcloud COC CreateCocIssues

CreateExternalIssues Create a trouble ticket

Go debug

GetCocIssuesDetail Obtain event ticket details

hcloud COC ShowCocIssuesDetail

ShowCocIssuesDetail Obtain event ticket details

Go debug

EventMessageIntegration

API Name

Command

Description

Operation

Prometheus Event access

hcloud COC CreateReportPrometheusEvent

Prometheus Event access

Go debug

CustomEventMessageIntegration

API Name

Command

Description

Operation

Allows users to access alarm data.

hcloud COC CreateReportCustomEvent

Tenants can integrate self-developed monitoring systems into the COC in a standard manner. After the integration, alarms are reported to the COC alarm center in a standard format.

Go debug

application-model

API Name

Command

Description

Operation

Query the lower-level sub-applications, components, and groups

hcloud COC ListApplicationModel

Query the lower-level sub-applications, components, and groups

Go debug

ScheduledTask

API Name

Command

Description

Operation

Query Scheduled Task List

hcloud COC ListScheduledTask

Get ScheduledTask infos

Go debug

Create Scheduled Task

hcloud COC CreateScheduledTask

Create Scheduled Task

Go debug

Update ScheduledTask

hcloud COC UpdateScheduledTask

Update ScheduledTask

Go debug

Query ScheduledTask

hcloud COC ShowScheduledTask

Get ScheduledTask info by id

Go debug

Delete ScheduledTask

hcloud COC DeleteScheduledTask

Delete scheduled task by id

Go debug

Query history of scheduledTask

hcloud COC ListScheduledTaskHistory

get scheduled task history list

Go debug

Enable ScheduledTask

hcloud COC EnableScheduledTask

Enable scheduled task by id

Go debug

Disable ScheduledTask

hcloud COC DisableScheduledTask

Disable scheduled task by id

Go debug

AccountManagement

API Name

Command

Description

Operation

reset account password

hcloud COC ResetAccountPassword

reset account password

Go debug

create password change plan

hcloud COC CreatePasswordChangePlan

create password change plan

Go debug

rewrite password change result

hcloud COC UpdateAccountPassword

rewrite password change result

Go debug

AssessTask

API Name

Command

Description

Operation

Pagination Query Assess Task List

hcloud COC ListAssessTask

Pagination Query Assess Task List

Go debug

Create Application Assess Task

hcloud COC CreateAssessTask

Create Application Assess Task

Go debug