tencent cloud

文档反馈

GetFileInfo

最后更新时间:2024-06-21 15:12:08

1. API Description

Domain name for API request: wedata.tencentcloudapi.com.

Development Space - Obtain data development script information

A maximum of 20 requests can be initiated per second for this API.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.

Parameter Name Required Type Description
Action Yes String Common Params. The value used for this API: GetFileInfo.
Version Yes String Common Params. The value used for this API: 2021-08-20.
Region Yes String Common Params. For more information, please see the list of regions supported by the product.
ProjectId Yes String Project ID
FilePath Yes String File pathProject Area 1470575647377821696 project, in directory f1: /datastudio/project/1470575647377821696/f1/sql1234.sql Personal Area: /datastudio/personal/sqlTTT.sql

3. Output Parameters

Parameter Name Type Description
UserFileInfo UserFileInfo Current Script Information
Note: This field may return null, indicating that no valid value can be obtained.
RequestId String The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.

4. Example

Example1 Development Space - Obtain data development script information

Development Space - Obtain data development script information

Input Example

POST / HTTP/1.1
Host: wedata.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: GetFileInfo
<Common request parameters>

{
    "ProjectId": "1486804694126882816",
    "FilePath": "/datastudio/project/1486804694126882816/hui/111.sql"
}

Output Example

{
    "Response": {
        "RequestId": "915a8a1f-04d8-463c-9687-9bd3a696b7ce",
        "UserFileInfo": {
            "Bucket": "wedata-fusion-dev-1257305158",
            "CreateTime": "2023-05-18 20:24:32",
            "DeleteName": null,
            "DeleteOwner": null,
            "ExtraInfo": [
                {
                    "ParamKey": "DatasourceType",
                    "ParamValue": "HIVE"
                },
                {
                    "ParamKey": "DatasourceId",
                    "ParamValue": "8445"
                },
                {
                    "ParamKey": "GroupId",
                    "ParamValue": ""
                },
                {
                    "ParamKey": "ResourceQueue",
                    "ParamValue": "root.default"
                },
                {
                    "ParamKey": "ComputeResource",
                    "ParamValue": ""
                },
                {
                    "ParamKey": "DatabaseName",
                    "ParamValue": ""
                },
                {
                    "ParamKey": "ConfParams",
                    "ParamValue": "&&&ResourceConfParams=&&&}}"
                }
            ],
            "FileExtensionType": "sql",
            "FileName": "111.sql",
            "LocalPath": "/datastudio/project/hui/111.sql",
            "LocalTempPath": null,
            "Md5Value": null,
            "Operator": null,
            "OperatorName": null,
            "Owner": "100028579427",
            "OwnerName": "hhhuilli",
            "PathDepth": 4,
            "ProjectId": "1486804694126882816",
            "Region": "ap-nanjing",
            "RemotePath": "/datastudio/project/1486804694126882816/hui/111.sql",
            "ResourceId": "3adddc91-21e2-494d-a207-1ee4c70d77f4",
            "Size": null,
            "Type": "project",
            "UpdateTime": "2023-05-18 20:25:55",
            "ZipPath": null
        }
    }
}

5. Developer Resources

SDK

TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

Command Line Interface

6. Error Code

The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.

Error Code Description
FailedOperation Operation Failure.