tencent cloud

Feedback

DescribeOrganizationNodes

Last updated: 2024-11-27 21:25:14

    1. API Description

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

    This API is used to get the list of organization nodes.

    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: DescribeOrganizationNodes.
    Version Yes String Common Params. The value used for this API: 2021-03-31.
    Region No String Common Params. This parameter is not required for this API.
    Limit Yes Integer Maximum number of returned results. Maximum value: 50.
    Offset Yes Integer Offset. Its value must be an integer multiple of the limit. Default value: 0.
    Tags.N No Array of Tag Department tag search list, with a maximum of 10.

    3. Output Parameters

    Parameter Name Type Description
    Total Integer Total number.
    Note: This field may return null, indicating that no valid values can be obtained.
    Items Array of OrgNode List details.
    Note: This field may return null, indicating that no valid values 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 Obtaining the Node List

    Input Example

    POST / HTTP/1.1
    Host: organization.intl.tencentcloudapi.com
    Content-Type: application/json
    X-TC-Action: DescribeOrganizationNodes
    <Common request parameters>
    
    {
        "Limit": 10,
        "Offset": 0
    }
    

    Output Example

    {
        "Response": {
            "Items": [
                {
                    "CreateTime": "2021-04-16 11:49:39",
                    "Name": "Root",
                    "NodeId": 26,
                    "ParentNodeId": 0,
                    "Remark": "",
                    "UpdateTime": "2021-04-16 11:49:39"
                },
                {
                    "CreateTime": "2021-04-16 14:59:57",
                    "Name": "test",
                    "NodeId": 27,
                    "ParentNodeId": 26,
                    "Remark": "test",
                    "UpdateTime": "2021-04-16 14:59:57"
                },
                {
                    "CreateTime": "2021-04-16 15:55:53",
                    "Name": "test1",
                    "NodeId": 29,
                    "ParentNodeId": 27,
                    "Remark": "1",
                    "UpdateTime": "2021-04-16 15:55:53"
                }
            ],
            "RequestId": "becff4cb-fe62-4288-ac6c-4fba115b94b3",
            "Total": 3
        }
    }
    

    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
    InternalError An internal error occurred.
    InvalidParameter The parameter is incorrect.
    ResourceNotFound.OrganizationNotExist The organization does not exist.