Get-NotionDatabase

SYNOPSIS

Retrieves databases shared with the integration or a database with the ID specified.

SYNTAX

Get-NotionDatabase [-Token] <String> [[-DatabaseId] <String>] [[-PageSize] <String>] [[-StartCursor] <String>]
 [<CommonParameters>]

DESCRIPTION

The Get-NotionDatabase cmdlet retrieves databases shared with the integration. If an ID is specified it will return that database. The command returns an object of the found databases.

EXAMPLES

Example 1

PS C:\> Get-NotionDatabase -Token "yoursupersecrettokenvalue"

This command gets all databases shared tio the integration.

Example 2

PS C:\> Get-NotionDatabase -Token "yoursupersecrettokenvalue" -DatabaseId "9bd15f8d-8082-429b-82db-e6c4ea88413b"

This command gets the database that has an ID of 9bd15f8d-8082-429b-82db-e6c4ea88413b.

PARAMETERS

-DatabaseId

Specifies a string containing the ID of the database.

Type: String
Parameter Sets: (All)
Aliases:

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

-PageSize

Specifies an string containing the page size you want returned from the API. The maximum page size allowed currently is 100.

Type: String
Parameter Sets: (All)
Aliases:

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

-StartCursor

Specifies a string containing the start cursor of the next page you want to retrieve.

Type: String
Parameter Sets: (All)
Aliases:

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

-Token

Specifies a string containing the integration token value.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 0
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.Object

NOTES