All Products
Search
Document Center

Resource Orchestration Service:ALIYUN::ECS::NetworkInterfacePermission

Last Updated:Aug 12, 2026

ALIYUN::ECS::NetworkInterfacePermission resource grants permissions to an Elastic Network Interface (ENI).

Syntax

{
  "Type": "ALIYUN::ECS::NetworkInterfacePermission",
  "Properties": {
    "NetworkInterfaceId": String,
    "AccountId": String,
    "Permission": String
  }
}

Properties

Property

Type

Required

Editable

Description

Constraints

NetworkInterfaceId

String

Yes

No

The ID of the ENI.

None

AccountId

String

Yes

No

The ID of the account.

None

Permission

String

Yes

No

The permission to grant.

None

Return values

Fn::GetAtt

  • NetworkInterfacePermissionId: The ID of the network interface permission.

Examples

YAML format

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  NetworkInterfaceId:
    Type: String
    Description: Network interface id
  Permission:
    Type: String
    Description: the permission
    Default: InstanceAttach
Resources:
  NetworkInterfacePermission:
    Type: ALIYUN::ECS::NetworkInterfacePermission
    Properties:
      NetworkInterfaceId:
        Ref: NetworkInterfaceId
      AccountId:
        Ref: ALIYUN::AccountId
      Permission:
        Ref: Permission

JSON format

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "NetworkInterfaceId": {
      "Type": "String",
      "Description": "Network interface id"
    },
    "Permission": {
      "Type": "String",
      "Description": "the permission",
      "Default": "InstanceAttach"
    }
  },
  "Resources": {
    "NetworkInterfacePermission": {
      "Type": "ALIYUN::ECS::NetworkInterfacePermission",
      "Properties": {
        "NetworkInterfaceId": {
          "Ref": "NetworkInterfaceId"
        },
        "AccountId": {
          "Ref": "ALIYUN::AccountId"
        },
        "Permission": {
          "Ref": "Permission"
        }
      }
    }
  }
}