< Back
New-mjInfluxDB
Post
NAME New-mjInfluxDB
SYNOPSIS
This function will create new InfluxDB
Written by Ispep
www.Automatiserar.se
SYNTAX
New-mjInfluxDB [-InfluxServer] <String> [-databaseName] <String> [[-port] <Int32>] [[-https] <Boolean>]
[<CommonParameters>]
DESCRIPTION
This function checks if an influxDB exist before writting it to the server
if an database exist you will be promted with this warning and no database will be created:
WARNING: A database with the name "Automatiserarse" exists! will not create a new one
PARAMETERS
-InfluxServer <String>
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-databaseName <String>
Required? true
Position? 2
Default value
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
-https <Boolean>
Required? false
Position? 4
Default value False
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:\\>#
New-mjInfluxDB -databaseName "Automatiserarse" -InfluxServer MyInfluxServer
Returns:
Databases : {_internal, Automatiserarse}
Success : True
Server : MyInfluxServer
Version : 1
HttpMode : http
NewDatabase : Automatiserarse
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>new-mjInfluxDB -databaseName "Automatiserarse" -InfluxServer MyInfluxServer -https $true -port 8086
Returns:
Databases : {_internal, Automatiserarse}
Success : True
Server : MyInfluxServer
Version : 1
HttpMode : http
NewDatabase : Automatiserarse
RELATED LINKS
SYNOPSIS
This function will create new InfluxDB
Written by Ispep
www.Automatiserar.se
SYNTAX
New-mjInfluxDB [-InfluxServer] <String> [-databaseName] <String> [[-port] <Int32>] [[-https] <Boolean>]
[<CommonParameters>]
DESCRIPTION
This function checks if an influxDB exist before writting it to the server
if an database exist you will be promted with this warning and no database will be created:
WARNING: A database with the name "Automatiserarse" exists! will not create a new one
PARAMETERS
-InfluxServer <String>
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-databaseName <String>
Required? true
Position? 2
Default value
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
-https <Boolean>
Required? false
Position? 4
Default value False
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:\\>#
New-mjInfluxDB -databaseName "Automatiserarse" -InfluxServer MyInfluxServer
Returns:
Databases : {_internal, Automatiserarse}
Success : True
Server : MyInfluxServer
Version : 1
HttpMode : http
NewDatabase : Automatiserarse
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>new-mjInfluxDB -databaseName "Automatiserarse" -InfluxServer MyInfluxServer -https $true -port 8086
Returns:
Databases : {_internal, Automatiserarse}
Success : True
Server : MyInfluxServer
Version : 1
HttpMode : http
NewDatabase : Automatiserarse
RELATED LINKS