< Back

List-mjInfluxDB

Sat Jan 11, 2020 3:55 am

NAME List-mjInfluxDB



SYNOPSIS

This will show all influx databases.

Written by Ispep

www.automatiserar.se





SYNTAX

List-mjInfluxDB [-InfluxServer] <Object> [[-https] <Boolean>] [[-port] <Int32>] [<CommonParameters>]





DESCRIPTION

With this function an array with all databases and the status of the command is returned.

To verify if the command where successful check the bool flag "Success".





PARAMETERS

-InfluxServer <Object>



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-https <Boolean>



Required? false

Position? 2

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-port <Int32>



Required? false

Position? 3

Default value 8086

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:\\>List-mjInfluxDB -InfluxServer MyInfluxServer



Returns:



Databases : {_internal, Automatiserarse}

Server : MyInfluxServer

HttpMode : http

Version : 1

Success : True









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>List-mjInfluxDB -InfluxServer NotAComputer



Returns:



Databases : {}

Server : NotAComputer

HttpMode : https

Version : 1

Success : False









-------------------------- EXAMPLE 3 --------------------------



PS C:\\>List-mjInfluxDB -InfluxServer MyInfluxServer -https



Returns:



Databases : {_internal, Automatiserarse}

Server : spelburken

HttpMode : https

Version : 1

Success : True











RELATED LINKS