< Back

Invoke-FreeNasRestMethod

Mon Jan 13, 2020 7:49 pm

NAME Invoke-FreeNasRestMethod



SYNOPSIS

Invoke RestMethod with FreeNas connection (internal) variable





SYNTAX

Invoke-FreeNasRestMethod [-uri] <String> [-method <String>] [-body <PSObject>] [<CommonParameters>]





DESCRIPTION

Invoke RestMethod with FreeNas connection variable (token,.)





PARAMETERS

-uri <String>



Required? true

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-method <String>



Required? false

Position? named

Default value GET

Accept pipeline input? false

Accept wildcard characters? false



-body <PSObject>



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Invoke-FreeNasRestMethod -method "get" -uri "api/v1.0/storage/disk/"



Invoke-RestMethod with FreeNas connection for get api/v1.0/storage/disk/ uri











RELATED LINKS





CommonParameters : True

WorkflowCommonParameters : False

details : @{name=New-FreeNasCertificate; noun=; verb=}

Syntax : @{syntaxItem=System.Object[]}

parameters : @{parameter=System.Object[]}

inputTypes : @{inputType=}

returnValues : @{returnValue=}

aliases : None



remarks : None

alertSet :

description :

examples :

Synopsis :

New-FreeNasCertificate [-Name] <string> [-CommonName] <string> [-City] <string> [-State]

<string> [-Country] <string> [-Email] <string> [-Organization] <string> [-DigestAlgo]

<string> [-Liftime] <int> [-KeyLenght] <int> [-Signedby] <int> [-WhatIf] [-Confirm]

[<CommonParameters>]



ModuleName : FreeNas

nonTerminatingErrors :

xmlns:command : http://schemas.microsoft.com/maml/dev/command/2004/10

xmlns:dev : http://schemas.microsoft.com/maml/dev/2004/10

xmlns:maml : http://schemas.microsoft.com/maml/2004/10

Name : New-FreeNasCertificate

Category : Function

Component :

Role :

Functionality :





CommonParameters : True

WorkflowCommonParameters : False

details : @{name=New-FreeNasInternalCA; noun=; verb=}

Syntax : @{syntaxItem=System.Object[]}

parameters : @{parameter=System.Object[]}

inputTypes : @{inputType=}

returnValues : @{returnValue=}

aliases : None



remarks : None

alertSet :

description :

examples :

Synopsis :

New-FreeNasInternalCA [-Name] <string> [-CommonName] <string> [-City] <string> [-State]

<string> [-Country] <string> [-Email] <string> [-Organization] <string> [-DigestAlgo]

<string> [-Liftime] <int> [-KeyLenght] <int> [-WhatIf] [-Confirm] [<CommonParameters>]



ModuleName : FreeNas

nonTerminatingErrors :

xmlns:command : http://schemas.microsoft.com/maml/dev/command/2004/10

xmlns:dev : http://schemas.microsoft.com/maml/dev/2004/10

xmlns:maml : http://schemas.microsoft.com/maml/2004/10

Name : New-FreeNasInternalCA

Category : Function

Component :

Role :

Functionality :





CommonParameters : True

WorkflowCommonParameters : False

details : @{name=New-FreeNasIscsiAssociat2Extent; noun=; verb=}

Syntax : @{syntaxItem=System.Object[]}

parameters : @{parameter=System.Object[]}

inputTypes : @{inputType=}

returnValues : @{returnValue=}

aliases : None



remarks : None

alertSet :

description :

examples :

Synopsis :

New-FreeNasIscsiAssociat2Extent [-TargetId] <int> [-ExtentId] <int> [<CommonParameters>]



ModuleName : FreeNas

nonTerminatingErrors :

xmlns:command : http://schemas.microsoft.com/maml/dev/command/2004/10

xmlns:dev : http://schemas.microsoft.com/maml/dev/2004/10

xmlns:maml : http://schemas.microsoft.com/maml/2004/10

Name : New-FreeNasIscsiAssociat2Extent

Category : Function

Component :

Role :

Functionality :





CommonParameters : True

WorkflowCommonParameters : False

details : @{name=New-FreeNasIscsiExtent; noun=; verb=}

Syntax : @{syntaxItem=System.Object[]}

parameters : @{parameter=System.Object[]}

inputTypes : @{inputType=}

returnValues : @{returnValue=}

aliases : None



remarks : None

alertSet :

description :

examples :

Synopsis :

New-FreeNasIscsiExtent [-ExtentName] <string> [-ExtenType] <string> [-ExtentSpeed] <Object>

[-ExtenDiskPath] <string> [<CommonParameters>]



ModuleName : FreeNas

nonTerminatingErrors :

xmlns:command : http://schemas.microsoft.com/maml/dev/command/2004/10

