本接口用于修改集群类型。
参数 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | UpdateCluster | 公共参数。该参数表示接口名称。取值:UpdateCluster |
Version | String | 是 | 2021-04-30 | 公共参数。该参数表示接口版本。取值:2021-04-30。 |
参数 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
domain | String | 是 | bc36dc7c50b9f125d186df**** | 函数ID |
clusters | []String | 是 | ["test-local"] | 集群列表 |
cluster_type | Int32 | 是 | 200 | 集群类型
|
无
POST https://veefedge.volcengineapi.com/?Action=UpdateCluster &<公共请求参数> { "domain": "bc36dc7c50b9f125d186df****", "clusters": ["test-local"], "cluster_type": 200 }
{ "ResponseMetadata": { "RequestId": "20211207213413010225146063****", "Action": "UpdateCluster", "Version": "2021-04-30", "Service": "veefedge", "Region": "cn-north-1" } }
如果响应正文中包含 Error 字段,则表示 API 请求失败。关于错误码的更多信息,参见错误码。