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

tencentcloud.getCfsAccessRules

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Use this data source to query the detail information of CFS access rule.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const accessRules = tencentcloud.getCfsAccessRules({
        accessGroupId: "pgroup-7nx89k7l",
        accessRuleId: "rule-qcndbqzj",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    access_rules = tencentcloud.get_cfs_access_rules(access_group_id="pgroup-7nx89k7l",
        access_rule_id="rule-qcndbqzj")
    
    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.GetCfsAccessRules(ctx, &tencentcloud.GetCfsAccessRulesArgs{
    			AccessGroupId: "pgroup-7nx89k7l",
    			AccessRuleId:  pulumi.StringRef("rule-qcndbqzj"),
    		}, 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 accessRules = Tencentcloud.GetCfsAccessRules.Invoke(new()
        {
            AccessGroupId = "pgroup-7nx89k7l",
            AccessRuleId = "rule-qcndbqzj",
        });
    
    });
    
    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.GetCfsAccessRulesArgs;
    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 accessRules = TencentcloudFunctions.getCfsAccessRules(GetCfsAccessRulesArgs.builder()
                .accessGroupId("pgroup-7nx89k7l")
                .accessRuleId("rule-qcndbqzj")
                .build());
    
        }
    }
    
    variables:
      accessRules:
        fn::invoke:
          function: tencentcloud:getCfsAccessRules
          arguments:
            accessGroupId: pgroup-7nx89k7l
            accessRuleId: rule-qcndbqzj
    

    Using getCfsAccessRules

    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 getCfsAccessRules(args: GetCfsAccessRulesArgs, opts?: InvokeOptions): Promise<GetCfsAccessRulesResult>
    function getCfsAccessRulesOutput(args: GetCfsAccessRulesOutputArgs, opts?: InvokeOptions): Output<GetCfsAccessRulesResult>
    def get_cfs_access_rules(access_group_id: Optional[str] = None,
                             access_rule_id: Optional[str] = None,
                             id: Optional[str] = None,
                             result_output_file: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetCfsAccessRulesResult
    def get_cfs_access_rules_output(access_group_id: Optional[pulumi.Input[str]] = None,
                             access_rule_id: Optional[pulumi.Input[str]] = None,
                             id: Optional[pulumi.Input[str]] = None,
                             result_output_file: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetCfsAccessRulesResult]
    func GetCfsAccessRules(ctx *Context, args *GetCfsAccessRulesArgs, opts ...InvokeOption) (*GetCfsAccessRulesResult, error)
    func GetCfsAccessRulesOutput(ctx *Context, args *GetCfsAccessRulesOutputArgs, opts ...InvokeOption) GetCfsAccessRulesResultOutput

    > Note: This function is named GetCfsAccessRules in the Go SDK.

    public static class GetCfsAccessRules 
    {
        public static Task<GetCfsAccessRulesResult> InvokeAsync(GetCfsAccessRulesArgs args, InvokeOptions? opts = null)
        public static Output<GetCfsAccessRulesResult> Invoke(GetCfsAccessRulesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCfsAccessRulesResult> getCfsAccessRules(GetCfsAccessRulesArgs args, InvokeOptions options)
    public static Output<GetCfsAccessRulesResult> getCfsAccessRules(GetCfsAccessRulesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getCfsAccessRules:getCfsAccessRules
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AccessGroupId string
    A specified access group ID used to query.
    AccessRuleId string
    A specified access rule ID used to query.
    Id string
    ResultOutputFile string
    Used to save results.
    AccessGroupId string
    A specified access group ID used to query.
    AccessRuleId string
    A specified access rule ID used to query.
    Id string
    ResultOutputFile string
    Used to save results.
    accessGroupId String
    A specified access group ID used to query.
    accessRuleId String
    A specified access rule ID used to query.
    id String
    resultOutputFile String
    Used to save results.
    accessGroupId string
    A specified access group ID used to query.
    accessRuleId string
    A specified access rule ID used to query.
    id string
    resultOutputFile string
    Used to save results.
    access_group_id str
    A specified access group ID used to query.
    access_rule_id str
    A specified access rule ID used to query.
    id str
    result_output_file str
    Used to save results.
    accessGroupId String
    A specified access group ID used to query.
    accessRuleId String
    A specified access rule ID used to query.
    id String
    resultOutputFile String
    Used to save results.

    getCfsAccessRules Result

    The following output properties are available:

    AccessGroupId string
    AccessRuleLists List<GetCfsAccessRulesAccessRuleList>
    An information list of CFS access rule. Each element contains the following attributes:
    Id string
    AccessRuleId string
    ID of the access rule.
    ResultOutputFile string
    AccessGroupId string
    AccessRuleLists []GetCfsAccessRulesAccessRuleList
    An information list of CFS access rule. Each element contains the following attributes:
    Id string
    AccessRuleId string
    ID of the access rule.
    ResultOutputFile string
    accessGroupId String
    accessRuleLists List<GetCfsAccessRulesAccessRuleList>
    An information list of CFS access rule. Each element contains the following attributes:
    id String
    accessRuleId String
    ID of the access rule.
    resultOutputFile String
    accessGroupId string
    accessRuleLists GetCfsAccessRulesAccessRuleList[]
    An information list of CFS access rule. Each element contains the following attributes:
    id string
    accessRuleId string
    ID of the access rule.
    resultOutputFile string
    access_group_id str
    access_rule_lists Sequence[GetCfsAccessRulesAccessRuleList]
    An information list of CFS access rule. Each element contains the following attributes:
    id str
    access_rule_id str
    ID of the access rule.
    result_output_file str
    accessGroupId String
    accessRuleLists List<Property Map>
    An information list of CFS access rule. Each element contains the following attributes:
    id String
    accessRuleId String
    ID of the access rule.
    resultOutputFile String

    Supporting Types

    GetCfsAccessRulesAccessRuleList

    AccessRuleId string
    A specified access rule ID used to query.
    AuthClientIp string
    Allowed IP of the access rule.
    Priority double
    The priority level of access rule.
    RwPermission string
    Read and write permissions.
    UserPermission string
    The permissions of accessing users.
    AccessRuleId string
    A specified access rule ID used to query.
    AuthClientIp string
    Allowed IP of the access rule.
    Priority float64
    The priority level of access rule.
    RwPermission string
    Read and write permissions.
    UserPermission string
    The permissions of accessing users.
    accessRuleId String
    A specified access rule ID used to query.
    authClientIp String
    Allowed IP of the access rule.
    priority Double
    The priority level of access rule.
    rwPermission String
    Read and write permissions.
    userPermission String
    The permissions of accessing users.
    accessRuleId string
    A specified access rule ID used to query.
    authClientIp string
    Allowed IP of the access rule.
    priority number
    The priority level of access rule.
    rwPermission string
    Read and write permissions.
    userPermission string
    The permissions of accessing users.
    access_rule_id str
    A specified access rule ID used to query.
    auth_client_ip str
    Allowed IP of the access rule.
    priority float
    The priority level of access rule.
    rw_permission str
    Read and write permissions.
    user_permission str
    The permissions of accessing users.
    accessRuleId String
    A specified access rule ID used to query.
    authClientIp String
    Allowed IP of the access rule.
    priority Number
    The priority level of access rule.
    rwPermission String
    Read and write permissions.
    userPermission String
    The permissions of accessing users.

    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