Help Center/ ServiceStage/ API Reference/ Application Management V3 APIs/ Component/ Obtaining Component Information Based on the Component ID
Updated on 2026-04-10 GMT+08:00

Obtaining Component Information Based on the Component ID

Function

This API is used to obtain component information based on the component ID.

Authorization Information

Each account has all of the permissions required to call all APIs, but IAM users must have the required permissions specifically assigned.

  • If you are using role/policy-based authorization, see the required permissions in Permissions and Supported Actions.
  • If you are using identity policy-based authorization, the permission listed below is required.

    Action

    Access Level

    Resource Type (*: required)

    Condition Key

    Alias

    Dependencies

    servicestage:app:getComponent

    read

    app *

    servicestage:app:get

    -

URI

GET /v3/{project_id}/cas/applications/{application_id}/components/{component_id}

Table 1 Path parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Definition

Tenant's project ID. See Obtaining a Project ID.

Constraints

N/A

Range

N/A

Default Value

N/A

application_id

Yes

String

Definition

Application ID. See Obtaining All Applications.

Constraints

N/A

Range

N/A

Default Value

N/A

component_id

Yes

String

Definition

Component ID. See Obtaining All Components of an Application.

Constraints

N/A

Range

N/A

Default Value

N/A

Table 2 Query parameter

Parameter

Mandatory

Type

Description

version

No

String

Definition

Component version. See Obtaining All Components of an Application.

Range

N/A

Default Value

N/A

Request

Table 3 Request header parameters

Parameter

Mandatory

Type

Description

Content-Type

Yes

String

Definition

Message body type (or format).

Constraints

N/A

Range

application/json;charset=utf8

Default Value

N/A

X-Auth-Token

Yes

String

Definition

API calling can be authenticated using a token or AK/SK. If you use a token, this parameter is mandatory and must be set to the token. For details about how to obtain the token, see Authentication.

Constraints

N/A

Range

N/A

Default Value

N/A

Response

Table 4 Response parameters

Parameter

Type

Description

name

String

Definition

Application component name.

Range

The value contains 2 to 64 characters consisting of letters, digits, hyphens (-), and underscores (_). It starts with a letter and ends with a letter or digit. Letters are case insensitive.

workload_name

String

Definition

Workload name.

Range

N/A

labels

Array of objects

Definition

Label. For container-deployed components, you can query a workload by label. For VM-deployed components, you can configure a label of the corresponding microservice name to use graceful startup and shutdown. See Table 5.

runtime_stack

Object

Definition

Runtime. See Table 32. The value can be obtained from the response of the API for Querying a Technology Stack.

environment_id

String

Definition

Environment ID.

Range

N/A

application_id

String

Definition

Application ID.

Range

N/A

description

String

Definition

Description.

Range

The value can contain up to 128 characters.

source

Object

Definition

Source of the code or software package. See Table 33.

build

Object

Definition

Component build. See Table 34.

limit_cpu

Number

Definition

Maximum CPU limit. Unit: core.

Range

N/A

limit_memory

Number

Definition

Maximum memory size. Unit: GiB.

Range

N/A

request_cpu

Number

Definition

Requested CPU resources. Unit: core.

Range

N/A

request_memory

Number

Definition

Requested memory. Unit: GiB.

Range

N/A

version

String

Definition

Component version.

Range

The value can contain up to 32 characters. It needs to meet the following rule:

^([0-9]+)(\.[0-9]+){2,3}$

envs

Array of objects

Definition

Environment variable list. See Table 30.

replica

Integer

Definition

Number of instances.

Range

N/A

storages

Array of objects

Definition

Storage. See Table 6.

deploy_strategy

Object

Definition

Component deployment. See Table 9.

command

Object

Definition

Startup command. See Table 14.

post_start

Object

Definition

Post-start processing. See Table 15.

pre_stop

Object

Definition

Pre-stop processing. See Table 15.

mesher

Object

Definition

Multi-language access service mesh. This parameter is mandatory when Node.js is selected for the technology stack and the CSE engine is bound. See Table 16.

timezone

String

Definition

Time zone where the component runs. Example: Asia/Shanghai.

Range

N/A

jvm_opts

String

Definition

JVM parameter. Example: -Xms256m -Xmx1024m. If there are multiple parameters, separate them by spaces. If the parameter is left blank, the default value is used.

Range

N/A

tomcat_opts

Object

Definition

Tomcat parameter. This parameter is valid when you use the Tomcat technology stack. See Table 17.

host_aliases

Array of objects

Definition

Host alias. See Table 18.

dns_policy

String

Definition

DNS policy.

