Skip to content

NetworkInterfacesProps

Properties for defining a NetworkInterfaces.

See https://www.alibabacloud.com/help/ros/developer-reference/datasource-ecs-networkinterfaces

Initializer

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkecs/datasource"
&datasource.NetworkInterfacesProps {
    InstanceId: interface{},
    Ipv6Addresses: interface{},
    NetworkInterfaceIds: interface{},
    NetworkInterfaceName: interface{},
    PrimaryIpAddress: interface{},
    PrivateIpAddresses: interface{},
    RefreshOptions: interface{},
    ResourceGroupId: interface{},
    SecurityGroupId: interface{},
    ServiceManaged: interface{},
    Status: interface{},
    Tags: *[]github.com/alibabacloud-go/ros-cdk/alicloudroscdkecs.datasource.RosNetworkInterfaces.TagsProperty,
    Type: interface{},
    VpcId: interface{},
    VSwitchId: interface{},
}

Properties

Name Type Description
InstanceId interface{} Property instanceId: The ID of the instance to which the ENI is bound.
Ipv6Addresses interface{} Property ipv6Addresses: IPv6 address N of the ENI.
NetworkInterfaceIds interface{} Property networkInterfaceIds: The ID of ENI N.
NetworkInterfaceName interface{} Property networkInterfaceName: The name of the ENI.
PrimaryIpAddress interface{} Property primaryIpAddress: The primary private IPv4 address of the ENI.
PrivateIpAddresses interface{} Property privateIpAddresses: Secondary private IPv4 address N of the ENI.
RefreshOptions interface{} Property refreshOptions: The refresh strategy for the datasource resource when the stack is updated.
ResourceGroupId interface{} Property resourceGroupId: The ID of the resource group to which the eni belongs.
SecurityGroupId interface{} Property securityGroupId: The ID of the security group to which the secondary ENI belongs.
ServiceManaged interface{} Property serviceManaged: Specifies whether the user is an Alibaba Cloud service or a distributor.
Status interface{} Property status: The state of the ENI.
Tags *[]github.com/alibabacloud-go/ros-cdk/alicloudroscdkecs.datasource.RosNetworkInterfaces.TagsProperty Property tags: Tags of eni.
Type interface{} Property type: The type of the ENI.
VpcId interface{} Property vpcId: The ID of the virtual private cloud (VPC) to which the ENI belongs.
VSwitchId interface{} Property vSwitchId: The ID of the vSwitch to which the ENI is connected.

InstanceIdOptional

InstanceId interface{}
  • Type: interface{}

Property instanceId: The ID of the instance to which the ENI is bound.


Ipv6AddressesOptional

Ipv6Addresses interface{}
  • Type: interface{}

Property ipv6Addresses: IPv6 address N of the ENI.

You can specify multiple IPv6 addresses. Valid values of N: 1 to 100.


NetworkInterfaceIdsOptional

NetworkInterfaceIds interface{}
  • Type: interface{}

Property networkInterfaceIds: The ID of ENI N.

Valid values of N: 1 to 100.


NetworkInterfaceNameOptional

NetworkInterfaceName interface{}
  • Type: interface{}

Property networkInterfaceName: The name of the ENI.


PrimaryIpAddressOptional

PrimaryIpAddress interface{}
  • Type: interface{}

Property primaryIpAddress: The primary private IPv4 address of the ENI.


PrivateIpAddressesOptional

PrivateIpAddresses interface{}
  • Type: interface{}

Property privateIpAddresses: Secondary private IPv4 address N of the ENI.

Valid values of N: 1 to 100.


RefreshOptionsOptional

RefreshOptions interface{}
  • Type: interface{}

Property refreshOptions: The refresh strategy for the datasource resource when the stack is updated.

Valid values:

  • Never: Never refresh the datasource resource when the stack is updated.
  • Always: Always refresh the datasource resource when the stack is updated. Default is Never.

ResourceGroupIdOptional

ResourceGroupId interface{}
  • Type: interface{}

Property resourceGroupId: The ID of the resource group to which the eni belongs.

If this parameter is specified to query resources,up to 1,000 resources that belong to the specified resource group can be displayed in the response.


SecurityGroupIdOptional

SecurityGroupId interface{}
  • Type: interface{}

Property securityGroupId: The ID of the security group to which the secondary ENI belongs.

To query the details of secondary ENIs based on the ID of a security group, specify this parameter. To query the details of primary ENIs based on the ID of a security group, call the DescribeInstances operation and specify the SecurityGroupId parameter.


ServiceManagedOptional

ServiceManaged interface{}
  • Type: interface{}

Property serviceManaged: Specifies whether the user is an Alibaba Cloud service or a distributor.


StatusOptional

Status interface{}
  • Type: interface{}

Property status: The state of the ENI.

Valid values: Creating: The ENI is being created. Available: The ENI is not bound to an instance. Attaching: The ENI is being bound to an instance. InUse: The ENI is bound to an instance. Detaching: The ENI is being unbound from an instance. Deleting: The ENI is being deleted. CreateFailed: The ENI cannot be created. This parameter is empty by default, which indicates that ENIs in all states are queried.


TagsOptional

Tags *[]TagsProperty
  • Type: *[]github.com/alibabacloud-go/ros-cdk/alicloudroscdkecs.datasource.RosNetworkInterfaces.TagsProperty

Property tags: Tags of eni.


TypeOptional

Type interface{}
  • Type: interface{}

Property type: The type of the ENI.

Valid values: Primary Secondary This parameter is empty by default, which indicates that both primary and secondary ENIs are queried.


VpcIdOptional

VpcId interface{}
  • Type: interface{}

Property vpcId: The ID of the virtual private cloud (VPC) to which the ENI belongs.


VSwitchIdOptional

VSwitchId interface{}
  • Type: interface{}

Property vSwitchId: The ID of the vSwitch to which the ENI is connected.