ConoHaNet.OpenStackMember.GetInterfaceAttachment C# (CSharp) Method

GetInterfaceAttachment() public method

public GetInterfaceAttachment ( string serverId, string portId ) : InterfaceAttachment
serverId string
portId string
return InterfaceAttachment
        public InterfaceAttachment GetInterfaceAttachment(string serverId, string portId)
        {
            return ServersProvider.GetInterfaceAttachment(serverId, portId, this.DefaultRegion, this.Identity);
        }

Usage Example

        public void GetInterfaceAttachmentTest_Get_PortId_Not_Exist()
        {
            var osm = new OpenStackMember(UserName, Password, TenantName, TenantId);
            SimpleServer ss = osm.ListServers().FirstOrDefault(s => s.GetDetails().Status == ServerState.Active);

            InterfaceAttachment i = osm.GetInterfaceAttachment(ss.Id, InvalidId);
        }
All Usage Examples Of ConoHaNet.OpenStackMember::GetInterfaceAttachment
OpenStackMember