Get external file

externalFile(input: ExternalStorageFileInput!): ExternalStorageFile!

Requires project.integrations.read.

Arguments

ArgumentTypeRequired
inputExternalStorageFileInput!Yes

Input fields

input

ExternalStorageFileInput

FieldTypeRequiredDescription
providerString!YesStorage provider accessed through the caller's own personal connection. A human caller is required; agent, run, and service-account credentials are refused.
projectReferenceStringNoProject ID or slug. Access is checked for the selected operation.
fileIdString!Yes

Response

Returns ExternalStorageFile!. Open the type for its fields and nested types.

FieldTypeDescription
idID!
providerString!Provider that stores the item: onedrive, sharepoint or drive.
nameString!
pathString!
mimeTypeString!
sizeBytesFloat!
kindString!
parentIdStringProvider ID of the parent folder, or null.

All fields of ExternalStorageFile.

Types marked with ! cannot be null. Lists use [Type] notation. The type index lists all published input and response types.

Example

graphql
query ExternalFile($input: ExternalStorageFileInput!) {
  externalFile(input: $input) {
    id
    name
    etag
    kind
    mimeType
  }
}
json
{
  "input": {
    "provider": "drive",
    "projectReference": "example-project",
    "fileId": "00000000-0000-4000-8000-000000000001"
  }
}