Range

  • Default: inherits the domain name resolution configuration of the node where the pod is located.
  • ClusterFirst: adds the domain name resolution configuration.
  • ClusterFirstWithHostNet: takes effect only for pods running in hostNetWork mode.
  • None: replaces the domain name resolution policy.

dns_config

Object

Definition

DNS configuration. See Table 19.

workload_kind

String

Definition

Workload type.

Range

  • deployment
  • statefulset
  • daemonset
  • job

security_context

Object

Definition

Security policy. See Table 21.

logs

Array of objects

Definition

Log collection. See Table 23.

custom_metric

Object

Definition

Custom metrics. See Table 24.

affinity

Array of objects

Definition

Affinity. See Table 25.

anti_affinity

Array of objects

Definition

Anti-affinity. See Table 25.

liveness_probe

Array of objects

Definition

Component liveness probe. See Table 27.

readiness_probe

Object

Definition

Component service probe. See Table 27.

refer_resources

Array of objects

Definition

Associated resource. See Table 28.

status

Object

Definition

Component status. See Table 36.

tolerations

Array of objects

Definition

Tolerance policy. See Table 38.

container_name

String

Definition

Container name.

Range

N/A

update_strategy

Object

Definition

Component upgrade strategy. See Table 41.

multi_containers

Array of objects

Definition

Multi-container configuration. See Table 39.

service_name

String

Definition

Service name configured for the inter-instance discovery of a StatefulSet.

Range

N/A

ports

Array of objects

Definition

Port configured for the inter-instance discovery of a StatefulSet. For details, see Table 40.

Range

N/A

enterprise_project_id

String

Definition

Enterprise project ID.

Range

N/A

swimlane_tag

String

Definition

Lane tag.

Range

N/A

swimlane_id

String

Definition

Lane ID.

Range

N/A

base_lane_instance_id

String

Definition

ID of the baseline component associated with the baseline lane, which is used to identify the association between the baseline component and the dark launch component.

Range

N/A

refer_resources

Array of objects

Definition

Associated resource. See Table 28.

runtime_stack_id

String

Definition

Runtime ID.

Range

N/A

component_id

String

Definition

Component ID.

Range

N/A

deploy_type

String

Definition

Deployment type.

Range

  • OneBatchRelease
  • RollingRelease
  • GrayRelease

platform_type

String

Definition

Platform type.

Range

Values:

  • cce
  • vmapp

config_mode

String

Definition

Workload configuration mode.

Range

  • ui
  • yaml
  • template

workload_content

String

Definition

Workload content.

Range

N/A

workload_name

String

Definition

Workload name.

Range

N/A

instance_id

String

Definition

Component instance ID.

Range

N/A

sys_config

Map<String, String>

Definition

Uses a compressed package to deploy component configuration items in the VM environment.

Range

N/A

configs

Array of objects

Definition

Configuration file list. See Table 42.

enable_sermant_injection

Boolean

Definition

Whether to enable Sermant.

Range

  • true: enabled
  • false: disabled

enable_sermant_spring_register

Boolean

Definition

Whether Spring Cloud Huawei microservices need to be registered with registry centers through Sermant.

Range

  • true: yes
  • false: no

enable_sermant_dubbo_register

Boolean

Definition

Whether Dubbo microservices need to be registered with registry centers through Sermant.

Range

  • true: yes
  • false: no

enable_sermant_config

Boolean

Definition

Whether to enable the Sermant dynamic configuration plug-in.

Range

  • true: enabled
  • false: disabled

enable_sermant_mq_gray

Boolean

Definition

Whether to enable Sermant dark launch.

Range

  • true: enabled
  • false: disabled

image_pull_secrets

Array of strings

Definition

List of image pull secrets.

Range

N/A

template_source

Object

Definition

Source of the component template package. See Table 43.

template_content

Object

Definition

Component template package content. See Table 45.

resource_content

Object

Definition

Details about component template package resource. See Table 46.

auto_lts_config

Object

Definition

Automatic LTS configuration. See Table 49.

config_encryption

Object

Definition

This parameter is mandatory when the encryption key is configured for a single-container component. See Table 50.

task_setting

Object

Definition

Task settings for a job workload. See Table 51.

vmapp_config_mode

String

Definition

Directory type of a VM-deployed component.

Range

  • system: built-in system configuration
  • custom_system: custom system configuration

vmapp_config

Object

Definition

Directory settings of a VM-deployed component. See Table 52.

Table 5 labels

Parameter

Type

Description

key

String

Definition

Label name.

Range

N/A

value

String

Definition

Label value.

Range

N/A

Table 6 storages

Parameter

Type

Description

type

String

