1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. FileStorage
  5. FileSystemQuotaRule
Oracle Cloud Infrastructure v2.29.0 published on Wednesday, Apr 9, 2025 by Pulumi

oci.FileStorage.FileSystemQuotaRule

Explore with Pulumi AI

This resource provides the File System Quota Rule resource in Oracle Cloud Infrastructure File Storage service.

Create an FS level, user or group quota rule given the fileSystemId, principalId, principalType and isHardQuota parameters.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testFileSystemQuotaRule = new oci.filestorage.FileSystemQuotaRule("test_file_system_quota_rule", {
    fileSystemId: testFileSystem.id,
    isHardQuota: fileSystemQuotaRuleIsHardQuota,
    principalType: fileSystemQuotaRulePrincipalType,
    quotaLimitInGigabytes: fileSystemQuotaRuleQuotaLimitInGigabytes,
    displayName: fileSystemQuotaRuleDisplayName,
    principalId: testPrincipal.id,
});
Copy
import pulumi
import pulumi_oci as oci

test_file_system_quota_rule = oci.file_storage.FileSystemQuotaRule("test_file_system_quota_rule",
    file_system_id=test_file_system["id"],
    is_hard_quota=file_system_quota_rule_is_hard_quota,
    principal_type=file_system_quota_rule_principal_type,
    quota_limit_in_gigabytes=file_system_quota_rule_quota_limit_in_gigabytes,
    display_name=file_system_quota_rule_display_name,
    principal_id=test_principal["id"])
Copy
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/filestorage"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := filestorage.NewFileSystemQuotaRule(ctx, "test_file_system_quota_rule", &filestorage.FileSystemQuotaRuleArgs{
			FileSystemId:          pulumi.Any(testFileSystem.Id),
			IsHardQuota:           pulumi.Any(fileSystemQuotaRuleIsHardQuota),
			PrincipalType:         pulumi.Any(fileSystemQuotaRulePrincipalType),
			QuotaLimitInGigabytes: pulumi.Any(fileSystemQuotaRuleQuotaLimitInGigabytes),
			DisplayName:           pulumi.Any(fileSystemQuotaRuleDisplayName),
			PrincipalId:           pulumi.Any(testPrincipal.Id),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testFileSystemQuotaRule = new Oci.FileStorage.FileSystemQuotaRule("test_file_system_quota_rule", new()
    {
        FileSystemId = testFileSystem.Id,
        IsHardQuota = fileSystemQuotaRuleIsHardQuota,
        PrincipalType = fileSystemQuotaRulePrincipalType,
        QuotaLimitInGigabytes = fileSystemQuotaRuleQuotaLimitInGigabytes,
        DisplayName = fileSystemQuotaRuleDisplayName,
        PrincipalId = testPrincipal.Id,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.FileStorage.FileSystemQuotaRule;
import com.pulumi.oci.FileStorage.FileSystemQuotaRuleArgs;
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) {
        var testFileSystemQuotaRule = new FileSystemQuotaRule("testFileSystemQuotaRule", FileSystemQuotaRuleArgs.builder()
            .fileSystemId(testFileSystem.id())
            .isHardQuota(fileSystemQuotaRuleIsHardQuota)
            .principalType(fileSystemQuotaRulePrincipalType)
            .quotaLimitInGigabytes(fileSystemQuotaRuleQuotaLimitInGigabytes)
            .displayName(fileSystemQuotaRuleDisplayName)
            .principalId(testPrincipal.id())
            .build());

    }
}
Copy
resources:
  testFileSystemQuotaRule:
    type: oci:FileStorage:FileSystemQuotaRule
    name: test_file_system_quota_rule
    properties:
      fileSystemId: ${testFileSystem.id}
      isHardQuota: ${fileSystemQuotaRuleIsHardQuota}
      principalType: ${fileSystemQuotaRulePrincipalType}
      quotaLimitInGigabytes: ${fileSystemQuotaRuleQuotaLimitInGigabytes}
      displayName: ${fileSystemQuotaRuleDisplayName}
      principalId: ${testPrincipal.id}
Copy

Create FileSystemQuotaRule Resource

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

Constructor syntax

new FileSystemQuotaRule(name: string, args: FileSystemQuotaRuleArgs, opts?: CustomResourceOptions);
@overload
def FileSystemQuotaRule(resource_name: str,
                        args: FileSystemQuotaRuleArgs,
                        opts: Optional[ResourceOptions] = None)

