tencent cloud

TDSQL Boundless

Release Notes
Product Introduction
Overview
Scenarios
Product Architecture
Instance Types
Compatibility Notes
Usage specification recommendations
Kernel Features
Kernel Overview
Kernel Version Release Notes
Functionality Features
Performance Features
Billing
Billing Overview
Purchase Method
Pricing Details
Renewal
Overdue Payments
Refund
Getting Started
Creating an Instance
Connect to Instances
User Guide
Data Migration
Data Subscription
Instance Management
Parameter Configuration
Account Management
Security Group
Backup and Restoration
Database Auditing
Tag Management
Use Cases
Technical Evolution and Usage Practices of Online DDL
Lock Mechanism Analysis and Troubleshooting Practices
Data Intelligent Scheduling and Related Practices for Performance Optimization
TDSQL Boundless Selection Guide and Practical Tutorial
Developer Guide
Developer Guide (MySQL Compatibility Mode)
Developer Guide (HBase Compatibility Mode)
Performance Tuning
Performance Tuning Overview
SQL Tuning
DDL Tuning
Performance White Paper
Performance Overview
TPC-C Test
Sysbench Test
API Documentation
History
Introduction
API Category
Making API Requests
Instance APIs
Security Group APIs
Task APIs
Backup APIs
Rollback APIs
Parameter APIs
Database APIs
Data Types
Error Codes
General Reference
System Architecture
SQL Reference
Database Parameter Description
TPC-H benchmark data model reference
Error Code Information
Security and Compliance
FAQs
Agreements
Service Level Agreement
Terms of Service
Privacy Policy
Data Processing And Security Agreement
Contact Us
Glossary

ModifyDBInstanceSecurityGroups

PDF
포커스 모드
폰트 크기
마지막 업데이트 시간: 2026-03-13 18:56:39

1. API Description

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

This API is used to modify cloud database security groups.

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: ModifyDBInstanceSecurityGroups.
Version Yes String Common Params. The value used for this API: 2021-11-22.
Region Yes String Common Params. For more information, please see the list of regions supported by the product.
InstanceId Yes String Instance id.
SecurityGroupIds.N Yes Array of String Security group ID list to modify. an array of one or more security group ids.

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 Modify an Instance Security Group

Modify an Instance Security Group

Input Example

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

{
    "InstanceId": "tdsql3-be88fd7f",
    "SecurityGroupIds": [
        "sg-bbu5xxm3"
    ]
}

Output Example

{
    "Response": {
        "RequestId": "dab65c4d-b0c3-427f-b39e-3323606bba06"
    }
}

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.AddInstanceInfoFailed FailedOperation.AddInstanceInfoFailed
FailedOperation.AuthNoStrategy FailedOperation.AuthNoStrategy
FailedOperation.ClearInstanceInfoFailed FailedOperation.ClearInstanceInfoFailed
FailedOperation.DisassociateSecurityGroupsFailed FailedOperation.DisassociateSecurityGroupsFailed
FailedOperation.SetRuleLocationFailed FailedOperation.SetRuleLocationFailed
FailedOperation.UpdateInstanceInfoFailed FailedOperation.UpdateInstanceInfoFailed
InternalError.GetSecurityGroupDetailFailed InternalError.GetSecurityGroupDetailFailed
InternalError.InstanceOperatePermissionError InternalError.InstanceOperatePermissionError
InternalError.InstanceSGOverLimitError InternalError.InstanceSGOverLimitError
InternalError.ListInstanceRespResourceCountNotMatchError InternalError.ListInstanceRespResourceCountNotMatchError
InternalError.ListInstancesError InternalError.ListInstancesError
InternalError.QueryDatabaseFailed InternalError.QueryDatabaseFailed
InternalError.ReadDatabaseFailed InternalError.ReadDatabaseFailed
InternalError.SetSvcLocationFailed InternalError.SetSvcLocationFailed
InvalidParameter Parameter error.
InvalidParameter.IllegalParameterError InvalidParameter.IllegalParameterError
InvalidParameter.InstanceNotFound InvalidParameter.InstanceNotFound
InvalidParameter.PermissionDenied InvalidParameter.PermissionDenied
ResourceNotFound.ProductConfigNotExistedError ResourceNotFound.ProductConfigNotExistedError
ResourceUnavailable.InstanceStatusAbnormal ResourceUnavailable.InstanceStatusAbnormal
ResourceUnavailable.SGCheckFail ResourceUnavailable.SGCheckFail
UnauthorizedOperation.PermissionDenied UnauthorizedOperation.PermissionDenied

도움말 및 지원

문제 해결에 도움이 되었나요?

피드백