API Overview
ServiceStage provides open APIs for developers and partners to develop, deploy, host, operate, and manage applications, helping them effectively innovate services at low costs and shorten the application rollout period.
For details about the APIs, see the following table.
Type |
Subtype |
Description |
---|---|---|
Application management V3 APIs Use the following endpoint: servicestage.<regionname>.myhuaweicloud.com |
APIs related to environments. |
|
APIs related to applications. |
||
APIs related to components. |
||
APIs related to runtime systems. |
||
Application management V2 APIs Use the following endpoint: servicestage.<regionname>.myhuaweicloud.com
NOTE:
Application management V2 APIs are about to go offline. You are advised to use the V3 APIs. |
APIs related to application templates, runtime systems, and application resource specifications. |
|
APIs related to application environments. |
||
APIs related to applications. |
||
APIs related to application components. |
||
APIs related to application component instances. |
||
APIs related to deployment jobs. |
||
Git repository access APIs Use the following endpoint: servicestage.<regionname>.myhuaweicloud.com |
APIs related to Git repository authorization, namespaces, projects, branches, tags, commits, hooks, repository file directories, and contents. |
|
CSE APIs Use the following endpoint: cse.<regionname>.myhuaweicloud.com |
|
|
ServiceComb-native APIs |
|
Environment V3 APIs
API |
Description |
---|---|
Create an environment. |
|
Obtain all environments. |
|
Delete an environment based on the environment ID. |
|
Modify an environment based on the environment ID. |
|
Obtain environment details based on the environment ID. |
|
Modifying an Environment Resource Based on the Environment ID |
Modify an environment resource based on environment ID. |
Querying an Environment Resource Based on the Environment ID |
Query an environment resource based on environment ID. |
Application V3 APIs
API |
Description |
---|---|
Create an application. |
|
Obtain all applications. |
|
Modifying Application Information Based on the Application ID |
Modify application information based on the application ID. |
Delete an application based on the application ID. |
|
Obtain application details based on the application ID. |
|
Obtaining Application Configurations Based on the Application ID |
Obtain application configurations based on the application ID. |
Modifying Application Configurations Based on the Application ID |
Modify application configurations based on the application ID. |
Deleting Application Configurations Based on the Application ID |
Delete application configurations based on the application ID. |
Component V3 APIs
API |
Description |
---|---|
Create an application component. |
|
Obtain all components of an application. |
|
Obtain all components. |
|
Modify component information based on the component ID. |
|
Delete a component based on the component ID. |
|
Obtain component information based on the component ID. |
|
Deliver a component action based on the component ID. |
|
Obtain records based on the component ID. |
Runtime System V3 APIs
API |
Description |
---|---|
Obtain runtime system information. |
Meta V2 APIs
API |
Description |
---|---|
Obtaining All Supported Runtime Systems of Application Components |
Obtain all supported runtime systems of application components. |
Obtain all supported flavors of application resources. |
Environment V2 APIs
API |
Description |
---|---|
Create an environment. |
|
Obtain all environments. |
|
Modify an environment based on the environment ID. |
|
Delete an environment based on the environment ID. |
|
Obtain environment details based on the environment ID. |
|
Modify environment resources. |
Application V2 APIs
API |
Description |
---|---|
Create an application. |
|
Obtain all created applications. |
|
Modify application information based on the application ID. |
|
Delete an application based on the application ID. |
|
Obtain application details based on the application ID. |
|
Add or modify application configurations. |
|
Delete application configurations. |
|
Obtain application configurations. |
Component V2 APIs
API |
Description |
---|---|
Create an application component. |
|
Obtain all components of an application. |
|
Modify component information based on the component ID. |
|
Delete a component based on the component ID. |
|
Obtain component information based on the component ID. |
Instance V2 APIs
API |
Description |
---|---|
Create a component instance. |
|
Obtain all instances of a component. |
|
Perform operations on a component instance. |
|
Modify a component instance. |
|
Delete a component instance. |
|
Obtain instance details based on the instance ID. |
|
Obtain component instance snapshots. |
Git Repository Access APIs
API |
Description |
---|---|
Obtain the Git repository authorization list. |
|
Obtain an authorization redirection URL. |
|
Create OAuth authorization. |
|
Create private token authorization. |
|
Create password authorization for a Git repository. |
|
Delete repository authorization based on the name. |
|
Obtain namespaces of a repository. |
|
Obtain repository information based on the clone URL. |
|
Obtain all projects in a namespace. |
|
Create a software repository project. |
|
Obtain a project branch. |
|
Obtain a project tag. |
|
Create a project tag. |
|
Delete a project tag. |
|
Obtain the latest ten project commits. |
|
Obtain a project hook. |
|
Create a project hook. |
|
Delete a project hook. |
|
Obtain a repository file directory. |
|
Obtain repository file contents. |
|
Create a repository file. |
|
Modify repository file contents. |
|
Delete repository file contents. |
Dynamic Configuration
API |
Description |
---|---|
Import configurations to the configuration management center. |
|
Export configurations from the configuration management center. |
Engine Management
API |
Description |
---|---|
Querying Flavors Supported by an Exclusive Microservice Engine |
Query the flavors supported by an exclusive microservice engine. |
Query the exclusive microservice engine list. |
|
Create an exclusive microservice engine. |
|
Query details about an exclusive microservice engine. |
|
Delete an exclusive microservice engine. |
|
Query details about an exclusive microservice engine job. |
Authentication
API |
Description |
---|---|
Obtaining the User Token of an Exclusive Microservice Engine |
This API is intended only for exclusive microservice engines with security authentication enabled. Before accessing APIs of an exclusive microservice engine with security authentication enabled, you need to call this API to obtain a user token. This token is the unique credential for accessing the APIs. |
Microservice
API |
Description |
---|---|
Query the definition information about a microservice based on serviceId. |
|
Delete the definition and related information about a microservice, and deregisters all instances of the microservice. |
|
Query information about microservices that meet filter criteria. |
|
Create static information for a microservice before registering a microservice instance. The registered instance is associated with the static information based on the serviceId field. One service corresponds to multiple instances. The serviceId field can be customized. If serviceId is not customized, the system generates a random serviceId. |
|
Delete the definitions and related information about microservices in batches, and deregisters all instances of the microservices. |
|
Modify static information about a microservice To update some fields in the static information, input all static information (including the fields that do not need to be updated) in JSON format. |
|
Query the unique serviceId or schema ID of a microservice based on filter criteria. |
Schema
API |
Description |
---|---|
Query a microservice schema based on service_id and schema_id. |
|
Modify a microservice schema based on schema_id. |
|
Query all schema information (including schemaId and summary) about a microservice. |
Microservice Instance
API |
Description |
---|---|
Register a microservice instance after a microservice is created. Information about the instance must be provided during registration. instanceId can be customized. If it is customized, all contents are overwritten upon re-registration. If it is not customized, the system automatically generates an ID. If the endpoint content is duplicate, the original ID is used. |
|
Query all instances of a microservice based on service_id after the instances are registered. |
|
Deregister an instance based on instance_id after the instance is registered. |
|
Query details about an instance based on service_id and instance_id after the instance is registered. |
|
Modifying the Extended Information About a Microservice Instance |
Add or update the extended information about a microservice instance based on instance_id after the instance is registered. |
Modify the status of a microservice instance based on instance_id after the instance is registered. |
|
Send heartbeat information from service provider to service center, so that the service center can check whether service instances are normal. |
|
Query a microservice instance based on microservice version rules or field filter criteria after the instance is registered. |
|
Query microservice instances in batches based on microservice version rules or field filter criteria after the instances are registered. |
Dependency
API |
Description |
---|---|
Query all providers of a microservice based on consumer_id. For example, if service A depends on services B and C, you can query the information about services B and C based on service A ID. |
Feedback
Was this page helpful?
Provide feedbackThank 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