Synopsis
Request content with cURL.
Syntax
attributes-ip (Default)
New-EdgeDiagnosticsCurl -URL <String> -IPVersion <String> -EdgeIP <String> [-SpoofEdgeIP <String>]
[-RequestHeaders <String>] [-RunFromSiteshield] [-EdgeRCFile <String>] [-Section <String>]
[-AccountSwitchKey <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
attributes-location
New-EdgeDiagnosticsCurl -URL <String> -IPVersion <String> -EdgeLocationID <String> [-SpoofEdgeIP <String>]
[-RequestHeaders <String>] [-RunFromSiteshield] [-EdgeRCFile <String>] [-Section <String>]
[-AccountSwitchKey <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
body
New-EdgeDiagnosticsCurl -Body <Object> [-EdgeRCFile <String>] [-Section <String>] [-AccountSwitchKey <String>]
[-ProgressAction <ActionPreference>] [<CommonParameters>]
Description
Requests content using the cURL command to provide the raw HTML for a URL, including request headers.
You can run this operation for a specific location, an edge server IP, or a Site Shield map.
To get the data for a location, you need to run the Get-EdgeDiagnosticsLocations
operation first to get the edgeLocationId
.
To run this operation for an IP, you need to run the Test-EdgeDiagnosticsIP
operation to verify if it belongs to an edge server. If you don't provide a location or an edge server IP, then Edge Diagnostics runs the operation using a random edge server IP.
Parameters
-AccountSwitchKey
Account switch key, for use when you have access to multiple accounts and need to specify which one to use. Account Switch Keys can be found using Get-AccountSwitchKey
.
Type: String
Parameter Sets: (All)
Aliases: None
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Body
Request body, either as a PSCustomObject or string. This parameter supports pipelining.
Type: Object
Parameter Sets: body
Aliases: None
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
-EdgeIP
IP address that belongs to edge server and you want to get the logs for.
Type: String
Parameter Sets: attributes-ip
Aliases: None
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-EdgeLocationID
Unique identifier for an edge server location closest to end users experiencing issues with the URL.
Type: String
Parameter Sets: attributes-location
Aliases: None
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-EdgeRCFile
EdgeRC file to authenticate your command. Defaults to ~/.edgerc
.
Type: String
Parameter Sets: (All)
Aliases: None
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-IPVersion
IP version for the Connectivity problems scenario to use to run cURL and MTR commands, either IPV4
or IPV6
.
Type: String
Parameter Sets: attributes-ip, attributes-location
Aliases:
Accepted values: IPV4, IPV6
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-RequestHeaders
Customized headers for the curl
request in the format header: value
.
The request includes Akamai Pragma headers by default.
Type: String
Parameter Sets: attributes-ip, attributes-location
Aliases: None
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-RunFromSiteshield
Runs Connectivity problems from a Site Shield map.
Type: SwitchParameter
Parameter Sets: attributes-ip, attributes-location
Aliases: None
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
-Section
EdgeRC section to retrieve authentication credentials from. Defaults to default
.
Type: String
Parameter Sets: (All)
Aliases: None
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-SpoofEdgeIP
IP of the edge server you want to serve traffic from.
Type: String
Parameter Sets: attributes-ip, attributes-location
Aliases: None
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-URL
Fully qualified URL you want to get the error statistics for.
You need to provide either this value or CPCode.
Type: String
Parameter Sets: attributes-ip, attributes-location
Aliases: None
Required: True
Position: Named
Default value: None
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.
Inputs
System.Object
Outputs
System.Object