tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
tencentcloud.getCfsAccessRules
Explore with Pulumi AI
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:
- Access
Group stringId - A specified access group ID used to query.
- Access
Rule stringId - A specified access rule ID used to query.
- Id string
- Result
Output stringFile - Used to save results.
- Access
Group stringId - A specified access group ID used to query.
- Access
Rule stringId - A specified access rule ID used to query.
- Id string
- Result
Output stringFile - Used to save results.
- access
Group StringId - A specified access group ID used to query.
- access
Rule StringId - A specified access rule ID used to query.
- id String
- result
Output StringFile - Used to save results.
- access
Group stringId - A specified access group ID used to query.
- access
Rule stringId - A specified access rule ID used to query.
- id string
- result
Output stringFile - Used to save results.
- access_
group_ strid - A specified access group ID used to query.
- access_
rule_ strid - A specified access rule ID used to query.
- id str
- result_
output_ strfile - Used to save results.
- access
Group StringId - A specified access group ID used to query.
- access
Rule StringId - A specified access rule ID used to query.
- id String
- result
Output StringFile - Used to save results.
getCfsAccessRules Result
The following output properties are available:
- Access
Group stringId - Access
Rule List<GetLists Cfs Access Rules Access Rule List> - An information list of CFS access rule. Each element contains the following attributes:
- Id string
- Access
Rule stringId - ID of the access rule.
- Result
Output stringFile
- Access
Group stringId - Access
Rule []GetLists Cfs Access Rules Access Rule List - An information list of CFS access rule. Each element contains the following attributes:
- Id string
- Access
Rule stringId - ID of the access rule.
- Result
Output stringFile
- access
Group StringId - access
Rule List<GetLists Cfs Access Rules Access Rule List> - An information list of CFS access rule. Each element contains the following attributes:
- id String
- access
Rule StringId - ID of the access rule.
- result
Output StringFile
- access
Group stringId - access
Rule GetLists Cfs Access Rules Access Rule List[] - An information list of CFS access rule. Each element contains the following attributes:
- id string
- access
Rule stringId - ID of the access rule.
- result
Output stringFile
- access_
group_ strid - access_
rule_ Sequence[Getlists Cfs Access Rules Access Rule List] - An information list of CFS access rule. Each element contains the following attributes:
- id str
- access_
rule_ strid - ID of the access rule.
- result_
output_ strfile
- access
Group StringId - access
Rule List<Property Map>Lists - An information list of CFS access rule. Each element contains the following attributes:
- id String
- access
Rule StringId - ID of the access rule.
- result
Output StringFile
Supporting Types
GetCfsAccessRulesAccessRuleList
- Access
Rule stringId - A specified access rule ID used to query.
- Auth
Client stringIp - Allowed IP of the access rule.
- Priority double
- The priority level of access rule.
- Rw
Permission string - Read and write permissions.
- User
Permission string - The permissions of accessing users.
- Access
Rule stringId - A specified access rule ID used to query.
- Auth
Client stringIp - Allowed IP of the access rule.
- Priority float64
- The priority level of access rule.
- Rw
Permission string - Read and write permissions.
- User
Permission string - The permissions of accessing users.
- access
Rule StringId - A specified access rule ID used to query.
- auth
Client StringIp - Allowed IP of the access rule.
- priority Double
- The priority level of access rule.
- rw
Permission String - Read and write permissions.
- user
Permission String - The permissions of accessing users.
- access
Rule stringId - A specified access rule ID used to query.
- auth
Client stringIp - Allowed IP of the access rule.
- priority number
- The priority level of access rule.
- rw
Permission string - Read and write permissions.
- user
Permission string - The permissions of accessing users.
- access_
rule_ strid - A specified access rule ID used to query.
- auth_
client_ strip - 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.
- access
Rule StringId - A specified access rule ID used to query.
- auth
Client StringIp - Allowed IP of the access rule.
- priority Number
- The priority level of access rule.
- rw
Permission String - Read and write permissions.
- user
Permission 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 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack