tencent cloud

Smart Media Hosting

Product Introduction
Product Overview
Feature Description
Product Strengths
Use Cases
Basic Concept
Purchase Guide
Quick Start
Create Media Library
Initiate request
Service Level API Document
History
Introduction
API Category
Making API Requests
PaaS Service APIs
Official Cloud Disk APIs
Data Types
Error Codes
Business Level API Document
Introduction
Access Token Operation API
Tenant Space Operation API
File Operation API
Directory or Album Operation API
Recycle Bin Operation API
Quota Operation API
Query Task Operation API
Search Operation API
Historical Version Operations API
Directory and File Batch Operation API
Collection Operation API
Error Codes
SDK Documentation
Android SDK
iOS SDK
HarmonyOS SDK
FAQs
Enterprise Network Disk
Product Introduction
Purchase Guide
Quick Start
FAQs
Service Level Agreement
Glossary

Query File Information Based on File ID

PDF
Mode fokus
Ukuran font
Terakhir diperbarui: 2026-01-07 14:15:09

Description

Query file information by file ID.

Request

Request Example

GET /api/v1/inode/`{LibraryId}`/`{SpaceId}`/`{INode}`?access_token=`{AccessToken}`

Request Parameter

Request parameters.
Description
Type
Required or Not
LibraryId
Media Library ID, obtain it after creating a media library in the media hosting console, see create media library
String
Yes
SpaceId
Space ID. If the media library is in single-tenant mode, this parameter is fixed as hyphen (`-`). If the media library is in multi-tenant mode, you must specify this parameter. For retrieval, see create tenant space.
String
No
INode
file ID. For retrieval, see view file details
String
Yes
AccessToken
Access token. For Public Read Media Library or tenant space, this parameter is not specified. Otherwise, you must specify this parameter. For retrieval, see generate access token
String
No

Request Body

Null

Response

Response code

Successful retrieval, returns HTTP 200 OK.

Response Body

application/json
Response body example:
{
"path": [ "folderA", "1.jpg" ],
"name": "1.jpg",
"type": "file",
"creationTime": "2020-09-22T07:44:45.000Z",
"modificationTime": "2020-09-22T07:44:45.000Z",
"contentType": "image/png",
"size": "1048576",
"crc64": "123"
}
Field description in the response body:
Response Parameters
Description
Type
path
File directory path
String Array
name
Directory Name
String
type
Directory Type:
dir: directory or album;
file: file, only used for file type media library
String
creationTime
Directory creation time
String
modificationTime
The time when the file was last overwritten, or the last time a subdirectory or file was added or removed in the directory
String
contentType
Media type (returned only for non-directory or non-album)
String
crc64
The CRC64-ECMA182 check value of the file, in string format to avoid precision issues (returned only for non-directory or non-album)
String
size
File directory size (returned only for non-directory or non-album)
String

Error Codes

This request operation has no special error messages. For common error messages, see Error Codes.

Bantuan dan Dukungan

Apakah halaman ini membantu?

masukan