应用管理与运维平台 SERVICESTAGE-根据组件ID修改组件信息:请求示例

时间:2024-10-11 16:54:15

请求示例

修改指定组件ID对应的组件信息,修改组件名称为test-micro,设置组件软件包来源为存储在obs下test-soft桶中的fusionweather-1.0.0.jar包,指定cce-test集群为组件构建集群。

{
	"name": "test-micro",
	"description": "",
	"source": {
		"kind": "artifact",
		"spec": {
			"storage": "obs",
			"type": "package",
			"url": "obs://test-soft/fusionweather-1.0.0.jar",
			"auth": "iam",
			"webUrl": "",
			"properties": {
				"bucket": "test-soft",
				"endpoint": "https://obs.region_id.development.com:443",
				"key": "fusionweather-1.0.0.jar"
			}
		}
	},
	"build": {
		"parameters": {
			"artifact_namespace": "ns",
			"use_public_cluster": false,
			"cluster_id": "523498f1-36c4-11eb-ae36-0255ac1000c2",
			"cluster_name": "cce-test",
			"cluster_type": "VirtualMachine"
		}
	},
}
support.huaweicloud.com/api-servicestage/servicestage_06_0041.html