1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getTsfUnitRules
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.getTsfUnitRules

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 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 dictionary

    The following arguments are supported:

    GatewayInstanceId string
    gateway instance id.
    Id string
    rule ID.
    ResultOutputFile string
    Used to save results.
    Status string
    Enabled state, disabled: unpublished, enabled: published.
    GatewayInstanceId string
    gateway instance id.
    Id string
    rule ID.
    ResultOutputFile string
    Used to save results.
    Status string
    Enabled state, disabled: unpublished, enabled: published.
    gatewayInstanceId String
    gateway instance id.
    id String
    rule ID.
    resultOutputFile String
    Used to save results.
    status String
    Enabled state, disabled: unpublished, enabled: published.
    gatewayInstanceId string
    gateway instance id.
    id string
    rule ID.
    resultOutputFile string
    Used to save results.
    status string
    Enabled state, disabled: unpublished, enabled: published.
    gateway_instance_id str
    gateway instance id.
    id str
    rule ID.
    result_output_file str
    Used to save results.
    status str
    Enabled state, disabled: unpublished, enabled: published.
    gatewayInstanceId String
    gateway instance id.
    id String
    rule ID.
    resultOutputFile String
    Used to save results.
    status String
    Enabled state, disabled: unpublished, enabled: published.

    getTsfUnitRules Result

    The following output properties are available:

    GatewayInstanceId string
    Gateway Entity ID.
    Id string
    rule ID.
    Results List<GetTsfUnitRulesResult>
    Pagination list information.
    ResultOutputFile string
    Status string
    Use status: enabled/disabled.
    GatewayInstanceId string
    Gateway Entity ID.
    Id string
    rule ID.
    Results []GetTsfUnitRulesResult
    Pagination list information.
    ResultOutputFile string
    Status string
    Use status: enabled/disabled.
    gatewayInstanceId String
    Gateway Entity ID.
    id String
    rule ID.
    results List<GetTsfUnitRulesResult>
    Pagination list information.
    resultOutputFile String
    status String
    Use status: enabled/disabled.
    gatewayInstanceId string
    Gateway Entity ID.
    id string
    rule ID.
    results GetTsfUnitRulesResult[]
    Pagination list information.
    resultOutputFile string
    status string
    Use status: enabled/disabled.
    gateway_instance_id str
    Gateway Entity ID.
    id str
    rule ID.
    results Sequence[GetTsfUnitRulesResult]
    Pagination list information.
    result_output_file str
    status str
    Use status: enabled/disabled.
    gatewayInstanceId String
    Gateway Entity ID.
    id String
    rule ID.
    results List<Property Map>
    Pagination list information.
    resultOutputFile String
    status String
    Use status: enabled/disabled.

    Supporting Types

    GetTsfUnitRulesResult

    Contents List<GetTsfUnitRulesResultContent>
    record entity list.
    TotalCount double
    total number of records.
    Contents []GetTsfUnitRulesResultContent
    record entity list.
    TotalCount float64
    total number of records.
    contents List<GetTsfUnitRulesResultContent>
    record entity list.
    totalCount Double
    total number of records.
    contents GetTsfUnitRulesResultContent[]
    record entity list.
    totalCount number
    total number of records.
    contents Sequence[GetTsfUnitRulesResultContent]
    record entity list.
    total_count float
    total number of records.
    contents List<Property Map>
    record entity list.
    totalCount Number
    total number of records.

    GetTsfUnitRulesResultContent

    CreatedTime string
    created time.
    Description string
    Rule description.
    GatewayInstanceId string
    gateway instance id.
    Id string
    rule ID.
    Name string
    rule item name.
    Status string
    Enabled state, disabled: unpublished, enabled: published.
    UnitRuleItemLists List<GetTsfUnitRulesResultContentUnitRuleItemList>
    list of rule items.
    UpdatedTime string
    Updated time.
    CreatedTime string
    created time.
    Description string
    Rule description.
    GatewayInstanceId string
    gateway instance id.
    Id string
    rule ID.
    Name string
    rule item name.
    Status string
    Enabled state, disabled: unpublished, enabled: published.
    UnitRuleItemLists []GetTsfUnitRulesResultContentUnitRuleItemList
    list of rule items.
    UpdatedTime string
    Updated time.
    createdTime String
    created time.
    description String
    Rule description.
    gatewayInstanceId String
    gateway instance id.
    id String
    rule ID.
    name String
    rule item name.
    status String
    Enabled state, disabled: unpublished, enabled: published.
    unitRuleItemLists List<GetTsfUnitRulesResultContentUnitRuleItemList>
    list of rule items.
    updatedTime String
    Updated time.
    createdTime string
    created time.
    description string
    Rule description.
    gatewayInstanceId string
    gateway instance id.
    id string
    rule ID.
    name string
    rule item name.
    status string
    Enabled state, disabled: unpublished, enabled: published.
    unitRuleItemLists GetTsfUnitRulesResultContentUnitRuleItemList[]
    list of rule items.
    updatedTime string
    Updated time.
    created_time str
    created time.
    description str
    Rule description.
    gateway_instance_id str
    gateway instance id.
    id str
    rule ID.
    name str
    rule item name.
    status str
    Enabled state, disabled: unpublished, enabled: published.
    unit_rule_item_lists Sequence[GetTsfUnitRulesResultContentUnitRuleItemList]
    list of rule items.
    updated_time str
    Updated time.
    createdTime String
    created time.
    description String
    Rule description.
    gatewayInstanceId String
    gateway instance id.
    id String
    rule ID.
    name String
    rule item name.
    status String
    Enabled state, disabled: unpublished, enabled: published.
    unitRuleItemLists List<Property Map>
    list of rule items.
    updatedTime String
    Updated time.

    GetTsfUnitRulesResultContentUnitRuleItemList

    Description string
    Rule description.
    DestNamespaceId string
    Destination Namespace ID.
    DestNamespaceName string
    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.
    UnitRuleId string
    Unitization rule ID.
    UnitRuleTagLists List<GetTsfUnitRulesResultContentUnitRuleItemListUnitRuleTagList>
    List of rule labels.
    Description string
    Rule description.
    DestNamespaceId string
    Destination Namespace ID.
    DestNamespaceName string
    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.
    UnitRuleId string
    Unitization rule ID.
    UnitRuleTagLists []GetTsfUnitRulesResultContentUnitRuleItemListUnitRuleTagList
    List of rule labels.
    description String
    Rule description.
    destNamespaceId String
    Destination Namespace ID.
    destNamespaceName String
    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.
    unitRuleId String
    Unitization rule ID.
    unitRuleTagLists List<GetTsfUnitRulesResultContentUnitRuleItemListUnitRuleTagList>
    List of rule labels.
    description string
    Rule description.
    destNamespaceId string
    Destination Namespace ID.
    destNamespaceName string
    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.
    unitRuleId string
    Unitization rule ID.
    unitRuleTagLists GetTsfUnitRulesResultContentUnitRuleItemListUnitRuleTagList[]
    List of rule labels.
    description str
    Rule description.
    dest_namespace_id str
    Destination Namespace ID.
    dest_namespace_name str
    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_id str
    Unitization rule ID.
    unit_rule_tag_lists Sequence[GetTsfUnitRulesResultContentUnitRuleItemListUnitRuleTagList]
    List of rule labels.
    description String
    Rule description.
    destNamespaceId String
    Destination Namespace ID.
    destNamespaceName String
    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.
    unitRuleId String
    Unitization rule ID.
    unitRuleTagLists List<Property Map>
    List of rule labels.

    GetTsfUnitRulesResultContentUnitRuleItemListUnitRuleTagList

    Id string
    rule ID.
    TagField string
    tag name.
    TagOperator string
    Operator: IN/NOT_IN/EQUAL/NOT_EQUAL/REGEX.
    TagType string
    Tag Type: U(User Tag).
    TagValue string
    tag value.
    UnitRuleItemId string
    Unitization rule item ID.
    Id string
    rule ID.
    TagField string
    tag name.
    TagOperator string
    Operator: IN/NOT_IN/EQUAL/NOT_EQUAL/REGEX.
    TagType string
    Tag Type: U(User Tag).
    TagValue string
    tag value.
    UnitRuleItemId string
    Unitization rule item ID.
    id String
    rule ID.
    tagField String
    tag name.
    tagOperator String
    Operator: IN/NOT_IN/EQUAL/NOT_EQUAL/REGEX.
    tagType String
    Tag Type: U(User Tag).
    tagValue String
    tag value.
    unitRuleItemId String
    Unitization rule item ID.
    id string
    rule ID.
    tagField string
    tag name.
    tagOperator string
    Operator: IN/NOT_IN/EQUAL/NOT_EQUAL/REGEX.
    tagType string
    Tag Type: U(User Tag).
    tagValue string
    tag value.
    unitRuleItemId string
    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_item_id str
    Unitization rule item ID.
    id String
    rule ID.
    tagField String
    tag name.
    tagOperator String
    Operator: IN/NOT_IN/EQUAL/NOT_EQUAL/REGEX.
    tagType String
    Tag Type: U(User Tag).
    tagValue String
    tag value.
    unitRuleItemId String
    Unitization rule item ID.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack