CLI Command Reference (V2)
Git Authorization
| API Name | Command | Description | Operation |
|---|---|---|---|
| Obtaining a Git Repository Authorization List | hcloud ServiceStage ListAuthorizations/v2 | This API is used to obtain a Git repository authorization list. | |
| Obtaining an Authorization Redirection URL | hcloud ServiceStage ShowRedirectUrl/v2 | This API is used to obtain an authorization redirection URL for a Git repository. | |
| Creating OAuth Authorization | hcloud ServiceStage CreateOAuth/v2 | This API is used to create OAuth authorization for a Git repository. | |
| Creating Private Token Authorization | hcloud ServiceStage CreatePersonalAuth/v2 | This API is used to create private token authorization for a Git repository. | |
| Creating Password Authorization | hcloud ServiceStage CreatePasswordAuth/v2 | This API is used to create password authorization for a Git repository. | |
| Deleting Repository Authorization | hcloud ServiceStage DeleteAuthorize/v2 | This API is used to delete repository authorization based on the name. |
Git Repository
| API Name | Command | Description | Operation |
|---|---|---|---|
| Obtaining a Repository Namespace | hcloud ServiceStage ListNamespaces/v2 | This API is used to obtain a repository namespace. | |
| Obtaining Repository Information Based on the Clone URL | hcloud ServiceStage ShowProjectDetail/v2 | This API is used to obtain repository information based on the clone URL. | |
| Obtaining All Projects in a Namespace | hcloud ServiceStage ListProjects/v2 | This API is used to obtain all projects in a namespace. | |
| Creating a Software Repository Project | hcloud ServiceStage CreateProject/v2 | This API is used to create a software repository project. | |
| Obtaining a Project Branch | hcloud ServiceStage ListBranches/v2 | This API is used to obtain a project branch in a specified project. | |
| Obtaining a Project Tag | hcloud ServiceStage ListTags/v2 | This API is used to obtain a project tag. | |
| Creating a Project Tag | hcloud ServiceStage CreateTag/v2 | This API is used to create a project tag in a project. | |
| Deleting a Project Tag | hcloud ServiceStage DeleteTag/v2 | This API is used to delete a project tag in a project. | |
| Obtaining Project Commits | hcloud ServiceStage ListCommits/v2 | This API is used to obtain the latest 10 project commits in a project. | |
| Obtaining a Project Hook | hcloud ServiceStage ListHooks/v2 | This API is used to obtain a project hook | |
| Creating a Project Hook | hcloud ServiceStage CreateHook/v2 | This API is used to create a project hook. | |
| Deleting a Project Hook | hcloud ServiceStage DeleteHook/v2 | This API is used to delete a project hook. |
Git Repository File
| API Name | Command | Description | Operation |
|---|---|---|---|
| Obtaining a Repository File Directory | hcloud ServiceStage ListTrees/v2 | This API is used to obtain a repository file directory. | |
| Obtaining Repository File Contents | hcloud ServiceStage ShowContent/v2 | This API is used to obtain repository file contents. | |
| Creating a Repository File | hcloud ServiceStage CreateFile/v2 | This API is used to create a repository file. | |
| Upgrading Repository File Contents | hcloud ServiceStage UpdateFile/v2 | This API is used to upgrade repository file contents. | |
| Deleting a Repository File | hcloud ServiceStage DeleteFile/v2 | This API is used to delete a repository file. |
Meta
| API Name | Command | Description | Operation |
|---|---|---|---|
| Obtaining All Supported Templates of Application Components | hcloud ServiceStage ListTemplates/v2 | This API is used to obtain all supported built-in templates of application components. | |
| Obtaining All Supported Runtime Systems of Application Components | hcloud ServiceStage ListRuntimes/v2 | This API is used to obtain all supported runtime systems of application components. | |
| Obtaining All Supported Flavors of Application Resources | hcloud ServiceStage ListFlavors/v2 | This API is used to obtain all supported flavors of application resources. |
Environment
| API Name | Command | Description | Operation |
|---|---|---|---|
| Obtaining All Environments | hcloud ServiceStage ListEnvironments/v2 | This API is used to obtain all created environments. | |
| Creating an Environment | hcloud ServiceStage CreateEnvironment/v2 | An environment is a collection of compute, storage, and network resources used for deploying and running an application. ServiceStage enables you to add multiple Elastic Load Balance (ELB), Relational Database Service (RDS), and Distributed Cache Service (DCS) instances to Cloud Container Engine (CCE) clusters in the same Virtual Private Cloud (VPC) to set up an environment, such as the development environment, test environment, production-like environment, and production environment. Networks in an environment can communicate with each other. You can manage resources and deploy services by environment, simplifying infrastructure O&M.Repository type This API is used to create an environment. | |
| Obtaining Environment Details Based on the Environment ID | hcloud ServiceStage ShowEnvironmentDetail/v2 | This API is used to obtain environment details based on the environment ID. | |
| Modifying Environment Information | hcloud ServiceStage ChangeEnvironment/v2 | This API is used to modify environment information based on the environment ID. | |
| Deleting an Environment Based on the Environment ID | hcloud ServiceStage DeleteEnvironment/v2 | This API is used to delete an environment based on the environment ID. | |
| Modifying Environment Resources | hcloud ServiceStage ChangeResourceInEnvironment/v2 | This API is used to modify environment resources. |
Application
| API Name | Command | Description | Operation |
|---|---|---|---|
| Obtaining All Applications | hcloud ServiceStage ListApplications/v2 | This API is used to obtain all created applications. | |
| Create an application. | hcloud ServiceStage CreateApplication/v2 | An application is a service system with complete functions and consists of one or more components related to features. This API is used to create an application. | |
| Obtaining Application Details Based on the Application ID | hcloud ServiceStage ShowApplicationDetail/v2 | This API is used to obtain application details based on the application ID. | |
| Modifying Application Information | hcloud ServiceStage ChangeApplication/v2 | This API is used to modify application information based on the application ID. | |
| Deleting an Application Based on the Application ID | hcloud ServiceStage DeleteApplication/v2 | This API is used to delete an application based on the application ID. | |
| Obtaining Application Configurations | hcloud ServiceStage ShowApplicationConfiguration/v2 | This API is used to obtain application configurations. | |
| Modifying Application Configurations | hcloud ServiceStage ChangeApplicationConfiguration/v2 | This API is used to modify application configurations. | |
| Deleting Application Configurations | hcloud ServiceStage DeleteApplicationConfiguration/v2 | This API is used to delete application configurations. |
Component
| API Name | Command | Description | Operation |
|---|---|---|---|
| Obtaining All Components of an Application | hcloud ServiceStage ListComponents/v2 | This API is used to obtain all components of an application. | |
| Creating an Application Component | hcloud ServiceStage CreateComponent/v2 | An application component implements a service feature of an application. It is in the form of code or software package and can be deployed independently. This API is used to create an application component. | |
| Obtaining Deployment Information of All Application Components. | hcloud ServiceStage ListComponentOverviews/v2 | This API is used to obtain all components of an application. | |
| Obtaining Application Component Information Based on the Component ID | hcloud ServiceStage ShowComponentDetail/v2 | This API is used to obtain application component information based on the component ID. | |
| Deleting an Application Component Based on the Component ID | hcloud ServiceStage DeleteComponent/v2 | This API is used to delete an application component based on the component ID. | |
| Modifying Component Information Based on the Component ID | hcloud ServiceStage ChangeComponent/v2 | This API is used to modify component information based on the component ID. |
Instance
| API Name | Command | Description | Operation |
|---|---|---|---|
| Obtaining All Instances of a Component | hcloud ServiceStage ListInstances/v2 | This API is used to obtain all instances of a component. | |
| Creating an Application Component Instance | hcloud ServiceStage CreateInstance/v2 | This API is used to create an application component instance. | |
| Querying Instance Details Based on the Instance ID | hcloud ServiceStage ShowInstanceDetail/v2 | This API is used to query instance details based on the instance ID. | |
| Modifying an Application Component Instance | hcloud ServiceStage ChangeInstance/v2 | This API is used to modify an application component instance. | |
| Deleting an Application Component Instance | hcloud ServiceStage DeleteInstance/v2 | This API is used to delete an application component instance. | |
| Querying the Operations Performed on a Component Instance | hcloud ServiceStage UpdateInstanceAction/v2 | This API is used to query the operations performed on a component instance. | |
| Obtaining Component Instance Snapshots | hcloud ServiceStage ListInstanceSnapshots/v2 | This API is used to obtain component instance snapshots. |
Deployment Jobs
| API Name | Command | Description | Operation |
|---|---|---|---|
| Obtaining Job Details | hcloud ServiceStage ShowJobDetail/v2 | This API is used to obtain job details. |
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot