Domain name for API request: vpc.intl.tencentcloudapi.com.
This API is used to add a parameter template of the IP address, protocol port, IP address group, or protocol port group type.
A maximum of 20 requests can be initiated per second for this API.
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: AddTemplateMember. |
| Version | Yes | String | Common Params. The value used for this API: 2017-03-12. |
| Region | Yes | String | Common Params. For more information, please see the list of regions supported by the product. This API only supports: ap-bangkok, ap-beijing, ap-chengdu, ap-chongqing, ap-guangzhou, ap-hongkong, ap-jakarta, ap-nanjing, ap-seoul, ap-shanghai, ap-shanghai-fsi, ap-shenzhen-fsi, ap-singapore, ap-tokyo, eu-frankfurt, na-ashburn, na-siliconvalley, sa-saopaulo. |
| TemplateId | Yes | String | Parameter template instance ID, which can be the instance ID of a parameter template of the following four types: IP address, protocol port, IP address group, and protocol port group. |
| TemplateMember.N | Yes | Array of MemberInfo | Information on the parameter template to be added. The template can be of the following four types: IP address, protocol port, IP address group, and protocol port group. The type should be consistent with that of the template specified by the TemplateId parameter. |
| 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. |
https://vpc.intl.tencentcloudapi.com/?Action=AddTemplateMember
&TemplateId=ipm-88t6207k
&TemplateMember.0.Member=10.0.0.1
&TemplateMember.0.Description=demo
&TemplateMember.1.Member=172.20.0.1/24
&<Common request parameters>{
"Response": {
"RequestId": "ba7c7681-e051-469a-b0fc-210a373490a4"
}
}
https://vpc.intl.tencentcloudapi.com/?Action=AddTemplateMember
&TemplateId=ipmg-dih8xdbq
&TemplateMember.0.Member=ipm-88t6207k
&TemplateMember.0.Description=demo
&TemplateMember.1.Member=ipm-mdunqeb6
&<Common request parameters>{
"Response": {
"RequestId": "ba7c7681-e051-469a-b0fc-210a373490a4"
}
}
https://vpc.intl.tencentcloudapi.com/?Action=AddTemplateMember
&TemplateId=ppm-6zwa44xm
&TemplateMember.0.Member=TCP:80
&TemplateMember.0.Description=demo
&TemplateMember.1.Member=TCP:443
&<Common request parameters>{
"Response": {
"RequestId": "ba7c7681-e051-469a-b0fc-210a373490a4"
}
}
https://vpc.intl.tencentcloudapi.com/?Action=AddTemplateMember
&TemplateId=ppmg-ms7c7gcr
&TemplateMember.0.Member=ppm-6zwa44xm
&TemplateMember.0.Description=demo
&TemplateMember.1.Member=ppm-4tw1bxlq
&<Common request parameters>{
"Response": {
"RequestId": "ba7c7681-e051-469a-b0fc-210a373490a4"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
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. |
| InvalidParameterValue | The parameter value is invalid. |
| InvalidParameterValue.Duplicate | The input parameter already exists. |
| InvalidParameterValue.Malformed | Invalid input parameter format. |
| InvalidParameterValue.TooLong | Invalid parameter value. The parameter value is too long. |
| LimitExceeded | Quota limit is reached. |
| ResourceNotFound | The resource does not exist. |
| UnsupportedOperation.MutexOperationTaskRunning | The resource mutual exclusion operation is being executed. |
文档反馈