tencent cloud

文档反馈

DescribeInstances

最后更新时间:2024-11-27 09:47:15

1. API Description

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

Query detailed information of all user instances

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: DescribeInstances.
Version Yes String Common Params. The value used for this API: 2018-01-25.
Region Yes String Common Params. For more information, please see the list of regions supported by the product. This API only supports: ap-guangzhou, ap-seoul, ap-singapore.
Offset Yes Integer Offset.
Limit Yes Integer Capacity
Filters.N No Array of FiltersItemNew Filter array
FreeDelayFlag No Integer Deletion delay flag.

3. Output Parameters

Parameter Name Type Description
Total Integer Total number
Instances Array of InstanceInfo Instance 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 detailed information of all user instances

Query detailed information of all user instances

Input Example

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



{
    "Offset": 1,
    "Limit": 20,
    "Filters": [
        {
            "Name": "Edition",
            "Values": [],
            "ExactMatch": true
        },
        {
            "Name": "Region",
            "Values": [
                "ap-beijing",
                "ap-guangzhou"
            ],
            "ExactMatch": true
        },
        {
            "Name": "InstanceName",
            "Values": [
                "Instance"
            ],
            "ExactMatch": false
        },
        {
            "Name": "InstanceId",
            "Values": [
                "waf"
            ],
            "ExactMatch": false
        }
    ]
}

Output Example

