tencent cloud

APIs

ModifyPayConfig

Download
Modo Foco
Tamanho da Fonte
Última atualização: 2026-09-01 10:34:29

1. API Description

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

Modify the auto-scaling configuration (multi-module and expandable; only the CWP module is available in the current period).

Auto-scaling is an external user-oriented concept equivalent to automatic purchase (auto_repurchase) at the underlying layer: when an account has new assets, the desired authorization is automatically purchased.

Supplemental description:

  1. In the current period, only the HostConfig module is implemented for host security. Subsequent scalability allows named module fields for container security and AI-Agent security. Configuration fields of each module can be heterogeneous.
  2. Partial update semantics: An empty module object indicates that the module is not modified, and an empty field in the module indicates that this field is not modified;
  3. HostConfig.Switch linkage map: auto_repurchase_switch; auto_bind_switch is always on and not modified by this API.
  4. Auto renewal (renew_flag) is not modified by this API; to query the limit/amount, call DescribeLicenseStatus.
  5. The top auto scaling global switch state is aggregated by the frontend based on each module switch. The backend does not store or return the global switch.

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: ModifyPayConfig.
Version Yes String Common Params. The value used for this API: 2022-11-21.
Region No String Common Params. This parameter is not required.
HostConfig No HostAutoScaleConfig Auto-scaling configuration for the CWP module
Supplemental description: if not passed, host configuration will not be modified. At least this module is required for the current period. Named module fields like ContainerConfig / AIAgentConfig can be added for subsequent scalability.

3. Output Parameters

Parameter Name Type Description
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 Enable host auto-scaling and choose the flagship edition

Billing configuration pop-up window enables host auto-scaling and choose flagship edition

Input Example

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

{
    "HostConfig": {
        "Switch": "ON",
        "ProtectType": "ULTIMATE"
    }
}

Output Example

{
    "Response": {
        "RequestId": "5cd96106-1d72-466c-9bcf-9876543210ab"
    }
}

Example2 Disable automatic scaling for the host

Billing configuration pop-up window disables host auto-scaling

Input Example

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

{
    "HostConfig": {
        "Switch": "OFF"
    }
}

Output Example

{
    "Response": {
        "RequestId": "d479fbf3-9840-4dd3-c5f9-9f5395ba4c52"
    }
}

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