Import-R1PrivateFile

SYNOPSIS

Uploads a private file for a data source.

SYNTAX

Import-R1PrivateFile [-name] <String> [-meta] <String> [-property] <String> [-Path] <String> [-WhatIf]
 [-Confirm] [<CommonParameters>]

DESCRIPTION

Uploads a file held privately against one property of a data source, such as a certificate or key a custom data source type needs. The file is sent as multipart form data.

EXAMPLES

Example 1

Import-R1PrivateFile -name 'mysource' -meta 'My Custom' -property 'certificate' -Path .\client.pem

Uploads a certificate against the certificate property of a data source.

PARAMETERS

-name

The name of the file.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-meta

The data source type the file belongs to.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 2
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-property

The property of the data source type the file is stored against.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 3
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-Path

The path of the local file to upload.

Type: String
Parameter Sets: (All)
Aliases: FullName

Required: True
Position: 4
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

Required: False
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

None

OUTPUTS

System.Void

NOTES

This command has not been exercised against a live deployment, so its behaviour rests on the published API definition alone.

Remove-R1PrivateFile

Get-R1DataSource