{
    "Response": {
        "RequestId": "d206a27c-2c9c-4ac8-a9e0-6cdf4703247c",
        "Total": 2,
        "Instances": [
            {
                "AppId": 87524381,
                "InstanceId": "waf_2kw60zgy0908e8j3",
                "InstanceName": "广州双栈集群企业版",
                "ResourceIds": "waf_2kw60zgy0908e8j3",
                "Edition": "sparta-waf",
                "Region": "gz",
                "PayMode": 1,
                "Status": 0,
                "RenewFlag": 1,
                "AttackLogPost": 1,
                "Level": 3,
                "ElasticBilling": 100000,
                "ValidTime": "2024-11-01 15:27:23",
                "BeginTime": "2022-09-01 15:27:23",
                "SubDomainLimit": 30,
                "MainDomainLimit": 3,
                "APISecurity": 1,
                "IsAPISecurityTrial": 0,
                "BillingItem": "sv_wsm_waf_package_enterprise",
                "FreeDelayFlag": 0,
                "Mode": 1,
                "DomainCount": 19,
                "MainDomainCount": 3,
                "MaxQPS": 50,
                "MaxBandwidth": 203021,
                "QPS": {
                    "ResourceIds": "waf_2kw60zgy0908e8j3_qps",
                    "ValidTime": "2024-11-01 15:27:23",
                    "RenewFlag": 0,
                    "Count": 0,
                    "Region": "gz",
                    "BillingItem": "sv_wsm_waf_package_enterprise"
                },
                "BotQPS": {
                    "ResourceIds": "waf_2kw60zgy0908e8j3_0_botqps",
                    "ValidTime": "2024-11-01 15:27:23",
                    "Count": 0,
                    "Region": "gz",
                    "MaxBotQPS": 50,
                    "RenewFlag": 0
                },
                "DomainPkg": {
                    "ResourceIds": "waf_2kw60zgy0908e8j3_domain",
                    "ValidTime": "2024-11-01 15:27:23",
                    "RenewFlag": 0,
                    "Count": 1,
                    "Region": "gz"
                },
                "BotPkg": {
                    "ResourceIds": "waf_2kw60zgy0908e8j3_0_bot",
                    "Status": 1,
                    "Region": 1,
                    "BeginTime": "2022-01-05 15:38:04",
                    "EndTime": "2025-01-15 15:38:04",
                    "Type": "sv_wsm_waf_scene_bot",
                    "InquireNum": 1,
                    "UsedNum": 0,
                    "RenewFlag": 0,
                    "BotCPWaf": 0,
                    "BotNPWaf": 0,
                    "IsBotTrial": 0
                },
                "FraudPkg": {
                    "ResourceIds": "waf_2kw60zgy0908e8j3_0_fraud",
                    "Status": 1,
                    "Region": 1,
                    "BeginTime": "2024-06-19 19:22:59",
                    "EndTime": "2024-11-01 19:22:59",
                    "InquireNum": 5000,
                    "UsedNum": 37,
                    "RenewFlag": 1
                },
                "MajorEventsPkg": {
                    "ResourceIds": "waf_2kw60zgy0908e8j3_0_major_events",
                    "Status": 1,
                    "Region": 1,
                    "BeginTime": "2024-05-16 16:57:16",
                    "EndTime": "2024-08-16 16:57:16",
                    "InquireNum": 1000,
                    "UsedNum": 0,
                    "BillingItem": "sv_wsm_waf_scene_major_events_basic",
                    "RenewFlag": 0,
                    "HWState": 3
                },
                "HybridPkg": {
                    "ResourceIds": "waf_2kw60zgy0908e8j3_0_hcn",
                    "Status": 0,
                    "Region": 0,
                    "BeginTime": "2024-05-16 16:57:16",
                    "EndTime": "2024-08-16 16:57:16",
                    "InquireNum": 0,
                    "UsedNum": 0,
                    "RenewFlag": 0
                },
                "ApiPkg": {
                    "ResourceIds": "waf_2kw60zgy0908e8j3_0_api",
                    "Status": 1,
                    "Region": 1,
                    "BeginTime": "2024-04-23 00:01:51",
                    "EndTime": "2024-11-01 00:01:51",
                    "InquireNum": 1,
                    "UsedNum": 0,
                    "BillingItem": "sv_wsm_waf_scene_ent",
                    "RenewFlag": 1,
                    "IsAPISecurityTrial": 0
                },
                "MiniPkg": {
                    "ResourceIds": "waf_2kw60zgy0908e8j3_1_mini",
                    "Status": 1,
                    "Region": 1,
                    "BeginTime": "2024-04-11 11:31:01",
                    "EndTime": "2024-11-01 11:31:01",
                    "Count": 5,
                    "BillingItem": "sv_wsm_waf_scene_mini",
                    "RenewFlag": 1
                },
                "MiniExtendPkg": {
                    "ResourceIds": "waf_2kw60zgy0908e8j3_0_mini_extend",
                    "Status": 1,
                    "Region": 1,
                    "BeginTime": "2024-05-30 23:35:08",
                    "EndTime": "2024-11-01 23:35:08",
                    "Count": 1,
                    "BillingItem": "sv_wsm_waf_exp_exp",
                    "RenewFlag": 1
                },
                "QpsStandard": 105000,
                "BandwidthStandard": 2600,
                "SandboxQps": 115000,
                "LastQpsExceedTime": "2024-11-01 23:35:08",
                "MiniQpsStandard": 473500,
                "MiniMaxQPS": 1
            },
            {
                "AppId": 87524381,
                "InstanceId": "waf_2kuil2fm02vqm7z3",
                "InstanceName": "gz-Default1",
                "ResourceIds": "waf_2kuil2fm02vqm7z3",
                "Edition": "clb-waf",
                "Region": "cd,cq,gz,bj",
                "PayMode": 1,
                "Status": 0,
                "RenewFlag": 1,
                "AttackLogPost": 1,
                "Level": 3,
                "ElasticBilling": 2510000,
                "ValidTime": "2024-11-28 16:35:25",
                "BeginTime": "2021-09-17 16:35:25",
                "SubDomainLimit": 130,
                "MainDomainLimit": 13,
                "APISecurity": 1,
                "IsAPISecurityTrial": 0,
                "BillingItem": "sv_wsm_waf_package_enterprise_clb",
                "FreeDelayFlag": 0,
                "Mode": 0,
                "DomainCount": 24,
                "MainDomainCount": 6,
                "MaxQPS": 24,
                "MaxBandwidth": 52091,
                "QPS": {
                    "ResourceIds": "waf_2kuil2fm02vqm7z3_qps",
                    "ValidTime": "2024-11-18 21:22:10",
                    "RenewFlag": 1,
                    "Count": 1000,
                    "Region": "gz",
                    "BillingItem": "sv_wsm_waf_qps_ep_clb"
                },
                "BotQPS": {
                    "ResourceIds": "waf_2kuil2fm02vqm7z3_0_botqps",
                    "ValidTime": "2024-11-01 15:27:23",
                    "Count": 0,
                    "Region": "gz",
                    "MaxBotQPS": 50,
                    "RenewFlag": 0
                },
                "DomainPkg": {
                    "ResourceIds": "waf_2kw60zgy0908e8j3_domain",
                    "ValidTime": "2024-11-01 15:27:23",
                    "RenewFlag": 0,
                    "Count": 1,
                    "Region": "gz"
                },
                "BotPkg": {
                    "ResourceIds": "waf_2kuil2fm02vqm7z3_0_bot",
                    "Status": 1,
                    "Region": 1,
                    "BeginTime": "2022-01-05 15:38:04",
                    "EndTime": "2022-01-15 15:38:04",
                    "Type": "sv_wsm_waf_scene_bot",
                    "InquireNum": 1,
                    "UsedNum": 0,
                    "RenewFlag": 0,
                    "BotCPWaf": 0,
                    "BotNPWaf": 0,
                    "IsBotTrial": 0
                },
                "FraudPkg": {
                    "ResourceIds": "waf_2kuil2fm02vqm7z3_0_fraud",
                    "Status": 1,
                    "Region": 1,
                    "BeginTime": "2024-06-19 19:22:59",
                    "EndTime": "2024-11-01 19:22:59",
                    "InquireNum": 5000,
                    "UsedNum": 37,
                    "RenewFlag": 1
                },
                "MajorEventsPkg": {
                    "ResourceIds": "waf_2kuil2fm02vqm7z3_0_major_events",
                    "Status": 1,
                    "Region": 1,
                    "BeginTime": "2024-05-16 16:57:16",
                    "EndTime": "2024-08-16 16:57:16",
                    "InquireNum": 1000,
                    "UsedNum": 0,
                    "BillingItem": "sv_wsm_waf_scene_major_events_basic",
                    "RenewFlag": 0,
                    "HWState": 3
                },
                "HybridPkg": {
                    "ResourceIds": "waf_2kuil2fm02vqm7z3_0_hcn",
                    "Status": 0,
                    "Region": 1,
                    "BeginTime": "2023-09-29 11:16:20",
                    "EndTime": "2024-09-29 11:16:20",
                    "InquireNum": 1,
                    "UsedNum": 0,
                    "RenewFlag": 0
                },
                "ApiPkg": {
                    "ResourceIds": "waf_2kuil2fm02vqm7z3_api",
                    "Status": 1,
                    "Region": 1,
                    "BeginTime": "2023-11-06 20:34:31",
                    "EndTime": "2024-11-18 16:35:25",
                    "InquireNum": 1,
                    "UsedNum": 0,
                    "BillingItem": "sv_wsm_waf_scene_cent",
                    "RenewFlag": 1,
                    "IsAPISecurityTrial": 0
                },
                "MiniPkg": {
                    "ResourceIds": "waf_2kuil2fm02vqm7z3_1_mini",
                    "Status": 1,
                    "Region": 1,
                    "BeginTime": "2024-04-11 11:31:01",
                    "EndTime": "2024-11-01 11:31:01",
                    "Count": 5,
                    "BillingItem": "sv_wsm_waf_scene_mini",
                    "RenewFlag": 1
                },
                "MiniExtendPkg": {
                    "ResourceIds": "waf_2kuil2fm02vqm7z3_0_mini_extend",
                    "Status": 1,
                    "Region": 1,
                    "BeginTime": "2024-05-30 23:35:08",
                    "EndTime": "2024-11-01 23:35:08",
                    "Count": 1,
                    "BillingItem": "sv_wsm_waf_exp_exp",
                    "RenewFlag": 1
                },
                "QpsStandard": 11000,
                "BandwidthStandard": 350,
                "SandboxQps": 18000,
                "LastQpsExceedTime": "2024-11-01 23:35:08",
                "MiniQpsStandard": 0,
                "MiniMaxQPS": 0
            }
        ]
    }
}

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.
DryRunOperation DryRun operation means the request will be successful, but the DryRun parameter is passed.
FailedOperation Operation failed.
InternalError Internal error.
InvalidParameter Parameter error.
InvalidParameter.InvalidCertificate Invalid certificate content.
InvalidParameter.QueryCertBySSLIDFailed Failed to query certificate by ID.
InvalidParameterValue Invalid parameter value.
LimitExceeded The quota limit is exceeded.
MissingParameter Parameters are missing
OperationDenied Operation denied.
RequestLimitExceeded Too frequent requests
ResourceInUse Resources are occupied.
ResourceInsufficient Insufficient resources.
ResourceNotFound Resources do not exist.
ResourceUnavailable Resources are unavailable.
ResourcesSoldOut Resources are sold out.
UnauthorizedOperation Unauthorized operation.
UnknownParameter Unknown parameter.
UnsupportedOperation The operation is not supported.
联系我们

联系我们,为您的业务提供专属服务。

技术支持

如果你想寻求进一步的帮助,通过工单与我们进行联络。我们提供7x24的工单服务。

7x24 电话支持