< Back
Get-GDriveItemProperty
Post
NAME Get-GDriveItemProperty
SYNOPSIS
Get GoogleDrive Item properties (metadata)
SYNTAX
Get-GDriveItemProperty [-ID] <String> [-RevisionID <String>] [[-Property] <String[]>] -AccessToken <String>
[<CommonParameters>]
DESCRIPTION
Get GoogleDrive Item properties (metadata)
Standart properties (kind,id,name,mimeType) always present
PARAMETERS
-ID <String>
File ID to return metadata from
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-RevisionID <String>
File Revision ID to return property from (Version history)
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Property <String[]>
Properties to return
Required? false
Position? 2
Default value @()
Accept pipeline input? false
Accept wildcard characters? false
-AccessToken <String>
Access Token for request
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
Json with item metadata as PSObject
NOTES
Author: Max Kozlov
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Get-GDriveItemProperty -AccessToken $access_token -ID '0BAjkl4cBDNVpVbB5nGhKQ195aU0' -Property parents,
description, owners
RELATED LINKS
Get-GDriveItemContent
Set-GDriveItemProperty
Set-GDriveItemContent
https://developers.google.com/drive/api ... /files/get
https://developers.google.com/drive/api ... s#resource
https://developers.google.com/drive/api ... isions/get
SYNOPSIS
Get GoogleDrive Item properties (metadata)
SYNTAX
Get-GDriveItemProperty [-ID] <String> [-RevisionID <String>] [[-Property] <String[]>] -AccessToken <String>
[<CommonParameters>]
DESCRIPTION
Get GoogleDrive Item properties (metadata)
Standart properties (kind,id,name,mimeType) always present
PARAMETERS
-ID <String>
File ID to return metadata from
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-RevisionID <String>
File Revision ID to return property from (Version history)
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Property <String[]>
Properties to return
Required? false
Position? 2
Default value @()
Accept pipeline input? false
Accept wildcard characters? false
-AccessToken <String>
Access Token for request
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
Json with item metadata as PSObject
NOTES
Author: Max Kozlov
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Get-GDriveItemProperty -AccessToken $access_token -ID '0BAjkl4cBDNVpVbB5nGhKQ195aU0' -Property parents,
description, owners
RELATED LINKS
Get-GDriveItemContent
Set-GDriveItemProperty
Set-GDriveItemContent
https://developers.google.com/drive/api ... /files/get
https://developers.google.com/drive/api ... s#resource
https://developers.google.com/drive/api ... isions/get