BatchBindTemplates
Binds multiple templates in a single operation.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vs:BatchBindTemplates |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| TemplateId |
string |
Yes |
The template ID. |
323*****998-cn-qingdao |
| TemplateType |
string |
No |
The template type. Valid values:
|
timeshift |
| InstanceId |
string |
Yes |
The instance ID. |
323*****994-cn-qingdao |
| InstanceType |
string |
Yes |
The instance type. Valid values:
|
stream |
| ApplyAll |
boolean |
No |
Specifies whether to apply the template to all streams in the scope. The default value is false. |
false |
| Replace |
boolean |
No |
Specifies whether to replace existing bindings. The default value is false. |
true |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
20D0DFCE-5DB7-5D83-BD82-8482F2327636 |
| Results |
array<object> |
A list of results. |
|
|
object |
Bindings |
||
| Error |
string |
The error message. Note
This parameter is returned only when the operation fails. |
some error |
| InstanceId |
string |
The instance ID. |
323*****994-cn-qingdao |
| InstanceType |
string |
The instance type. |
group |
| TemplateId |
string |
The template ID. |
323*****998-cn-qingdao |
Examples
Success response
JSON format
{
"RequestId": "20D0DFCE-5DB7-5D83-BD82-8482F2327636",
"Results": [
{
"Error": "some error",
"InstanceId": "323*****994-cn-qingdao\t",
"InstanceType": "group",
"TemplateId": "323*****998-cn-qingdao\t"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.