Definition

Data storage type.

Range

  • HostPath: host path for local disk mounting.
  • EmptyDir: temporary directory for local disk mounting.
  • ConfigMap: configuration item for local disk mounting.
  • Secret: secret for local disk mounting.
  • PersistentVolumeClaim: cloud storage mounting.

name

String

Definition

Name of the storage disk.

Range

N/A

parameters

Object

Definition

For details about the parameters of each data storage type, see Table 7.

mounts

Array of objects

Definition

Mount path of data storage. See Table 8.

Table 7 component_storage_parameters

Parameter

Type

Description

path

String

Definition

Host path. This parameter is applicable to the HostPath storage type.

Range

N/A

name

String

Definition

Name of a configuration item, secret, or PVC, which is applicable to ConfigMap, Secret, or PersistentVolumeClaim storage, respectively.

Range

N/A

default_mode

Integer

Definition

Mounting permission. The value is in decimal format. Example: 384. This parameter is applicable to ConfigMap and secret storage.

Range

N/A

medium

String

Definition

This parameter is applicable to the EmptyDir storage type. Example: memory.

Range

N/A

Table 8 mounts

Parameter

Type

Description

path

String

Definition

Mount path.

Range

N/A

sub_path

String

Definition

Subpath of the mount path.

Range

N/A

read_only

Boolean

Definition

Read-only or not.

Range

  • true: read-only.
  • false: read and write. You can modify data volumes in the application path. To prevent data loss, newly written data will not be migrated during application migration.
Table 9 deploy_strategy

Parameter

Type

Description

type

String

Definition

Deployment type.

Range

  • OneBatchRelease
  • RollingRelease
  • GrayRelease

rolling_release

Object

Definition

Rolling deployment parameter. See Table 10.

gray_release

Object

Definition

Dark launch upgrade. See Table 12.

Table 10 rolling_release

Parameter

Type

Description

batches

Integer

Definition

Deployment batches.

Range

N/A

first_batch_selector

Object

Definition

Priority restart policy of the instance under the workload corresponding to the container component. See Table 11.

Table 11 label_selector

Parameter

Type

Description

key

String

Definition

Label key under metadata.labels in the YAML file of the container workload.

Range

N/A

operator

String

Definition

Operator, indicating the relationship between the key and values.

Range

  • Exists
  • DoesNotExist
  • In: The key is in the values.
  • NotIn: The key is not in the values.

values

Array of strings

Definition

Value of the label key under metadata.labels in the YAML file of the container workload. This parameter exists when operator is set to In or NotIn.

Range

N/A

Table 12 gray_release

Parameter

Type

Description

type

String

Definition

Dark launch policy.

Range

  • WEIGHT: dark launch by traffic.
  • CONTENT: dark launch by content.

first_batch_weight

Integer

Definition

Proportion of first-batch dark launch traffic. This parameter takes effect when type is set to WEIGHT.

Range

N/A

first_batch_replica

Integer

Definition

Number of first-batch dark launch instances. This parameter takes effect when type is set to WEIGHT.

Range

N/A

remaining_batch

Integer

Definition

Number of batches for remaining instance deployment. After the first batch is completed, the remaining instances will be deployed in specified batches.

Example: If there are 5 instances remaining to be deployed in 3 batches, these 5 instances will be upgraded based on 2:2:1.

This parameter takes effect when type is set to WEIGHT.

Range

N/A

deployment_mode

Integer

Definition

Deployment mode.

Range

  • 1: The upstream is a microservice gateway.
  • 3: The upstream is a microservice.
  • 4: The upstream is a load balancer.

replica_surge_mode

String

Definition

Mode of adding a dark launch instance. This parameter takes effect when type is set to CONTENT.

Range

  • MIRROR: blue-green.
  • EXTRA: canary (increase, then decrease)
  • NOSURGE: canary (decrease, then increase)

rule_match_mode

String

Definition

Effective mode of a dark launch rule. This parameter takes effect when type is set to CONTENT.

Range

  • ALL: All conditions are met.
  • ANY: Any condition is met.

rules

Object

Definition

Dark launch rule. This parameter takes effect when type is set to CONTENT. See Table 13.

Table 13 gray_rules

Parameter

Type

Description

type

String

Definition

Match type.

Range

HEADER: request header

key

String

Definition

Parameter name.

Range

N/A

value

String

Definition

Condition value.

Range

N/A

condition

String

Definition

Condition type.

Range

  • EQUAL
  • MATCH
  • IN: enumeration
Table 14 command

Parameter

Type

Description

command

Array of strings

Definition

Command for controlling container running.

Range

N/A

args

Array of strings

