1. Packages
  2. Powerscale Provider
  3. API Docs
  4. NfsGlobalSettings
powerscale 1.7.1 published on Wednesday, Apr 30, 2025 by dell

powerscale.NfsGlobalSettings

Explore with Pulumi AI

powerscale logo
powerscale 1.7.1 published on Wednesday, Apr 30, 2025 by dell

    This resource is used to manage the NFS Global Settings of PowerScale Array. We can Create, Update and Delete the NFS Global Settings using this resource.
    Note that, NFS Global Settings is the native functionality of PowerScale. When creating the resource, we actually load NFS Global Settings from PowerScale to the resource.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as powerscale from "@pulumi/powerscale";
    
    // PowerScale NFS Global Settings allow you to configure NFS global settings on PowerScale.
    const example = new powerscale.NfsGlobalSettings("example", {});
    
    import pulumi
    import pulumi_powerscale as powerscale
    
    # PowerScale NFS Global Settings allow you to configure NFS global settings on PowerScale.
    example = powerscale.NfsGlobalSettings("example")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/powerscale/powerscale"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// PowerScale NFS Global Settings allow you to configure NFS global settings on PowerScale.
    		_, err := powerscale.NewNfsGlobalSettings(ctx, "example", nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Powerscale = Pulumi.Powerscale;
    
    return await Deployment.RunAsync(() => 
    {
        // PowerScale NFS Global Settings allow you to configure NFS global settings on PowerScale.
        var example = new Powerscale.NfsGlobalSettings("example");
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.powerscale.NfsGlobalSettings;
    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) {
            // PowerScale NFS Global Settings allow you to configure NFS global settings on PowerScale.
            var example = new NfsGlobalSettings("example");
    
        }
    }
    
    resources:
      # PowerScale NFS Global Settings allow you to configure NFS global settings on PowerScale.
      example:
        type: powerscale:NfsGlobalSettings
    

    Create NfsGlobalSettings Resource

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

    Constructor syntax

    new NfsGlobalSettings(name: string, args?: NfsGlobalSettingsArgs, opts?: CustomResourceOptions);
    @overload
    def NfsGlobalSettings(resource_name: str,
                          args: Optional[NfsGlobalSettingsArgs] = None,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def NfsGlobalSettings(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          nfsv3_enabled: Optional[bool] = None,
                          nfsv3_rdma_enabled: Optional[bool] = None,
                          nfsv4_enabled: Optional[bool] = None,
                          rpc_maxthreads: Optional[float] = None,
                          rpc_minthreads: Optional[float] = None,
                          rquota_enabled: Optional[bool] = None,
                          service: Optional[bool] = None)
    func NewNfsGlobalSettings(ctx *Context, name string, args *NfsGlobalSettingsArgs, opts ...ResourceOption) (*NfsGlobalSettings, error)
    public NfsGlobalSettings(string name, NfsGlobalSettingsArgs? args = null, CustomResourceOptions? opts = null)
    public NfsGlobalSettings(String name, NfsGlobalSettingsArgs args)
    public NfsGlobalSettings(String name, NfsGlobalSettingsArgs args, CustomResourceOptions options)
    
    type: powerscale:NfsGlobalSettings
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args NfsGlobalSettingsArgs
    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 NfsGlobalSettingsArgs
    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 NfsGlobalSettingsArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args NfsGlobalSettingsArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args NfsGlobalSettingsArgs
    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 nfsGlobalSettingsResource = new Powerscale.NfsGlobalSettings("nfsGlobalSettingsResource", new()
    {
        Nfsv3Enabled = false,
        Nfsv3RdmaEnabled = false,
        Nfsv4Enabled = false,
        RpcMaxthreads = 0,
        RpcMinthreads = 0,
        RquotaEnabled = false,
        Service = false,
    });
    
    example, err := powerscale.NewNfsGlobalSettings(ctx, "nfsGlobalSettingsResource", &powerscale.NfsGlobalSettingsArgs{
    	Nfsv3Enabled:     pulumi.Bool(false),
    	Nfsv3RdmaEnabled: pulumi.Bool(false),
    	Nfsv4Enabled:     pulumi.Bool(false),
    	RpcMaxthreads:    pulumi.Float64(0),
    	RpcMinthreads:    pulumi.Float64(0),
    	RquotaEnabled:    pulumi.Bool(false),
    	Service:          pulumi.Bool(false),
    })
    
    var nfsGlobalSettingsResource = new NfsGlobalSettings("nfsGlobalSettingsResource", NfsGlobalSettingsArgs.builder()
        .nfsv3Enabled(false)
        .nfsv3RdmaEnabled(false)
        .nfsv4Enabled(false)
        .rpcMaxthreads(0)
        .rpcMinthreads(0)
        .rquotaEnabled(false)
        .service(false)
        .build());
    
    nfs_global_settings_resource = powerscale.NfsGlobalSettings("nfsGlobalSettingsResource",
        nfsv3_enabled=False,
        nfsv3_rdma_enabled=False,
        nfsv4_enabled=False,
        rpc_maxthreads=0,
        rpc_minthreads=0,
        rquota_enabled=False,
        service=False)
    
    const nfsGlobalSettingsResource = new powerscale.NfsGlobalSettings("nfsGlobalSettingsResource", {
        nfsv3Enabled: false,
        nfsv3RdmaEnabled: false,
        nfsv4Enabled: false,
        rpcMaxthreads: 0,
        rpcMinthreads: 0,
        rquotaEnabled: false,
        service: false,
    });
    
    type: powerscale:NfsGlobalSettings
    properties:
        nfsv3Enabled: false
        nfsv3RdmaEnabled: false
        nfsv4Enabled: false
        rpcMaxthreads: 0
        rpcMinthreads: 0
        rquotaEnabled: false
        service: false
    

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

    Nfsv3Enabled bool
    True if NFSv3 is enabled.
    Nfsv3RdmaEnabled bool
    True if the RDMA is enabled for NFSv3.
    Nfsv4Enabled bool
    True if NFSv4 is enabled.
    RpcMaxthreads double
    Specifies the maximum number of threads in the nfsd thread pool.
    RpcMinthreads double
    Specifies the minimum number of threads in the nfsd thread pool.
    RquotaEnabled bool
    True if the rquota protocol is enabled.
    Service bool
    True if the NFS service is enabled. When set to false, the NFS service is disabled.
    Nfsv3Enabled bool
    True if NFSv3 is enabled.
    Nfsv3RdmaEnabled bool
    True if the RDMA is enabled for NFSv3.
    Nfsv4Enabled bool
    True if NFSv4 is enabled.
    RpcMaxthreads float64
    Specifies the maximum number of threads in the nfsd thread pool.
    RpcMinthreads float64
    Specifies the minimum number of threads in the nfsd thread pool.
    RquotaEnabled bool
    True if the rquota protocol is enabled.
    Service bool
    True if the NFS service is enabled. When set to false, the NFS service is disabled.
    nfsv3Enabled Boolean
    True if NFSv3 is enabled.
    nfsv3RdmaEnabled Boolean
    True if the RDMA is enabled for NFSv3.
    nfsv4Enabled Boolean
    True if NFSv4 is enabled.
    rpcMaxthreads Double
    Specifies the maximum number of threads in the nfsd thread pool.
    rpcMinthreads Double
    Specifies the minimum number of threads in the nfsd thread pool.
    rquotaEnabled Boolean
    True if the rquota protocol is enabled.
    service Boolean
    True if the NFS service is enabled. When set to false, the NFS service is disabled.
    nfsv3Enabled boolean
    True if NFSv3 is enabled.
    nfsv3RdmaEnabled boolean
    True if the RDMA is enabled for NFSv3.
    nfsv4Enabled boolean
    True if NFSv4 is enabled.
    rpcMaxthreads number
    Specifies the maximum number of threads in the nfsd thread pool.
    rpcMinthreads number
    Specifies the minimum number of threads in the nfsd thread pool.
    rquotaEnabled boolean
    True if the rquota protocol is enabled.
    service boolean
    True if the NFS service is enabled. When set to false, the NFS service is disabled.
    nfsv3_enabled bool
    True if NFSv3 is enabled.
    nfsv3_rdma_enabled bool
    True if the RDMA is enabled for NFSv3.
    nfsv4_enabled bool
    True if NFSv4 is enabled.
    rpc_maxthreads float
    Specifies the maximum number of threads in the nfsd thread pool.
    rpc_minthreads float
    Specifies the minimum number of threads in the nfsd thread pool.
    rquota_enabled bool
    True if the rquota protocol is enabled.
    service bool
    True if the NFS service is enabled. When set to false, the NFS service is disabled.
    nfsv3Enabled Boolean
    True if NFSv3 is enabled.
    nfsv3RdmaEnabled Boolean
    True if the RDMA is enabled for NFSv3.
    nfsv4Enabled Boolean
    True if NFSv4 is enabled.
    rpcMaxthreads Number
    Specifies the maximum number of threads in the nfsd thread pool.
    rpcMinthreads Number
    Specifies the minimum number of threads in the nfsd thread pool.
    rquotaEnabled Boolean
    True if the rquota protocol is enabled.
    service Boolean
    True if the NFS service is enabled. When set to false, the NFS service is disabled.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the NfsGlobalSettings 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 str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing NfsGlobalSettings Resource

    Get an existing NfsGlobalSettings 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?: NfsGlobalSettingsState, opts?: CustomResourceOptions): NfsGlobalSettings
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            nfsv3_enabled: Optional[bool] = None,
            nfsv3_rdma_enabled: Optional[bool] = None,
            nfsv4_enabled: Optional[bool] = None,
            rpc_maxthreads: Optional[float] = None,
            rpc_minthreads: Optional[float] = None,
            rquota_enabled: Optional[bool] = None,
            service: Optional[bool] = None) -> NfsGlobalSettings
    func GetNfsGlobalSettings(ctx *Context, name string, id IDInput, state *NfsGlobalSettingsState, opts ...ResourceOption) (*NfsGlobalSettings, error)
    public static NfsGlobalSettings Get(string name, Input<string> id, NfsGlobalSettingsState? state, CustomResourceOptions? opts = null)
    public static NfsGlobalSettings get(String name, Output<String> id, NfsGlobalSettingsState state, CustomResourceOptions options)
    resources:  _:    type: powerscale:NfsGlobalSettings    get:      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:
    Nfsv3Enabled bool
    True if NFSv3 is enabled.
    Nfsv3RdmaEnabled bool
    True if the RDMA is enabled for NFSv3.
    Nfsv4Enabled bool
    True if NFSv4 is enabled.
    RpcMaxthreads double
    Specifies the maximum number of threads in the nfsd thread pool.
    RpcMinthreads double
    Specifies the minimum number of threads in the nfsd thread pool.
    RquotaEnabled bool
    True if the rquota protocol is enabled.
    Service bool
    True if the NFS service is enabled. When set to false, the NFS service is disabled.
    Nfsv3Enabled bool
    True if NFSv3 is enabled.
    Nfsv3RdmaEnabled bool
    True if the RDMA is enabled for NFSv3.
    Nfsv4Enabled bool
    True if NFSv4 is enabled.
    RpcMaxthreads float64
    Specifies the maximum number of threads in the nfsd thread pool.
    RpcMinthreads float64
    Specifies the minimum number of threads in the nfsd thread pool.
    RquotaEnabled bool
    True if the rquota protocol is enabled.
    Service bool
    True if the NFS service is enabled. When set to false, the NFS service is disabled.
    nfsv3Enabled Boolean
    True if NFSv3 is enabled.
    nfsv3RdmaEnabled Boolean
    True if the RDMA is enabled for NFSv3.
    nfsv4Enabled Boolean
    True if NFSv4 is enabled.
    rpcMaxthreads Double
    Specifies the maximum number of threads in the nfsd thread pool.
    rpcMinthreads Double
    Specifies the minimum number of threads in the nfsd thread pool.
    rquotaEnabled Boolean
    True if the rquota protocol is enabled.
    service Boolean
    True if the NFS service is enabled. When set to false, the NFS service is disabled.
    nfsv3Enabled boolean
    True if NFSv3 is enabled.
    nfsv3RdmaEnabled boolean
    True if the RDMA is enabled for NFSv3.
    nfsv4Enabled boolean
    True if NFSv4 is enabled.
    rpcMaxthreads number
    Specifies the maximum number of threads in the nfsd thread pool.
    rpcMinthreads number
    Specifies the minimum number of threads in the nfsd thread pool.
    rquotaEnabled boolean
    True if the rquota protocol is enabled.
    service boolean
    True if the NFS service is enabled. When set to false, the NFS service is disabled.
    nfsv3_enabled bool
    True if NFSv3 is enabled.
    nfsv3_rdma_enabled bool
    True if the RDMA is enabled for NFSv3.
    nfsv4_enabled bool
    True if NFSv4 is enabled.
    rpc_maxthreads float
    Specifies the maximum number of threads in the nfsd thread pool.
    rpc_minthreads float
    Specifies the minimum number of threads in the nfsd thread pool.
    rquota_enabled bool
    True if the rquota protocol is enabled.
    service bool
    True if the NFS service is enabled. When set to false, the NFS service is disabled.
    nfsv3Enabled Boolean
    True if NFSv3 is enabled.
    nfsv3RdmaEnabled Boolean
    True if the RDMA is enabled for NFSv3.
    nfsv4Enabled Boolean
    True if NFSv4 is enabled.
    rpcMaxthreads Number
    Specifies the maximum number of threads in the nfsd thread pool.
    rpcMinthreads Number
    Specifies the minimum number of threads in the nfsd thread pool.
    rquotaEnabled Boolean
    True if the rquota protocol is enabled.
    service Boolean
    True if the NFS service is enabled. When set to false, the NFS service is disabled.

    Import

    Copyright (c) 2024 Dell Inc., or its subsidiaries. All Rights Reserved.

    Licensed under the Mozilla Public License Version 2.0 (the “License”);

    you may not use this file except in compliance with the License.

    You may obtain a copy of the License at

    http://mozilla.org/MPL/2.0/
    

    Unless required by applicable law or agreed to in writing, software

    distributed under the License is distributed on an “AS IS” BASIS,

    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

    See the License for the specific language governing permissions and

    limitations under the License.

    The command is

    $ pulumi import powerscale:index/nfsGlobalSettings:NfsGlobalSettings example <anyString>
    

    Example:

    $ pulumi import powerscale:index/nfsGlobalSettings:NfsGlobalSettings example anyString
    

    after running this command, populate the name field and other required parameters in the config file to start managing this resource.

    Note: running “terraform show” after importing shows the current config/state of the resource. You can copy/paste that config to make it easier to manage the resource.

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

    Package Details

    Repository
    powerscale dell/terraform-provider-powerscale
    License
    Notes
    This Pulumi package is based on the powerscale Terraform Provider.
    powerscale logo
    powerscale 1.7.1 published on Wednesday, Apr 30, 2025 by dell