xmlns:dev : http://schemas.microsoft.com/maml/dev/2004/10

xmlns:maml : http://schemas.microsoft.com/maml/2004/10

Name : New-FreeNasIscsiExtent

Category : Function

Component :

Role :

Functionality :





CommonParameters : True

WorkflowCommonParameters : False

details : @{name=New-FreeNasIscsiInitiator; noun=; verb=}

Syntax : @{syntaxItem=System.Object[]}

parameters : @{parameter=System.Object[]}

inputTypes : @{inputType=}

returnValues : @{returnValue=}

aliases : None



remarks : None

alertSet :

description :

examples :

Synopsis :

New-FreeNasIscsiInitiator [[-AuthInitiators] <string>] [[-AuthNetwork] <string>]

[<CommonParameters>]



ModuleName : FreeNas

nonTerminatingErrors :

xmlns:command : http://schemas.microsoft.com/maml/dev/command/2004/10

xmlns:dev : http://schemas.microsoft.com/maml/dev/2004/10

xmlns:maml : http://schemas.microsoft.com/maml/2004/10

Name : New-FreeNasIscsiInitiator

Category : Function

Component :

Role :

Functionality :





CommonParameters : True

WorkflowCommonParameters : False

details : @{name=New-FreenasIscsiPortal; noun=; verb=}

Syntax : @{syntaxItem=System.Object[]}

parameters : @{parameter=System.Object[]}

inputTypes : @{inputType=}

returnValues : @{returnValue=}

aliases : None



remarks : None

alertSet :

description :

examples :

Synopsis :

New-FreenasIscsiPortal [-IpPortal] <Object> [[-Port] <string>] [[-Comment] <string>]

[<CommonParameters>]



ModuleName : FreeNas

nonTerminatingErrors :

xmlns:command : http://schemas.microsoft.com/maml/dev/command/2004/10

xmlns:dev : http://schemas.microsoft.com/maml/dev/2004/10

xmlns:maml : http://schemas.microsoft.com/maml/2004/10

Name : New-FreenasIscsiPortal

Category : Function

Component :

Role :

Functionality :





CommonParameters : True

WorkflowCommonParameters : False

details : @{name=New-FreeNasIscsiTarget; noun=; verb=}

Syntax : @{syntaxItem=System.Object[]}

parameters : @{parameter=System.Object[]}

inputTypes : @{inputType=}

returnValues : @{returnValue=}

aliases : None



remarks : None

alertSet :

description :

examples :

Synopsis :

New-FreeNasIscsiTarget [-TargetName] <string> [[-TargetAlias] <string>] [[-TargetMode]

<string>] [<CommonParameters>]



ModuleName : FreeNas

nonTerminatingErrors :

xmlns:command : http://schemas.microsoft.com/maml/dev/command/2004/10

xmlns:dev : http://schemas.microsoft.com/maml/dev/2004/10

xmlns:maml : http://schemas.microsoft.com/maml/2004/10

Name : New-FreeNasIscsiTarget

Category : Function

Component :

Role :

Functionality :





CommonParameters : True

WorkflowCommonParameters : False

details : @{name=New-FreeNasIscsiTargetGroup; noun=; verb=}

Syntax : @{syntaxItem=System.Object[]}

parameters : @{parameter=System.Object[]}

inputTypes : @{inputType=}

returnValues : @{returnValue=}

aliases : None



remarks : None

alertSet :

description :

examples :

Synopsis :

New-FreeNasIscsiTargetGroup [-TargetId] <int> [-TargetPortalGroup] <int>

[<CommonParameters>]



ModuleName : FreeNas

nonTerminatingErrors :

xmlns:command : http://schemas.microsoft.com/maml/dev/command/2004/10

xmlns:dev : http://schemas.microsoft.com/maml/dev/2004/10

xmlns:maml : http://schemas.microsoft.com/maml/2004/10

Name : New-FreeNasIscsiTargetGroup

Category : Function

Component :

Role :

Functionality :





CommonParameters : True

WorkflowCommonParameters : False

details : @{name=New-FreeNasSystemNTP; noun=; verb=}

Syntax : @{syntaxItem=System.Object[]}

parameters : @{parameter=System.Object[]}

inputTypes : @{inputType=}

returnValues : @{returnValue=}

aliases : None



remarks : None

alertSet :

description :

examples :

Synopsis :

New-FreeNasSystemNTP [-NtpServer] <string> [[-PreferServer] <string>] [[-MinPoll] <int>]

[[-MaxPoll] <int>] [[-NtpBurst] <string>] [[-NtpIBurst] <string>] [<CommonParameters>]



ModuleName : FreeNas

nonTerminatingErrors :

xmlns:command : http://schemas.microsoft.com/maml/dev/command/2004/10

xmlns:dev : http://schemas.microsoft.com/maml/dev/2004/10