Definition

Parameter for controlling container running. Example: -port=8080. If there are multiple parameters, separate them by line breaks.

Range

N/A

Table 15 component_lifecycle

Parameter

Type

Description

type

String

Definition

Processing method.

Range

  • http
  • command

scheme

String

Definition

HTTP request type. This parameter is valid only when type is set to http.

Range

  • HTTP
  • HTTPS

host

String

Definition

Custom IP address. If this parameter is left blank, the pod IP address is used. This parameter is valid only when type is set to http.

Range

N/A

port

Integer

Definition

Port number. This parameter is valid only when type is set to http.

Range

N/A

path

String

Definition

Request path. This parameter is valid only when type is set to http.

Range

N/A

command

Array of strings

Definition

Command list. This parameter is valid only when type is set to command.

Range

N/A

Table 16 mesher

Parameter

Type

Description

port

Integer

Definition

Process listening port.

Range

N/A

Table 17 tomcat_opt

Parameter

Type

Description

server_xml

String

Definition

  1. Listening port in the server.xml file will take effect even if it has been configured in public network access.
  2. The custom Tomcat configuration may conflict with the existing port. Check whether the custom port is occupied.

Range

N/A

Table 18 host_aliases

Parameter

Type

Description

ip

String

Definition

IP address.

Range

N/A

hostname

Array of strings

Definition

Host alias.

Range

N/A

Table 19 dns_config

Parameter

Type

Description

nameservers

Array of strings

Definition

IP address list of the DNS server of the pod.

Range

N/A

searches

Array of strings

Definition

List of DNS search domains used to search for host names in the pod.

Range

N/A

options

Array of objects

Definition

An optional list of objects where each object may have a name property (required) and a value property (optional). This property is merged into the options generated from the specified DNS policy. Duplicate entries will be deleted. See Table 20.

Table 20 options

Parameter

Type

Description

name

String

Definition

Operation name.

Range

N/A

value

String

Definition

Operation value.

Range

N/A

Table 21 security_context

Parameter

Type

Description

run_as_user

Integer

Definition

User for running containers. Example: To run containers as user root, set the user ID to 0.

Range

N/A

run_as_group

Integer

Definition

Owner group specified for running container processes.

Range

N/A

capabilities

Object

Definition

Capability set. See Table 22.

Table 22 capabilities

Parameter

Type

Description

add

Array of strings

Definition

Grant the Linux permission to the running user.

Range

N/A

drop

Array of strings

Definition

Remove the Linux permission of the running user.

Range

N/A

Table 23 logs

Parameter

Type

Description

log_path

String

Definition

Container log path.

Range

N/A

rotate

String

Definition

Interval for dumping logs.

Range

N/A

host_path

String

Definition

Mounted host path.

Range

N/A

host_extend_path

String

Definition

Host extension path. By extending the host path, you can distinguish mounting from different containers in the same host path.

Range

  • None: The extended path is not used.
  • PodUID: extend the host path based on the pod ID.
  • PodName: extend the host path based on the pod name.
  • PodUID/ContainerName: extend the host path based on the pod ID and container name.
  • PodName/ContainerName: extend the host path based on the pod name and container name.
Table 24 custom_metric

Parameter

Type

Description

path

String

Definition

Collection path. Example: /metrics.

Range

N/A

port

Integer

Definition

Collection port. Example: 9090.

Range

N/A

dimensions

String

Definition

Monitoring dimension. Example: cpu_usage,mem_usage.

Range

N/A

Table 25 component_affinity

Parameter

Type

Description

kind

String

Definition

Object kind.

Range

  • node
  • pod

condition

String

Definition

Policy type.

Range

  • required: The requirement must be met.
  • preferred: The requirement is met as much as possible.

match_expressions

Array of objects

Definition

Scheduling policy rule. See Table 26.

weight

String

Definition

Weight.

Range

  • The value is 100 when condition is set to required.
  • Enter an integer ranging from 1 to 100 when condition is set to preferred.

topology_key

String

Definition

Topology key.

Range

N/A

Table 26 match_expressions

Parameter

Type

Description

key

String

Definition

Key of the match tag.

Range

N/A

operation

String

Definition

Match condition.

Range

N/A

value

String

Definition

Value of the match tag.

Range

N/A

Table 27 component_probe

Parameter

Type

Description

type

String

Definition

Type.

Range

  • http
  • tcp
  • command

delay

Integer

Definition

Interval between the startup and detection.

Range

N/A

timeout

Integer

Definition

Detection timeout interval.

Range

N/A

scheme

String

Definition

Request type. This parameter is valid only when type is set to http.

