Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.FileStorage.getFileSystemQuotaRules
Explore with Pulumi AI
This data source provides the list of File System Quota Rules in Oracle Cloud Infrastructure File Storage service.
List user or group usages and their quota rules by certain principal type.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testFileSystemQuotaRules = oci.FileStorage.getFileSystemQuotaRules({
    fileSystemId: testFileSystem.id,
    principalType: fileSystemQuotaRulePrincipalType,
    areViolatorsOnly: fileSystemQuotaRuleAreViolatorsOnly,
    principalId: testPrincipal.id,
});
import pulumi
import pulumi_oci as oci
test_file_system_quota_rules = oci.FileStorage.get_file_system_quota_rules(file_system_id=test_file_system["id"],
    principal_type=file_system_quota_rule_principal_type,
    are_violators_only=file_system_quota_rule_are_violators_only,
    principal_id=test_principal["id"])
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.GetFileSystemQuotaRules(ctx, &filestorage.GetFileSystemQuotaRulesArgs{
			FileSystemId:     testFileSystem.Id,
			PrincipalType:    fileSystemQuotaRulePrincipalType,
			AreViolatorsOnly: pulumi.BoolRef(fileSystemQuotaRuleAreViolatorsOnly),
			PrincipalId:      pulumi.IntRef(testPrincipal.Id),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() => 
{
    var testFileSystemQuotaRules = Oci.FileStorage.GetFileSystemQuotaRules.Invoke(new()
    {
        FileSystemId = testFileSystem.Id,
        PrincipalType = fileSystemQuotaRulePrincipalType,
        AreViolatorsOnly = fileSystemQuotaRuleAreViolatorsOnly,
        PrincipalId = testPrincipal.Id,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.FileStorage.FileStorageFunctions;
import com.pulumi.oci.FileStorage.inputs.GetFileSystemQuotaRulesArgs;
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 testFileSystemQuotaRules = FileStorageFunctions.getFileSystemQuotaRules(GetFileSystemQuotaRulesArgs.builder()
            .fileSystemId(testFileSystem.id())
            .principalType(fileSystemQuotaRulePrincipalType)
            .areViolatorsOnly(fileSystemQuotaRuleAreViolatorsOnly)
            .principalId(testPrincipal.id())
            .build());
    }
}
variables:
  testFileSystemQuotaRules:
    fn::invoke:
      function: oci:FileStorage:getFileSystemQuotaRules
      arguments:
        fileSystemId: ${testFileSystem.id}
        principalType: ${fileSystemQuotaRulePrincipalType}
        areViolatorsOnly: ${fileSystemQuotaRuleAreViolatorsOnly}
        principalId: ${testPrincipal.id}
Using getFileSystemQuotaRules
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 getFileSystemQuotaRules(args: GetFileSystemQuotaRulesArgs, opts?: InvokeOptions): Promise<GetFileSystemQuotaRulesResult>
function getFileSystemQuotaRulesOutput(args: GetFileSystemQuotaRulesOutputArgs, opts?: InvokeOptions): Output<GetFileSystemQuotaRulesResult>def get_file_system_quota_rules(are_violators_only: Optional[bool] = None,
                                file_system_id: Optional[str] = None,
                                filters: Optional[Sequence[GetFileSystemQuotaRulesFilter]] = None,
                                principal_id: Optional[int] = None,
                                principal_type: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetFileSystemQuotaRulesResult
def get_file_system_quota_rules_output(are_violators_only: Optional[pulumi.Input[bool]] = None,
                                file_system_id: Optional[pulumi.Input[str]] = None,
                                filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetFileSystemQuotaRulesFilterArgs]]]] = None,
                                principal_id: Optional[pulumi.Input[int]] = None,
                                principal_type: Optional[pulumi.Input[str]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetFileSystemQuotaRulesResult]func GetFileSystemQuotaRules(ctx *Context, args *GetFileSystemQuotaRulesArgs, opts ...InvokeOption) (*GetFileSystemQuotaRulesResult, error)
func GetFileSystemQuotaRulesOutput(ctx *Context, args *GetFileSystemQuotaRulesOutputArgs, opts ...InvokeOption) GetFileSystemQuotaRulesResultOutput> Note: This function is named GetFileSystemQuotaRules in the Go SDK.
public static class GetFileSystemQuotaRules 
{
    public static Task<GetFileSystemQuotaRulesResult> InvokeAsync(GetFileSystemQuotaRulesArgs args, InvokeOptions? opts = null)
    public static Output<GetFileSystemQuotaRulesResult> Invoke(GetFileSystemQuotaRulesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetFileSystemQuotaRulesResult> getFileSystemQuotaRules(GetFileSystemQuotaRulesArgs args, InvokeOptions options)
public static Output<GetFileSystemQuotaRulesResult> getFileSystemQuotaRules(GetFileSystemQuotaRulesArgs args, InvokeOptions options)
fn::invoke:
  function: oci:FileStorage/getFileSystemQuotaRules:getFileSystemQuotaRules
  arguments:
    # arguments dictionaryThe following arguments are supported:
- FileSystem stringId 
- The OCID of the file system.
- PrincipalType string
- The type of the owner of this quota rule and usage.
- AreViolators boolOnly 
- An option to only display the users or groups that violate their quota rules. If areViolatorsOnlyis false, the list result will display all the quota and usage report. IfareViolatorsOnlyis true, the list result will only display the quota and usage report for the users or groups that violate their quota rules.
- Filters
List<GetFile System Quota Rules Filter> 
- PrincipalId 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.
- FileSystem stringId 
- The OCID of the file system.
- PrincipalType string
- The type of the owner of this quota rule and usage.
- AreViolators boolOnly 
- An option to only display the users or groups that violate their quota rules. If areViolatorsOnlyis false, the list result will display all the quota and usage report. IfareViolatorsOnlyis true, the list result will only display the quota and usage report for the users or groups that violate their quota rules.
- Filters
[]GetFile System Quota Rules Filter 
- PrincipalId 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.
- fileSystem StringId 
- The OCID of the file system.
- principalType String
- The type of the owner of this quota rule and usage.
- areViolators BooleanOnly 
- An option to only display the users or groups that violate their quota rules. If areViolatorsOnlyis false, the list result will display all the quota and usage report. IfareViolatorsOnlyis true, the list result will only display the quota and usage report for the users or groups that violate their quota rules.
- filters
List<GetFile System Quota Rules Filter> 
- principalId 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.
- fileSystem stringId 
- The OCID of the file system.
- principalType string
- The type of the owner of this quota rule and usage.
- areViolators booleanOnly 
- An option to only display the users or groups that violate their quota rules. If areViolatorsOnlyis false, the list result will display all the quota and usage report. IfareViolatorsOnlyis true, the list result will only display the quota and usage report for the users or groups that violate their quota rules.
- filters
GetFile System Quota Rules Filter[] 
- principalId 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.
- file_system_ strid 
- The OCID of the file system.
- principal_type str
- The type of the owner of this quota rule and usage.
- are_violators_ boolonly 
- An option to only display the users or groups that violate their quota rules. If areViolatorsOnlyis false, the list result will display all the quota and usage report. IfareViolatorsOnlyis true, the list result will only display the quota and usage report for the users or groups that violate their quota rules.
- filters
Sequence[GetFile System Quota Rules Filter] 
- principal_id 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.
- fileSystem StringId 
- The OCID of the file system.
- principalType String
- The type of the owner of this quota rule and usage.
- areViolators BooleanOnly 
- An option to only display the users or groups that violate their quota rules. If areViolatorsOnlyis false, the list result will display all the quota and usage report. IfareViolatorsOnlyis true, the list result will only display the quota and usage report for the users or groups that violate their quota rules.
- filters List<Property Map>
- principalId 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.
getFileSystemQuotaRules Result
The following output properties are available:
- FileSystem stringId 
- The OCID of the file System.
- Id string
- The provider-assigned unique ID for this managed resource.
- PrincipalType string
- The type of the owner of this quota rule and usage.
- QuotaRules List<GetFile System Quota Rules Quota Rule> 
- The list of quota_rules.
- AreViolators boolOnly 
- Filters
List<GetFile System Quota Rules Filter> 
- PrincipalId 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.
- FileSystem stringId 
- The OCID of the file System.
- Id string
- The provider-assigned unique ID for this managed resource.
- PrincipalType string
- The type of the owner of this quota rule and usage.
- QuotaRules []GetFile System Quota Rules Quota Rule 
- The list of quota_rules.
- AreViolators boolOnly 
- Filters
[]GetFile System Quota Rules Filter 
- PrincipalId 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.
- fileSystem StringId 
- The OCID of the file System.
- id String
- The provider-assigned unique ID for this managed resource.
- principalType String
- The type of the owner of this quota rule and usage.
- quotaRules List<GetFile System Quota Rules Quota Rule> 
- The list of quota_rules.
- areViolators BooleanOnly 
- filters
List<GetFile System Quota Rules Filter> 
- principalId 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.
- fileSystem stringId 
- The OCID of the file System.
- id string
- The provider-assigned unique ID for this managed resource.
- principalType string
- The type of the owner of this quota rule and usage.
- quotaRules GetFile System Quota Rules Quota Rule[] 
- The list of quota_rules.
- areViolators booleanOnly 
- filters
GetFile System Quota Rules Filter[] 
- principalId 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.
- file_system_ strid 
- The OCID of the file System.
- id str
- The provider-assigned unique ID for this managed resource.
- principal_type str
- The type of the owner of this quota rule and usage.
- quota_rules Sequence[GetFile System Quota Rules Quota Rule] 
- The list of quota_rules.
- are_violators_ boolonly 
- filters
Sequence[GetFile System Quota Rules Filter] 
- principal_id 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.
- fileSystem StringId 
- The OCID of the file System.
- id String
- The provider-assigned unique ID for this managed resource.
- principalType String
- The type of the owner of this quota rule and usage.
- quotaRules List<Property Map>
- The list of quota_rules.
- areViolators BooleanOnly 
- filters List<Property Map>
- principalId 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.
Supporting Types
GetFileSystemQuotaRulesFilter     
GetFileSystemQuotaRulesQuotaRule      
- AreViolators boolOnly 
- An option to only display the users or groups that violate their quota rules. If areViolatorsOnlyis false, the list result will display all the quota and usage report. IfareViolatorsOnlyis true, the list result will only display the quota and usage report for the users or groups that violate their quota rules.
- DisplayName string
- A user-friendly name. It does not have to be unique, and it is changeable. Avoid entering confidential information. Example: UserXYZ's quota
- FileSystem stringId 
- The OCID of the file system.
- Id string
- The identifier of the quota rule. It is the base64 encoded string of the tuple <principalId, principalType, isHardQuota>.
- IsHard boolQuota 
- The flag is an identifier to tell whether the quota rule will be enforced. If isHardQuotais false, the quota rule will be enforced so the usage cannot exceed the hard quota limit. IfisHardQuotais true, usage can exceed the soft quota limit. An alarm or notification will be sent to the customer, if the specific usage exceeds.
- PrincipalId 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 string
- The type of the owner of this quota rule and usage.
- QuotaLimit intIn Gigabytes 
- The value of the quota rule. The unit is Gigabyte.
- QuotaRule stringId 
- 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
- AreViolators boolOnly 
- An option to only display the users or groups that violate their quota rules. If areViolatorsOnlyis false, the list result will display all the quota and usage report. IfareViolatorsOnlyis true, the list result will only display the quota and usage report for the users or groups that violate their quota rules.
- DisplayName string
- A user-friendly name. It does not have to be unique, and it is changeable. Avoid entering confidential information. Example: UserXYZ's quota
- FileSystem stringId 
- The OCID of the file system.
- Id string
- The identifier of the quota rule. It is the base64 encoded string of the tuple <principalId, principalType, isHardQuota>.
- IsHard boolQuota 
- The flag is an identifier to tell whether the quota rule will be enforced. If isHardQuotais false, the quota rule will be enforced so the usage cannot exceed the hard quota limit. IfisHardQuotais true, usage can exceed the soft quota limit. An alarm or notification will be sent to the customer, if the specific usage exceeds.
- PrincipalId 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 string
- The type of the owner of this quota rule and usage.
- QuotaLimit intIn Gigabytes 
- The value of the quota rule. The unit is Gigabyte.
- QuotaRule stringId 
- 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
- areViolators BooleanOnly 
- An option to only display the users or groups that violate their quota rules. If areViolatorsOnlyis false, the list result will display all the quota and usage report. IfareViolatorsOnlyis true, the list result will only display the quota and usage report for the users or groups that violate their quota rules.
- displayName String
- A user-friendly name. It does not have to be unique, and it is changeable. Avoid entering confidential information. Example: UserXYZ's quota
- fileSystem StringId 
- The OCID of the file system.
- id String
- The identifier of the quota rule. It is the base64 encoded string of the tuple <principalId, principalType, isHardQuota>.
- isHard BooleanQuota 
- The flag is an identifier to tell whether the quota rule will be enforced. If isHardQuotais false, the quota rule will be enforced so the usage cannot exceed the hard quota limit. IfisHardQuotais true, usage can exceed the soft quota limit. An alarm or notification will be sent to the customer, if the specific usage exceeds.
- principalId 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 String
- The type of the owner of this quota rule and usage.
- quotaLimit IntegerIn Gigabytes 
- The value of the quota rule. The unit is Gigabyte.
- quotaRule StringId 
- 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
- areViolators booleanOnly 
- An option to only display the users or groups that violate their quota rules. If areViolatorsOnlyis false, the list result will display all the quota and usage report. IfareViolatorsOnlyis true, the list result will only display the quota and usage report for the users or groups that violate their quota rules.
- displayName string
- A user-friendly name. It does not have to be unique, and it is changeable. Avoid entering confidential information. Example: UserXYZ's quota
- fileSystem stringId 
- The OCID of the file system.
- id string
- The identifier of the quota rule. It is the base64 encoded string of the tuple <principalId, principalType, isHardQuota>.
- isHard booleanQuota 
- The flag is an identifier to tell whether the quota rule will be enforced. If isHardQuotais false, the quota rule will be enforced so the usage cannot exceed the hard quota limit. IfisHardQuotais true, usage can exceed the soft quota limit. An alarm or notification will be sent to the customer, if the specific usage exceeds.
- principalId 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 string
- The type of the owner of this quota rule and usage.
- quotaLimit numberIn Gigabytes 
- The value of the quota rule. The unit is Gigabyte.
- quotaRule stringId 
- 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_ boolonly 
- An option to only display the users or groups that violate their quota rules. If areViolatorsOnlyis false, the list result will display all the quota and usage report. IfareViolatorsOnlyis true, the list result will only display the quota and usage report for the users or groups that violate their quota rules.
- display_name str
- 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_ strid 
- The OCID of the file system.
- id str
- The identifier of the quota rule. It is the base64 encoded string of the tuple <principalId, principalType, isHardQuota>.
- is_hard_ boolquota 
- The flag is an identifier to tell whether the quota rule will be enforced. If isHardQuotais false, the quota rule will be enforced so the usage cannot exceed the hard quota limit. IfisHardQuotais true, usage can exceed the soft quota limit. An alarm or notification will be sent to the customer, if the specific usage exceeds.
- principal_id 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 str
- The type of the owner of this quota rule and usage.
- quota_limit_ intin_ gigabytes 
- The value of the quota rule. The unit is Gigabyte.
- quota_rule_ strid 
- 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
- areViolators BooleanOnly 
- An option to only display the users or groups that violate their quota rules. If areViolatorsOnlyis false, the list result will display all the quota and usage report. IfareViolatorsOnlyis true, the list result will only display the quota and usage report for the users or groups that violate their quota rules.
- displayName String
- A user-friendly name. It does not have to be unique, and it is changeable. Avoid entering confidential information. Example: UserXYZ's quota
- fileSystem StringId 
- The OCID of the file system.
- id String
- The identifier of the quota rule. It is the base64 encoded string of the tuple <principalId, principalType, isHardQuota>.
- isHard BooleanQuota 
- The flag is an identifier to tell whether the quota rule will be enforced. If isHardQuotais false, the quota rule will be enforced so the usage cannot exceed the hard quota limit. IfisHardQuotais true, usage can exceed the soft quota limit. An alarm or notification will be sent to the customer, if the specific usage exceeds.
- principalId 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 String
- The type of the owner of this quota rule and usage.
- quotaLimit NumberIn Gigabytes 
- The value of the quota rule. The unit is Gigabyte.
- quotaRule StringId 
- 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
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.