xmlns:maml : http://schemas.microsoft.com/maml/2004/10

Name : New-FreeNasSystemNTP

Category : Function

Component :

Role :

Functionality :





CommonParameters : True

WorkflowCommonParameters : False

details : @{name=New-FreeNasVolume; noun=; verb=}

Syntax : @{syntaxItem=System.Object[]}

parameters : @{parameter=System.Object[]}

inputTypes : @{inputType=}

returnValues : @{returnValue=}

aliases : None



remarks : None

alertSet :

description :

examples :

Synopsis :

New-FreeNasVolume [-VolumeName] <string> [-Vdevtype] <string> [[-DiskNamebase] <string>]

[-NbDisks] <int> [[-StartDisksNB] <int>] [<CommonParameters>]



ModuleName : FreeNas

nonTerminatingErrors :

xmlns:command : http://schemas.microsoft.com/maml/dev/command/2004/10

xmlns:dev : http://schemas.microsoft.com/maml/dev/2004/10

xmlns:maml : http://schemas.microsoft.com/maml/2004/10

Name : New-FreeNasVolume

Category : Function

Component :

Role :

Functionality :





CommonParameters : True

WorkflowCommonParameters : False

details : @{name=New-FreeNasZvol; noun=; verb=}

Syntax : @{syntaxItem=System.Object[]}

parameters : @{parameter=System.Object[]}

inputTypes : @{inputType=}

returnValues : @{returnValue=}

aliases : None



remarks : None

alertSet :

description :

examples :

Synopsis :

New-FreeNasZvol [-VolumeName] <string> [-ZvolName] <string> [-Volsize] <int> [[-Unit]

<string>] [[-Compression] <string>] [[-Sparse] <string>] [[-BlokSize] <string>] [[-Comment]

<string>] [<CommonParameters>]



ModuleName : FreeNas

nonTerminatingErrors :

xmlns:command : http://schemas.microsoft.com/maml/dev/command/2004/10

xmlns:dev : http://schemas.microsoft.com/maml/dev/2004/10

xmlns:maml : http://schemas.microsoft.com/maml/2004/10

Name : New-FreeNasZvol

Category : Function

Component :

Role :

Functionality :





CommonParameters : True

WorkflowCommonParameters : False

details : @{name=Remove-FreeNasIscsiAssociat2Extent; noun=; verb=}

Syntax : @{syntaxItem=System.Object[]}

parameters : @{parameter=System.Object[]}

inputTypes : @{inputType=}

returnValues : @{returnValue=}

aliases : None



remarks : None

alertSet :

description :

examples :

Synopsis :

Remove-FreeNasIscsiAssociat2Extent [-Id] <int> [-WhatIf] [-Confirm] [<CommonParameters>]



ModuleName : FreeNas

nonTerminatingErrors :

xmlns:command : http://schemas.microsoft.com/maml/dev/command/2004/10

xmlns:dev : http://schemas.microsoft.com/maml/dev/2004/10

xmlns:maml : http://schemas.microsoft.com/maml/2004/10

Name : Remove-FreeNasIscsiAssociat2Extent

Category : Function

Component :

Role :

Functionality :





CommonParameters : True

WorkflowCommonParameters : False

details : @{name=Remove-FreeNasIscsiExtent; noun=; verb=}

Syntax : @{syntaxItem=System.Object[]}

parameters : @{parameter=System.Object[]}

inputTypes : @{inputType=}

returnValues : @{returnValue=}

aliases : None



remarks : None

alertSet :

description :

examples :

Synopsis :

Remove-FreeNasIscsiExtent [-Id] <int> [-WhatIf] [-Confirm] [<CommonParameters>]



ModuleName : FreeNas

nonTerminatingErrors :

xmlns:command : http://schemas.microsoft.com/maml/dev/command/2004/10

xmlns:dev : http://schemas.microsoft.com/maml/dev/2004/10

xmlns:maml : http://schemas.microsoft.com/maml/2004/10

Name : Remove-FreeNasIscsiExtent

Category : Function

Component :

Role :

Functionality :





CommonParameters : True

WorkflowCommonParameters : False

details : @{name=Remove-FreeNasIscsiInitiator; noun=; verb=}

Syntax : @{syntaxItem=System.Object[]}

parameters : @{parameter=System.Object[]}

inputTypes : @{inputType=}

returnValues : @{returnValue=}

aliases : None



remarks : None

alertSet :

description :

examples :

Synopsis :

Remove-FreeNasIscsiInitiator [-Id] <int> [-WhatIf] [-Confirm] [<CommonParameters>]



ModuleName : FreeNas

nonTerminatingErrors :

xmlns:command : http://schemas.microsoft.com/maml/dev/command/2004/10

