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}
| 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 |
| 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
| 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
| 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
|
| dns_config | Object | Definition DNS configuration. See Table 19. |
| workload_kind | String | Definition Workload type. Range
|
| 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
|
| platform_type | String | Definition Platform type. Range Values:
|
| config_mode | String | Definition Workload configuration mode. Range
|
| 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
|
| enable_sermant_spring_register | Boolean | Definition Whether Spring Cloud Huawei microservices need to be registered with registry centers through Sermant. Range
|
| enable_sermant_dubbo_register | Boolean | Definition Whether Dubbo microservices need to be registered with registry centers through Sermant. Range
|
| enable_sermant_config | Boolean | Definition Whether to enable the Sermant dynamic configuration plug-in. Range
|
| enable_sermant_mq_gray | Boolean | Definition Whether to enable Sermant dark launch. Range
|
| 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
|
| vmapp_config | Object | Definition Directory settings of a VM-deployed component. See Table 52. |
| Parameter | Type | Description |
|---|---|---|
| key | String | Definition Label name. Range N/A |
| value | String | Definition Label value. Range N/A |
| Parameter | Type | Description |
|---|---|---|
| type | String | Definition Data storage type. Range
|
| 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. |
| 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 |
| 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
|
| Parameter | Type | Description |
|---|---|---|
| type | String | Definition Deployment type. Range
|
| rolling_release | Object | Definition Rolling deployment parameter. See Table 10. |
| gray_release | Object | Definition Dark launch upgrade. See Table 12. |
| 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. |
| 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
|
| 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 |
| Parameter | Type | Description |
|---|---|---|
| type | String | Definition Dark launch policy. Range
|
| 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
|
| replica_surge_mode | String | Definition Mode of adding a dark launch instance. This parameter takes effect when type is set to CONTENT. Range
|
| rule_match_mode | String | Definition Effective mode of a dark launch rule. This parameter takes effect when type is set to CONTENT. Range
|
| rules | Object | Definition Dark launch rule. This parameter takes effect when type is set to CONTENT. See Table 13. |
| 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
|
| 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 |
| Parameter | Type | Description |
|---|---|---|
| type | String | Definition Processing method. Range
|
| scheme | String | Definition HTTP request type. This parameter is valid only when type is set to http. Range
|
| 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 |
| Parameter | Type | Description |
|---|---|---|
| port | Integer | Definition Process listening port. Range N/A |
| Parameter | Type | Description |
|---|---|---|
| server_xml | String | Definition
Range N/A |
| Parameter | Type | Description |
|---|---|---|
| ip | String | Definition IP address. Range N/A |
| hostname | Array of strings | Definition Host alias. Range N/A |
| 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. |
| Parameter | Type | Description |
|---|---|---|
| name | String | Definition Operation name. Range N/A |
| value | String | Definition Operation value. Range N/A |
| 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. |
| 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 |
| 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
|
| 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 |
| Parameter | Type | Description |
|---|---|---|
| kind | String | Definition Object kind. Range
|
| condition | String | Definition Policy type. Range
|
| match_expressions | Array of objects | Definition Scheduling policy rule. See Table 26. |
| weight | String | Definition Weight. Range
|
| topology_key | String | Definition Topology key. Range N/A |
| 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 |
| Parameter | Type | Description |
|---|---|---|
| type | String | Definition Type. Range
|
| 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
|
| 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 |
| Parameter | Type | Description |
|---|---|---|
| id | String | Definition Resource ID. Range N/A |
| type | String | Definition Resource type. Range
|
| parameters | Object | Definition Resource parameters. See Table 29. |
| 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
|
| class | String | Definition Volume declaration subtype. Range
|
| 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
|
| access_mode | String | Definition Storage volume access mode. Range
|
| availableZone | String | Definition AZ. Range N/A |
| volume_type | String | Definition Volume type. Range
|
| 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. |
| Parameter | Type | Description |
|---|---|---|
| reference_type | String | Definition Reference type. Range
|
| 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
|
| Parameter | Type | Description |
|---|---|---|
| name | String | Definition Technology stack name. Example: OpenJDK8. Range N/A |
| type | String | Definition Technology stack type. Range
|
| version | String | Definition Technology stack version. Example: 1.1.4. Range N/A |
| deploy_mode | String | Definition Deployment mode. Range
|
| Parameter | Type | Description |
|---|---|---|
| kind | String | Definition Component source kind. Range
|
| 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
This parameter is mandatory when kind is set to package or image. |
| auth | String | Definition Authentication mode. Range
|
| 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
|
| 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 |
| Parameter | Type | Description |
|---|---|---|
| parameters | Object | Definition This parameter is provided only when no ID is available during build creation. See Table 35. |
| Parameter | Type | Description |
|---|---|---|
| build_cmd | String | Definition Compilation command. By default:
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 |
| Parameter | Type | Description |
|---|---|---|
| component_status | String | Definition Component status. Range
|
| 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
|
| 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. |
| Parameter | Type | Description |
|---|---|---|
| type | String | Definition Kind of the component source package. Range
|
| url | String | Definition Software package or image address. Range N/A |
| Parameter | Type | Description |
|---|---|---|
| key | String | Definition Taint key. Range N/A |
| operator | String | Definition Operator. Range
|
| value | String | Definition Taint value. This parameter is mandatory when operator is set to Equal. Range N/A |
| effect | String | Definition Taint policy. Range
|
| 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 |
| 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. |
| 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 |
| Parameter | Type | Description |
|---|---|---|
| type | String | Definition Component upgrade policy. Options: Range
|
| max_unavailable |
| 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
|
| max_surge |
| 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
|
| 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 |
| Parameter | Type | Description |
|---|---|---|
| config_id | String | Definition Unified configuration ID. Range N/A |
| mount_path | String | Definition Mount path. Range N/A |
| Parameter | Type | Description |
|---|---|---|
| storage | String | Definition Storage mode of the component template package. Range
|
| 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. |
| Parameter | Type | Description |
|---|---|---|
| key | String | Definition Request key. Range N/A |
| value | String | Definition Request value. Range N/A |
| 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 |
| 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. |
| Parameter | Type | Description |
|---|---|---|
| kind | String | Definition Resource type. The value is fixed to ServiceStageConfig. |
| spec | Object | Definition Unified configuration parameter. See Table 48. |
| Parameter | Type | Description |
|---|---|---|
| name | String | Definition Unified configuration name. Format:
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 |
| Parameter | Type | Description |
|---|---|---|
| enable | Boolean | Definition Whether to enable automatic LTS configuration. Range
|
| 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 |
| Parameter | Type | Description |
|---|---|---|
| key_id | String | Definition User key ID in DEW. Range N/A |
| 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
|
| 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
|
| 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. |
| 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
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