tencent cloud

文档反馈

DescribeInstanceParams

最后更新时间:2024-11-26 16:33:03

    1. API Description

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

    This API is used to query the parameter list of an instance.

    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: DescribeInstanceParams.
    Version Yes String Common Params. The value used for this API: 2018-03-28.
    Region Yes String Common Params. For more information, please see the list of regions supported by the product.
    InstanceId Yes String Instance ID in the format of mssql-dj5i29c5n. It is the same as the instance ID displayed in the TencentDB console and the response parameter InstanceId of the DescribeDBInstances API.

    3. Output Parameters

    Parameter Name Type Description
    TotalCount Integer Total number of instance parameters
    Items Array of ParameterDetail Parameter details
    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 Querying the configurable parameter list of an instance

    Input Example

    https://sqlserver.intl.tencentcloudapi.com/?Action=DescribeInstanceParams
    &InstanceId=mssql-bm5e51kb
    &<Common request parameters>
    

    Output Example

    {
        "Response": {
            "Items": [
                {
                    "CurrentValue": "24",
                    "Default": "0",
                    "Description": "The fill-factor option is provided for fine-tuning index data storage and performance.",
                    "EnumValue": [],
                    "Max": 100,
                    "Min": 0,
                    "Name": "fill factor(%)",
                    "NeedReboot": 1,
                    "ParamType": "integer",
                    "Status": 0
                },
                {
                    "CurrentValue": "0",
                    "Default": "0",
                    "Description": "The max worker threads option configures the number of worker threads that are available SQL Server-wide to process query requests, login, logout, and similar application requests.",
                    "EnumValue": [
                        "0"
                    ],
                    "Max": 32767,
                    "Min": 336,
                    "Name": "max worker threads",
                    "NeedReboot": 1,
                    "ParamType": "integer",
                    "Status": 0
                },
                {
                    "CurrentValue": "30000",
                    "Default": "5",
                    "Description": "The cost threshold for parallelism option specifies the threshold at which SQL Server creates and runs parallel plans for queries.",
                    "EnumValue": [],
                    "Max": 32767,
                    "Min": 0,
                    "Name": "cost threshold for parallelism",
                    "NeedReboot": 1,
                    "ParamType": "integer",
                    "Status": 0
                },
                {
                    "CurrentValue": "1024",
                    "Default": "0",
                    "Description": "The degree of parallelism sets the number of processors employed to run a single statement, for each parallel plan execution. ",
                    "EnumValue": [],
                    "Max": 1024,
                    "Min": 0,
                    "Name": "max degree of parallelism",
                    "NeedReboot": 1,
                    "ParamType": "integer",
                    "Status": 0
                },
                {
                    "CurrentValue": "0",
                    "Default": "0",
                    "Description": "The optimize for ad hoc workloads option is used to improve the efficiency of the plan cache for workloads that contain many single use ad hoc batches.",
                    "EnumValue": [
                        "0",
                        "1"
                    ],
                    "Max": 0,
                    "Min": 0,
                    "Name": "optimize for ad hoc workloads",
                    "NeedReboot": 1,
                    "ParamType": "enum",
                    "Status": 0
                },
                {
                    "CurrentValue": "1024",
                    "Default": "0",
                    "Description": "This option changes the amount of memory the SQL Server Memory Manager can allocate to a SQL Server process.",
                    "EnumValue": [],
                    "Max": 2560,
                    "Min": 0,
                    "Name": "min server memory(MB)",
                    "NeedReboot": 1,
                    "ParamType": "integer",
                    "Status": 0
                },
                {
                    "CurrentValue": "23",
                    "Default": "0",
                    "Description": "Use the blocked process threshold option to specify the threshold, in seconds, at which blocked process reports are generated.",
                    "EnumValue": [],
                    "Max": 86400,
                    "Min": 0,
                    "Name": "blocked process threshold(s)",
                    "NeedReboot": 1,
                    "ParamType": "integer",
                    "Status": 0
                }
            ],
            "RequestId": "8c2fa1ec-7e13-4a2b-ba20-4d5ef93047ad",
            "TotalCount": 7
        }
    }
    

    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
    AuthFailure CAM signature/authentication error
    FailedOperation.GcsError The operation failed or the network timed out.
    InternalError.DBError Database error
    InternalError.GcsError GCS API error.
    InternalError.SystemError System error.
    ResourceNotFound.InstanceNotFound The instance does not exist.
    ResourceNotFound.ParamsNotFound Parameter not found.
    ResourceUnavailable.InstanceStatusInvalid Invalid instance status.
    UnauthorizedOperation The operation is unauthorized.
    UnauthorizedOperation.PermissionDenied CAM authentication error.