Range

  • HTTP
  • HTTPS

host

String

Definition

Custom IP address. If this parameter is left blank, the pod IP address is used. This parameter is valid only when type is set to http.

Range

N/A

port

Integer

Definition

Port number. This parameter is valid only when type is set to http or tcp.

Range

N/A

path

String

Definition

Request path. This parameter is valid only when type is set to http.

Range

N/A

command

Array of strings

Definition

Command list. This parameter is valid only when type is set to command.

Range

N/A

Table 28 refer_resources

Parameter

Type

Description

id

String

Definition

Resource ID.

Range

N/A

type

String

Definition

Resource type.

Range

  • elb
  • cce
  • ecs
  • as
  • cse: ServiceComb engine
  • nacos: registry/configuration center
  • dcs
  • rds
  • gaussdb
  • dms_rocketmq
  • customServer
  • pvc
  • css_es: Elasticsearch
  • custom_k8s: custom Kubernetes cluster

parameters

Object

Definition

Resource parameters. See Table 29.

Table 29 refer_resource_parameter

Parameter

Type

Description

namespace

String

Definition

Namespace.

Range

N/A

name

String

Definition

Resource name.

Range

N/A

capacity

Integer

Definition

Storage capacity, in GiB.

Range

N/A

type

String

Definition

Volume declaration type. It is specified when the type is set to pvc in Table 28.

Range

  • efs
  • obs
  • sfs
  • evs

class

String

Definition

Volume declaration subtype.

Range

  • csi-sfsturbo: fixed when type is set to efs.
  • csi-obs: fixed when type is set to obs.
  • csi-nas: fixed when type is set to sfs.
  • csi-disk: fixed when type is set to evs.

pv_name

String

Definition

Volume name. This parameter is displayed when type is set to efs.

Range

N/A

share_id

String

Definition

Volume handle. This parameter is displayed when type is set to efs.

Range

N/A

share_export_location

String

Definition

Shared path of the volume. This parameter is displayed when type is set to efs.

Range

N/A

share_proto

String

Definition

File system type of the volume. This parameter is displayed when type is set to efs. Default value: NFS.

Range

N/A

obs_volume_type

String

Definition

OBS volume type. Default value: STANDARD.

Range

  • STANDARD: Standard storage class. It features low access latency and high throughput and is applicable to storing frequently-accessed (multiple times per month) or small objects (< 1 MB) requiring fast response.
  • WARM: used for storing data that is semi-frequently accessed (fewer than 12 times a year) but becomes instantly available when needed.
  • COLD: used for storing rarely accessed (once a year) data.

access_mode

String

Definition

Storage volume access mode.

Range

  • ReadWriteOnce: A volume can be mounted as read-write by a single node.
  • ReadWriteMany: A volume can be mounted as read-write by many nodes.

availableZone

String

Definition

AZ.

Range

N/A

volume_type

String

Definition

Volume type.

Range

  • SATA: common I/O disk
  • SAS: high I/O disk
  • SSD: ultra-high I/O disk
Table 30 envs

Parameter

Type

Description

name

String

Definition

Variable name.

Range

N/A

value

String

Definition

Variable value.

Range

N/A

value_from

Object

Definition

Variable reference. See Table 31.

Table 31 value_from

Parameter

Type

Description

reference_type

String

Definition

Reference type.

Range

  • configMapKey
  • secretKey

name

String

Definition

Name of the configuration item or secret.

Range

N/A

key

String

Definition

Key of the configuration item or secret.

Range

N/A

optional

Boolean

Definition

Whether the key of the configuration item or secret is mandatory.

Range

  • true: yes
  • false: no
Table 32 runtime_stack

Parameter

Type

Description

name

String

Definition

Technology stack name. Example: OpenJDK8.

Range

N/A

type

String

Definition

Technology stack type.

Range

  • For VM-based deployment, Java, Tomcat, and Node.js are supported.
  • For container deployment, Java, Tomcat, Node.js, Php, Docker, and Python are supported.

version

String

Definition

Technology stack version. Example: 1.1.4.

Range

N/A

deploy_mode

String

Definition

Deployment mode.

Range

  • container
  • virtualmachine
Table 33 source

Parameter

Type

Description

kind

String

Definition

Component source kind.

Range

  • code
  • package
  • image

version

String

Definition

Version number.

Range

N/A

url

String

Definition

Package address. This parameter is mandatory when kind is set to package or image.

Range

N/A

storage

String

Definition

Storage mode.

Range

  • devcloud: CodeArts release repository
  • obs
  • http: custom file address
  • swr

This parameter is mandatory when kind is set to package or image.

auth

String

Definition