@overload
def FileSystemQuotaRule(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        file_system_id: Optional[str] = None,
                        is_hard_quota: Optional[bool] = None,
                        principal_type: Optional[str] = None,
                        quota_limit_in_gigabytes: Optional[int] = None,
                        are_violators_only: Optional[bool] = None,
                        display_name: Optional[str] = None,
                        principal_id: Optional[int] = None,
                        quota_rule_id: Optional[str] = None)
func NewFileSystemQuotaRule(ctx *Context, name string, args FileSystemQuotaRuleArgs, opts ...ResourceOption) (*FileSystemQuotaRule, error)
public FileSystemQuotaRule(string name, FileSystemQuotaRuleArgs args, CustomResourceOptions? opts = null)
public FileSystemQuotaRule(String name, FileSystemQuotaRuleArgs args)
public FileSystemQuotaRule(String name, FileSystemQuotaRuleArgs args, CustomResourceOptions options)
type: oci:FileStorage:FileSystemQuotaRule
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. FileSystemQuotaRuleArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. FileSystemQuotaRuleArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. FileSystemQuotaRuleArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. FileSystemQuotaRuleArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. FileSystemQuotaRuleArgs
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 fileSystemQuotaRuleResource = new Oci.FileStorage.FileSystemQuotaRule("fileSystemQuotaRuleResource", new()
{
    FileSystemId = "string",
    IsHardQuota = false,
    PrincipalType = "string",
    QuotaLimitInGigabytes = 0,
    AreViolatorsOnly = false,
    DisplayName = "string",
    PrincipalId = 0,
    QuotaRuleId = "string",
});
Copy
example, err := FileStorage.NewFileSystemQuotaRule(ctx, "fileSystemQuotaRuleResource", &FileStorage.FileSystemQuotaRuleArgs{
	FileSystemId:          pulumi.String("string"),
	IsHardQuota:           pulumi.Bool(false),
	PrincipalType:         pulumi.String("string"),
	QuotaLimitInGigabytes: pulumi.Int(0),
	AreViolatorsOnly:      pulumi.Bool(false),
	DisplayName:           pulumi.String("string"),
	PrincipalId:           pulumi.Int(0),
	QuotaRuleId:           pulumi.String("string"),
})
Copy
var fileSystemQuotaRuleResource = new FileSystemQuotaRule("fileSystemQuotaRuleResource", FileSystemQuotaRuleArgs.builder()
    .fileSystemId("string")
    .isHardQuota(false)
    .principalType("string")
    .quotaLimitInGigabytes(0)
    .areViolatorsOnly(false)
    .displayName("string")
    .principalId(0)
    .quotaRuleId("string")
    .build());
Copy
file_system_quota_rule_resource = oci.file_storage.FileSystemQuotaRule("fileSystemQuotaRuleResource",
    file_system_id="string",
    is_hard_quota=False,
    principal_type="string",
    quota_limit_in_gigabytes=0,
    are_violators_only=False,
    display_name="string",
    principal_id=0,
    quota_rule_id="string")
Copy
const fileSystemQuotaRuleResource = new oci.filestorage.FileSystemQuotaRule("fileSystemQuotaRuleResource", {
    fileSystemId: "string",
    isHardQuota: false,
    principalType: "string",
    quotaLimitInGigabytes: 0,
    areViolatorsOnly: false,
    displayName: "string",
    principalId: 0,
    quotaRuleId: "string",
});
Copy
type: oci:FileStorage:FileSystemQuotaRule
properties:
    areViolatorsOnly: false
    displayName: string
    fileSystemId: string
    isHardQuota: false
    principalId: 0
    principalType: string
    quotaLimitInGigabytes: 0
    quotaRuleId: string
Copy

FileSystemQuotaRule 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 FileSystemQuotaRule resource accepts the following input properties:

FileSystemId
This property is required.
Changes to this property will trigger replacement.
string
The OCID of the file system.
IsHardQuota
This property is required.
Changes to this property will trigger replacement.
bool
The flag is an identifier to tell whether the quota rule will be enforced. If isHardQuota is true, the quota rule will be enforced so the write will be blocked if usage exceeds the hard quota limit. If isHardQuota is false, usage can exceed the soft quota limit. An alarm or notification will be sent to the customer, if the specific usage exceeds.
PrincipalType
This property is required.
Changes to this property will trigger replacement.
string
The type of the owner of this quota rule and usage.
QuotaLimitInGigabytes This property is required. int

