Delen via


New-AzCosmosDBSqlIncludedPath

Hiermee maakt u een nieuw object van het type PSIncludedPath. Het kan worden doorgegeven als een parameterwaarde voor Set-AzCosmosDBSqlContainer.

Syntax

New-AzCosmosDBSqlIncludedPath
   [-Path <String>]
   [-Index <PSIndexes[]>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

Object dat overeenkomt met het IncludedPath van sql-API.

Voorbeelden

Voorbeeld 1

$index1 = New-AzCosmosDBSqlIncludedPathIndex -DataType String -Precision -1 -Kind Hash
$index2 = New-AzCosmosDBSqlIncludedPathIndex -DataType String -Precision -1 -Kind Hash

New-AzCosmosDBSqlIncludedPath -Path "/*" -Index $index1,$index2

Path Indexes
---- -------
/*   {Microsoft.Azure.Commands.CosmosDB.Models.PSIndexes,Microsoft.Azure.Commands.CosmosDB.Models.PSIndexes}

Parameters

-DefaultProfile

De referenties, accounts, tenants en abonnementen die worden gebruikt voor communicatie met Azure.

Type:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
standaardwaarde:None
Vereist:False
Accept pipeline input:False
Accept wildcard characters:False

-Index

Lijst met indexen voor dit pad

Type:PSIndexes[]
Position:Named
standaardwaarde:None
Vereist:False
Accept pipeline input:False
Accept wildcard characters:False

-Path

Het pad waarop het indexeringsgedrag van toepassing is. Indexpaden beginnen meestal met de hoofdmap en eindigen met jokertekens (/pad/*)

Type:String
Position:Named
standaardwaarde:None
Vereist:False
Accept pipeline input:False
Accept wildcard characters:False

Invoerwaarden

None

Uitvoerwaarden

PSIncludedPath