published on Friday, Oct 23, 2026 by opentelekomcloud
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:
- 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 stringRule V3Id - The ID of the access rule in the format
<fs_name>/<vpc_id>. - Timeouts
Gpfs
Access Rule V3Timeouts - Vpc
Source List<string>Ips - 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 stringRule V3Id - The ID of the access rule in the format
<fs_name>/<vpc_id>. - Timeouts
Gpfs
Access Rule V3Timeouts Args - Vpc
Source []stringIps - 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_ stringrule_ v3_ id - The ID of the access rule in the format
<fs_name>/<vpc_id>. - timeouts object
- vpc_
source_ list(string)ips - 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 StringRule V3Id - The ID of the access rule in the format
<fs_name>/<vpc_id>. - timeouts
Gpfs
Access Rule V3Timeouts - vpc
Source List<String>Ips - 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 stringRule V3Id - The ID of the access rule in the format
<fs_name>/<vpc_id>. - timeouts
Gpfs
Access Rule V3Timeouts - vpc
Source string[]Ips - 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_ strrule_ v3_ id - The ID of the access rule in the format
<fs_name>/<vpc_id>. - timeouts
Gpfs
Access Rule V3Timeouts Args - vpc_
source_ Sequence[str]ips - 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 StringRule V3Id - The ID of the access rule in the format
<fs_name>/<vpc_id>. - timeouts Property Map
- vpc
Source List<String>Ips - 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) -> GpfsAccessRuleV3func 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.
- 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 stringRule V3Id - The ID of the access rule in the format
<fs_name>/<vpc_id>. - Timeouts
Gpfs
Access Rule V3Timeouts - 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 List<string>Ips - 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 stringRule V3Id - The ID of the access rule in the format
<fs_name>/<vpc_id>. - Timeouts
Gpfs
Access Rule V3Timeouts Args - 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 []stringIps - 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_ stringrule_ v3_ id - 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_ list(string)ips - 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 StringRule V3Id - The ID of the access rule in the format
<fs_name>/<vpc_id>. - timeouts
Gpfs
Access Rule V3Timeouts - 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 List<String>Ips - 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 stringRule V3Id - The ID of the access rule in the format
<fs_name>/<vpc_id>. - timeouts
Gpfs
Access Rule V3Timeouts - 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 string[]Ips - 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_ strrule_ v3_ id - The ID of the access rule in the format
<fs_name>/<vpc_id>. - timeouts
Gpfs
Access Rule V3Timeouts Args - 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_ Sequence[str]ips - 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 StringRule V3Id - The ID of the access rule in the format
<fs_name>/<vpc_id>. - timeouts Property Map
- 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 List<String>Ips - 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
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
opentelekomcloudTerraform Provider.
published on Friday, Oct 23, 2026 by opentelekomcloud