(Updatable) The value of the quota rule. The unit is Gigabyte.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

AreViolatorsOnly bool
DisplayName string
(Updatable) A user-friendly name. It does not have to be unique, and it is changeable. Avoid entering confidential information. Example: UserXYZ's quota
PrincipalId Changes to this property will trigger replacement. int
An identifier for the owner of this usage and quota rule. Unix-like operating systems use this integer value to identify a user or group to manage access control.
QuotaRuleId string
FileSystemId
This property is required.
Changes to this property will trigger replacement.
string
The OCID of the file system.
IsHardQuota
This property is required.
Changes to this property will trigger replacement.
bool
The flag is an identifier to tell whether the quota rule will be enforced. If isHardQuota is true, the quota rule will be enforced so the write will be blocked if usage exceeds the hard quota limit. If isHardQuota is false, usage can exceed the soft quota limit. An alarm or notification will be sent to the customer, if the specific usage exceeds.
PrincipalType
This property is required.
Changes to this property will trigger replacement.
string
The type of the owner of this quota rule and usage.
QuotaLimitInGigabytes This property is required. int

(Updatable) The value of the quota rule. The unit is Gigabyte.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

AreViolatorsOnly bool
DisplayName string
(Updatable) A user-friendly name. It does not have to be unique, and it is changeable. Avoid entering confidential information. Example: UserXYZ's quota
PrincipalId Changes to this property will trigger replacement. int
An identifier for the owner of this usage and quota rule. Unix-like operating systems use this integer value to identify a user or group to manage access control.
QuotaRuleId string
fileSystemId
This property is required.
Changes to this property will trigger replacement.
String
The OCID of the file system.
isHardQuota
This property is required.
Changes to this property will trigger replacement.
Boolean
The flag is an identifier to tell whether the quota rule will be enforced. If isHardQuota is true, the quota rule will be enforced so the write will be blocked if usage exceeds the hard quota limit. If isHardQuota is false, usage can exceed the soft quota limit. An alarm or notification will be sent to the customer, if the specific usage exceeds.
principalType
This property is required.
Changes to this property will trigger replacement.
String
The type of the owner of this quota rule and usage.
quotaLimitInGigabytes This property is required. Integer

(Updatable) The value of the quota rule. The unit is Gigabyte.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

areViolatorsOnly Boolean
displayName String
(Updatable) A user-friendly name. It does not have to be unique, and it is changeable. Avoid entering confidential information. Example: UserXYZ's quota
principalId Changes to this property will trigger replacement. Integer
An identifier for the owner of this usage and quota rule. Unix-like operating systems use this integer value to identify a user or group to manage access control.
quotaRuleId String
fileSystemId
This property is required.
Changes to this property will trigger replacement.
string
The OCID of the file system.
isHardQuota
This property is required.
Changes to this property will trigger replacement.
boolean
The flag is an identifier to tell whether the quota rule will be enforced. If isHardQuota is true, the quota rule will be enforced so the write will be blocked if usage exceeds the hard quota limit. If isHardQuota is false, usage can exceed the soft quota limit. An alarm or notification will be sent to the customer, if the specific usage exceeds.
principalType
This property is required.
Changes to this property will trigger replacement.
string
The type of the owner of this quota rule and usage.
quotaLimitInGigabytes This property is required. number

(Updatable) The value of the quota rule. The unit is Gigabyte.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

areViolatorsOnly boolean
displayName string
(Updatable) A user-friendly name. It does not have to be unique, and it is changeable. Avoid entering confidential information. Example: UserXYZ's quota
principalId Changes to this property will trigger replacement. number
An identifier for the owner of this usage and quota rule. Unix-like operating systems use this integer value to identify a user or group to manage access control.
quotaRuleId string
file_system_id
This property is required.
Changes to this property will trigger replacement.
str
The OCID of the file system.
is_hard_quota
This property is required.
Changes to this property will trigger replacement.
bool
The flag is an identifier to tell whether the quota rule will be enforced. If isHardQuota is true, the quota rule will be enforced so the write will be blocked if usage exceeds the hard quota limit. If isHardQuota is false, usage can exceed the soft quota limit. An alarm or notification will be sent to the customer, if the specific usage exceeds.
principal_type
This property is required.
Changes to this property will trigger replacement.
str
The type of the owner of this quota rule and usage.
quota_limit_in_gigabytes This property is required. int

