Editing a Release Task Based on the Release Task ID
Function
This API is used to edit a release task based on the release task 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::modifyReleasePlan
write
-
-
servicestage:app:modify
-
URI
PUT /v3/{project_id}/cas/release-plans/{release_plan_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 |
| release_plan_id | Yes | String | Definition Release task ID. See Obtaining the Release Task List. Constraints N/A 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 |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| desc | No | String | Description. |
| components | Yes | Array of objects | Component list. See Table 4. |
| name | Yes | String | Release task name. |
| fail_strategy | No | String | Failure strategy.
|
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| seq | Yes | Integer | Release batch. |
| component_id | Yes | String | Application component ID. |
| name | Yes | String | Application component name. 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. |
| workload_name | No | String | Workload name. |
| labels | No | Array of objects | Label. For container-based deployment, you can query a workload by label. For VM-based deployment, you can configure a label of the corresponding microservice name to use graceful startup and shutdown. See Table 5. |
| create_mode | No | String | Component creation mode. This parameter is not transferred by default, indicating to create and deploy a component. |
| runtime_stack | Yes | Object | Runtime. See Table 31. The value can be obtained from the response of the API for Querying a Technology Stack. |
| environment_id | Yes | String | Environment ID. |
| description | No | String | Description. The value can contain up to 128 characters. |
| source | Yes | Object | Source of the code or software package. See Table 32. |
| build | No | Object | Component building. This parameter is mandatory when the component is deployed in containers and no image is used. For details, see Table 33. |
| limit_cpu | No | Number | Maximum CPU limit. Unit: core. |
| limit_memory | No | Number | Maximum memory size. Unit: GiB. |
| request_cpu | No | Number | Requested CPU resources. Unit: core. |
| request_memory | No | Number | Requested memory. Unit: GiB. |
| version | Yes | String | Component version number. The value can contain up to 32 characters. It needs to meet the following rule: ^([0-9]+)(\.[0-9]+){2,3}$ |
| envs | No | Array of objects | Environment variable list. See Table 29. |
| replica | Yes | Integer | Number of instances. |
| storages | No | Array of objects | Storage. See Table 6. |
| deploy_strategy | No | Object | Component deployment. See Table 9. |
| command | No | Object | Startup command. See Table 13. |
| post_start | No | Object | Post-start processing. See Table 14. |
| pre_stop | No | Object | Pre-stop processing. See Table 14. |
| mesher | No | Object | Multi-language access service mesh. This parameter is mandatory when Node.js is selected for the technology stack and the microservice engine is bound. See Table 15. |
| timezone | No | String | Time zone where the component runs. |
| jvm_opts | No | String | 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. |
| tomcat_opts | No | Object | Tomcat parameter. This parameter is valid when you use the Tomcat technology stack. See Table 16. |
| host_aliases | No | Array of objects | Host alias. See Table 17. |
| dns_policy | No | String | DNS policy.
|
| dns_config | No | Object | DNS configuration. See Table 18. |
| workload_kind | No | String | Workload type.
|
| security_context | No | Object | Security policy. See Table 20. |
| logs | No | Array of objects | Log collection. See Table 22. |
| custom_metric | No | Object | Custom metrics. See Table 23. |
| affinity | No | Array of objects | Affinity. See Table 24. |
| anti_affinity | No | Array of objects | Anti-affinity. See Table 24. |
| liveness_probe | No | Object | Component liveness probe. See Table 26. |
| readiness_probe | No | Object | Component service probe. See Table 26. |
| startup_probe | No | Object | Component startup probe. See Table 26. |
| refer_resources | Yes | Array of objects | Associated resource. See Table 27. |
| external_accesses | No | Array of objects | External access. See Table 35. |
| tolerations | No | Array of objects | Tolerance policy. See Table 36. |
| container_name | No | String | Container name. |
| update_strategy | No | Object | Component upgrade strategy. See Table 39. |
| multi_containers | No | Array of objects | Multi-container configuration. See Table 37. |
| service_name | No | String | Service name configured for the inter-instance discovery of a StatefulSet. |
| ports | No | Array of objects | Port configured for the inter-instance discovery of a StatefulSet. For details, see Table 38. |
| workload_content | No | String | Workload content. |
| configs | No | Array of objects | Unified component configuration. See Table 40. |
| enable_sermant_injection | No | Boolean | Whether to enable Sermant. |
| enable_sermant_spring_register | No | Boolean | Whether Spring Cloud Huawei microservices need to be registered with registry centers through Sermant. |
| enable_sermant_dubbo_register | No | Boolean | Whether Dubbo microservices need to be registered with registry centers through Sermant. |
| enable_sermant_config | No | Boolean | Whether to enable the Sermant dynamic configuration plug-in. |
| cell_id | No | String | Deployment cell ID. |
| swimlane_id | No | String | Lane ID. |
| sermantAgentInjectActionFlag | No | Boolean | Whether JDK 17 and JDK 21 automatically add the following JVM environment variables: JDK 17: --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.net=ALL-UNNAMED --add-opens java.base/java.math=ALL-UNNAMED --add-opens java.base/sun.net.www=ALL-UNNAMED --add-opens java.base/sun.net.www.protocol.http=ALL-UNNAMED JDK 21: --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.net=ALL-UNNAMED --add-opens java.base/java.math=ALL-UNNAMED --add-opens java.base/sun.net.www=ALL-UNNAMED --add-opens java.base/sun.net.www.protocol.http=ALL-UNNAMED -Dnet.bytebuddy.experimental=true |
| sys_config | No | Map<String, String> | Uses a compressed package to deploy component configuration items in the VM environment. |
| image_pull_secrets | No | Array of strings | List of image pull secrets. |
| auto_lts_config | No | Object | Automatic LTS configuration. See Table 41. |
| config_encryption | No | Object | This parameter is mandatory when the encryption key is configured for a single-container component. See Table 42. |
| task_setting | No | Object | Task settings for a job workload. See Table 43. |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| key | Yes | String | Definition Label name. Range The value contains 1 to 36 characters, including digits, letters, underscores (_), or hyphens (-). NOTE: The value of Key cannot be the built-in app, casid, or version of the system. Otherwise, an error will be reported during component creation and deployment. Default Value N/A |
| value | Yes | String | Definition Label value. Range The value contains 0 to 43 characters, including digits, letters, underscores (_), periods (.), or hyphens (-). Default Value N/A |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| type | Yes | String | Data storage type.
|
| name | Yes | String | Name of the storage disk. |
| parameters | Yes | Object | For details about the parameters of each data storage type, see Table 7. |
| mounts | Yes | Array of objects | Mount path of data storage. See Table 8. |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| path | No | String | Definition Host path. This parameter is applicable to the HostPath storage type. This parameter is mandatory when type is set to HostPath. Range N/A Default Value N/A |
| name | No | String | Definition Name of a configuration item, secret, or PVC, which is applicable to ConfigMap, Secret, or PersistentVolumeClaim storage, respectively. This parameter is mandatory when type is set to ConfigMap, Secret, or PersistentVolumeClaim. Range N/A Default Value N/A |
| default_mode | No | Integer | Definition Mounting permission. The value is in decimal format. Example: 384. This parameter is applicable to ConfigMap and secret storage. Range N/A Default Value N/A |
| medium | No | String | Definition This parameter is applicable to EmptyDir storage. Range
Default Value N/A |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| path | Yes | String | Definition Application path to which the data storage is mounted. Example: /tmp. Range N/A Default Value N/A |
| sub_path | Yes | String | Definition Subpath of the mount path. Range N/A Default Value N/A |
| read_only | Yes | Boolean | Definition Read-only or not. Range
Default Value N/A |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| type | Yes | String | Deployment type.
|
| rolling_release | No | Object | Rolling deployment parameter, which is mandatory when type is set to RollingRelease. For details, see Table 10. |
| gray_release | No | Object | Dark launch upgrade parameter, which is mandatory when type is set to GrayRelease. For details, see Table 11. |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| batches | Yes | Integer | Definition Deployment batches. Range N/A Default Value N/A |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| type | Yes | String | Dark launch policy.
|
| first_batch_weight | Yes | Integer | Proportion of first-batch dark launch traffic. This parameter is mandatory when type is set to WEIGHT. |
| first_batch_replica | Yes | Integer | Number of first-batch dark launch instances. This parameter is mandatory when type is set to WEIGHT. |
| remaining_batch | Yes | Integer | 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 five instances remaining to be deployed in three batches, these five instances will be upgraded based on 2:2:1. This parameter is mandatory when type is set to WEIGHT. |
| deployment_mode | No | Integer | Deployment mode.
|
| replica_surge_mode | No | String | Mode of adding a dark launch instance. This parameter is mandatory when type is set to CONTENT.
|
| rule_match_mode | No | String | Effective mode of a dark launch rule. This parameter is mandatory when type is set to CONTENT.
|
| rules | No | Object | Dark launch rule. See Table 12. This parameter is mandatory when type is set to CONTENT. |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| type | Yes | String | Definition Match type. Range HEADER: request header Default Value N/A |
| key | Yes | String | Definition Parameter name. Range N/A Default Value N/A |
| value | Yes | String | Definition Condition value. Range N/A Default Value N/A |
| condition | Yes | String | Definition Condition type. Range
Default Value N/A |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| command | No | Array of strings | Definition Command for controlling container running. Range N/A Default Value N/A |
| args | No | 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 Default Value N/A |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| type | Yes | String | Definition Processing method. Range
Default Value N/A |
| scheme | No | String | Definition HTTP request type. This parameter is valid only when type is set to http. Range
Default Value N/A |
| host | No | String | Definition User-defined IP address. This parameter is valid only when type is set to http. Range N/A Default Value Pod IP address. |
| port | No | Integer | Definition Port number. This parameter is valid only when type is set to http. Range N/A Default Value N/A |
| path | No | String | Definition Request path. This parameter is valid only when type is set to http. Range N/A Default Value N/A |
| command | No | Array of strings | Definition Command list. This parameter is valid only when type is set to command. Range N/A Default Value N/A |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| port | Yes | Integer | Definition Process listening port. Range N/A Default Value N/A |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| server_xml | Yes | String | Definition
Range N/A Default Value N/A |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| ip | Yes | String | Definition IP address. Range N/A Default Value N/A |
| hostnames | Yes | Array of strings | Definition Host alias. Range N/A Default Value N/A |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| nameservers | No | Array of strings | IP address list of the DNS server of the pod. |
| searches | No | Array of strings | (Optional) List of DNS search domains used to search for host names in the pod. |
| options | No | Array of objects | (Optional) List of objects. Each object may have a name (mandatory) and a value (optional). The contents of the objects here will be merged into the options generated from the specified DNS policy. Duplicate entries will be deleted. See Table 19. |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| name | Yes | String | Definition Operation name. Range N/A Default Value N/A |
| value | No | String | Definition Operation value. Range N/A Default Value N/A |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| run_as_user | No | Integer | User for running containers. Example: To run containers as user root, set the user ID to 0. |
| run_as_group | No | Integer | Owner group specified for running container processes. |
| capabilities | No | Object | Capability set. See Table 21. |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| add | No | Array of strings | Definition Grant the Linux permission to the running user. Range N/A Default Value N/A |
| drop | No | Array of strings | Definition Remove the Linux permission of the running user. Range N/A Default Value N/A |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| log_path | Yes | String | Definition Container log path. Range N/A Default Value N/A |
| rotate | Yes | String | Definition Interval for dumping logs. Range N/A Default Value N/A |
| host_path | Yes | String | Definition Mounted host path. Range N/A Default Value N/A |
| host_extend_path | Yes | String | Definition Host extension path. By extending the host path, you can distinguish mounting from different containers in the same host path. Range
Default Value N/A |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| path | Yes | String | Definition Collection path. Example: /metrics. Range N/A Default Value N/A |
| port | Yes | Integer | Definition Collection port. Example: 9090. Range N/A Default Value N/A |
| dimensions | Yes | String | Definition Monitoring dimension. Example: cpu_usage,mem_usage. Range N/A Default Value N/A |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| kind | No | String | Object kind.
|
| condition | No | String | Policy type.
|
| match_expressions | No | Array of objects | Scheduling policy rule. See Table 25. |
| weight | No | String | Weight.
|
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| key | Yes | String | Definition Key of the match tag. Range N/A Default Value N/A |
| operation | Yes | String | Definition Match condition. Range N/A Default Value N/A |
| value | Yes | String | Definition Value of the match tag. Range N/A Default Value N/A |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| type | Yes | String | Definition Type. Range
Default Value N/A |
| delay | Yes | Integer | Definition Interval between the startup and detection. Range N/A Default Value N/A |
| timeout | Yes | Integer | Definition Detection timeout interval. Range N/A Default Value N/A |
| scheme | No | String | Definition Request type. This parameter is valid only when type is set to http. Range
Default Value N/A |
| host | No | String | Definition User-defined IP address. This parameter is valid only when type is set to http. Range N/A Default Value Pod IP address. |
| port | No | Integer | Definition Port number. This parameter is valid only when type is set to http or tcp. Range N/A Default Value N/A |
| path | No | String | Definition Request path. This parameter is valid only when type is set to http. Range N/A Default Value N/A |
| command | No | Array of strings | Definition Command list. This parameter is valid only when type is set to command. Range N/A Default Value N/A |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| id | Yes | String | Resource ID. |
| type | Yes | String | Resource type.
|
| parameters | No | Object | Resource parameters. See Table 28. |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| namespace | No | String | Definition Namespace. Range N/A Default Value N/A |
| name | No | String | Definition Resource name. Range N/A Default Value N/A |
| capacity | No | Integer | Definition Storage capacity, in GiB. Range N/A Default Value N/A |
| type | No | String | Definition Volume declaration type. Range
Default Value N/A |
| class | No | String | Definition Volume declaration subtype. Range
Default Value N/A |
| obs_volume_type | No | String | Definition OBS volume type. Range
Default Value STANDARD |
| access_mode | No | String | Definition Storage volume access mode. Range
Default Value N/A |
| availableZone | No | String | Definition AZ. Range N/A Default Value N/A |
| volume_type | No | String | Definition Volume type. Range
Default Value N/A |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| name | Yes | String | Variable name. |
| value | No | String | Variable value. |
| value_from | No | Object | Variable reference. See Table 30. |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| reference_type | Yes | String | Definition Reference type. Range
Default Value N/A |
| name | Yes | String | Definition Name of the configuration item or secret. Range N/A Default Value N/A |
| key | No | String | Definition Key of the configuration item or secret. Range N/A Default Value N/A |
| optional | No | Boolean | Definition Whether the key of the configuration item or secret is mandatory. Range
Default Value N/A |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| name | Yes | String | Definition Technology stack name. Range N/A Default Value N/A |
| type | Yes | String | Definition Technology stack type. Range
Default Value N/A |
| version | Yes | String | Definition Technology stack version. Range N/A Default Value N/A |
| deploy_mode | Yes | String | Definition Deployment mode. Range
Default Value N/A |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| kind | Yes | String | Definition Component source kind. Range
Default Value N/A |
| version | No | String | Definition Version number. Range N/A Default Value N/A |
| url | No | String | Definition Package address. This parameter is mandatory when kind is set to package or image. Range N/A Default Value N/A |
| storage | No | String | Definition Storage mode. This parameter is mandatory when kind is set to package or image. Range
Default Value N/A |
| http_username | No | String | Definition Username. This parameter is mandatory when storage is set to http. Username and password authentication is supported. Range N/A Default Value N/A |
| http_password | No | String | Definition Password. This parameter is mandatory when storage is set to http. Username and password authentication is supported. Range N/A Default Value N/A |
| http_command | No | String | Definition Address of the custom software package. This parameter is mandatory when storage is set to http. Range N/A Default Value N/A |
| http_headers | No | 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""}. |
| auth | No | String | Definition Authentication mode. Range
Default Value iam |
| repo_auth | No | String | Definition Authorization name, which can be obtained from the authorization list. For details, see Obtaining a Git Repository Authorization List. Range N/A Default Value N/A |
| repo_namespace | No | String | Definition Namespace of the code repository. Range N/A Default Value N/A |
| repo_ref | No | String | Definition Code branch or tag Range N/A Default Value master |
| repo_type | No | String | Definition Code repository. Range
Default Value N/A |
| web_url | No | String | Definition Code redirection URL. Example: https://github.com/example/demo.git. Range N/A Default Value N/A |
| repo_url | No | String | Definition Code repository URL. Example: https://github.com/example/demo.git. Range N/A Default Value N/A |
| commit_id | No | 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. Default Value N/A |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| parameters | No | Object | This parameter is provided only when no ID is available during build creation. See Table 34. |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| build_cmd | No | String | Definition Compilation command. Range N/A Default Value
|
| dockerfile_path | No | String | Definition Address of the Docker file. Range N/A Default Value root directory (./) |
| artifact_namespace | No | String | Definition Build archive organization. Range N/A Default Value cas_{project_id} |
| cluster_id | Yes | String | Definition ID of the cluster to be built. Range N/A Default Value N/A |
| node_label_selector | No | Map<String, String> | Definition key: label key. value: label value. |
| environment_id | No | String | Definition Environment ID. See Obtaining All Environments. Range N/A Default Value N/A |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| protocol | No | String | Definition External access type. Range
Default Value N/A |
| address | No | String | Definition External access address. Range N/A Default Value N/A |
| forward_port | No | Integer | Definition External access port. Range N/A Default Value N/A |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| key | No | String | Definition Taint key. Range N/A Default Value N/A |
| operator | No | String | Definition Operator. Range
Default Value N/A |
| value | No | String | Definition Taint value. This parameter is mandatory when operator is set to Equal. Range N/A Default Value N/A |
| effect | No | String | Definition Taint policy. Range
Default Value N/A |
| toleration_seconds | No | 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 Default Value N/A |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| container_name | Yes | String | Container name. |
| source | Yes | Object | Source of the code or software package. See Table 32. In multi-container mode, only images are supported. |
| limit_cpu | No | Number | Maximum CPU limit. Unit: core. |
| limit_memory | No | Number | Maximum memory size. Unit: GiB. |
| request_cpu | No | Number | Requested CPU resources. Unit: core. |
| request_memory | No | Number | Requested memory. Unit: GiB. |
| envs | No | Array of objects | Environment variable list. See Table 29. |
| liveness_probe | No | Object | Container liveness probe. See Table 26. |
| readiness_probe | No | Object | Container service probe. See Table 26. |
| startup_probe | No | Object | Container startup probe. See Table 26. |
| command | No | Object | Startup command. See Table 13. |
| post_start | No | Object | Post-start processing. See Table 14. |
| pre_stop | No | Object | Pre-stop processing. See Table 14. |
| logs | No | Array of objects | Log collection. See Table 22. |
| storages | No | Array of objects | Storage. See Table 6. |
| security_context | No | Object | Security policy. See Table 20. |
| config_encryption | No | Object | This parameter is mandatory when the encryption key is configured for a multi-container component. See Table 42. |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| name | Yes | String | Definition Port name. Range N/A Default Value N/A |
| port | Yes | String | Definition Access port. Range N/A Default Value N/A |
| target_port | Yes | String | Definition Container port. Range N/A Default Value N/A |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| type | No | String | Definition Component upgrade policy. Range
Default Value RollingUpdate |
| max_unavailable | No |
| Definition Maximum number of unavailable pods. That is, the number or percentage of pods that can be deleted based on the value of replica.
Constraints This parameter can be set only when workload_kind is set to deployment. Range N/A Default Value 25% |
| max_surge | No |
| Definition Maximum surge. That is, the number or percentage of pods allowed based on the value of replica.
Constraints This parameter can be set only when workload_kind is set to deployment. Range N/A Default Value 25% |
| termination_period_seconds | No | Integer | Definition Scale-in time window. That is, the time window for executing commands before a workload stops. Range N/A Default Value 30 |
| min_ready_seconds | No | 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. Range N/A Default Value 0 |
| progress_deadline_seconds | No | Integer | Definition Maximum upgrade duration. That is, the time (in seconds) the system waits for before reporting a component upgrade failure. Constraints If this parameter is specified, the value of this parameter must be greater than that of min_ready_seconds. Range N/A Default Value N/A |
| revision_history_limit | No | Integer | Definition Maximum number of pods to retain. That is, the number of old pods to retain to allow rollback. Range N/A Default Value 10 |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| config_id | Yes | String | Definition Unified configuration ID. Range N/A Default Value N/A |
| mount_path | Yes | String | Definition Mount path. Range N/A Default Value N/A |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| parallelism | Yes | Integer | Definition Number of parallel jobs. Range N/A Default Value N/A |
| active_deadline_seconds | No | Integer | Definition Timeout interval, in seconds. Range N/A Default Value N/A |
| completion_mode | Yes | String | Definition Completion mode. Range
Default Value N/A |
| suspend | Yes | Boolean | Definition Whether to suspend a job. The job's execution will be suspended if you enable this option, and resumed after you disable it. Range
Default Value false (The task is executed immediately after being created by default.) |
Response
| Parameter | Type | Description |
|---|---|---|
| release_plan_id | String | Release task ID. |
Example Request
Edit the release task whose ID is bb09c189-d17e-480a-a0e4-3a102b3795b0.
{
"name": "release-hz287z",
"fail_strategy": "stop",
"components": [
{
"runtime_stack": {
"type": "Docker",
"name": "Docker",
"deploy_mode": "container",
"version": ""
},
"source": {
"kind": "image",
"url": "swr.ap-southeast-1.myhuaweicloud.com/cae-group1/sch:v1",
"storage": "swr",
"auth": "iam"
},
"replica": 1,
"version": "2024.0806.19166",
"envs": [
{
"name": "MOCK_ENABLED",
"value": "true"
}
],
"update_strategy": {
"type": "RollingUpdate",
"max_unavailable": "25%",
"max_surge": "25%",
"termination_period_seconds": 30
},
"command": {
"command": [],
"args": []
},
"jvm_opts": "",
"tomcat_opts": {
"server_xml": ""
},
"deploy_strategy": {
"type": "RollingRelease",
"rolling_release": {
"batches": 1
}
},
"custom_metric": {
"path": null,
"port": 0,
"dimensions": null
},
"affinity": [],
"anti_affinity": [],
"tolerations": [
{
"key": "node.kubernetes.io/not-ready",
"operator": "Exists",
"effect": "NoExecute",
"value": null,
"toleration_seconds": 300
},
{
"key": "node.kubernetes.io/unreachable",
"operator": "Exists",
"effect": "NoExecute",
"value": null,
"toleration_seconds": 300
}
],
"liveness_probe": {
"delay": 0,
"timeout": 0,
"type": null,
"command": null,
"port": 0,
"host": null,
"scheme": null,
"path": null
},
"readiness_probe": {
"delay": 0,
"timeout": 0,
"type": null,
"command": null,
"port": 0,
"host": null,
"scheme": null,
"path": null
},
"startup_probe": {
"delay": 0,
"timeout": 0,
"type": null,
"command": null,
"port": 0,
"host": null,
"scheme": null,
"path": null
},
"refer_resources": [
{
"id": "7bc15618-f875-11ee-9505-0255ac100b08",
"type": "cce",
"parameters": {
"name": "cce-lianghuanyu",
"namespace": "default",
"type": "VirtualMachine"
}
},
{
"type": "cse",
"id": "ebeb26bd-3e27-49d6-bf70-bb1fa07a0500"
}
],
"workload_kind": "deployment",
"workload_content": "{\"kind\":\"Deployment\",\"apiVersion\":\"apps/v1\",\"metadata\":{\"name\":\"sch-env-apitest-ss-bcc317\",\"namespace\":\"default\",\"uid\":\"6e18e9dd-6e4e-4240-b634-e7802f9cf983\",\"resourceVersion\":\"84089805\",\"generation\":1,\"creationTimestamp\":\"2024-08-06T08:45:26Z\",\"labels\":{\"app\":\"sch-env-apitest-ss-bcc317\",\"casid\":\"cas-30f88521-fa43-42ff-aaec-9cac4259fb16\",\"version\":\"2024.0802.18390\"},\"annotations\":{\"deployment.kubernetes.io/revision\":\"1\",\"description\":\"sch-env-apitest-ss-bcc317\",\"instanceId\":\"30f88521-fa43-42ff-aaec-9cac4259fb16\",\"managedBy\":\"cas\"},\"managedFields\":[{\"manager\":\"cfe-apiserver\",\"operation\":\"Update\",\"apiVersion\":\"apps/v1\",\"time\":\"2024-08-06T08:45:26Z\",\"fieldsType\":\"FieldsV1\",\"fieldsV1\":{\"f:metadata\":{\"f:annotations\":{\".\":{},\"f:description\":{},\"f:instanceId\":{},\"f:managedBy\":{}},\"f:labels\":{\".\":{},\"f:app\":{},\"f:casid\":{},\"f:version\":{}}},\"f:spec\":{\"f:progressDeadlineSeconds\":{},\"f:replicas\":{},\"f:revisionHistoryLimit\":{},\"f:selector\":{},\"f:strategy\":{\"f:rollingUpdate\":{\".\":{},\"f:maxSurge\":{},\"f:maxUnavailable\":{}},\"f:type\":{}},\"f:template\":{\"f:metadata\":{\"f:annotations\":{\".\":{},\"f:aom_custom_inventory\":{},\"f:aom_metric_relabel_configs\":{},\"f:cas_version\":{},\"f:manageBy\":{},\"f:metrics.alpha.kubernetes.io/custom-endpoints\":{},\"f:updateTimestamp\":{}},\"f:labels\":{\".\":{},\"f:app\":{},\"f:casid\":{}}},\"f:spec\":{\"f:affinity\":{},\"f:containers\":{\"k:{\\\"name\\\":\\\"sch-env-apitest-ss-lb0i2d\\\"}\":{\".\":{},\"f:env\":{\".\":{},\"k:{\\\"name\\\":\\\"AOM_DISCOVERY_RULE_VERSION\\\"}\":{\".\":{},\"f:name\":{},\"f:value\":{}},\"k:{\\\"name\\\":\\\"CAS_APPLICATION_ID\\\"}\":{\".\":{},\"f:name\":{},\"f:value\":{}},\"k:{\\\"name\\\":\\\"CAS_APPLICATION_NAME\\\"}\":{\".\":{},\"f:name\":{},\"f:value\":{}},\"k:{\\\"name\\\":\\\"CAS_APP_ID\\\"}\":{\".\":{},\"f:name\":{},\"f:value\":{}},\"k:{\\\"name\\\":\\\"CAS_COMPONENT_ID\\\"}\":{\".\":{},\"f:name\":{},\"f:value\":{}},\"k:{\\\"name\\\":\\\"CAS_COMPONENT_NAME\\\"}\":{\".\":{},\"f:name\":{},\"f:value\":{}},\"k:{\\\"name\\\":\\\"CAS_CONTAINER_FLAG\\\"}\":{\".\":{},\"f:name\":{},\"f:value\":{}},\"k:{\\\"name\\\":\\\"CAS_ENVIRONMENT_ID\\\"}\":{\".\":{},\"f:name\":{},\"f:value\":{}},\"k:{\\\"name\\\":\\\"CAS_ENVIRONMENT_NAME\\\"}\":{\".\":{},\"f:name\":{},\"f:value\":{}},\"k:{\\\"name\\\":\\\"CAS_INSTANCE_ID\\\"}\":{\".\":{},\"f:name\":{},\"f:value\":{}},\"k:{\\\"name\\\":\\\"CAS_INSTANCE_NAME\\\"}\":{\".\":{},\"f:name\":{},\"f:value\":{}},\"k:{\\\"name\\\":\\\"CAS_INSTANCE_VERSION\\\"}\":{\".\":{},\"f:name\":{},\"f:value\":{}},\"k:{\\\"name\\\":\\\"DYNAMIC_CONFIG_DYNAMICCONFIGTYPE\\\"}\":{\".\":{},\"f:name\":{},\"f:value\":{}},\"k:{\\\"name\\\":\\\"DYNAMIC_CONFIG_SERVERADDRESS\\\"}\":{\".\":{},\"f:name\":{},\"f:value\":{}},\"k:{\\\"name\\\":\\\"INSTANCE-DESCRIPTION_PROPERTIES_TAG_AZ\\\"}\":{\".\":{},\"f:name\":{},\"f:value\":{}},\"k:{\\\"name\\\":\\\"MOCK_ENABLED\\\"}\":{\".\":{},\"f:name\":{},\"f:value\":{}},\"k:{\\\"name\\\":\\\"PAAS_APP_NAME\\\"}\":{\".\":{},\"f:name\":{},\"f:value\":{}},\"k:{\\\"name\\\":\\\"PAAS_CLUSTER_ID\\\"}\":{\".\":{},\"f:name\":{},\"f:value\":{}},\"k:{\\\"name\\\":\\\"PAAS_CSE_CC_ENDPOINT\\\"}\":{\".\":{},\"f:name\":{},\"f:value\":{}},\"k:{\\\"name\\\":\\\"PAAS_CSE_DS_ENDPOINT\\\"}\":{\".\":{},\"f:name\":{},\"f:value\":{}},\"k:{\\\"name\\\":\\\"PAAS_CSE_ENGINE_MGR_ENDPOINT\\\"}\":{\".\":{},\"f:name\":{},\"f:value\":{}},\"k:{\\\"name\\\":\\\"PAAS_CSE_SC_ENDPOINT\\\"}\":{\".\":{},\"f:name\":{},\"f:value\":{}},\"k:{\\\"name\\\":\\\"PAAS_NAMESPACE\\\"}\":{\".\":{},\"f:name\":{},\"f:value\":{}},\"k:{\\\"name\\\":\\\"PAAS_PROJECT_ID\\\"}\":{\".\":{},\"f:name\":{},\"f:value\":{}},\"k:{\\\"name\\\":\\\"PAAS_PROJECT_NAME\\\"}\":{\".\":{},\"f:name\":{},\"f:value\":{}},\"k:{\\\"name\\\":\\\"PAAS_REGION_NAME\\\"}\":{\".\":{},\"f:name\":{},\"f:value\":{}},\"k:{\\\"name\\\":\\\"SERVICECOMB_INSTANCE_PROPS\\\"}\":{\".\":{},\"f:name\":{},\"f:value\":{}},\"k:{\\\"name\\\":\\\"SERVICECOMB_SERVICE_PARAMETERS\\\"}\":{\".\":{},\"f:name\":{},\"f:value\":{}},\"k:{\\\"name\\\":\\\"SERVICECOMB_SERVICE_PROPS\\\"}\":{\".\":{},\"f:name\":{},\"f:value\":{}},\"k:{\\\"name\\\":\\\"servicecomb_engine_name\\\"}\":{\".\":{},\"f:name\":{},\"f:value\":{}}},\"f:image\":{},\"f:imagePullPolicy\":{},\"f:name\":{},\"f:ports\":{\".\":{},\"k:{\\\"containerPort\\\":8080,\\\"protocol\\\":\\\"TCP\\\"}\":{\".\":{},\"f:containerPort\":{},\"f:protocol\":{}}},\"f:resources\":{},\"f:terminationMessagePath\":{},\"f:terminationMessagePolicy\":{}}},\"f:dnsPolicy\":{},\"f:imagePullSecrets\":{\".\":{},\"k:{\\\"name\\\":\\\"default-secret\\\"}\":{}},\"f:restartPolicy\":{},\"f:schedulerName\":{},\"f:securityContext\":{},\"f:terminationGracePeriodSeconds\":{},\"f:tolerations\":{}}}}}},{\"manager\":\"kube-controller-manager\",\"operation\":\"Update\",\"apiVersion\":\"apps/v1\",\"time\":\"2024-08-06T08:45:27Z\",\"fieldsType\":\"FieldsV1\",\"fieldsV1\":{\"f:metadata\":{\"f:annotations\":{\"f:deployment.kubernetes.io/revision\":{}}},\"f:status\":{\"f:availableReplicas\":{},\"f:conditions\":{\".\":{},\"k:{\\\"type\\\":\\\"Available\\\"}\":{\".\":{},\"f:lastTransitionTime\":{},\"f:lastUpdateTime\":{},\"f:message\":{},\"f:reason\":{},\"f:status\":{},\"f:type\":{}},\"k:{\\\"type\\\":\\\"Progressing\\\"}\":{\".\":{},\"f:lastTransitionTime\":{},\"f:lastUpdateTime\":{},\"f:message\":{},\"f:reason\":{},\"f:status\":{},\"f:type\":{}}},\"f:observedGeneration\":{},\"f:readyReplicas\":{},\"f:replicas\":{},\"f:updatedReplicas\":{}}},\"subresource\":\"status\"}]},\"spec\":{\"replicas\":1,\"selector\":{\"matchLabels\":{\"app\":\"sch-env-apitest-ss-bcc317\"}},\"template\":{\"metadata\":{\"creationTimestamp\":null,\"labels\":{\"app\":\"sch-env-apitest-ss-bcc317\",\"casid\":\"cas-30f88521-fa43-42ff-aaec-9cac4259fb16\"},\"annotations\":{\"aom_custom_inventory\":\"[{\\\"kind\\\":\\\"CSE\\\",\\\"id\\\":\\\"ebeb26bd-3e27-49d6-bf70-bb1fa07a0500\\\"}]\",\"aom_metric_relabel_configs\":\"[{\\\"source_labels\\\":\\\"__meta_kubernetes_pod_container_env_sch-env-apitest-ss-lb0i2d\\\",\\\"regex\\\":\\\"\\\\\\\\s*\\\\\\\"name\\\\\\\":\\\\\\\\s*\\\\\\\"CAS_DEPLOYCELL_NAME\\\\\\\",\\\\\\\\s*\\\\\\\"value\\\\\\\":\\\\\\\\s*\\\\\\\"(.*)\\\\\\\"\\\",\\\"replacement\\\":\\\"$1\\\",\\\"target_label\\\":\\\"casDeployCellName\\\"},{\\\"source_labels\\\":\\\"__meta_kubernetes_pod_container_env_sch-env-apitest-ss-lb0i2d\\\",\\\"regex\\\":\\\"\\\\\\\\s*\\\\\\\"name\\\\\\\":\\\\\\\\s*\\\\\\\"CAS_ENVIRONMENTGROUP_NAME\\\\\\\",\\\\\\\\s*\\\\\\\"value\\\\\\\":\\\\\\\\s*\\\\\\\"(.*)\\\\\\\"\\\",\\\"replacement\\\":\\\"$1\\\",\\\"target_label\\\":\\\"casEnvironmentGroupName\\\"},{\\\"source_labels\\\":\\\"__meta_kubernetes_pod_container_env_sch-env-apitest-ss-lb0i2d\\\",\\\"regex\\\":\\\"\\\\\\\\s*\\\\\\\"name\\\\\\\":\\\\\\\\s*\\\\\\\"CAS_SUBAPPLICATION_NAME\\\\\\\",\\\\\\\\s*\\\\\\\"value\\\\\\\":\\\\\\\\s*\\\\\\\"(.*)\\\\\\\"\\\",\\\"replacement\\\":\\\"$1\\\",\\\"target_label\\\":\\\"casSubApplicationName\\\"},{\\\"source_labels\\\":\\\"__meta_kubernetes_pod_container_env_sch-env-apitest-ss-lb0i2d\\\",\\\"regex\\\":\\\"\\\\\\\\s*\\\\\\\"name\\\\\\\":\\\\\\\\s*\\\\\\\"CAS_APPLICATION_ID\\\\\\\",\\\\\\\\s*\\\\\\\"value\\\\\\\":\\\\\\\\s*\\\\\\\"(.*)\\\\\\\"\\\",\\\"replacement\\\":\\\"$1\\\",\\\"target_label\\\":\\\"casApplicationID\\\"},{\\\"source_labels\\\":\\\"__meta_kubernetes_pod_container_env_sch-env-apitest-ss-lb0i2d\\\",\\\"regex\\\":\\\"\\\\\\\\s*\\\\\\\"name\\\\\\\":\\\\\\\\s*\\\\\\\"CAS_COMPONENT_ID\\\\\\\",\\\\\\\\s*\\\\\\\"value\\\\\\\":\\\\\\\\s*\\\\\\\"(.*)\\\\\\\"\\\",\\\"replacement\\\":\\\"$1\\\",\\\"target_label\\\":\\\"casComponentID\\\"},{\\\"source_labels\\\":\\\"__meta_kubernetes_pod_container_env_sch-env-apitest-ss-lb0i2d\\\",\\\"regex\\\":\\\"\\\\\\\\s*\\\\\\\"name\\\\\\\":\\\\\\\\s*\\\\\\\"CAS_INSTANCE_NAME\\\\\\\",\\\\\\\\s*\\\\\\\"value\\\\\\\":\\\\\\\\s*\\\\\\\"(.*)\\\\\\\"\\\",\\\"replacement\\\":\\\"$1\\\",\\\"target_label\\\":\\\"casInstanceName\\\"},{\\\"source_labels\\\":\\\"__meta_kubernetes_pod_container_env_sch-env-apitest-ss-lb0i2d\\\",\\\"regex\\\":\\\"\\\\\\\\s*\\\\\\\"name\\\\\\\":\\\\\\\\s*\\\\\\\"CAS_ENVIRONMENT_TYPE\\\\\\\",\\\\\\\\s*\\\\\\\"value\\\\\\\":\\\\\\\\s*\\\\\\\"(.*)\\\\\\\"\\\",\\\"replacement\\\":\\\"$1\\\",\\\"target_label\\\":\\\"casEnvironmentType\\\"},{\\\"source_labels\\\":\\\"__meta_kubernetes_pod_container_env_sch-env-apitest-ss-lb0i2d\\\",\\\"regex\\\":\\\"\\\\\\\\s*\\\\\\\"name\\\\\\\":\\\\\\\\s*\\\\\\\"CAS_COMPONENT_NAME\\\\\\\",\\\\\\\\s*\\\\\\\"value\\\\\\\":\\\\\\\\s*\\\\\\\"(.*)\\\\\\\"\\\",\\\"replacement\\\":\\\"$1\\\",\\\"target_label\\\":\\\"casComponentName\\\"},{\\\"source_labels\\\":\\\"__meta_kubernetes_pod_container_env_sch-env-apitest-ss-lb0i2d\\\",\\\"regex\\\":\\\"\\\\\\\\s*\\\\\\\"name\\\\\\\":\\\\\\\\s*\\\\\\\"CAS_AZ_NAME\\\\\\\",\\\\\\\\s*\\\\\\\"value\\\\\\\":\\\\\\\\s*\\\\\\\"(.*)\\\\\\\"\\\",\\\"replacement\\\":\\\"$1\\\",\\\"target_label\\\":\\\"casAzName\\\"},{\\\"source_labels\\\":\\\"__meta_kubernetes_pod_container_env_sch-env-apitest-ss-lb0i2d\\\",\\\"regex\\\":\\\"\\\\\\\\s*\\\\\\\"name\\\\\\\":\\\\\\\\s*\\\\\\\"CAS_LOGICCELL_NAME\\\\\\\",\\\\\\\\s*\\\\\\\"value\\\\\\\":\\\\\\\\s*\\\\\\\"(.*)\\\\\\\"\\\",\\\"replacement\\\":\\\"$1\\\",\\\"target_label\\\":\\\"casLogicCellName\\\"},{\\\"source_labels\\\":\\\"__meta_kubernetes_pod_container_env_sch-env-apitest-ss-lb0i2d\\\",\\\"regex\\\":\\\"\\\\\\\\s*\\\\\\\"name\\\\\\\":\\\\\\\\s*\\\\\\\"CAS_INSTANCE_ID\\\\\\\",\\\\\\\\s*\\\\\\\"value\\\\\\\":\\\\\\\\s*\\\\\\\"(.*)\\\\\\\"\\\",\\\"replacement\\\":\\\"$1\\\",\\\"target_label\\\":\\\"casInstanceID\\\"},{\\\"source_labels\\\":\\\"__meta_kubernetes_pod_container_env_sch-env-apitest-ss-lb0i2d\\\",\\\"regex\\\":\\\"\\\\\\\\s*\\\\\\\"name\\\\\\\":\\\\\\\\s*\\\\\\\"CAS_ENVIRONMENTGROUP_TYPE\\\\\\\",\\\\\\\\s*\\\\\\\"value\\\\\\\":\\\\\\\\s*\\\\\\\"(.*)\\\\\\\"\\\",\\\"replacement\\\":\\\"$1\\\",\\\"target_label\\\":\\\"casEnvironmentGroupType\\\"},{\\\"source_labels\\\":\\\"__meta_kubernetes_pod_container_env_sch-env-apitest-ss-lb0i2d\\\",\\\"regex\\\":\\\"\\\\\\\\s*\\\\\\\"name\\\\\\\":\\\\\\\\s*\\\\\\\"CAS_DEPLOYCELL_ID\\\\\\\",\\\\\\\\s*\\\\\\\"value\\\\\\\":\\\\\\\\s*\\\\\\\"(.*)\\\\\\\"\\\",\\\"replacement\\\":\\\"$1\\\",\\\"target_label\\\":\\\"casDeployCellId\\\"},{\\\"source_labels\\\":\\\"__meta_kubernetes_pod_container_env_sch-env-apitest-ss-lb0i2d\\\",\\\"regex\\\":\\\"\\\\\\\\s*\\\\\\\"name\\\\\\\":\\\\\\\\s*\\\\\\\"CAS_LOGICCELL_ID\\\\\\\",\\\\\\\\s*\\\\\\\"value\\\\\\\":\\\\\\\\s*\\\\\\\"(.*)\\\\\\\"\\\",\\\"replacement\\\":\\\"$1\\\",\\\"target_label\\\":\\\"casLogicCellId\\\"},{\\\"source_labels\\\":\\\"__meta_kubernetes_pod_container_env_sch-env-apitest-ss-lb0i2d\\\",\\\"regex\\\":\\\"\\\\\\\\s*\\\\\\\"name\\\\\\\":\\\\\\\\s*\\\\\\\"CAS_ENVIRONMENT_NAME\\\\\\\",\\\\\\\\s*\\\\\\\"value\\\\\\\":\\\\\\\\s*\\\\\\\"(.*)\\\\\\\"\\\",\\\"replacement\\\":\\\"$1\\\",\\\"target_label\\\":\\\"casEnvironmentName\\\"},{\\\"source_labels\\\":\\\"__meta_kubernetes_pod_container_env_sch-env-apitest-ss-lb0i2d\\\",\\\"regex\\\":\\\"\\\\\\\\s*\\\\\\\"name\\\\\\\":\\\\\\\\s*\\\\\\\"CAS_ENVIRONMENTGROUP_ID\\\\\\\",\\\\\\\\s*\\\\\\\"value\\\\\\\":\\\\\\\\s*\\\\\\\"(.*)\\\\\\\"\\\",\\\"replacement\\\":\\\"$1\\\",\\\"target_label\\\":\\\"casEnvironmentGroupId\\\"},{\\\"source_labels\\\":\\\"__meta_kubernetes_pod_container_env_sch-env-apitest-ss-lb0i2d\\\",\\\"regex\\\":\\\"\\\\\\\\s*\\\\\\\"name\\\\\\\":\\\\\\\\s*\\\\\\\"CAS_ENVIRONMENT_ID\\\\\\\",\\\\\\\\s*\\\\\\\"value\\\\\\\":\\\\\\\\s*\\\\\\\"(.*)\\\\\\\"\\\",\\\"replacement\\\":\\\"$1\\\",\\\"target_label\\\":\\\"casEnvironmentID\\\"},{\\\"source_labels\\\":\\\"__meta_kubernetes_pod_container_env_sch-env-apitest-ss-lb0i2d\\\",\\\"regex\\\":\\\"\\\\\\\\s*\\\\\\\"name\\\\\\\":\\\\\\\\s*\\\\\\\"CAS_APPLICATION_NAME\\\\\\\",\\\\\\\\s*\\\\\\\"value\\\\\\\":\\\\\\\\s*\\\\\\\"(.*)\\\\\\\"\\\",\\\"replacement\\\":\\\"$1\\\",\\\"target_label\\\":\\\"casApplicationName\\\"}]\",\"cas_version\":\"2024.0802.18390\",\"manageBy\":\"image\",\"metrics.alpha.kubernetes.io/custom-endpoints\":\"[{\\\"api\\\":\\\"\\\",\\\"path\\\":\\\"\\\",\\\"port\\\":\\\"\\\",\\\"names\\\":\\\"\\\"}]\",\"updateTimestamp\":\"2024-08-06T08:45:26.187809403Z\"}},\"spec\":{\"containers\":[{\"name\":\"sch-env-apitest-ss-lb0i2d\",\"image\":\"swr.ap-southeast-1.myhuaweicloud.com/cae-group1/sch:v1\",\"ports\":[{\"containerPort\":8080,\"protocol\":\"TCP\"}],\"env\":[{\"name\":\"PAAS_CSE_CC_ENDPOINT\",\"value\":\"https://192.168.22.33:30110,https://192.168.143.165:30110\"},{\"name\":\"CAS_APPLICATION_ID\",\"value\":\"f397be2a-4c49-4ed8-8144-ce13417e179d\"},{\"name\":\"PAAS_CSE_SC_ENDPOINT\",\"value\":\"https://192.168.22.33:30100,https://192.168.143.165:30100\"},{\"name\":\"CAS_INSTANCE_VERSION\",\"value\":\"2024.0802.18390\"},{\"name\":\"DYNAMIC_CONFIG_DYNAMICCONFIGTYPE\",\"value\":\"KIE\"},{\"name\":\"CAS_COMPONENT_ID\",\"value\":\"30f88521-fa43-42ff-aaec-9cac4259fb16\"},{\"name\":\"CAS_COMPONENT_NAME\",\"value\":\"sch\"},{\"name\":\"PAAS_NAMESPACE\",\"value\":\"default\"},{\"name\":\"PAAS_PROJECT_NAME\",\"value\":\"region\"},{\"name\":\"CAS_INSTANCE_ID\",\"value\":\"30f88521-fa43-42ff-aaec-9cac4259fb16\"},{\"name\":\"CAS_ENVIRONMENT_NAME\",\"value\":\"env-apitest-ss\"},{\"name\":\"CAS_CONTAINER_FLAG\",\"value\":\"16e2808b-09df-4a60-b481-e4a825d62416\"},{\"name\":\"servicecomb_engine_name\",\"value\":\"cse-lhy-apitest-ai2KLH\"},{\"name\":\"AOM_DISCOVERY_RULE_VERSION\",\"value\":\"V1\"},{\"name\":\"MOCK_ENABLED\",\"value\":\"true\"},{\"name\":\"SERVICECOMB_SERVICE_PARAMETERS\",\"value\":\"cas-instance-id:30f88521-fa43-42ff-aaec-9cac4259fb16\"},{\"name\":\"PAAS_REGION_NAME\",\"value\":\"region\"},{\"name\":\"CAS_APPLICATION_NAME\",\"value\":\"weathermap\"},{\"name\":\"PAAS_PROJECT_ID\",\"value\":\"4008a952b3f44b5a919c9a48d90811f3\"},{\"name\":\"CAS_APP_ID\",\"value\":\"30f88521-fa43-42ff-aaec-9cac4259fb16\"},{\"name\":\"INSTANCE-DESCRIPTION_PROPERTIES_TAG_AZ\",\"value\":\"null-null\"},{\"name\":\"PAAS_CLUSTER_ID\",\"value\":\"7bc15618-f875-11ee-9505-0255ac100b08\"},{\"name\":\"PAAS_CSE_ENGINE_MGR_ENDPOINT\",\"value\":\"https://cse2.mydomain.com\"},{\"name\":\"SERVICECOMB_SERVICE_PROPS\",\"value\":\"cas-instance-id:30f88521-fa43-42ff-aaec-9cac4259fb16\"},{\"name\":\"CAS_INSTANCE_NAME\",\"value\":\"sch-env-apitest-ss-bcc317\"},{\"name\":\"DYNAMIC_CONFIG_SERVERADDRESS\",\"value\":\"https://192.168.22.33:30110,https://192.168.143.165:30110\"},{\"name\":\"PAAS_APP_NAME\",\"value\":\"sch\"},{\"name\":\"SERVICECOMB_INSTANCE_PROPS\",\"value\":\"cas_lane_tag:gga,affinity-tag:gga\"},{\"name\":\"PAAS_CSE_DS_ENDPOINT\",\"value\":\"https://192.168.22.33:30109,https://192.168.143.165:30109\"},{\"name\":\"CAS_ENVIRONMENT_ID\",\"value\":\"48874c71-4898-442f-87fc-afff135d65d1\"}],\"resources\":{},\"terminationMessagePath\":\"/dev/termination-log\",\"terminationMessagePolicy\":\"File\",\"imagePullPolicy\":\"Always\"}],\"restartPolicy\":\"Always\",\"terminationGracePeriodSeconds\":30,\"dnsPolicy\":\"ClusterFirst\",\"securityContext\":{},\"imagePullSecrets\":[{\"name\":\"default-secret\"}],\"affinity\":{},\"schedulerName\":\"default-scheduler\",\"tolerations\":[{\"key\":\"node.kubernetes.io/not-ready\",\"operator\":\"Exists\",\"effect\":\"NoExecute\",\"tolerationSeconds\":300},{\"key\":\"node.kubernetes.io/unreachable\",\"operator\":\"Exists\",\"effect\":\"NoExecute\",\"tolerationSeconds\":300}]}},\"strategy\":{\"type\":\"RollingUpdate\",\"rollingUpdate\":{\"maxUnavailable\":\"25%\",\"maxSurge\":\"25%\"}},\"revisionHistoryLimit\":10,\"progressDeadlineSeconds\":600},\"status\":{\"observedGeneration\":1,\"replicas\":1,\"updatedReplicas\":1,\"readyReplicas\":1,\"availableReplicas\":1,\"conditions\":[{\"type\":\"Available\",\"status\":\"True\",\"lastUpdateTime\":\"2024-08-06T08:45:27Z\",\"lastTransitionTime\":\"2024-08-06T08:45:27Z\",\"reason\":\"MinimumReplicasAvailable\",\"message\":\"Deployment has minimum availability.\"},{\"type\":\"Progressing\",\"status\":\"True\",\"lastUpdateTime\":\"2024-08-06T08:45:27Z\",\"lastTransitionTime\":\"2024-08-06T08:45:26Z\",\"reason\":\"NewReplicaSetAvailable\",\"message\":\"ReplicaSet \\\"sch-env-apitest-ss-bcc317-c4978bc77\\\" has successfully progressed.\"}]}}",
"enable_sermant_injection": false,
"enable_sermant_spring_register": false,
"enable_sermant_dubbo_register": false,
"enable_sermant_config": false,
"sys_config": {},
"swimlane_id": "180c158a-0b45-41b4-a8da-767e8fb8e156",
"workload_name": "sch-env-apitest-ss-bcc317",
"container_name": "sch-env-apitest-ss-lb0i2d",
"seq": 1,
"environment_id": "48874c71-4898-442f-87fc-afff135d65d1",
"name": "sch",
"component_id": "30f88521-fa43-42ff-aaec-9cac4259fb16"
}
]
} Example Response
{
"release_plan_id": "bb09c189-d17e-480a-a0e4-3a102b3795b0"
} 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