#region Copyright
/*
* Copyright © 2014-2016 NetApp, Inc. All Rights Reserved.
*
* CONFIDENTIALITY NOTICE: THIS SOFTWARE CONTAINS CONFIDENTIAL INFORMATION OF
* NETAPP, INC. USE, DISCLOSURE OR REPRODUCTION IS PROHIBITED WITHOUT THE PRIOR
* EXPRESS WRITTEN PERMISSION OF NETAPP, INC.
*/
#endregion
#region Using Directives
using System.ComponentModel;
using System.Management.Automation;
using SolidFire.Core;
using SolidFire.Element.Api;
#endregion
namespace SolidFire.Cluster.Get
{
///
/// Used to return configuration information about the cluster.
///
[Cmdlet(VerbsCommon.Get, "SFSnmpAcl", DefaultParameterSetName = "Cluster")]
public class GetSFSnmpAcl : SFCmdlet
{
#region Private Data
#endregion
#region Parameters
#endregion
#region Cmdlet Overrides
///
/// Verify the connection is for Oxygen or greater.
///
protected override void BeginProcessing()
{
base.BeginProcessing();
CheckConnection(minVersionNumber: 8.0f);
}
///
///
///
protected override void ProcessRecord()
{
base.ProcessRecord();
var objsFromAPI = SendRequest("GetSnmpACL");
foreach (var obj in objsFromAPI)
{
WriteObject(obj.Result, true);
}
}
#endregion
}
}