Authentication mode.

Range

  • iam
  • none

repo_auth

String

Definition

Authorization name, which can be obtained from the authorization list. For details, see Obtaining a Git Repository Authorization List.

Range

N/A

repo_namespace

String

Definition

Namespace of the code repository.

Range

N/A

repo_ref

String

Definition

Code branch or tag. Default value: master.

Range

N/A

repo_type

String

Definition

Code repository.

Range

  • GitHub: open-source code repository
  • GitLab: open-source code repository
  • Bitbucket: source code hosting website

web_url

String

Definition

Code redirection URL. Example: https://github.com/example/demo.git.

Range

N/A

repo_url

String

Definition

Code repository URL. Example: https://github.com/example/demo.git.

Range

N/A

commit_id

String

Definition

In the code repository, commit ID is the unique identifier of each commit and is used to identify and reference a commit.

Range

The value contains 8 to 40 characters and starts with a lowercase letter or digit.

http_username

String

Definition

Username. This parameter is mandatory when storage is set to http. Username and password authentication is supported.

Range

N/A

http_password

String

Definition

Password. This parameter is mandatory when storage is set to http. Username and password authentication is supported.

Range

N/A

http_command

String

Definition

Address of the custom software package. This parameter is mandatory when storage is set to http.

Range

N/A

http_headers

Map<String, String>

Definition