(Updatable) The value of the quota rule. The unit is Gigabyte.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

are_violators_only bool
display_name str
(Updatable) A user-friendly name. It does not have to be unique, and it is changeable. Avoid entering confidential information. Example: UserXYZ's quota
principal_id Changes to this property will trigger replacement. int
An identifier for the owner of this usage and quota rule. Unix-like operating systems use this integer value to identify a user or group to manage access control.
quota_rule_id str
fileSystemId
This property is required.
Changes to this property will trigger replacement.
String
The OCID of the file system.
isHardQuota
This property is required.
Changes to this property will trigger replacement.
Boolean
The flag is an identifier to tell whether the quota rule will be enforced. If isHardQuota is true, the quota rule will be enforced so the write will be blocked if usage exceeds the hard quota limit. If isHardQuota is false, usage can exceed the soft quota limit. An alarm or notification will be sent to the customer, if the specific usage exceeds.
principalType
This property is required.
Changes to this property will trigger replacement.
String
The type of the owner of this quota rule and usage.
quotaLimitInGigabytes This property is required. Number

(Updatable) The value of the quota rule. The unit is Gigabyte.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

areViolatorsOnly Boolean
displayName String
(Updatable) A user-friendly name. It does not have to be unique, and it is changeable. Avoid entering confidential information. Example: UserXYZ's quota
principalId Changes to this property will trigger replacement. Number
An identifier for the owner of this usage and quota rule. Unix-like operating systems use this integer value to identify a user or group to manage access control.
quotaRuleId String

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
TimeCreated string
The date and time the quota rule was started, expressed in RFC 3339 timestamp format. Example: 2016-08-25T21:10:29.600Z
TimeUpdated string
The date and time the quota rule was last updated, expressed in RFC 3339 timestamp format. Example: 2016-08-25T21:10:29.600Z
Id string
The provider-assigned unique ID for this managed resource.
TimeCreated string
The date and time the quota rule was started, expressed in RFC 3339 timestamp format. Example: 2016-08-25T21:10:29.600Z
TimeUpdated string
The date and time the quota rule was last updated, expressed in RFC 3339 timestamp format. Example: 2016-08-25T21:10:29.600Z
id String
The provider-assigned unique ID for this managed resource.
timeCreated String
The date and time the quota rule was started, expressed in RFC 3339 timestamp format. Example: 2016-08-25T21:10:29.600Z
timeUpdated String
The date and time the quota rule was last updated, expressed in RFC 3339 timestamp format. Example: 2016-08-25T21:10:29.600Z
id string
The provider-assigned unique ID for this managed resource.
timeCreated string
The date and time the quota rule was started, expressed in RFC 3339 timestamp format. Example: 2016-08-25T21:10:29.600Z
timeUpdated string
The date and time the quota rule was last updated, expressed in RFC 3339 timestamp format. Example: 2016-08-25T21:10:29.600Z
id str
The provider-assigned unique ID for this managed resource.
time_created str
The date and time the quota rule was started, expressed in RFC 3339 timestamp format. Example: 2016-08-25T21:10:29.600Z
time_updated str
The date and time the quota rule was last updated, expressed in RFC 3339 timestamp format. Example: 2016-08-25T21:10:29.600Z
id String
The provider-assigned unique ID for this managed resource.
timeCreated String
The date and time the quota rule was started, expressed in RFC 3339 timestamp format. Example: 2016-08-25T21:10:29.600Z
timeUpdated String
The date and time the quota rule was last updated, expressed in RFC 3339 timestamp format. Example: 2016-08-25T21:10:29.600Z

Look up Existing FileSystemQuotaRule Resource

Get an existing FileSystemQuotaRule 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?: FileSystemQuotaRuleState, opts?: CustomResourceOptions): FileSystemQuotaRule
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        are_violators_only: Optional[bool] = None,
        display_name: Optional[str] = None,
        file_system_id: Optional[str] = None,
        is_hard_quota: Optional[bool] = None,
        principal_id: Optional[int] = None,
        principal_type: Optional[str] = None,
        quota_limit_in_gigabytes: Optional[int] = None,
        quota_rule_id: Optional[str] = None,
        time_created: Optional[str] = None,
        time_updated: Optional[str] = None) -> FileSystemQuotaRule
