Skip to main content

ModifyNetworkInterfaceAttribute

Description

the call ModifyNetworkInterfaceAttribute modify the name, description, and security group of an elastic network card (ENI).

Request Method

POST

Request Path

/apsara/route/Ecs/ModifyNetworkInterfaceAttribute

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
DescriptionBODYstringNotestdescription information of elastic network card. The length is 2 to 256 English or Chinese characters and cannot start with http:// and https:// default value: empty.
regionIdBODYstringYesNo sample value for this parameter.region id
SecurityGroupId.NBODYrepeatlistNosg-bp67acfmxazb4ph***SecurityGroupId the list, the security group that the flexible network card finally joins, and will remove the existing security group. The value range of N is 1-5.
NetworkInterfaceNameBODYstringNomy-eni-namethe name of the elastic network card. The length is 2~128 English or Chinese characters. It must start with a letter or Chinese, and cannot start with http:// or https. It can contain numbers, colons (:), underscores (_), or hyphens (-). default value: empty.
RegionIdBODYstringYescn-qingdao-env17-d01the region ID of the ENI. You can call the DescribeRegions to view the latest Alibaba Cloud region list.
NetworkInterfaceIdBODYstringYeseni-bp67acfmxazb4ph***ENI ID.
versionBODYstringNo2016-01-01version of api

Return data

NameTypeSample valueDescription
RequestIDstring1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DCRequest id

Example

Successful Response example

{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}