Retrieve a stored configuration
Get-AtlassianConfiguration [[-Name] <String[]>] [-ValueOnly] [<CommonParameters>]
Get-AtlassianConfiguration [[-Name] <String[]>] [-ValueOnly] [<CommonParameters>]
Get-AtlassianConfiguration [[-Name] <String[]>] [-AsHashtable] [<CommonParameters>]
Retrieve a stored configuration.
The object return can be customized as needed with the parameters -AsHashtable
and -ValueOnly
.
Get-AtlassianConfiguration
Get all stored servers
Each entry is returned as a PSCustomObject where the
Name
is the name of the entry and theValue
is it’s value. This is used for using the pipeline. See Example 4. Use-ValueOnly
if interested only in the value.
Set-AtlassianConfiguration -Name "Headers" -Value @{ Authorization = "Basic ABCDEF" }
Get-AtlassianConfiguration -Name "Headers"
Get a specific entry in the configuration.
Each entry is returned as a PSCustomObject where the
Name
is the name of the entry and theValue
is it’s value. This is used for using the pipeline. See Example 4. Use-ValueOnly
if interested only in the value.
Set-AtlassianConfiguration -Name "Headers" -Value @{ Authorization = "Basic ABCDEF" }
Get-AtlassianConfiguration -Name "Headers" -ValueOnly
Get the value of a specific entry in the configuration.
Set-AtlassianConfiguration -Name "Headers" -Value @{ Authorization = "Basic ABCDEF" }
Set-AtlassianConfiguration -Name "SomethingElse" -Value (Get-Date)
"Headers", "SomethingElse", "SomethingMissing" |
Get-AtlassianConfiguration |
Set-AtlassianConfiguration -Value $null
Command is spread across multiple lines to be easier to read
This example uses the pipeline twice:
-Name
of the entry is passed from the three string-Name
of the two entries found are passed to Set-AtlassianConfiguration
Set-AtlassianConfiguration
resets the value of the two entriesSet-AtlassianConfiguration -Name "Headers" -Value @{ Authorization = "Basic ABCDEF" }
Get-AtlassianConfiguration -AsHashtable
This example will return a hashtable (key-value pair) where Headers
is the key.
Name of the configuration to be retrieved
Is not case sensitive
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: *
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: True
Determine that this cmdlet shall only return the value of the configuration.
Type: SwitchParameter
Parameter Sets: asValue
Aliases:
Required: True
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Determine the result shall be return as a hashtable.
Type: SwitchParameter
Parameter Sets: asHashtable
Aliases:
Required: True
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).