func GetFileSystemQuotaRule(ctx *Context, name string, id IDInput, state *FileSystemQuotaRuleState, opts ...ResourceOption) (*FileSystemQuotaRule, error)
public static FileSystemQuotaRule Get(string name, Input<string> id, FileSystemQuotaRuleState? state, CustomResourceOptions? opts = null)
public static FileSystemQuotaRule get(String name, Output<String> id, FileSystemQuotaRuleState state, CustomResourceOptions options)
resources:  _:    type: oci:FileStorage:FileSystemQuotaRule    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
AreViolatorsOnly bool
DisplayName string
(Updatable) A user-friendly name. It does not have to be unique, and it is changeable. Avoid entering confidential information. Example: UserXYZ's quota
FileSystemId Changes to this property will trigger replacement. string
The OCID of the file system.
IsHardQuota Changes to this property will trigger replacement. bool
The flag is an identifier to tell whether the quota rule will be enforced. If isHardQuota is true, the quota rule will be enforced so the write will be blocked if usage exceeds the hard quota limit. If isHardQuota is false, usage can exceed the soft quota limit. An alarm or notification will be sent to the customer, if the specific usage exceeds.
PrincipalId Changes to this property will trigger replacement. int
An identifier for the owner of this usage and quota rule. Unix-like operating systems use this integer value to identify a user or group to manage access control.
PrincipalType Changes to this property will trigger replacement. string
The type of the owner of this quota rule and usage.
QuotaLimitInGigabytes int

(Updatable) The value of the quota rule. The unit is Gigabyte.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

QuotaRuleId string
TimeCreated string
The date and time the quota rule was started, expressed in RFC 3339 timestamp format. Example: 2016-08-25T21:10:29.600Z
TimeUpdated string
The date and time the quota rule was last updated, expressed in RFC 3339 timestamp format. Example: 2016-08-25T21:10:29.600Z
AreViolatorsOnly bool
DisplayName string
(Updatable) A user-friendly name. It does not have to be unique, and it is changeable. Avoid entering confidential information. Example: UserXYZ's quota
FileSystemId Changes to this property will trigger replacement. string
The OCID of the file system.
IsHardQuota Changes to this property will trigger replacement. bool
The flag is an identifier to tell whether the quota rule will be enforced. If isHardQuota is true, the quota rule will be enforced so the write will be blocked if usage exceeds the hard quota limit. If isHardQuota is false, usage can exceed the soft quota limit. An alarm or notification will be sent to the customer, if the specific usage exceeds.
PrincipalId Changes to this property will trigger replacement. int
An identifier for the owner of this usage and quota rule. Unix-like operating systems use this integer value to identify a user or group to manage access control.
PrincipalType Changes to this property will trigger replacement. string
The type of the owner of this quota rule and usage.
QuotaLimitInGigabytes int

(Updatable) The value of the quota rule. The unit is Gigabyte.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

QuotaRuleId string
TimeCreated string
The date and time the quota rule was started, expressed in RFC 3339 timestamp format. Example: 2016-08-25T21:10:29.600Z
TimeUpdated string
The date and time the quota rule was last updated, expressed in RFC 3339 timestamp format. Example: 2016-08-25T21:10:29.600Z
areViolatorsOnly Boolean
displayName String
(Updatable) A user-friendly name. It does not have to be unique, and it is changeable. Avoid entering confidential information. Example: UserXYZ's quota
fileSystemId Changes to this property will trigger replacement. String
The OCID of the file system.
isHardQuota Changes to this property will trigger replacement. Boolean
The flag is an identifier to tell whether the quota rule will be enforced. If isHardQuota is true, the quota rule will be enforced so the write will be blocked if usage exceeds the hard quota limit. If isHardQuota is false, usage can exceed the soft quota limit. An alarm or notification will be sent to the customer, if the specific usage exceeds.
principalId Changes to this property will trigger replacement. Integer
An identifier for the owner of this usage and quota rule. Unix-like operating systems use this integer value to identify a user or group to manage access control.
principalType Changes to this property will trigger replacement. String
The type of the owner of this quota rule and usage.
quotaLimitInGigabytes Integer

(Updatable) The value of the quota rule. The unit is Gigabyte.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

