All Products
Search
Document Center

CloudOps Orchestration Service:ACS::ECS::CreateAndAttachNetworkInterface

Last Updated:Jun 18, 2026

Creates an elastic network interface (ENI) and attaches it to an ECS instance.

Description

Creates an elastic network interface (ENI) and attaches it to an Elastic Compute Service (ECS) instance.

Syntax

Action: ACS::ECS::CreateAndAttachNetworkInterface
Properties:
 regionId: String
 instanceId: String
 securityGroupId: String
 vSwitchId: String

Attributes

Attribute

Description

Type

Required

Default value

Limit

regionId

The region ID.

String

No

{{ ACS::RegionId }}

instanceId

The ECS instance ID.

String

Yes

Maximum length: 30 characters Minimum length: 1 character

securityGroupId

The security group ID.

String

Yes

Regular expression for string verification: sg-[A-Za-z0-9]* Maximum length: 30 characters Minimum length: 1 character

vSwitchId

The vSwitch ID.

String

Yes

Regular expression for string verification: vsw-[A-Za-z0-9]* Maximum length: 30 characters Minimum length: 1 character

Output

Output item

Description

Type

networkInterfaceId

The ID of the ENI.

String

References

For more information, see ACS::ECS::CreateAndAttachNetworkInterface.yml at GitHub.