This parameter is mandatory when storage is set to http. You can customize request headers as key-value pairs, for example, {"key":"xx","value":"xx""}.

Range

N/A

Table 34 build

Parameter

Type

Description

parameters

Object

Definition

This parameter is provided only when no ID is available during build creation. See Table 35.

Table 35 parameters

Parameter

Type

Description

build_cmd

String

Definition

Compilation command. By default:

  1. When build.sh exists in the root directory, the command is ./build.sh.
  2. When build.sh does not exist in the root directory, the command varies depending on the OS. Example:
    • Java and Tomcat: mvn clean package
    • Nodejs: npm build

Range

N/A

dockerfile_path

String

Definition

Address of the Docker file. By default, the Docker file is in the root directory (./).

Range

N/A

artifact_namespace

String

Definition

Build archive organization. Default value: cas_{project_id}.

Range

N/A

cluster_id

String

Definition

ID of the cluster to be built.

Range

N/A

node_label_selector

Map<String, String>

Definition

key: label key. value: label value.

Range

N/A

environment_id

String

Definition

Environment ID.

Range

N/A

Table 36 status

Parameter

Type

Description

component_status

String

Definition

Component status.

Range

  • INITIALIZING
  • UPGRADING
  • FAILED
  • RUNNING
  • DOWN
  • DELETING
  • DELETED
  • RESERVED
  • STARTING
  • STOPPING
  • STOPPED
  • RESTARTING
  • PENDING
  • UNKNOWN
  • PARTIALLY_FAILED

available_replica

Integer

Definition

Available instances.

Range

N/A

replica

Integer

Definition

Total instances.

Range

N/A

succeeded_replica

Integer

Definition

Number of instances that are successfully executed by the job workload.

Range

N/A

fail_detail

String

Definition

Failure cause.

Range

  • cluster_deleted
  • cluster_unavailable
  • cluster_inaccessible
  • namespace_deleted
  • namespace_unavailable
  • namespace_inaccessible
  • resource_deleted
  • create_failed
  • delete_failed

last_job_id

String

Definition

ID of the last executed job.

Range

N/A

create_time

Integer

Definition

Creation time.

Range

N/A

update_time

Integer

Definition

Update time.

Range

N/A

creator

String

Definition

Creator.

Range

N/A

artifact

Object

Definition

Artifact information. See Table 37.

Table 37 artifact

Parameter

Type

Description

type

String

Definition

Kind of the component source package.

Range

  • package
  • image

url

String

Definition

Software package or image address.

Range

N/A

Table 38 tolerations

Parameter

Type

Description

key

String

Definition

Taint key.

Range

N/A

operator

String

Definition

Operator.

Range

  • Equal: matches the nodes with the specified taint key (mandatory) and value. If the taint value is left blank, all taints with the same key will be matched.
  • Exists: matches nodes with the specified taint key. In this case, the taint value cannot be specified. Not specifying any taint key means all taints are tolerated.

value

String

Definition

Taint value. This parameter is mandatory when operator is set to Equal.

Range

N/A

effect

String

Definition

Taint policy.

Range

  • NoScheduler: Only the NoSchedule taint is matched.
  • PreferNoSchedule: Only the PreferNoSchedule taint is matched.
  • NoExecute: Only the NoExecute taint is matched.
  • If this parameter is not set, all taint effects are matched.

toleration_seconds

Integer

Definition

Tolerance time window.

This parameter can be set only when effect is set to NoExecute. Within the tolerance time window, pods still run on the node with taints. After the time expires, the pods will be evicted.

Range

N/A

Table 39 multi_containers

Parameter

Type

Description

container_name

String

Definition

Container name.

Range

N/A

source

Object

Definition

Source of the code or software package. See Table 33. In multi-container mode, only images are supported.

limit_cpu

Number

Definition

Maximum CPU limit. Unit: core.

Range

N/A

limit_memory

Number

Definition

Maximum memory size. Unit: GiB.

Range

N/A

request_cpu

Number

Definition

Requested CPU resources. Unit: core.

Range

N/A

request_memory

Number

Definition

Requested memory. Unit: GiB.

Range

N/A

envs

Array of objects

Definition

Environment variable list. See Table 30.

liveness_probe

Object

Definition

Container liveness probe. See Table 27.

readiness_probe

Object

Definition

Container service probe. See Table 27.

startup_probe

Object

Definition

Container startup probe. See Table 27.

command

Object

Definition

Startup command. See Table 14.

post_start

Object

Definition

Post-start processing. See Table 15.

pre_stop

Object

Definition

Pre-stop processing. See Table 15.

logs

Array of objects

Definition

Log collection. See Table 23.

storages

Array of objects

Definition

Storage. See Table 6.

security_context

Object

Definition

Security policy. See Table 21.

config_encryption

Object

Definition

This parameter is mandatory when the encryption key is configured for a multi-container component. See Table 50.

Table 40 ports

Parameter

Type

Description

name

String

Definition

Port name.

Range

N/A

port

String

Definition

Access port.

Range

N/A

target_port

String

Definition

Container port.

Range

N/A

Table 41 update_strategy

Parameter

Type

Description

type

String

Definition

Component upgrade policy. Options:

Range

  • RollingUpdate (default): New pods are created gradually, and then old pods are deleted.
  • Recreate: Old pods are deleted, and then new pods are created.

max_unavailable

  • String
  • Integer

Definition

Maximum number of unavailable pods. That is, the number or percentage of pods that can be deleted based on the value of replica. The default value is 25% This parameter can be set when workload_kind is set to deployment.

Range

  • String (%): the maximum percentage of unavailable pods to the total number of pods.
  • Integer: the maximum number of unavailable pods.

max_surge

  • String
  • Integer

Definition

Maximum surge. That is, the number or percentage of pods allowed based on the value of replica. The default value is 25%. This parameter can be set only when workload_kind is set to deployment.

Range

  • String (%)
  • Integer

termination_period_seconds

Integer

Definition

Scale-in time window. That is, the time window for executing commands before a workload stops. The default value is 30s.

Range

N/A

min_ready_seconds

Integer

Definition

Minimum ready time of a pod. That is, the minimum ready time of a new pod without any container crash. A pod is considered available only after the minimum ready time is exceeded.

The default value is 0.

Range

N/A

progress_deadline_seconds

Integer

Definition

Maximum upgrade duration. That is, the time (in seconds) the system waits for before reporting a component upgrade failure.

If this parameter is specified, the value of this parameter must be greater than that of min_ready_seconds.

Range

N/A

revision_history_limit

Integer

Definition

Maximum number of pods to retain. That is, the number of old pods to retain to allow rollback. The default value is 10.

Range

N/A

Table 42 configs

Parameter

Type

Description

config_id

String

Definition

Unified configuration ID.

Range

N/A

mount_path

String

Definition

Mount path.

Range

N/A

Table 43 template_source

Parameter

Type

Description

storage

String

Definition

Storage mode of the component template package.

Range

  • devcloud: CodeArts release repository
  • obs
  • http: custom file address

url

String

Definition

Address of the component template package.

This parameter is valid only when the component template package storage mode is http.

Range

N/A

http_username

String

Definition

Username.

This parameter is valid only when the component template package storage mode is http and the security authentication mode is username and password authentication.

Range

N/A

http_password

String

Definition

Password.

This parameter is valid only when the component template package storage mode is http and the security authentication mode is username and password authentication.

Range

N/A

http_headers

Array of objects

Definition

Request header. See Table 44.

This parameter is valid only when the component template package storage mode is http and the security authentication mode is custom header authentication.

Table 44 http_headers

Parameter

Type

Description

key

String

Definition

Request key.

Range

N/A

value

String

Definition

Request value.

Range

N/A

Table 45 template_content

Parameter

Type

Description

template

Map<String, String>

Definition

Template package file information.

Range

N/A

input_values

Map<String, String>

Definition

Template package input information.

Range

N/A

Table 46 resource_content

Parameter

Type

Description

configs

Array of objects

Definition

Unified configuration information of the template package. See Table configs.

k8s_resources

Array of objects

Definition

Template package Kubernetes resource information.

Table 47 configs

Parameter

Type

Description

kind

String

Definition

Resource type. The value is fixed to ServiceStageConfig.

spec

Object

Definition

Unified configuration parameter. See Table 48.

Table 48 spec

Parameter

Type

Description

name

String

Definition

Unified configuration name. Format:

  • {Configuration group}/{Configuration name}.yaml
  • {Configuration group}/{Configuration name}.properties

Range

N/A

description

String

Definition

Unified configuration description.

Range

N/A

sensitive

Boolean

Definition

Encrypted or not.

Range

N/A

content

String

Definition

Unified configuration content.

Range

N/A

Table 49 auto_lts_config

Parameter

Type

Description

enable

Boolean

Definition

Whether to enable automatic LTS configuration.

Range

  • true: enabled
  • false: disabled

lts_log_path

Array of strings

Definition

Access configuration log path.

Range

N/A

lts_log_group_name

String

Definition

Log group name.

Range

N/A

lts_log_stream_name

String

Definition

Log stream name.

Range

N/A

lts_host_group_name

String

Definition

Host group name.

Range

N/A

lts_access_config_name

String

Definition

Access configuration name.

Range

N/A

lts_log_group_id

String

Definition

Log group ID.

Range

N/A

lts_log_stream_id

String

Definition

Log stream ID.

Range

N/A

lts_host_group_id

String

Definition

Host group ID.

Range

N/A

lts_access_config_id

String

Definition

Access configuration ID.

Range

N/A

Table 50 config_encryption

Parameter

Type

Description

key_id

String

Definition

User key ID in DEW.

Range

N/A

Table 51 task_setting

Parameter

Type

Description

parallelism

Integer

Definition

Number of parallel jobs.

Range

N/A

active_deadline_seconds

Integer

Definition

Timeout interval, in seconds.

Range

N/A

completion_mode

String

Definition

Completion mode.

Range

  • NonIndexed
  • Indexed

suspend

Boolean

Definition

Whether to suspend a job.

By default, a job is executed immediately after being created.

The job's execution will be suspended if you enable this option, and resumed after you disable it.

Range

  • true: yes
  • false: no
Table 52 vmapp_config

Parameter

Type

Description

run_as_user

String

Definition

Running user.

Range

N/A

app_home

Object

Definition

Deployment directory settings. See Table 53.

log_home

Object

Definition

Log directory settings. See Table 53.

Table 53 log_config

Parameter

Type

Description

path

String

Definition

Directory setting path.

Range

N/A

user

String

Definition

User to which the directory setting path belongs.

Range

N/A

group

String

Definition

User group to which the directory setting path belongs.

Range

N/A

mode

String

Definition

Permission on the directory setting path.

Range

N/A

Example Request

None

Example Response

{
    "name": "test-component",
    "description": "",
    "labels": [],
    "runtime_stack": {

        "type": "Java",
        "name": "OpenJDK8",
        "deploy_mode": "virtualmachine",
        "version": "1.1.1"
    },
    "id": "b8702b0f-94d3-4822-98a1-56815632a0a0",
    "source": {
        "kind": "package",
        "url": "obs://bucket0001/weather-1.0.0.jar",
        "storage": "obs"
    },
    "environment_id": "4d084044-0b80-4641-963c-b9c9f4092a4f",
    "application_id": "fc092465-a5fb-4a52-bc65-b735f18366d8",
    "replica": 1,
    "version": "2023.0323.15181",
    "envs": [],
     "tomcat_opts": {
        "server_xml": "",
        "http_port": 0,
        "context_path": null
    },
    "refer_resources": [
        {
            "id": "Default",
            "type": "ecs",
            "parameters": {
                "hosts": [
                    "67835bb3-1235-4cc9-be71-becbb2b4ca0d"
                ]
            }
        }
    ],
    "status": {
        "component_status": "RUNNING",
        "available_replica": 1,
        "replica": 1,
        "fail_detail": null,
        "last_job_id": "JOB1c8e20ec-1b30-4ee4-9a36-35a18b5e8b7e",
        "creator": null,
        "create_time": 1679556221933,
        "update_time": 1679579448500,
    },
    "workload_kind": "deployment"
}

Status Code

Status Code

Description

200

OK

400

Bad Request

404

Not Found

500

Internal Server Error

Error Code

See ServiceStage Error Codes.