All Products
Search
Document Center

CloudOps Orchestration Service:ACS::ECS::CreateAndAttachNetworkInterface

Last Updated:Jun 12, 2024

Description

Creates an elastic network interface (ENI) and associates the ENI with 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

String

References

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