You need to enable JavaScript to run this app.
文档中心
复制全文
下载 pdf
共享带宽包
ModifyBandwidthPackageAttributes - 修改共享带宽包信息
复制全文
下载 pdf
ModifyBandwidthPackageAttributes - 修改共享带宽包信息
调用 ModifyBandwidthPackageAttributes 接口,修改共享带宽包实例的名称、描述和协议类型。​
使用说明​
以下可选参数如不配置,则保持不变。​
调试​
API Explorer
您可以通过 API Explorer 在线发起调用,无需关注签名生成过程,快速获取调用结果。
​
请求参数​
Action String 必选 示例值:ModifyBandwidthPackageAttributes​
要执行的操作,取值:ModifyBandwidthPackageAttributes。​
​
Version String 必选 示例值:2020-04-01​
API的版本信息,当前版本为 2020-04-01。​
​
BandwidthPackageId String 必选 示例值:bwp-2zeo05qre24nhrqpy****​
共享带宽包的ID。​
您可调用 DescribeBandwidthPackages 接口,查询共享带宽包的ID。​
​
BandwidthPackageName String 可选 示例值:bwp-01​
共享带宽包的名称。​
  • 长度限制为1 ~ 128个字符。​
  • 需要以字母、中文或数字开头,可包含点号(.)、下划线(_)和短横线(-)。​
​
EnableDualStack Boolean 可选 示例值:true​
是否为指定共享带宽包开启双栈。请严格按照以下枚举值的大小写输入,不要传入其他取值。​
  • true:开启双栈。​
说明​
开启双栈功能正在邀测中。如需试用,请联系客户经理。​
​
Description String 可选 示例值:This is a bandwidthpackage​
共享带宽包描述信息。​
  • 长度限制为0~ 255个字符。​
  • 需要以字母、中文或数字开头。可包含英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、短横线(-)、中文逗号(,)、中文句号(。)。​
​
​
​
返回参数​
RequestId String 示例值:2021062415303301022514515207C4****​
请求ID。​
​
​
​
请求示例​
​
GET /?Action=ModifyBandwidthPackageAttributes&Version=2020-04-01&BandwidthPackageId=bwp-2zeo05qre24nhrqpy****&BandwidthPackageName=bwp-01 HTTP/1.1​
Host: vpc.cn-beijing.volcengineapi.com​
Service: vpc​
Region: cn-beijing​
​
返回示例​
​
{​
"ResponseMetadata": {​
"RequestId": "2021062415303301022514515207C4****",​
"Action": "ModifyBandwidthPackageAttributes",​
"Version": "2020-04-01",​
"Service": "vpc",​
"Region": "cn-beijing"​
},​
"Result": {​
"RequestId": "2021062415303301022514515207C4****"​
}​
}​
​
错误码​
公共错误码请参见公共错误码。​
​
状态码​
错误码​
错误信息​
说明​
400​
DryRunOperation​
Exception raised to indicate a successfully authorized action when the DryRun flag is set to true.​
该请求设置为DryRun操作,操作授权已获得许可,但未被实际执行。​
400​
InvalidDescription.Malformed​
The specified description is malformed.​
指定的描述格式不合法。请修复描述格式后重试。​
400​
InvalidDescription.Malformed​
The specified description is malformed. Ensure the maximum length of description is 255.​
指定的描述格式不合法。描述长度不能超过255个字符。​
400​
InvalidDualStackBillingType.Malformed​
The specified billing type is malformed, only support 2, 3 or 4.​
指定的带宽包计费类型不合法,仅按带宽上限计费、按流量计费或按传统95计费支持开启双栈。​
400​
InvalidDualStackBwp.Malformed​
The specified dual-stack bandwidth package is not supported to disable.​
指定的双栈共享带宽包不支持关闭。​
400​
InvalidDualStackISP.Malformed​
The specified ISP does not support dual-stack.​
指定的带宽包线路类型不合法,该线路不支持开启双栈。​
400​
InvalidDualStackProtocol.Malformed​
The specified protocol is malformed, only support IPv4.​
指定的带宽包协议类型不合法,仅 IPv4 支持开启双栈。​
400​
InvalidDualStackSecurityProtectionTypes.Malformed​
The specified Anti DDos bandwidth package does not support dual-stack.​
增强防护的共享带宽包不支持开启双栈。​
400​
InvalidEip.InUse​
The specified EIP is being operated by another request.​
指定的EIP正被另一个请求操作,请稍后再试。​
400​
InvalidName.Malformed​
The specified name is malformed.​
指定的名称格式不合法。请修复名称格式后重试。​
400​
InvalidName.Malformed​
The specified name is malformed. Ensure the maximum length of name is 128.​
指定的名称格式不合法。名称长度不能超过128个字符。​
400​
MissingParameter​
The request is missing a required parameter.​
该请求缺少必要参数。​
400​
QuotaExceeded.BandwidthPackage​
You've reached the limit on the number of bandwidth package that you can create.​
已到达可创建共享带宽包的数量上限。​
400​
QuotaExceeded.DualStackBandwidthPackage​
You've reached the limit on the number of dual-stack bandwidth package that you can create.​
已到达可创建双栈共享带宽包的数量上限。​
403​
Forbidden​
You are not authorized to enable dual stack.​
无权限开启双栈共享带宽包。​
403​
Forbidden.Ipv6IspType​
You are not authorized to create this type IPv6 CIDR.​
无权限创建该ISP类型的IPv6网段。​
404​
InvalidBandwidthPackage.NotFound​
The specified bandwidth package does not exist.​
指定的共享带宽包不存在。​
409​
InvalidOperation.Conflict​
The specified resource operation conflicts.​
指定的资源操作冲突。​
500​
InternalError​
An internal error has occurred.​
发生内部错误。​
​
​
最近更新时间:2026.08.06 10:29:22
这个页面对您有帮助吗?
有用
有用
无用
无用