tencentcloud 1.82.34 published on Wednesday, Nov 5, 2025 by tencentcloudstack
tencentcloud.getTsfUnitRules
Start a Neo task
Explain and create a tencentcloud.getTsfUnitRules resource
tencentcloud 1.82.34 published on Wednesday, Nov 5, 2025 by tencentcloudstack
Use this data source to query detailed information of tsf unit_rules
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const unitRules = tencentcloud.getTsfUnitRules({
gatewayInstanceId: "gw-ins-lvdypq5k",
status: "disabled",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
unit_rules = tencentcloud.get_tsf_unit_rules(gateway_instance_id="gw-ins-lvdypq5k",
status="disabled")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.LookupTsfUnitRules(ctx, &tencentcloud.LookupTsfUnitRulesArgs{
GatewayInstanceId: "gw-ins-lvdypq5k",
Status: pulumi.StringRef("disabled"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var unitRules = Tencentcloud.GetTsfUnitRules.Invoke(new()
{
GatewayInstanceId = "gw-ins-lvdypq5k",
Status = "disabled",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TencentcloudFunctions;
import com.pulumi.tencentcloud.inputs.GetTsfUnitRulesArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var unitRules = TencentcloudFunctions.getTsfUnitRules(GetTsfUnitRulesArgs.builder()
.gatewayInstanceId("gw-ins-lvdypq5k")
.status("disabled")
.build());
}
}
variables:
unitRules:
fn::invoke:
function: tencentcloud:getTsfUnitRules
arguments:
gatewayInstanceId: gw-ins-lvdypq5k
status: disabled
Using getTsfUnitRules
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getTsfUnitRules(args: GetTsfUnitRulesArgs, opts?: InvokeOptions): Promise<GetTsfUnitRulesResult>
function getTsfUnitRulesOutput(args: GetTsfUnitRulesOutputArgs, opts?: InvokeOptions): Output<GetTsfUnitRulesResult>def get_tsf_unit_rules(gateway_instance_id: Optional[str] = None,
id: Optional[str] = None,
result_output_file: Optional[str] = None,
status: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetTsfUnitRulesResult
def get_tsf_unit_rules_output(gateway_instance_id: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
result_output_file: Optional[pulumi.Input[str]] = None,
status: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetTsfUnitRulesResult]func LookupTsfUnitRules(ctx *Context, args *LookupTsfUnitRulesArgs, opts ...InvokeOption) (*LookupTsfUnitRulesResult, error)
func LookupTsfUnitRulesOutput(ctx *Context, args *LookupTsfUnitRulesOutputArgs, opts ...InvokeOption) LookupTsfUnitRulesResultOutput> Note: This function is named LookupTsfUnitRules in the Go SDK.
public static class GetTsfUnitRules
{
public static Task<GetTsfUnitRulesResult> InvokeAsync(GetTsfUnitRulesArgs args, InvokeOptions? opts = null)
public static Output<GetTsfUnitRulesResult> Invoke(GetTsfUnitRulesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetTsfUnitRulesResult> getTsfUnitRules(GetTsfUnitRulesArgs args, InvokeOptions options)
public static Output<GetTsfUnitRulesResult> getTsfUnitRules(GetTsfUnitRulesArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getTsfUnitRules:getTsfUnitRules
arguments:
# arguments dictionaryThe following arguments are supported:
- Gateway
Instance stringId - gateway instance id.
- Id string
- rule ID.
- Result
Output stringFile - Used to save results.
- Status string
- Enabled state, disabled: unpublished, enabled: published.
- Gateway
Instance stringId - gateway instance id.
- Id string
- rule ID.
- Result
Output stringFile - Used to save results.
- Status string
- Enabled state, disabled: unpublished, enabled: published.
- gateway
Instance StringId - gateway instance id.
- id String
- rule ID.
- result
Output StringFile - Used to save results.
- status String
- Enabled state, disabled: unpublished, enabled: published.
- gateway
Instance stringId - gateway instance id.
- id string
- rule ID.
- result
Output stringFile - Used to save results.
- status string
- Enabled state, disabled: unpublished, enabled: published.
- gateway_
instance_ strid - gateway instance id.
- id str
- rule ID.
- result_
output_ strfile - Used to save results.
- status str
- Enabled state, disabled: unpublished, enabled: published.
- gateway
Instance StringId - gateway instance id.
- id String
- rule ID.
- result
Output StringFile - Used to save results.
- status String
- Enabled state, disabled: unpublished, enabled: published.
getTsfUnitRules Result
The following output properties are available:
- Gateway
Instance stringId - Gateway Entity ID.
- Id string
- rule ID.
- Results
List<Get
Tsf Unit Rules Result> - Pagination list information.
- Result
Output stringFile - Status string
- Use status: enabled/disabled.
- Gateway
Instance stringId - Gateway Entity ID.
- Id string
- rule ID.
- Results
[]Get
Tsf Unit Rules Result - Pagination list information.
- Result
Output stringFile - Status string
- Use status: enabled/disabled.
- gateway
Instance StringId - Gateway Entity ID.
- id String
- rule ID.
- results
List<Get
Tsf Unit Rules Result> - Pagination list information.
- result
Output StringFile - status String
- Use status: enabled/disabled.
- gateway
Instance stringId - Gateway Entity ID.
- id string
- rule ID.
- results
Get
Tsf Unit Rules Result[] - Pagination list information.
- result
Output stringFile - status string
- Use status: enabled/disabled.
- gateway_
instance_ strid - Gateway Entity ID.
- id str
- rule ID.
- results
Sequence[Get
Tsf Unit Rules Result] - Pagination list information.
- result_
output_ strfile - status str
- Use status: enabled/disabled.
- gateway
Instance StringId - Gateway Entity ID.
- id String
- rule ID.
- results List<Property Map>
- Pagination list information.
- result
Output StringFile - status String
- Use status: enabled/disabled.
Supporting Types
GetTsfUnitRulesResult
- Contents
List<Get
Tsf Unit Rules Result Content> - record entity list.
- Total
Count double - total number of records.
- Contents
[]Get
Tsf Unit Rules Result Content - record entity list.
- Total
Count float64 - total number of records.
- contents
List<Get
Tsf Unit Rules Result Content> - record entity list.
- total
Count Double - total number of records.
- contents
Get
Tsf Unit Rules Result Content[] - record entity list.
- total
Count number - total number of records.
- contents
Sequence[Get
Tsf Unit Rules Result Content] - record entity list.
- total_
count float - total number of records.
- contents List<Property Map>
- record entity list.
- total
Count Number - total number of records.
GetTsfUnitRulesResultContent
- Created
Time string - created time.
- Description string
- Rule description.
- Gateway
Instance stringId - gateway instance id.
- Id string
- rule ID.
- Name string
- rule item name.
- Status string
- Enabled state, disabled: unpublished, enabled: published.
- Unit
Rule List<GetItem Lists Tsf Unit Rules Result Content Unit Rule Item List> - list of rule items.
- Updated
Time string - Updated time.
- Created
Time string - created time.
- Description string
- Rule description.
- Gateway
Instance stringId - gateway instance id.
- Id string
- rule ID.
- Name string
- rule item name.
- Status string
- Enabled state, disabled: unpublished, enabled: published.
- Unit
Rule []GetItem Lists Tsf Unit Rules Result Content Unit Rule Item List - list of rule items.
- Updated
Time string - Updated time.
- created
Time String - created time.
- description String
- Rule description.
- gateway
Instance StringId - gateway instance id.
- id String
- rule ID.
- name String
- rule item name.
- status String
- Enabled state, disabled: unpublished, enabled: published.
- unit
Rule List<GetItem Lists Tsf Unit Rules Result Content Unit Rule Item List> - list of rule items.
- updated
Time String - Updated time.
- created
Time string - created time.
- description string
- Rule description.
- gateway
Instance stringId - gateway instance id.
- id string
- rule ID.
- name string
- rule item name.
- status string
- Enabled state, disabled: unpublished, enabled: published.
- unit
Rule GetItem Lists Tsf Unit Rules Result Content Unit Rule Item List[] - list of rule items.
- updated
Time string - Updated time.
- created_
time str - created time.
- description str
- Rule description.
- gateway_
instance_ strid - gateway instance id.
- id str
- rule ID.
- name str
- rule item name.
- status str
- Enabled state, disabled: unpublished, enabled: published.
- unit_
rule_ Sequence[Getitem_ lists Tsf Unit Rules Result Content Unit Rule Item List] - list of rule items.
- updated_
time str - Updated time.
- created
Time String - created time.
- description String
- Rule description.
- gateway
Instance StringId - gateway instance id.
- id String
- rule ID.
- name String
- rule item name.
- status String
- Enabled state, disabled: unpublished, enabled: published.
- unit
Rule List<Property Map>Item Lists - list of rule items.
- updated
Time String - Updated time.
GetTsfUnitRulesResultContentUnitRuleItemList
- Description string
- Rule description.
- Dest
Namespace stringId - Destination Namespace ID.
- Dest
Namespace stringName - destination namespace name.
- Id string
- rule ID.
- Name string
- rule item name.
- Priority double
- Rule order, the smaller the higher the priority: the default is 0.
- Relationship string
- Logical relationship: AND/OR.
- Unit
Rule stringId - Unitization rule ID.
- Unit
Rule List<GetTag Lists Tsf Unit Rules Result Content Unit Rule Item List Unit Rule Tag List> - List of rule labels.
- Description string
- Rule description.
- Dest
Namespace stringId - Destination Namespace ID.
- Dest
Namespace stringName - destination namespace name.
- Id string
- rule ID.
- Name string
- rule item name.
- Priority float64
- Rule order, the smaller the higher the priority: the default is 0.
- Relationship string
- Logical relationship: AND/OR.
- Unit
Rule stringId - Unitization rule ID.
- Unit
Rule []GetTag Lists Tsf Unit Rules Result Content Unit Rule Item List Unit Rule Tag List - List of rule labels.
- description String
- Rule description.
- dest
Namespace StringId - Destination Namespace ID.
- dest
Namespace StringName - destination namespace name.
- id String
- rule ID.
- name String
- rule item name.
- priority Double
- Rule order, the smaller the higher the priority: the default is 0.
- relationship String
- Logical relationship: AND/OR.
- unit
Rule StringId - Unitization rule ID.
- unit
Rule List<GetTag Lists Tsf Unit Rules Result Content Unit Rule Item List Unit Rule Tag List> - List of rule labels.
- description string
- Rule description.
- dest
Namespace stringId - Destination Namespace ID.
- dest
Namespace stringName - destination namespace name.
- id string
- rule ID.
- name string
- rule item name.
- priority number
- Rule order, the smaller the higher the priority: the default is 0.
- relationship string
- Logical relationship: AND/OR.
- unit
Rule stringId - Unitization rule ID.
- unit
Rule GetTag Lists Tsf Unit Rules Result Content Unit Rule Item List Unit Rule Tag List[] - List of rule labels.
- description str
- Rule description.
- dest_
namespace_ strid - Destination Namespace ID.
- dest_
namespace_ strname - destination namespace name.
- id str
- rule ID.
- name str
- rule item name.
- priority float
- Rule order, the smaller the higher the priority: the default is 0.
- relationship str
- Logical relationship: AND/OR.
- unit_
rule_ strid - Unitization rule ID.
- unit_
rule_ Sequence[Gettag_ lists Tsf Unit Rules Result Content Unit Rule Item List Unit Rule Tag List] - List of rule labels.
- description String
- Rule description.
- dest
Namespace StringId - Destination Namespace ID.
- dest
Namespace StringName - destination namespace name.
- id String
- rule ID.
- name String
- rule item name.
- priority Number
- Rule order, the smaller the higher the priority: the default is 0.
- relationship String
- Logical relationship: AND/OR.
- unit
Rule StringId - Unitization rule ID.
- unit
Rule List<Property Map>Tag Lists - List of rule labels.
GetTsfUnitRulesResultContentUnitRuleItemListUnitRuleTagList
- Id string
- rule ID.
- Tag
Field string - tag name.
- Tag
Operator string - Operator: IN/NOT_IN/EQUAL/NOT_EQUAL/REGEX.
- Tag
Type string - Tag Type: U(User Tag).
- Tag
Value string - tag value.
- Unit
Rule stringItem Id - Unitization rule item ID.
- Id string
- rule ID.
- Tag
Field string - tag name.
- Tag
Operator string - Operator: IN/NOT_IN/EQUAL/NOT_EQUAL/REGEX.
- Tag
Type string - Tag Type: U(User Tag).
- Tag
Value string - tag value.
- Unit
Rule stringItem Id - Unitization rule item ID.
- id String
- rule ID.
- tag
Field String - tag name.
- tag
Operator String - Operator: IN/NOT_IN/EQUAL/NOT_EQUAL/REGEX.
- tag
Type String - Tag Type: U(User Tag).
- tag
Value String - tag value.
- unit
Rule StringItem Id - Unitization rule item ID.
- id string
- rule ID.
- tag
Field string - tag name.
- tag
Operator string - Operator: IN/NOT_IN/EQUAL/NOT_EQUAL/REGEX.
- tag
Type string - Tag Type: U(User Tag).
- tag
Value string - tag value.
- unit
Rule stringItem Id - Unitization rule item ID.
- id str
- rule ID.
- tag_
field str - tag name.
- tag_
operator str - Operator: IN/NOT_IN/EQUAL/NOT_EQUAL/REGEX.
- tag_
type str - Tag Type: U(User Tag).
- tag_
value str - tag value.
- unit_
rule_ stritem_ id - Unitization rule item ID.
- id String
- rule ID.
- tag
Field String - tag name.
- tag
Operator String - Operator: IN/NOT_IN/EQUAL/NOT_EQUAL/REGEX.
- tag
Type String - Tag Type: U(User Tag).
- tag
Value String - tag value.
- unit
Rule StringItem Id - Unitization rule item ID.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloudTerraform Provider.
tencentcloud 1.82.34 published on Wednesday, Nov 5, 2025 by tencentcloudstack
