修改应用的基本信息
修改应用的基本信息
Path Parameters
订阅
资源组
可用区
Possible values: <= 63 characters
工作空间资源名称
应用名称
Query Parameters
更新应用mask. 1.需要把某个字段置空需要显示指定update_mask, 例如:service.service_port 2.update_mask不支持指定具体哪个容器,故template字段更新时需要全量更新
Request Body required
Possible values: non-empty
and <= 63 characters
应用名称. 不填写,则由后台默认随机生成. 若填入,则需要遵循以下规范: 1、1~63个字符 2、小写字母开头,小写字母或数字结尾 3、可包含小写英文字母、数字、中划线-
应用显示名称. 填写需要遵循规则: 1、2~128个字符 2、以大小写字母或中文开头 3、可包含数字、点号(.)、下划线(_)、半角冒号(:)或连字符(-)
ownership object
template object
elastic_scaling object
resource_pool object required
scheduling object required
rolling_update_strategy object
指定副本数
停止前的优雅退出时间(秒)
- 200
- default
OK
Schema
Possible values: non-empty
and <= 63 characters
应用名称. 不填写,则由后台默认随机生成. 若填入,则需要遵循以下规范: 1、1~63个字符 2、小写字母开头,小写字母或数字结尾 3、可包含小写英文字母、数字、中划线-
应用显示名称. 填写需要遵循规则: 1、2~128个字符 2、以大小写字母或中文开头 3、可包含数字、点号(.)、下划线(_)、半角冒号(:)或连字符(-)
ownership object
template object
elastic_scaling object
resource_pool object required
scheduling object required
rolling_update_strategy object
指定副本数
停止前的优雅退出时间(秒)
{
"name": "string",
"display_name": "string",
"uid": "string",
"id": "string",
"ownership": {
"user_name": "string",
"user_id": "string",
"tenant_id": "string",
"requestor_id": "string"
},
"template": {
"init_containers": [
{
"name": "string",
"image_path": "string",
"command": [
"string"
],
"env": [
{
"name": "string",
"value": "string",
"need_mosaic": true
}
],
"resource_request": {},
"volume_mounts": [
{
"type": "MOUNT_TYPE_UNSPECIFIED",
"name": "string",
"mount_path": "string",
"id": "string",
"volume_capacity": "string",
"subdir": "string"
}
],
"liveness_probe": {
"probe_type": "PROBE_TYPE_UNSPECIFIED",
"exec": {
"command": [
"string"
]
},
"initial_delay_seconds": 0,
"period_seconds": 0
},
"readiness_probe": {
"probe_type": "PROBE_TYPE_UNSPECIFIED",
"exec": {
"command": [
"string"
]
},
"initial_delay_seconds": 0,
"period_seconds": 0
}
}
],
"containers": [
{
"name": "string",
"image_path": "string",
"command": [
"string"
],
"env": [
{
"name": "string",
"value": "string",
"need_mosaic": true
}
],
"resource_request": {},
"volume_mounts": [
{
"type": "MOUNT_TYPE_UNSPECIFIED",
"name": "string",
"mount_path": "string",
"id": "string",
"volume_capacity": "string",
"subdir": "string"
}
],
"liveness_probe": {
"probe_type": "PROBE_TYPE_UNSPECIFIED",
"exec": {
"command": [
"string"
]
},
"initial_delay_seconds": 0,
"period_seconds": 0
},
"readiness_probe": {
"probe_type": "PROBE_TYPE_UNSPECIFIED",
"exec": {
"command": [
"string"
]
},
"initial_delay_seconds": 0,
"period_seconds": 0
}
}
],
"resource_spec": {
"name": "string",
"description": "string",
"limits": {},
"requests": {}
}
},
"elastic_scaling": {
"elastic_scaling_on_time": [
{
"name": "string",
"display_name": "string",
"id": "string",
"uid": "string",
"type": "SCALING_TYPE_UNSPECIFIED",
"cycle": "STRATEGY_CYCLE_UNSPECIFIED",
"start_time": "2025-04-23T03:43:49.115Z",
"end_time": "2025-04-23T03:43:49.115Z",
"action": "ACTION_TYPE_UNSPECIFIED",
"replicas_change_each_time": 0,
"create_time": "2025-04-23T03:43:49.115Z"
}
]
},
"resource_pool": {
"name": "string",
"display_name": "string",
"vpc_id": "string",
"available_zone": "string"
},
"scheduling": {
"priority": "PRIORITY_UNSPECIFIED",
"quota_type": "QUOTA_TYPE_UNSPECIFIED",
"hints": [
"string"
],
"instance_affinity": "POD_AFFINITY_TYPE_UNSPECIFIED"
},
"rolling_update_strategy": {
"max_surge": "string",
"max_unavailable": "string"
},
"replicas": 0,
"state": "STATE_UNSPECIFIED",
"ready_replicas": 0,
"root_mapping": "string",
"create_time": "2025-04-23T03:43:49.115Z",
"update_time": "2025-04-23T03:43:49.115Z",
"termination_grace_period_seconds": 0
}
Default error response
Schema
The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
PATCH /compute/cci/data/v2/subscriptions/:subscription_name/resourceGroups/:resource_group_name/zones/:zone/workspaces/:workspace_name/apps/:app_name
Authorization
name: bearerAuthtype: httpscheme: bearer
Request
Request
curl -L -X PATCH 'https://cci.cn-sh-01.sensecore.cn/compute/cci/data/v2/subscriptions/:subscription_name/resourceGroups/:resource_group_name/zones/:zone/workspaces/:workspace_name/apps/:app_name' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"name": "string",
"display_name": "string",
"ownership": {},
"template": {
"init_containers": [
{
"name": "string",
"image_path": "string",
"command": [
"string"
],
"env": [
{
"name": "string",
"value": "string",
"need_mosaic": true
}
],
"resource_request": {},
"volume_mounts": [
{
"type": "MOUNT_TYPE_UNSPECIFIED",
"name": "string",
"mount_path": "string",
"id": "string",
"volume_capacity": "string",
"subdir": "string"
}
],
"liveness_probe": {
"probe_type": "PROBE_TYPE_UNSPECIFIED",
"exec": {
"command": [
"string"
]
},
"initial_delay_seconds": 0,
"period_seconds": 0
},
"readiness_probe": {
"probe_type": "PROBE_TYPE_UNSPECIFIED",
"exec": {
"command": [
"string"
]
},
"initial_delay_seconds": 0,
"period_seconds": 0
}
}
],
"containers": [
{
"name": "string",
"image_path": "string",
"command": [
"string"
],
"env": [
{
"name": "string",
"value": "string",
"need_mosaic": true
}
],
"resource_request": {},
"volume_mounts": [
{
"type": "MOUNT_TYPE_UNSPECIFIED",
"name": "string",
"mount_path": "string",
"id": "string",
"volume_capacity": "string",
"subdir": "string"
}
],
"liveness_probe": {
"probe_type": "PROBE_TYPE_UNSPECIFIED",
"exec": {
"command": [
"string"
]
},
"initial_delay_seconds": 0,
"period_seconds": 0
},
"readiness_probe": {
"probe_type": "PROBE_TYPE_UNSPECIFIED",
"exec": {
"command": [
"string"
]
},
"initial_delay_seconds": 0,
"period_seconds": 0
}
}
],
"resource_spec": {
"name": "string"
}
},
"elastic_scaling": {
"elastic_scaling_on_time": [
{
"name": "string",
"display_name": "string",
"id": "string",
"uid": "string",
"cycle": "STRATEGY_CYCLE_UNSPECIFIED",
"start_time": "2025-04-23T03:43:49.099Z",
"end_time": "2025-04-23T03:43:49.099Z",
"action": "ACTION_TYPE_UNSPECIFIED",
"replicas_change_each_time": 0
}
]
},
"resource_pool": {
"name": "string",
"display_name": "string",
"vpc_id": "string",
"available_zone": "string"
},
"scheduling": {
"priority": "PRIORITY_UNSPECIFIED",
"quota_type": "QUOTA_TYPE_UNSPECIFIED",
"hints": [
"string"
],
"instance_affinity": "POD_AFFINITY_TYPE_UNSPECIFIED"
},
"rolling_update_strategy": {
"max_surge": "string",
"max_unavailable": "string"
},
"replicas": 0,
"termination_grace_period_seconds": 0
}'
curl -L -X PATCH 'https://cci.cn-sh-01.sensecore.cn/compute/cci/data/v2/subscriptions/:subscription_name/resourceGroups/:resource_group_name/zones/:zone/workspaces/:workspace_name/apps/:app_name' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"name": "string",
"display_name": "string",
"ownership": {},
"template": {
"init_containers": [
{
"name": "string",
"image_path": "string",
"command": [
"string"
],
"env": [
{
"name": "string",
"value": "string",
"need_mosaic": true
}
],
"resource_request": {},
"volume_mounts": [
{
"type": "MOUNT_TYPE_UNSPECIFIED",
"name": "string",
"mount_path": "string",
"id": "string",
"volume_capacity": "string",
"subdir": "string"
}
],
"liveness_probe": {
"probe_type": "PROBE_TYPE_UNSPECIFIED",
"exec": {
"command": [
"string"
]
},
"initial_delay_seconds": 0,
"period_seconds": 0
},
"readiness_probe": {
"probe_type": "PROBE_TYPE_UNSPECIFIED",
"exec": {
"command": [
"string"
]
},
"initial_delay_seconds": 0,
"period_seconds": 0
}
}
],
"containers": [
{
"name": "string",
"image_path": "string",
"command": [
"string"
],
"env": [
{
"name": "string",
"value": "string",
"need_mosaic": true
}
],
"resource_request": {},
"volume_mounts": [
{
"type": "MOUNT_TYPE_UNSPECIFIED",
"name": "string",
"mount_path": "string",
"id": "string",
"volume_capacity": "string",
"subdir": "string"
}
],
"liveness_probe": {
"probe_type": "PROBE_TYPE_UNSPECIFIED",
"exec": {
"command": [
"string"
]
},
"initial_delay_seconds": 0,
"period_seconds": 0
},
"readiness_probe": {
"probe_type": "PROBE_TYPE_UNSPECIFIED",
"exec": {
"command": [
"string"
]
},
"initial_delay_seconds": 0,
"period_seconds": 0
}
}
],
"resource_spec": {
"name": "string"
}
},
"elastic_scaling": {
"elastic_scaling_on_time": [
{
"name": "string",
"display_name": "string",
"id": "string",
"uid": "string",
"cycle": "STRATEGY_CYCLE_UNSPECIFIED",
"start_time": "2025-04-23T03:43:49.099Z",
"end_time": "2025-04-23T03:43:49.099Z",
"action": "ACTION_TYPE_UNSPECIFIED",
"replicas_change_each_time": 0
}
]
},
"resource_pool": {
"name": "string",
"display_name": "string",
"vpc_id": "string",
"available_zone": "string"
},
"scheduling": {
"priority": "PRIORITY_UNSPECIFIED",
"quota_type": "QUOTA_TYPE_UNSPECIFIED",
"hints": [
"string"
],
"instance_affinity": "POD_AFFINITY_TYPE_UNSPECIFIED"
},
"rolling_update_strategy": {
"max_surge": "string",
"max_unavailable": "string"
},
"replicas": 0,
"termination_grace_period_seconds": 0
}'
curl -L -X PATCH 'https://cci.cn-sh-01.sensecore.cn/compute/cci/data/v2/subscriptions/:subscription_name/resourceGroups/:resource_group_name/zones/:zone/workspaces/:workspace_name/apps/:app_name' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"name": "string",
"display_name": "string",
"ownership": {},
"template": {
"init_containers": [
{
"name": "string",
"image_path": "string",
"command": [
"string"
],
"env": [
{
"name": "string",
"value": "string",
"need_mosaic": true
}
],
"resource_request": {},
"volume_mounts": [
{
"type": "MOUNT_TYPE_UNSPECIFIED",
"name": "string",
"mount_path": "string",
"id": "string",
"volume_capacity": "string",
"subdir": "string"
}
],
"liveness_probe": {
"probe_type": "PROBE_TYPE_UNSPECIFIED",
"exec": {
"command": [
"string"
]
},
"initial_delay_seconds": 0,
"period_seconds": 0
},
"readiness_probe": {
"probe_type": "PROBE_TYPE_UNSPECIFIED",
"exec": {
"command": [
"string"
]
},
"initial_delay_seconds": 0,
"period_seconds": 0
}
}
],
"containers": [
{
"name": "string",
"image_path": "string",
"command": [
"string"
],
"env": [
{
"name": "string",
"value": "string",
"need_mosaic": true
}
],
"resource_request": {},
"volume_mounts": [
{
"type": "MOUNT_TYPE_UNSPECIFIED",
"name": "string",
"mount_path": "string",
"id": "string",
"volume_capacity": "string",
"subdir": "string"
}
],
"liveness_probe": {
"probe_type": "PROBE_TYPE_UNSPECIFIED",
"exec": {
"command": [
"string"
]
},
"initial_delay_seconds": 0,
"period_seconds": 0
},
"readiness_probe": {
"probe_type": "PROBE_TYPE_UNSPECIFIED",
"exec": {
"command": [
"string"
]
},
"initial_delay_seconds": 0,
"period_seconds": 0
}
}
],
"resource_spec": {
"name": "string"
}
},
"elastic_scaling": {
"elastic_scaling_on_time": [
{
"name": "string",
"display_name": "string",
"id": "string",
"uid": "string",
"cycle": "STRATEGY_CYCLE_UNSPECIFIED",
"start_time": "2025-04-23T03:43:49.099Z",
"end_time": "2025-04-23T03:43:49.099Z",
"action": "ACTION_TYPE_UNSPECIFIED",
"replicas_change_each_time": 0
}
]
},
"resource_pool": {
"name": "string",
"display_name": "string",
"vpc_id": "string",
"available_zone": "string"
},
"scheduling": {
"priority": "PRIORITY_UNSPECIFIED",
"quota_type": "QUOTA_TYPE_UNSPECIFIED",
"hints": [
"string"
],
"instance_affinity": "POD_AFFINITY_TYPE_UNSPECIFIED"
},
"rolling_update_strategy": {
"max_surge": "string",
"max_unavailable": "string"
},
"replicas": 0,
"termination_grace_period_seconds": 0
}'
curl -L -X PATCH 'https://cci.cn-sh-01.sensecore.cn/compute/cci/data/v2/subscriptions/:subscription_name/resourceGroups/:resource_group_name/zones/:zone/workspaces/:workspace_name/apps/:app_name' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"name": "string",
"display_name": "string",
"ownership": {},
"template": {
"init_containers": [
{
"name": "string",
"image_path": "string",
"command": [
"string"
],
"env": [
{
"name": "string",
"value": "string",
"need_mosaic": true
}
],
"resource_request": {},
"volume_mounts": [
{
"type": "MOUNT_TYPE_UNSPECIFIED",
"name": "string",
"mount_path": "string",
"id": "string",
"volume_capacity": "string",
"subdir": "string"
}
],
"liveness_probe": {
"probe_type": "PROBE_TYPE_UNSPECIFIED",
"exec": {
"command": [
"string"
]
},
"initial_delay_seconds": 0,
"period_seconds": 0
},
"readiness_probe": {
"probe_type": "PROBE_TYPE_UNSPECIFIED",
"exec": {
"command": [
"string"
]
},
"initial_delay_seconds": 0,
"period_seconds": 0
}
}
],
"containers": [
{
"name": "string",
"image_path": "string",
"command": [
"string"
],
"env": [
{
"name": "string",
"value": "string",
"need_mosaic": true
}
],
"resource_request": {},
"volume_mounts": [
{
"type": "MOUNT_TYPE_UNSPECIFIED",
"name": "string",
"mount_path": "string",
"id": "string",
"volume_capacity": "string",
"subdir": "string"
}
],
"liveness_probe": {
"probe_type": "PROBE_TYPE_UNSPECIFIED",
"exec": {
"command": [
"string"
]
},
"initial_delay_seconds": 0,
"period_seconds": 0
},
"readiness_probe": {
"probe_type": "PROBE_TYPE_UNSPECIFIED",
"exec": {
"command": [
"string"
]
},
"initial_delay_seconds": 0,
"period_seconds": 0
}
}
],
"resource_spec": {
"name": "string"
}
},
"elastic_scaling": {
"elastic_scaling_on_time": [
{
"name": "string",
"display_name": "string",
"id": "string",
"uid": "string",
"cycle": "STRATEGY_CYCLE_UNSPECIFIED",
"start_time": "2025-04-23T03:43:49.099Z",
"end_time": "2025-04-23T03:43:49.099Z",
"action": "ACTION_TYPE_UNSPECIFIED",
"replicas_change_each_time": 0
}
]
},
"resource_pool": {
"name": "string",
"display_name": "string",
"vpc_id": "string",
"available_zone": "string"
},
"scheduling": {
"priority": "PRIORITY_UNSPECIFIED",
"quota_type": "QUOTA_TYPE_UNSPECIFIED",
"hints": [
"string"
],
"instance_affinity": "POD_AFFINITY_TYPE_UNSPECIFIED"
},
"rolling_update_strategy": {
"max_surge": "string",
"max_unavailable": "string"
},
"replicas": 0,
"termination_grace_period_seconds": 0
}'
curl -L -X PATCH 'https://cci.cn-sh-01.sensecore.cn/compute/cci/data/v2/subscriptions/:subscription_name/resourceGroups/:resource_group_name/zones/:zone/workspaces/:workspace_name/apps/:app_name' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"name": "string",
"display_name": "string",
"ownership": {},
"template": {
"init_containers": [
{
"name": "string",
"image_path": "string",
"command": [
"string"
],
"env": [
{
"name": "string",
"value": "string",
"need_mosaic": true
}
],
"resource_request": {},
"volume_mounts": [
{
"type": "MOUNT_TYPE_UNSPECIFIED",
"name": "string",
"mount_path": "string",
"id": "string",
"volume_capacity": "string",
"subdir": "string"
}
],
"liveness_probe": {
"probe_type": "PROBE_TYPE_UNSPECIFIED",
"exec": {
"command": [
"string"
]
},
"initial_delay_seconds": 0,
"period_seconds": 0
},
"readiness_probe": {
"probe_type": "PROBE_TYPE_UNSPECIFIED",
"exec": {
"command": [
"string"
]
},
"initial_delay_seconds": 0,
"period_seconds": 0
}
}
],
"containers": [
{
"name": "string",
"image_path": "string",
"command": [
"string"
],
"env": [
{
"name": "string",
"value": "string",
"need_mosaic": true
}
],
"resource_request": {},
"volume_mounts": [
{
"type": "MOUNT_TYPE_UNSPECIFIED",
"name": "string",
"mount_path": "string",
"id": "string",
"volume_capacity": "string",
"subdir": "string"
}
],
"liveness_probe": {
"probe_type": "PROBE_TYPE_UNSPECIFIED",
"exec": {
"command": [
"string"
]
},
"initial_delay_seconds": 0,
"period_seconds": 0
},
"readiness_probe": {
"probe_type": "PROBE_TYPE_UNSPECIFIED",
"exec": {
"command": [
"string"
]
},
"initial_delay_seconds": 0,
"period_seconds": 0
}
}
],
"resource_spec": {
"name": "string"
}
},
"elastic_scaling": {
"elastic_scaling_on_time": [
{
"name": "string",
"display_name": "string",
"id": "string",
"uid": "string",
"cycle": "STRATEGY_CYCLE_UNSPECIFIED",
"start_time": "2025-04-23T03:43:49.099Z",
"end_time": "2025-04-23T03:43:49.099Z",
"action": "ACTION_TYPE_UNSPECIFIED",
"replicas_change_each_time": 0
}
]
},
"resource_pool": {
"name": "string",
"display_name": "string",
"vpc_id": "string",
"available_zone": "string"
},
"scheduling": {
"priority": "PRIORITY_UNSPECIFIED",
"quota_type": "QUOTA_TYPE_UNSPECIFIED",
"hints": [
"string"
],
"instance_affinity": "POD_AFFINITY_TYPE_UNSPECIFIED"
},
"rolling_update_strategy": {
"max_surge": "string",
"max_unavailable": "string"
},
"replicas": 0,
"termination_grace_period_seconds": 0
}'
curl -L -X PATCH 'https://cci.cn-sh-01.sensecore.cn/compute/cci/data/v2/subscriptions/:subscription_name/resourceGroups/:resource_group_name/zones/:zone/workspaces/:workspace_name/apps/:app_name' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"name": "string",
"display_name": "string",
"ownership": {},
"template": {
"init_containers": [
{
"name": "string",
"image_path": "string",
"command": [
"string"
],
"env": [
{
"name": "string",
"value": "string",
"need_mosaic": true
}
],
"resource_request": {},
"volume_mounts": [
{
"type": "MOUNT_TYPE_UNSPECIFIED",
"name": "string",
"mount_path": "string",
"id": "string",
"volume_capacity": "string",
"subdir": "string"
}
],
"liveness_probe": {
"probe_type": "PROBE_TYPE_UNSPECIFIED",
"exec": {
"command": [
"string"
]
},
"initial_delay_seconds": 0,
"period_seconds": 0
},
"readiness_probe": {
"probe_type": "PROBE_TYPE_UNSPECIFIED",
"exec": {
"command": [
"string"
]
},
"initial_delay_seconds": 0,
"period_seconds": 0
}
}
],
"containers": [
{
"name": "string",
"image_path": "string",
"command": [
"string"
],
"env": [
{
"name": "string",
"value": "string",
"need_mosaic": true
}
],
"resource_request": {},
"volume_mounts": [
{
"type": "MOUNT_TYPE_UNSPECIFIED",
"name": "string",
"mount_path": "string",
"id": "string",
"volume_capacity": "string",
"subdir": "string"
}
],
"liveness_probe": {
"probe_type": "PROBE_TYPE_UNSPECIFIED",
"exec": {
"command": [
"string"
]
},
"initial_delay_seconds": 0,
"period_seconds": 0
},
"readiness_probe": {
"probe_type": "PROBE_TYPE_UNSPECIFIED",
"exec": {
"command": [
"string"
]
},
"initial_delay_seconds": 0,
"period_seconds": 0
}
}
],
"resource_spec": {
"name": "string"
}
},
"elastic_scaling": {
"elastic_scaling_on_time": [
{
"name": "string",
"display_name": "string",
"id": "string",
"uid": "string",
"cycle": "STRATEGY_CYCLE_UNSPECIFIED",
"start_time": "2025-04-23T03:43:49.099Z",
"end_time": "2025-04-23T03:43:49.099Z",
"action": "ACTION_TYPE_UNSPECIFIED",
"replicas_change_each_time": 0
}
]
},
"resource_pool": {
"name": "string",
"display_name": "string",
"vpc_id": "string",
"available_zone": "string"
},
"scheduling": {
"priority": "PRIORITY_UNSPECIFIED",
"quota_type": "QUOTA_TYPE_UNSPECIFIED",
"hints": [
"string"
],
"instance_affinity": "POD_AFFINITY_TYPE_UNSPECIFIED"
},
"rolling_update_strategy": {
"max_surge": "string",
"max_unavailable": "string"
},
"replicas": 0,
"termination_grace_period_seconds": 0
}'
curl -L -X PATCH 'https://cci.cn-sh-01.sensecore.cn/compute/cci/data/v2/subscriptions/:subscription_name/resourceGroups/:resource_group_name/zones/:zone/workspaces/:workspace_name/apps/:app_name' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"name": "string",
"display_name": "string",
"ownership": {},
"template": {
"init_containers": [
{
"name": "string",
"image_path": "string",
"command": [
"string"
],
"env": [
{
"name": "string",
"value": "string",
"need_mosaic": true
}
],
"resource_request": {},
"volume_mounts": [
{
"type": "MOUNT_TYPE_UNSPECIFIED",
"name": "string",
"mount_path": "string",
"id": "string",
"volume_capacity": "string",
"subdir": "string"
}
],
"liveness_probe": {
"probe_type": "PROBE_TYPE_UNSPECIFIED",
"exec": {
"command": [
"string"
]
},
"initial_delay_seconds": 0,
"period_seconds": 0
},
"readiness_probe": {
"probe_type": "PROBE_TYPE_UNSPECIFIED",
"exec": {
"command": [
"string"
]
},
"initial_delay_seconds": 0,
"period_seconds": 0
}
}
],
"containers": [
{
"name": "string",
"image_path": "string",
"command": [
"string"
],
"env": [
{
"name": "string",
"value": "string",
"need_mosaic": true
}
],
"resource_request": {},
"volume_mounts": [
{
"type": "MOUNT_TYPE_UNSPECIFIED",
"name": "string",
"mount_path": "string",
"id": "string",
"volume_capacity": "string",
"subdir": "string"
}
],
"liveness_probe": {
"probe_type": "PROBE_TYPE_UNSPECIFIED",
"exec": {
"command": [
"string"
]
},
"initial_delay_seconds": 0,
"period_seconds": 0
},
"readiness_probe": {
"probe_type": "PROBE_TYPE_UNSPECIFIED",
"exec": {
"command": [
"string"
]
},
"initial_delay_seconds": 0,
"period_seconds": 0
}
}
],
"resource_spec": {
"name": "string"
}
},
"elastic_scaling": {
"elastic_scaling_on_time": [
{
"name": "string",
"display_name": "string",
"id": "string",
"uid": "string",
"cycle": "STRATEGY_CYCLE_UNSPECIFIED",
"start_time": "2025-04-23T03:43:49.099Z",
"end_time": "2025-04-23T03:43:49.099Z",
"action": "ACTION_TYPE_UNSPECIFIED",
"replicas_change_each_time": 0
}
]
},
"resource_pool": {
"name": "string",
"display_name": "string",
"vpc_id": "string",
"available_zone": "string"
},
"scheduling": {
"priority": "PRIORITY_UNSPECIFIED",
"quota_type": "QUOTA_TYPE_UNSPECIFIED",
"hints": [
"string"
],
"instance_affinity": "POD_AFFINITY_TYPE_UNSPECIFIED"
},
"rolling_update_strategy": {
"max_surge": "string",
"max_unavailable": "string"
},
"replicas": 0,
"termination_grace_period_seconds": 0
}'
curl -L -X PATCH 'https://cci.cn-sh-01.sensecore.cn/compute/cci/data/v2/subscriptions/:subscription_name/resourceGroups/:resource_group_name/zones/:zone/workspaces/:workspace_name/apps/:app_name' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"name": "string",
"display_name": "string",
"ownership": {},
"template": {
"init_containers": [
{
"name": "string",
"image_path": "string",
"command": [
"string"
],
"env": [
{
"name": "string",
"value": "string",
"need_mosaic": true
}
],
"resource_request": {},
"volume_mounts": [
{
"type": "MOUNT_TYPE_UNSPECIFIED",
"name": "string",
"mount_path": "string",
"id": "string",
"volume_capacity": "string",
"subdir": "string"
}
],
"liveness_probe": {
"probe_type": "PROBE_TYPE_UNSPECIFIED",
"exec": {
"command": [
"string"
]
},
"initial_delay_seconds": 0,
"period_seconds": 0
},
"readiness_probe": {
"probe_type": "PROBE_TYPE_UNSPECIFIED",
"exec": {
"command": [
"string"
]
},
"initial_delay_seconds": 0,
"period_seconds": 0
}
}
],
"containers": [
{
"name": "string",
"image_path": "string",
"command": [
"string"
],
"env": [
{
"name": "string",
"value": "string",
"need_mosaic": true
}
],
"resource_request": {},
"volume_mounts": [
{
"type": "MOUNT_TYPE_UNSPECIFIED",
"name": "string",
"mount_path": "string",
"id": "string",
"volume_capacity": "string",
"subdir": "string"
}
],
"liveness_probe": {
"probe_type": "PROBE_TYPE_UNSPECIFIED",
"exec": {
"command": [
"string"
]
},
"initial_delay_seconds": 0,
"period_seconds": 0
},
"readiness_probe": {
"probe_type": "PROBE_TYPE_UNSPECIFIED",
"exec": {
"command": [
"string"
]
},
"initial_delay_seconds": 0,
"period_seconds": 0
}
}
],
"resource_spec": {
"name": "string"
}
},
"elastic_scaling": {
"elastic_scaling_on_time": [
{
"name": "string",
"display_name": "string",
"id": "string",
"uid": "string",
"cycle": "STRATEGY_CYCLE_UNSPECIFIED",
"start_time": "2025-04-23T03:43:49.099Z",
"end_time": "2025-04-23T03:43:49.099Z",
"action": "ACTION_TYPE_UNSPECIFIED",
"replicas_change_each_time": 0
}
]
},
"resource_pool": {
"name": "string",
"display_name": "string",
"vpc_id": "string",
"available_zone": "string"
},
"scheduling": {
"priority": "PRIORITY_UNSPECIFIED",
"quota_type": "QUOTA_TYPE_UNSPECIFIED",
"hints": [
"string"
],
"instance_affinity": "POD_AFFINITY_TYPE_UNSPECIFIED"
},
"rolling_update_strategy": {
"max_surge": "string",
"max_unavailable": "string"
},
"replicas": 0,
"termination_grace_period_seconds": 0
}'
curl -L -X PATCH 'https://cci.cn-sh-01.sensecore.cn/compute/cci/data/v2/subscriptions/:subscription_name/resourceGroups/:resource_group_name/zones/:zone/workspaces/:workspace_name/apps/:app_name' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"name": "string",
"display_name": "string",
"ownership": {},
"template": {
"init_containers": [
{
"name": "string",
"image_path": "string",
"command": [
"string"
],
"env": [
{
"name": "string",
"value": "string",
"need_mosaic": true
}
],
"resource_request": {},
"volume_mounts": [
{
"type": "MOUNT_TYPE_UNSPECIFIED",
"name": "string",
"mount_path": "string",
"id": "string",
"volume_capacity": "string",
"subdir": "string"
}
],
"liveness_probe": {
"probe_type": "PROBE_TYPE_UNSPECIFIED",
"exec": {
"command": [
"string"
]
},
"initial_delay_seconds": 0,
"period_seconds": 0
},
"readiness_probe": {
"probe_type": "PROBE_TYPE_UNSPECIFIED",
"exec": {
"command": [
"string"
]
},
"initial_delay_seconds": 0,
"period_seconds": 0
}
}
],
"containers": [
{
"name": "string",
"image_path": "string",
"command": [
"string"
],
"env": [
{
"name": "string",
"value": "string",
"need_mosaic": true
}
],
"resource_request": {},
"volume_mounts": [
{
"type": "MOUNT_TYPE_UNSPECIFIED",
"name": "string",
"mount_path": "string",
"id": "string",
"volume_capacity": "string",
"subdir": "string"
}
],
"liveness_probe": {
"probe_type": "PROBE_TYPE_UNSPECIFIED",
"exec": {
"command": [
"string"
]
},
"initial_delay_seconds": 0,
"period_seconds": 0
},
"readiness_probe": {
"probe_type": "PROBE_TYPE_UNSPECIFIED",
"exec": {
"command": [
"string"
]
},
"initial_delay_seconds": 0,
"period_seconds": 0
}
}
],
"resource_spec": {
"name": "string"
}
},
"elastic_scaling": {
"elastic_scaling_on_time": [
{
"name": "string",
"display_name": "string",
"id": "string",
"uid": "string",
"cycle": "STRATEGY_CYCLE_UNSPECIFIED",
"start_time": "2025-04-23T03:43:49.099Z",
"end_time": "2025-04-23T03:43:49.099Z",
"action": "ACTION_TYPE_UNSPECIFIED",
"replicas_change_each_time": 0
}
]
},
"resource_pool": {
"name": "string",
"display_name": "string",
"vpc_id": "string",
"available_zone": "string"
},
"scheduling": {
"priority": "PRIORITY_UNSPECIFIED",
"quota_type": "QUOTA_TYPE_UNSPECIFIED",
"hints": [
"string"
],
"instance_affinity": "POD_AFFINITY_TYPE_UNSPECIFIED"
},
"rolling_update_strategy": {
"max_surge": "string",
"max_unavailable": "string"
},
"replicas": 0,
"termination_grace_period_seconds": 0
}'