BindTemplate
Binds a template to a specified instance, such as a group or stream.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vs:BindTemplate |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| TemplateId |
string |
Yes |
The ID of the template. |
323*****998-cn-qingdao |
| TemplateType |
string |
No |
The type of the template. Valid values:
|
record |
| InstanceId |
string |
Yes |
The ID of the instance. |
323*****994-cn-qingdao |
| InstanceType |
string |
Yes |
The type of the instance. Valid values:
|
group |
| ApplyAll |
boolean |
No |
Whether to apply the template to all streams in the scope. Default value: false. |
false |
| Replace |
boolean |
No |
Whether to replace an existing binding. Default value: false. |
false |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
BEA5625F-8FCF-48F4-851B-CA63946DA664 |
| InstanceId |
string |
The ID of the instance. |
323*****994-cn-qingdao |
| InstanceType |
string |
The type of the instance. |
group |
| TemplateId |
string |
The ID of the template. |
323*****998-cn-qingdao |
Examples
Success response
JSON format
{
"RequestId": "BEA5625F-8FCF-48F4-851B-CA63946DA664",
"InstanceId": "323*****994-cn-qingdao",
"InstanceType": "group",
"TemplateId": "323*****998-cn-qingdao"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.