xmlns:dev : http://schemas.microsoft.com/maml/dev/2004/10

xmlns:maml : http://schemas.microsoft.com/maml/2004/10

Name : Remove-FreeNasIscsiInitiator

Category : Function

Component :

Role :

Functionality :





CommonParameters : True

WorkflowCommonParameters : False

details : @{name=Remove-FreeNasIscsiPortal; noun=; verb=}

Syntax : @{syntaxItem=System.Object[]}

parameters : @{parameter=System.Object[]}

inputTypes : @{inputType=}

returnValues : @{returnValue=}

aliases : None



remarks : None

alertSet :

description :

examples :

Synopsis :

Remove-FreeNasIscsiPortal [-Id] <int> [-WhatIf] [-Confirm] [<CommonParameters>]



ModuleName : FreeNas

nonTerminatingErrors :

xmlns:command : http://schemas.microsoft.com/maml/dev/command/2004/10

xmlns:dev : http://schemas.microsoft.com/maml/dev/2004/10

xmlns:maml : http://schemas.microsoft.com/maml/2004/10

Name : Remove-FreeNasIscsiPortal

Category : Function

Component :

Role :

Functionality :





CommonParameters : True

WorkflowCommonParameters : False

details : @{name=Remove-FreeNasIscsiTarget; noun=; verb=}

Syntax : @{syntaxItem=System.Object[]}

parameters : @{parameter=System.Object[]}

inputTypes : @{inputType=}

returnValues : @{returnValue=}

aliases : None



remarks : None

alertSet :

description :

examples :

Synopsis :

Remove-FreeNasIscsiTarget [-Id] <int> [-WhatIf] [-Confirm] [<CommonParameters>]



ModuleName : FreeNas

nonTerminatingErrors :

xmlns:command : http://schemas.microsoft.com/maml/dev/command/2004/10

xmlns:dev : http://schemas.microsoft.com/maml/dev/2004/10

xmlns:maml : http://schemas.microsoft.com/maml/2004/10

Name : Remove-FreeNasIscsiTarget

Category : Function

Component :

Role :

Functionality :





CommonParameters : True

WorkflowCommonParameters : False

details : @{name=Remove-FreeNasIscsiTargetGroup; noun=; verb=}

Syntax : @{syntaxItem=System.Object[]}

parameters : @{parameter=System.Object[]}

inputTypes : @{inputType=}

returnValues : @{returnValue=}

aliases : None



remarks : None

alertSet :

description :

examples :

Synopsis :

Remove-FreeNasIscsiTargetGroup [-Id] <int> [-WhatIf] [-Confirm] [<CommonParameters>]



ModuleName : FreeNas

nonTerminatingErrors :

xmlns:command : http://schemas.microsoft.com/maml/dev/command/2004/10

xmlns:dev : http://schemas.microsoft.com/maml/dev/2004/10

xmlns:maml : http://schemas.microsoft.com/maml/2004/10

Name : Remove-FreeNasIscsiTargetGroup

Category : Function

Component :

Role :

Functionality :





CommonParameters : True

WorkflowCommonParameters : False

details : @{name=Remove-FreeNasVolume; noun=; verb=}

Syntax : @{syntaxItem=System.Object[]}

parameters : @{parameter=System.Object[]}

inputTypes : @{inputType=}

returnValues : @{returnValue=}

aliases : None



remarks : None

alertSet :

description :

examples :

Synopsis :

Remove-FreeNasVolume [-Id] <int> [-WhatIf] [-Confirm] [<CommonParameters>]



ModuleName : FreeNas

nonTerminatingErrors :

xmlns:command : http://schemas.microsoft.com/maml/dev/command/2004/10

xmlns:dev : http://schemas.microsoft.com/maml/dev/2004/10

xmlns:maml : http://schemas.microsoft.com/maml/2004/10

Name : Remove-FreeNasVolume

Category : Function

Component :

Role :

Functionality :





CommonParameters : True

WorkflowCommonParameters : False

details : @{name=Remove-FreeNasZvol; noun=; verb=}

Syntax : @{syntaxItem=System.Object[]}

parameters : @{parameter=System.Object[]}

inputTypes : @{inputType=}

returnValues : @{returnValue=}

aliases : None



remarks : None

alertSet :

description :

examples :

Synopsis :

Remove-FreeNasZvol [-Id] <int> [-WhatIf] [-Confirm] [<CommonParameters>]



ModuleName : FreeNas

nonTerminatingErrors :

xmlns:command : http://schemas.microsoft.com/maml/dev/command/2004/10

xmlns:dev : http://schemas.microsoft.com/maml/dev/2004/10

xmlns:maml : http://schemas.microsoft.com/maml/2004/10

Name : Remove-FreeNasZvol

Category : Function

Component :

Role :

Functionality :