You need to enable JavaScript to run this app.
导航
ModifyCenAttributes
最近更新时间:2024.07.24 11:43:01首次发布时间:2022.01.07 11:44:37

调用 ModifyCenAttributes 接口,修改云企业网实例的信息。

调用说明

以下可选参数如不配置,则保持原有配置。

调试

请求参数

参数名称
类型
是否必选
示例值
描述
ActionStringModifyCenAttributes要执行的操作,取值为ModifyCenAttributes。
VersionString2020-04-01API版本信息,当前版本为2020-04-01。

CenId

String

cen-7qthudw0ll6jmc****

CEN实例的ID。
您可以调用 DescribeCens 接口,查询CEN实例ID。

CenName

String

cen-test

CEN实例的名称。

  • 必须以字母、数字或中文开头,可包含字母、数字、中文和以下特殊字符:点号(.)、下划线(_)和中划线(-)。
  • 长度限制为1~128个字符。

Description

String

This is a sample description

CEN实例的描述信息。

  • 必须以字母、数字或中文开头,可包含字母、数字、中文和以下特殊字符:英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、中划线(-)、中文逗号(,)、中文句号(。)。
  • 长度限制为0~255个字符。

返回参数

本接口无特有的返回参数。更多信息请见返回结构

请求示例

GET /?Action=ModifyCenAttributes&Version=2020-04-01&CenId=cen-7qthudw0ll6jmc****&CenName=cen-test&Description=test HTTP/1.1
Host: open.volcengineapi.com
Service: cen
Region: cn-beijing

返回示例

{
    "ResponseMetadata": {
        "RequestId": "202111161611080102121461940900****",
        "Action": "ModifyCenAttributes",
        "Version": "2020-04-01",
        "Service": "cen",
        "Region": "cn-beijing"
    },
    "Result": {}
}

错误码

下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。

HttpCode
错误码
错误信息
描述
400InvalidName.MalformedThe specified name is malformed. Ensure the maximum length of name is 128.指定的名称格式不合法,名称长度不能超过128个字符。
400InvalidName.MalformedThe specified name is malformed.指定的名称格式不合法,请修复名称格式后重试。
400InvalidDescription.MalformedThe specified description is malformed. Ensure the maximum length of description is 255.指定的描述格式不合法,描述长度不能超过255个字符。
400InvalidDescription.MalformedThe specified description is malformed.指定的描述格式不合法,请修复描述格式后重试。
404InvalidCen.NotFoundThe specified CEN does not exist.指定的云企业网实例不存在。
409InvalidCen.InvalidStatusThe specified CEN instance is not in the correct status for the request.指定的云企业网实例所处的状态无法响应该请求,请稍后再试。