私有网络VPC

更新弹性网卡

说明:本手册请求结构与请求示例中的服务域名(Host)均为举例,实际使用时请替换为项目自定义的服务域名

描述

更新弹性网卡名称和描述。

  • 名称为大小写字母、数字以及-_/.特殊字符,必须以字母开头,长度1-65
  • 名称和描述二者不能同时为空

请求结构

PUT /v{version}/eni/{eniId}?{action}&clientToken={clientToken}   HTTP/1.1   
Host: bcc.cnhzpro.agilecloud.com      
Authorization: authorization string
{
    "name":{name},
    "description":{description}
}

请求头域

除公共头域外,无其它特殊头域。

请求参数

参数名称 类型 是否必需 参数位置 描述
version String URL参数 API版本号
eniId String URL参数 弹性网卡Id
action String Query参数 本接口该值为modifyAttribute
name String RequestBody参数 弹性网卡的名称
description String RequestBody参数 弹性网卡的描述
clientToken String Query参数 幂等性Token,是一个长度不超过64位的ASCII字符串

返回头域

除公共头域,无其它特殊头域。

返回参数

无特殊返回参数。

请求示例

PUT /v1/eni/eni-w2d4kgc3x0y1?modifyAttribute&clientToken=ds-hng79d  HTTP/1.1
Host: bcc.cnhzpro.agilecloud.com
authorization: bce-auth-v1/c3119080364d11e8912505e5e0ae9978/2019-04-02T08:14:25Z/3600/host;x-bce-account;x-bce-client-ip;x-bce-date;x-bce-request-id;x-bce-security-token/6b93bfd5ca2328fcb5560fa57f56253d80a629f6aac9c9cb74adf9a055fceb53
{
    "name":"ENI",
    "description":"test"
}

返回示例

HTTP/1.1 200 OK
x-bce-request-id: 7e789a40-adac-414a-8bd4-916d6be61112
Date: Mon, 02 Apr 2019 08:14:25 GMT
Content-Type: application/json;charset=UTF-8
Server: BWS
上一篇
创建弹性网卡
下一篇
删除弹性网卡