quotaRuleId String
timeCreated String
The date and time the quota rule was started, expressed in RFC 3339 timestamp format. Example: 2016-08-25T21:10:29.600Z
timeUpdated String
The date and time the quota rule was last updated, expressed in RFC 3339 timestamp format. Example: 2016-08-25T21:10:29.600Z
areViolatorsOnly boolean
displayName string
(Updatable) A user-friendly name. It does not have to be unique, and it is changeable. Avoid entering confidential information. Example: UserXYZ's quota
fileSystemId Changes to this property will trigger replacement. string
The OCID of the file system.
isHardQuota Changes to this property will trigger replacement. boolean
The flag is an identifier to tell whether the quota rule will be enforced. If isHardQuota is true, the quota rule will be enforced so the write will be blocked if usage exceeds the hard quota limit. If isHardQuota is false, usage can exceed the soft quota limit. An alarm or notification will be sent to the customer, if the specific usage exceeds.
principalId Changes to this property will trigger replacement. number
An identifier for the owner of this usage and quota rule. Unix-like operating systems use this integer value to identify a user or group to manage access control.
principalType Changes to this property will trigger replacement. string
The type of the owner of this quota rule and usage.
quotaLimitInGigabytes number

(Updatable) The value of the quota rule. The unit is Gigabyte.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

quotaRuleId string
timeCreated string
The date and time the quota rule was started, expressed in RFC 3339 timestamp format. Example: 2016-08-25T21:10:29.600Z
timeUpdated string
The date and time the quota rule was last updated, expressed in RFC 3339 timestamp format. Example: 2016-08-25T21:10:29.600Z
are_violators_only bool
display_name str
(Updatable) A user-friendly name. It does not have to be unique, and it is changeable. Avoid entering confidential information. Example: UserXYZ's quota
file_system_id Changes to this property will trigger replacement. str
The OCID of the file system.
is_hard_quota Changes to this property will trigger replacement. bool
The flag is an identifier to tell whether the quota rule will be enforced. If isHardQuota is true, the quota rule will be enforced so the write will be blocked if usage exceeds the hard quota limit. If isHardQuota is false, usage can exceed the soft quota limit. An alarm or notification will be sent to the customer, if the specific usage exceeds.
principal_id Changes to this property will trigger replacement. int
An identifier for the owner of this usage and quota rule. Unix-like operating systems use this integer value to identify a user or group to manage access control.
principal_type Changes to this property will trigger replacement. str
The type of the owner of this quota rule and usage.
quota_limit_in_gigabytes int

(Updatable) The value of the quota rule. The unit is Gigabyte.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

quota_rule_id str
time_created str
The date and time the quota rule was started, expressed in RFC 3339 timestamp format. Example: 2016-08-25T21:10:29.600Z
time_updated str
The date and time the quota rule was last updated, expressed in RFC 3339 timestamp format. Example: 2016-08-25T21:10:29.600Z
areViolatorsOnly Boolean
displayName String
(Updatable) A user-friendly name. It does not have to be unique, and it is changeable. Avoid entering confidential information. Example: UserXYZ's quota
fileSystemId Changes to this property will trigger replacement. String
The OCID of the file system.
isHardQuota Changes to this property will trigger replacement. Boolean
The flag is an identifier to tell whether the quota rule will be enforced. If isHardQuota is true, the quota rule will be enforced so the write will be blocked if usage exceeds the hard quota limit. If isHardQuota is false, usage can exceed the soft quota limit. An alarm or notification will be sent to the customer, if the specific usage exceeds.
principalId Changes to this property will trigger replacement. Number
An identifier for the owner of this usage and quota rule. Unix-like operating systems use this integer value to identify a user or group to manage access control.
principalType Changes to this property will trigger replacement. String
The type of the owner of this quota rule and usage.
quotaLimitInGigabytes Number

(Updatable) The value of the quota rule. The unit is Gigabyte.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

quotaRuleId String
timeCreated String
The date and time the quota rule was started, expressed in RFC 3339 timestamp format. Example: 2016-08-25T21:10:29.600Z
timeUpdated String
The date and time the quota rule was last updated, expressed in RFC 3339 timestamp format. Example: 2016-08-25T21:10:29.600Z

Import

FileSystemQuotaRules can be imported using the id, e.g.

$ pulumi import oci:FileStorage/fileSystemQuotaRule:FileSystemQuotaRule test_file_system_quota_rule "fileSystems/{fileSystemId}/quotaRules/{quotaRuleId}"
Copy

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

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes
This Pulumi package is based on the oci Terraform Provider.