IntegrationsGoogle workspaceActions
Get Google Drive file metadata
Get Drive file metadata the connected principal can access. Never returns file content.
drive.files.get · Google Workspace · v1
Details
Scopes
https://www.googleapis.com/auth/drive.metadata.readonly
Input
| Name | Type | Required | Constraints |
|---|---|---|---|
(root) | object | Yes | additionalProperties false |
file_id | string | Yes | minLength 1; maxLength 256 |
Output
| Name | Type | Required | Constraints |
|---|---|---|---|
(root) | object | Yes | additionalProperties false |
id | string | Yes | minLength 1; maxLength 256 |
name | string | Yes | maxLength 512 |
mime_type | string | Yes | maxLength 256 |
parents | array<string> | No | maxItems 20 |
parents[] | string | Yes | maxLength 256 |
drive_id | string | No | maxLength 256 |
web_view_url | string | No | maxLength 2048 |
created_at | string | No | maxLength 64 |
updated_at | string | No | maxLength 64 |
trashed | boolean | No | — |
revision | string | No | maxLength 64 |
size_bytes | string | No | maxLength 32 |
client_side_encrypted | boolean | Yes | — |
Raw schema
Input
{
"type": "object",
"additionalProperties": false,
"properties": {
"file_id": {
"type": "string",
"minLength": 1,
"maxLength": 256
}
},
"required": [
"file_id"
]
}Output
{
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 256
},
"name": {
"type": "string",
"maxLength": 512
},
"mime_type": {
"type": "string",
"maxLength": 256
},
"parents": {
"type": "array",
"items": {
"type": "string",
"maxLength": 256
},
"maxItems": 20
},
"drive_id": {
"type": "string",
"maxLength": 256
},
"web_view_url": {
"type": "string",
"maxLength": 2048
},
"created_at": {
"type": "string",
"maxLength": 64
},
"updated_at": {
"type": "string",
"maxLength": 64
},
"trashed": {
"type": "boolean"
},
"revision": {
"type": "string",
"maxLength": 64
},
"size_bytes": {
"type": "string",
"maxLength": 32
},
"client_side_encrypted": {
"type": "boolean"
}
},
"required": [
"id",
"name",
"mime_type",
"client_side_encrypted"
]
}