New-R1DataSourceTypeImportMeta

SYNOPSIS

Adds a template to an upload session.

SYNTAX

New-R1DataSourceTypeImportMeta [-importId] <String> [-DataSourceType] <Object> [-WhatIf] [-Confirm]
 [<CommonParameters>]

DESCRIPTION

Adds a template definition to an upload session, before the session is imported.

EXAMPLES

Example 1

$Template = Get-R1DataSourceTypeImportMeta -importId $Session.id -name 'My Custom'
$Template.name = 'My Custom Copy'
New-R1DataSourceTypeImportMeta -importId $Session.id -DataSourceType $Template

Adds a copy of a staged template, under another name, to the same staged import.

PARAMETERS

-importId

The identifier of the upload session, as returned by Import-R1DataSourceType.

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

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

-DataSourceType

The complete template definition.

Type: Object
Parameter Sets: (All)
Aliases:

Required: True
Position: 2
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

psRadiantOne.DataSourceType

NOTES

Get-R1DataSourceTypeImportMeta

Set-R1DataSourceTypeImportMeta