1. Registry
  2. Packages
  3. Opentelekomcloud Provider
  4. API Docs
  5. GpfsAccessRuleV3
Viewing docs for opentelekomcloud 1.37.11
published on Friday, Oct 23, 2026 by opentelekomcloud
opentelekomcloud
Viewing docs for opentelekomcloud 1.37.11
published on Friday, Oct 23, 2026 by opentelekomcloud

    Manages a GPFS (General Purpose File System) access rule resource within T-Cloud Public (formerly OpenTelekomCloud).

    Each rule grants a VPC read/write or read-only access to a file system. Configuring rules replaces the current file system access-rule configuration.

    Note: Deleting this resource removes all access rules of the file system — the API does not support deleting a single rule.

    Up-to-date reference of API arguments for General Purpose File System service you can get at documentation portal

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const config = new pulumi.Config();
    const fileSystemName = config.requireObject<any>("fileSystemName");
    const vpcId = config.requireObject<any>("vpcId");
    const test = new opentelekomcloud.GpfsAccessRuleV3("test", {
        fsName: fileSystemName,
        vpcId: vpcId,
        action: "FullControl",
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    config = pulumi.Config()
    file_system_name = config.require_object("fileSystemName")
    vpc_id = config.require_object("vpcId")
    test = opentelekomcloud.GpfsAccessRuleV3("test",
        fs_name=file_system_name,
        vpc_id=vpc_id,
        action="FullControl")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		fileSystemName := cfg.RequireObject("fileSystemName")
    		vpcId := cfg.RequireObject("vpcId")
    		_, err := opentelekomcloud.NewGpfsAccessRuleV3(ctx, "test", &opentelekomcloud.GpfsAccessRuleV3Args{
    			FsName: pulumi.Any(fileSystemName),
    			VpcId:  pulumi.Any(vpcId),
    			Action: pulumi.String("FullControl"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var fileSystemName = config.RequireObject<dynamic>("fileSystemName");
        var vpcId = config.RequireObject<dynamic>("vpcId");
        var test = new Opentelekomcloud.GpfsAccessRuleV3("test", new()
        {
            FsName = fileSystemName,
            VpcId = vpcId,
            Action = "FullControl",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.GpfsAccessRuleV3;
    import com.pulumi.opentelekomcloud.GpfsAccessRuleV3Args;
    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 config = ctx.config();
            final var fileSystemName = config.get("fileSystemName");
            final var vpcId = config.get("vpcId");
            var test = new GpfsAccessRuleV3("test", GpfsAccessRuleV3Args.builder()
                .fsName(fileSystemName)
                .vpcId(vpcId)
                .action("FullControl")
                .build());
    
        }
    }
    
    configuration:
      fileSystemName:
        type: dynamic
      vpcId:
        type: dynamic
    resources:
      test:
        type: opentelekomcloud:GpfsAccessRuleV3
        properties:
          fsName: ${fileSystemName}
          vpcId: ${vpcId}
          action: FullControl
    
    Example coming soon!
    

    Create GpfsAccessRuleV3 Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new GpfsAccessRuleV3(name: string, args: GpfsAccessRuleV3Args, opts?: CustomResourceOptions);
    @overload
    def GpfsAccessRuleV3(resource_name: str,
                         args: GpfsAccessRuleV3Args,
                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def GpfsAccessRuleV3(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         fs_name: Optional[str] = None,
                         vpc_id: Optional[str] = None,
                         action: Optional[str] = None,
                         gpfs_access_rule_v3_id: Optional[str] = None,
                         timeouts: Optional[GpfsAccessRuleV3TimeoutsArgs] = None,
                         vpc_source_ips: Optional[Sequence[str]] = None)
    func NewGpfsAccessRuleV3(ctx *Context, name string, args GpfsAccessRuleV3Args, opts ...ResourceOption) (*GpfsAccessRuleV3, error)
    public GpfsAccessRuleV3(string name, GpfsAccessRuleV3Args args, CustomResourceOptions? opts = null)
    public GpfsAccessRuleV3(String name, GpfsAccessRuleV3Args args)
    public GpfsAccessRuleV3(String name, GpfsAccessRuleV3Args args, CustomResourceOptions options)
    
    type: opentelekomcloud:GpfsAccessRuleV3
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "opentelekomcloud_gpfs_access_rule_v3" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args GpfsAccessRuleV3Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args GpfsAccessRuleV3Args
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args GpfsAccessRuleV3Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args GpfsAccessRuleV3Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args GpfsAccessRuleV3Args
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var gpfsAccessRuleV3Resource = new Opentelekomcloud.GpfsAccessRuleV3("gpfsAccessRuleV3Resource", new()
    {
        FsName = "string",
        VpcId = "string",
        Action = "string",
        GpfsAccessRuleV3Id = "string",
        Timeouts = new Opentelekomcloud.Inputs.GpfsAccessRuleV3TimeoutsArgs
        {
            Create = "string",
            Default = "string",
            Delete = "string",
        },
        VpcSourceIps = new[]
        {
            "string",
        },
    });
    
    example, err := opentelekomcloud.NewGpfsAccessRuleV3(ctx, "gpfsAccessRuleV3Resource", &opentelekomcloud.GpfsAccessRuleV3Args{
    	FsName:             pulumi.String("string"),
    	VpcId:              pulumi.String("string"),
    	Action:             pulumi.String("string"),
    	GpfsAccessRuleV3Id: pulumi.String("string"),
    	Timeouts: &opentelekomcloud.GpfsAccessRuleV3TimeoutsArgs{
    		Create:  pulumi.String("string"),
    		Default: pulumi.String("string"),
    		Delete:  pulumi.String("string"),
    	},
    	VpcSourceIps: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    })
    
    resource "opentelekomcloud_gpfs_access_rule_v3" "gpfsAccessRuleV3Resource" {
      lifecycle {
        create_before_destroy = true
      }
      fs_name                = "string"
      vpc_id                 = "string"
      action                 = "string"
      gpfs_access_rule_v3_id = "string"
      timeouts = {
        create  = "string"
        default = "string"
        delete  = "string"
      }
      vpc_source_ips = ["string"]
    }
    
    var gpfsAccessRuleV3Resource = new GpfsAccessRuleV3("gpfsAccessRuleV3Resource", GpfsAccessRuleV3Args.builder()
        .fsName("string")
        .vpcId("string")
        .action("string")
        .gpfsAccessRuleV3Id("string")
        .timeouts(GpfsAccessRuleV3TimeoutsArgs.builder()
            .create("string")
            .default_("string")
            .delete("string")
            .build())
        .vpcSourceIps("string")
        .build());
    
    gpfs_access_rule_v3_resource = opentelekomcloud.GpfsAccessRuleV3("gpfsAccessRuleV3Resource",
        fs_name="string",
        vpc_id="string",
        action="string",
        gpfs_access_rule_v3_id="string",
        timeouts={
            "create": "string",
            "default": "string",
            "delete": "string",
        },
        vpc_source_ips=["string"])
    
    const gpfsAccessRuleV3Resource = new opentelekomcloud.GpfsAccessRuleV3("gpfsAccessRuleV3Resource", {
        fsName: "string",
        vpcId: "string",
        action: "string",
        gpfsAccessRuleV3Id: "string",
        timeouts: {
            create: "string",
            "default": "string",
            "delete": "string",
        },
        vpcSourceIps: ["string"],
    });
    
    type: opentelekomcloud:GpfsAccessRuleV3
    properties:
        action: string
        fsName: string
        gpfsAccessRuleV3Id: string
        timeouts:
            create: string
            default: string
            delete: string
        vpcId: string
        vpcSourceIps:
            - string
    

    GpfsAccessRuleV3 Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The GpfsAccessRuleV3 resource accepts the following input properties:

    FsName string
    Specifies the name of the file system the access rule is configured for. Changing this will create a new resource.
    VpcId string
    Specifies the ID of the VPC that is granted access to the file system. Changing this will create a new resource.
    Action string

    Specifies the type of access granted to the VPC. Valid values are as follows:

    • FullControl — read/write access (default).
    • Read — read-only access.

    Changing this will create a new resource.

    GpfsAccessRuleV3Id string
    The ID of the access rule in the format <fs_name>/<vpc_id>.
    Timeouts GpfsAccessRuleV3Timeouts
    VpcSourceIps List<string>
    Specifies the IP addresses or CIDR ranges in the source VPC. The service currently ignores this field; its value is read back from the API. Changing this will create a new resource.
    FsName string
    Specifies the name of the file system the access rule is configured for. Changing this will create a new resource.
    VpcId string
    Specifies the ID of the VPC that is granted access to the file system. Changing this will create a new resource.
    Action string

    Specifies the type of access granted to the VPC. Valid values are as follows:

    • FullControl — read/write access (default).
    • Read — read-only access.

    Changing this will create a new resource.

    GpfsAccessRuleV3Id string
    The ID of the access rule in the format <fs_name>/<vpc_id>.
    Timeouts GpfsAccessRuleV3TimeoutsArgs
    VpcSourceIps []string
    Specifies the IP addresses or CIDR ranges in the source VPC. The service currently ignores this field; its value is read back from the API. Changing this will create a new resource.
    fs_name string
    Specifies the name of the file system the access rule is configured for. Changing this will create a new resource.
    vpc_id string
    Specifies the ID of the VPC that is granted access to the file system. Changing this will create a new resource.
    action string

    Specifies the type of access granted to the VPC. Valid values are as follows:

    • FullControl — read/write access (default).
    • Read — read-only access.

    Changing this will create a new resource.

    gpfs_access_rule_v3_id string
    The ID of the access rule in the format <fs_name>/<vpc_id>.
    timeouts object
    vpc_source_ips list(string)
    Specifies the IP addresses or CIDR ranges in the source VPC. The service currently ignores this field; its value is read back from the API. Changing this will create a new resource.
    fsName String
    Specifies the name of the file system the access rule is configured for. Changing this will create a new resource.
    vpcId String
    Specifies the ID of the VPC that is granted access to the file system. Changing this will create a new resource.
    action String

    Specifies the type of access granted to the VPC. Valid values are as follows:

    • FullControl — read/write access (default).
    • Read — read-only access.

    Changing this will create a new resource.

    gpfsAccessRuleV3Id String
    The ID of the access rule in the format <fs_name>/<vpc_id>.
    timeouts GpfsAccessRuleV3Timeouts
    vpcSourceIps List<String>
    Specifies the IP addresses or CIDR ranges in the source VPC. The service currently ignores this field; its value is read back from the API. Changing this will create a new resource.
    fsName string
    Specifies the name of the file system the access rule is configured for. Changing this will create a new resource.
    vpcId string
    Specifies the ID of the VPC that is granted access to the file system. Changing this will create a new resource.
    action string

    Specifies the type of access granted to the VPC. Valid values are as follows:

    • FullControl — read/write access (default).
    • Read — read-only access.

    Changing this will create a new resource.

    gpfsAccessRuleV3Id string
    The ID of the access rule in the format <fs_name>/<vpc_id>.
    timeouts GpfsAccessRuleV3Timeouts
    vpcSourceIps string[]
    Specifies the IP addresses or CIDR ranges in the source VPC. The service currently ignores this field; its value is read back from the API. Changing this will create a new resource.
    fs_name str
    Specifies the name of the file system the access rule is configured for. Changing this will create a new resource.
    vpc_id str
    Specifies the ID of the VPC that is granted access to the file system. Changing this will create a new resource.
    action str

    Specifies the type of access granted to the VPC. Valid values are as follows:

    • FullControl — read/write access (default).
    • Read — read-only access.

    Changing this will create a new resource.

    gpfs_access_rule_v3_id str
    The ID of the access rule in the format <fs_name>/<vpc_id>.
    timeouts GpfsAccessRuleV3TimeoutsArgs
    vpc_source_ips Sequence[str]
    Specifies the IP addresses or CIDR ranges in the source VPC. The service currently ignores this field; its value is read back from the API. Changing this will create a new resource.
    fsName String
    Specifies the name of the file system the access rule is configured for. Changing this will create a new resource.
    vpcId String
    Specifies the ID of the VPC that is granted access to the file system. Changing this will create a new resource.
    action String

    Specifies the type of access granted to the VPC. Valid values are as follows:

    • FullControl — read/write access (default).
    • Read — read-only access.

    Changing this will create a new resource.

    gpfsAccessRuleV3Id String
    The ID of the access rule in the format <fs_name>/<vpc_id>.
    timeouts Property Map
    vpcSourceIps List<String>
    Specifies the IP addresses or CIDR ranges in the source VPC. The service currently ignores this field; its value is read back from the API. Changing this will create a new resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the GpfsAccessRuleV3 resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing GpfsAccessRuleV3 Resource

    Get an existing GpfsAccessRuleV3 resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: GpfsAccessRuleV3State, opts?: CustomResourceOptions): GpfsAccessRuleV3
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            action: Optional[str] = None,
            fs_name: Optional[str] = None,
            gpfs_access_rule_v3_id: Optional[str] = None,
            timeouts: Optional[GpfsAccessRuleV3TimeoutsArgs] = None,
            vpc_id: Optional[str] = None,
            vpc_source_ips: Optional[Sequence[str]] = None) -> GpfsAccessRuleV3
    func GetGpfsAccessRuleV3(ctx *Context, name string, id IDInput, state *GpfsAccessRuleV3State, opts ...ResourceOption) (*GpfsAccessRuleV3, error)
    public static GpfsAccessRuleV3 Get(string name, Input<string> id, GpfsAccessRuleV3State? state, CustomResourceOptions? opts = null)
    public static GpfsAccessRuleV3 get(String name, Output<String> id, GpfsAccessRuleV3State state, CustomResourceOptions options)
    resources:  _:    type: opentelekomcloud:GpfsAccessRuleV3    get:      id: ${id}
    import {
      to = opentelekomcloud_gpfs_access_rule_v3.example
      id = "${id}"
    }
    
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Action string

    Specifies the type of access granted to the VPC. Valid values are as follows:

    • FullControl — read/write access (default).
    • Read — read-only access.

    Changing this will create a new resource.

    FsName string
    Specifies the name of the file system the access rule is configured for. Changing this will create a new resource.
    GpfsAccessRuleV3Id string
    The ID of the access rule in the format <fs_name>/<vpc_id>.
    Timeouts GpfsAccessRuleV3Timeouts
    VpcId string
    Specifies the ID of the VPC that is granted access to the file system. Changing this will create a new resource.
    VpcSourceIps List<string>
    Specifies the IP addresses or CIDR ranges in the source VPC. The service currently ignores this field; its value is read back from the API. Changing this will create a new resource.
    Action string

    Specifies the type of access granted to the VPC. Valid values are as follows:

    • FullControl — read/write access (default).
    • Read — read-only access.

    Changing this will create a new resource.

    FsName string
    Specifies the name of the file system the access rule is configured for. Changing this will create a new resource.
    GpfsAccessRuleV3Id string
    The ID of the access rule in the format <fs_name>/<vpc_id>.
    Timeouts GpfsAccessRuleV3TimeoutsArgs
    VpcId string
    Specifies the ID of the VPC that is granted access to the file system. Changing this will create a new resource.
    VpcSourceIps []string
    Specifies the IP addresses or CIDR ranges in the source VPC. The service currently ignores this field; its value is read back from the API. Changing this will create a new resource.
    action string

    Specifies the type of access granted to the VPC. Valid values are as follows:

    • FullControl — read/write access (default).
    • Read — read-only access.

    Changing this will create a new resource.

    fs_name string
    Specifies the name of the file system the access rule is configured for. Changing this will create a new resource.
    gpfs_access_rule_v3_id string
    The ID of the access rule in the format <fs_name>/<vpc_id>.
    timeouts object
    vpc_id string
    Specifies the ID of the VPC that is granted access to the file system. Changing this will create a new resource.
    vpc_source_ips list(string)
    Specifies the IP addresses or CIDR ranges in the source VPC. The service currently ignores this field; its value is read back from the API. Changing this will create a new resource.
    action String

    Specifies the type of access granted to the VPC. Valid values are as follows:

    • FullControl — read/write access (default).
    • Read — read-only access.

    Changing this will create a new resource.

    fsName String
    Specifies the name of the file system the access rule is configured for. Changing this will create a new resource.
    gpfsAccessRuleV3Id String
    The ID of the access rule in the format <fs_name>/<vpc_id>.
    timeouts GpfsAccessRuleV3Timeouts
    vpcId String
    Specifies the ID of the VPC that is granted access to the file system. Changing this will create a new resource.
    vpcSourceIps List<String>
    Specifies the IP addresses or CIDR ranges in the source VPC. The service currently ignores this field; its value is read back from the API. Changing this will create a new resource.
    action string

    Specifies the type of access granted to the VPC. Valid values are as follows:

    • FullControl — read/write access (default).
    • Read — read-only access.

    Changing this will create a new resource.

    fsName string
    Specifies the name of the file system the access rule is configured for. Changing this will create a new resource.
    gpfsAccessRuleV3Id string
    The ID of the access rule in the format <fs_name>/<vpc_id>.
    timeouts GpfsAccessRuleV3Timeouts
    vpcId string
    Specifies the ID of the VPC that is granted access to the file system. Changing this will create a new resource.
    vpcSourceIps string[]
    Specifies the IP addresses or CIDR ranges in the source VPC. The service currently ignores this field; its value is read back from the API. Changing this will create a new resource.
    action str

    Specifies the type of access granted to the VPC. Valid values are as follows:

    • FullControl — read/write access (default).
    • Read — read-only access.

    Changing this will create a new resource.

    fs_name str
    Specifies the name of the file system the access rule is configured for. Changing this will create a new resource.
    gpfs_access_rule_v3_id str
    The ID of the access rule in the format <fs_name>/<vpc_id>.
    timeouts GpfsAccessRuleV3TimeoutsArgs
    vpc_id str
    Specifies the ID of the VPC that is granted access to the file system. Changing this will create a new resource.
    vpc_source_ips Sequence[str]
    Specifies the IP addresses or CIDR ranges in the source VPC. The service currently ignores this field; its value is read back from the API. Changing this will create a new resource.
    action String

    Specifies the type of access granted to the VPC. Valid values are as follows:

    • FullControl — read/write access (default).
    • Read — read-only access.

    Changing this will create a new resource.

    fsName String
    Specifies the name of the file system the access rule is configured for. Changing this will create a new resource.
    gpfsAccessRuleV3Id String
    The ID of the access rule in the format <fs_name>/<vpc_id>.
    timeouts Property Map
    vpcId String
    Specifies the ID of the VPC that is granted access to the file system. Changing this will create a new resource.
    vpcSourceIps List<String>
    Specifies the IP addresses or CIDR ranges in the source VPC. The service currently ignores this field; its value is read back from the API. Changing this will create a new resource.

    Supporting Types

    GpfsAccessRuleV3Timeouts, GpfsAccessRuleV3TimeoutsArgs

    Create string
    Default string
    Delete string
    Create string
    Default string
    Delete string
    create string
    default string
    delete string
    create String
    default_ String
    delete String
    create string
    default string
    delete string
    create String
    default String
    delete String

    Import

    GPFS access rules can be imported using the file system name and the VPC ID, e.g.

    $ pulumi import opentelekomcloud:index/gpfsAccessRuleV3:GpfsAccessRuleV3 test example-fs-01/vpc-12345678
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
    License
    Notes
    This Pulumi package is based on the opentelekomcloud Terraform Provider.
    opentelekomcloud
    Viewing docs for opentelekomcloud 1.37.11
    published on Friday, Oct 23, 2026 by opentelekomcloud

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial