Invoke-CSP¶
SYNOPSIS¶
Queries the BloxOneDDI Cloud Services Portal
SYNTAX¶
Invoke-CSP [-Method] <String> [-Uri] <String> [-Data] <String> [-InFile] <String> [-ContentType] <String> [<CommonParameters>]
DESCRIPTION¶
This is a core function used by all cmdlets when querying the CSP (Cloud Services Portal), required when interacting with the BloxOne APIs.
EXAMPLES¶
EXAMPLE 1¶
EXAMPLE 2¶
EXAMPLE 3¶
PARAMETERS¶
-Method¶
Specify the HTTP Method to use
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Uri¶
Specify the Uri, such as "ipam/record", you can also use the full URL and http parameters must be appended here. If the full URL is not used, the default base path is https://<CSPUrl>/api/ddi/v1
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Data¶
Data to be submitted on POST/PUT/PATCH/DELETE requests
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-InFile¶
File path of data to submit as part of POST request
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-ContentType¶
The Content-Type header to be passed in requests. Defaults to 'application/json'
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 5
Default value: application/json
Accept pipeline input: False
Accept wildcard characters: False
CommonParameters¶
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.