tencent cloud

Tencent Cloud WeData

ListCodePermissions

PDF
Modo Foco
Tamanho da Fonte
Última atualização: 2026-03-02 12:26:36

1. API Description

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

View CodeStudio entity permission.

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: ListCodePermissions.
Version Yes String Common Params. The value used for this API: 2025-08-06.
Region Yes String Common Params. For more information, please see the list of regions supported by the product.
ProjectId Yes String Project ID.
PageNumber Yes Integer Page number, which is 1 by default.
PageSize Yes Integer Number of returned results. the default is 20, and the maximum value is 100. requirements: 500, 1000 or more.
Resource Yes ExploreFileResource Authorized resources.
Users.N No Array of String User filtering criteria.

3. Output Parameters

Parameter Name Type Description
Data ExploreFilePermissionsPage Permission list
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 Query File Permission List

Input Example

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

{
    "ProjectId": "1464962169590902784",
    "PageNumber": 1,
    "PageSize": 10,
    "Resource": {
        "ResourceType": "script",
        "ResourceId": "fcec3d4e-e099-4c26-9154-0745ee1a9895",
        "ResourceIdForPath": "/cc1c8732-d398-43f8-b5cf-6e66b8258208/fcec3d4e-e099-4c26-9154-0745ee1a9895"
    }
}

Output Example

{
    "Response": {
        "Data": {
            "PageNumber": 1,
            "PageSize": 10,
            "Rows": [
                {
                    "DeleteAble": false,
                    "Privileges": [
                        "CAN_MANAGE"
                    ],
                    "Resource": {
                        "ResourceId": "fcec3d4e-e099-4c26-9154-0745ee1a9895",
                        "ResourceIdForPath": null,
                        "ResourceType": "script"
                    },
                    "RoleId": "308335260274237440",
                    "RoleType": "role"
                }
            ],
            "TotalCount": 3,
            "TotalPageNumber": null
        },
        "RequestId": "5eca8af5-9747-49fe-bf13-148444fa24ee"
    }
}

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

There is no error code related to the API business logic. For other error codes, please see Common Error Codes.

Ajuda e Suporte

Esta página foi útil?

comentários