1. Packages
  2. Packages
  3. Powerscale Provider
  4. API Docs
  5. getNamespaceAcl
Viewing docs for powerscale 1.8.1
published on Wednesday, Apr 1, 2026 by dell
Viewing docs for powerscale 1.8.1
published on Wednesday, Apr 1, 2026 by dell

    This datasource is used to query the Namespace ACL from PowerScale array. The information fetched from this datasource can be used for getting the details or for further processing in resource block. You can use Namespace ACL to manage the access control list for a namespace.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as powerscale from "@pulumi/powerscale";
    
    //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.
    // This Terraform DataSource is used to query the details of the Namespace ACL from PowerScale array.
    // Returns the PowerScale Namespace ACL on PowerScale array
    const example = powerscale.getNamespaceAcl({
        filter: {
            namespace: "ifs/example",
            nsaccess: true,
        },
    });
    export const powerscaleNamespaceAclExample = example;
    
    import pulumi
    import pulumi_powerscale as powerscale
    
    #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.
    # This Terraform DataSource is used to query the details of the Namespace ACL from PowerScale array.
    # Returns the PowerScale Namespace ACL on PowerScale array
    example = powerscale.get_namespace_acl(filter={
        "namespace": "ifs/example",
        "nsaccess": True,
    })
    pulumi.export("powerscaleNamespaceAclExample", 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 {
    		// 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.
    		// This Terraform DataSource is used to query the details of the Namespace ACL from PowerScale array.
    		// Returns the PowerScale Namespace ACL on PowerScale array
    		example, err := powerscale.LookupNamespaceAcl(ctx, &powerscale.LookupNamespaceAclArgs{
    			Filter: powerscale.GetNamespaceAclFilter{
    				Namespace: "ifs/example",
    				Nsaccess:  pulumi.BoolRef(true),
    			},
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("powerscaleNamespaceAclExample", example)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Powerscale = Pulumi.Powerscale;
    
    return await Deployment.RunAsync(() => 
    {
        //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.
        // This Terraform DataSource is used to query the details of the Namespace ACL from PowerScale array.
        // Returns the PowerScale Namespace ACL on PowerScale array
        var example = Powerscale.GetNamespaceAcl.Invoke(new()
        {
            Filter = new Powerscale.Inputs.GetNamespaceAclFilterInputArgs
            {
                Namespace = "ifs/example",
                Nsaccess = true,
            },
        });
    
        return new Dictionary<string, object?>
        {
            ["powerscaleNamespaceAclExample"] = example,
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.powerscale.PowerscaleFunctions;
    import com.pulumi.powerscale.inputs.GetNamespaceAclArgs;
    import com.pulumi.powerscale.inputs.GetNamespaceAclFilterArgs;
    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) {
            //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.
            // This Terraform DataSource is used to query the details of the Namespace ACL from PowerScale array.
            // Returns the PowerScale Namespace ACL on PowerScale array
            final var example = PowerscaleFunctions.getNamespaceAcl(GetNamespaceAclArgs.builder()
                .filter(GetNamespaceAclFilterArgs.builder()
                    .namespace("ifs/example")
                    .nsaccess(true)
                    .build())
                .build());
    
            ctx.export("powerscaleNamespaceAclExample", example);
        }
    }
    
    variables:
      # /*
      # 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.
      # */
    
    
      # This Terraform DataSource is used to query the details of the Namespace ACL from PowerScale array.
    
      # Returns the PowerScale Namespace ACL on PowerScale array
      example:
        fn::invoke:
          function: powerscale:getNamespaceAcl
          arguments:
            filter:
              namespace: ifs/example
              nsaccess: true
    outputs:
      # Output value of above block by executing 'terraform output' command
      # You can use the the fetched information by the variable data.powerscale_namespace_acl.example
      powerscaleNamespaceAclExample: ${example}
    

    Using getNamespaceAcl

    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 getNamespaceAcl(args: GetNamespaceAclArgs, opts?: InvokeOptions): Promise<GetNamespaceAclResult>
    function getNamespaceAclOutput(args: GetNamespaceAclOutputArgs, opts?: InvokeOptions): Output<GetNamespaceAclResult>
    def get_namespace_acl(filter: Optional[GetNamespaceAclFilter] = None,
                          opts: Optional[InvokeOptions] = None) -> GetNamespaceAclResult
    def get_namespace_acl_output(filter: pulumi.Input[Optional[GetNamespaceAclFilterArgs]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetNamespaceAclResult]
    func LookupNamespaceAcl(ctx *Context, args *LookupNamespaceAclArgs, opts ...InvokeOption) (*LookupNamespaceAclResult, error)
    func LookupNamespaceAclOutput(ctx *Context, args *LookupNamespaceAclOutputArgs, opts ...InvokeOption) LookupNamespaceAclResultOutput

    > Note: This function is named LookupNamespaceAcl in the Go SDK.

    public static class GetNamespaceAcl 
    {
        public static Task<GetNamespaceAclResult> InvokeAsync(GetNamespaceAclArgs args, InvokeOptions? opts = null)
        public static Output<GetNamespaceAclResult> Invoke(GetNamespaceAclInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetNamespaceAclResult> getNamespaceAcl(GetNamespaceAclArgs args, InvokeOptions options)
    public static Output<GetNamespaceAclResult> getNamespaceAcl(GetNamespaceAclArgs args, InvokeOptions options)
    
    fn::invoke:
      function: powerscale:index/getNamespaceAcl:getNamespaceAcl
      arguments:
        # arguments dictionary

    The following arguments are supported:

    getNamespaceAcl Result

    The following output properties are available:

    Acls List<GetNamespaceAclAcl>
    Array effective configuration of the JSON array of access rights.
    Authoritative string
    If the directory has access rights set, then this field is returned as acl. If the directory has POSIX permissions set, then this field is returned as mode.
    Group GetNamespaceAclGroup
    Provides the JSON object for the group persona of the owner.
    Id string
    The provider-assigned unique ID for this managed resource.
    Mode string
    Provides the POSIX mode.
    Owner GetNamespaceAclOwner
    Provides the JSON object for the group persona of the owner.
    Filter GetNamespaceAclFilter
    Acls []GetNamespaceAclAcl
    Array effective configuration of the JSON array of access rights.
    Authoritative string
    If the directory has access rights set, then this field is returned as acl. If the directory has POSIX permissions set, then this field is returned as mode.
    Group GetNamespaceAclGroup
    Provides the JSON object for the group persona of the owner.
    Id string
    The provider-assigned unique ID for this managed resource.
    Mode string
    Provides the POSIX mode.
    Owner GetNamespaceAclOwner
    Provides the JSON object for the group persona of the owner.
    Filter GetNamespaceAclFilter
    acls List<GetNamespaceAclAcl>
    Array effective configuration of the JSON array of access rights.
    authoritative String
    If the directory has access rights set, then this field is returned as acl. If the directory has POSIX permissions set, then this field is returned as mode.
    group GetNamespaceAclGroup
    Provides the JSON object for the group persona of the owner.
    id String
    The provider-assigned unique ID for this managed resource.
    mode String
    Provides the POSIX mode.
    owner GetNamespaceAclOwner
    Provides the JSON object for the group persona of the owner.
    filter GetNamespaceAclFilter
    acls GetNamespaceAclAcl[]
    Array effective configuration of the JSON array of access rights.
    authoritative string
    If the directory has access rights set, then this field is returned as acl. If the directory has POSIX permissions set, then this field is returned as mode.
    group GetNamespaceAclGroup
    Provides the JSON object for the group persona of the owner.
    id string
    The provider-assigned unique ID for this managed resource.
    mode string
    Provides the POSIX mode.
    owner GetNamespaceAclOwner
    Provides the JSON object for the group persona of the owner.
    filter GetNamespaceAclFilter
    acls Sequence[GetNamespaceAclAcl]
    Array effective configuration of the JSON array of access rights.
    authoritative str
    If the directory has access rights set, then this field is returned as acl. If the directory has POSIX permissions set, then this field is returned as mode.
    group GetNamespaceAclGroup
    Provides the JSON object for the group persona of the owner.
    id str
    The provider-assigned unique ID for this managed resource.
    mode str
    Provides the POSIX mode.
    owner GetNamespaceAclOwner
    Provides the JSON object for the group persona of the owner.
    filter GetNamespaceAclFilter
    acls List<Property Map>
    Array effective configuration of the JSON array of access rights.
    authoritative String
    If the directory has access rights set, then this field is returned as acl. If the directory has POSIX permissions set, then this field is returned as mode.
    group Property Map
    Provides the JSON object for the group persona of the owner.
    id String
    The provider-assigned unique ID for this managed resource.
    mode String
    Provides the POSIX mode.
    owner Property Map
    Provides the JSON object for the group persona of the owner.
    filter Property Map

    Supporting Types

    GetNamespaceAclAcl

    Accessrights List<string>
    Specifies the access control permissions for a specific user or group.
    Accesstype string
    Grants or denies access control permissions.
    InheritFlags List<string>
    Grants or denies access control permissions.
    Op string
    Operations for updating access control permissions. Unnecessary for access right replacing scenario
    Trustee GetNamespaceAclAclTrustee
    Provides the JSON object for the group persona of the owner.
    Accessrights []string
    Specifies the access control permissions for a specific user or group.
    Accesstype string
    Grants or denies access control permissions.
    InheritFlags []string
    Grants or denies access control permissions.
    Op string
    Operations for updating access control permissions. Unnecessary for access right replacing scenario
    Trustee GetNamespaceAclAclTrustee
    Provides the JSON object for the group persona of the owner.
    accessrights List<String>
    Specifies the access control permissions for a specific user or group.
    accesstype String
    Grants or denies access control permissions.
    inheritFlags List<String>
    Grants or denies access control permissions.
    op String
    Operations for updating access control permissions. Unnecessary for access right replacing scenario
    trustee GetNamespaceAclAclTrustee
    Provides the JSON object for the group persona of the owner.
    accessrights string[]
    Specifies the access control permissions for a specific user or group.
    accesstype string
    Grants or denies access control permissions.
    inheritFlags string[]
    Grants or denies access control permissions.
    op string
    Operations for updating access control permissions. Unnecessary for access right replacing scenario
    trustee GetNamespaceAclAclTrustee
    Provides the JSON object for the group persona of the owner.
    accessrights Sequence[str]
    Specifies the access control permissions for a specific user or group.
    accesstype str
    Grants or denies access control permissions.
    inherit_flags Sequence[str]
    Grants or denies access control permissions.
    op str
    Operations for updating access control permissions. Unnecessary for access right replacing scenario
    trustee GetNamespaceAclAclTrustee
    Provides the JSON object for the group persona of the owner.
    accessrights List<String>
    Specifies the access control permissions for a specific user or group.
    accesstype String
    Grants or denies access control permissions.
    inheritFlags List<String>
    Grants or denies access control permissions.
    op String
    Operations for updating access control permissions. Unnecessary for access right replacing scenario
    trustee Property Map
    Provides the JSON object for the group persona of the owner.

    GetNamespaceAclAclTrustee

    Id string
    Specifies the serialized form of a persona, which can be 'UID:0' or 'GID:0'
    Name string
    Specifies the persona name, which must be combined with a type.
    Type string
    Specifies the type of persona, which must be combined with a name.
    Id string
    Specifies the serialized form of a persona, which can be 'UID:0' or 'GID:0'
    Name string
    Specifies the persona name, which must be combined with a type.
    Type string
    Specifies the type of persona, which must be combined with a name.
    id String
    Specifies the serialized form of a persona, which can be 'UID:0' or 'GID:0'
    name String
    Specifies the persona name, which must be combined with a type.
    type String
    Specifies the type of persona, which must be combined with a name.
    id string
    Specifies the serialized form of a persona, which can be 'UID:0' or 'GID:0'
    name string
    Specifies the persona name, which must be combined with a type.
    type string
    Specifies the type of persona, which must be combined with a name.
    id str
    Specifies the serialized form of a persona, which can be 'UID:0' or 'GID:0'
    name str
    Specifies the persona name, which must be combined with a type.
    type str
    Specifies the type of persona, which must be combined with a name.
    id String
    Specifies the serialized form of a persona, which can be 'UID:0' or 'GID:0'
    name String
    Specifies the persona name, which must be combined with a type.
    type String
    Specifies the type of persona, which must be combined with a name.

    GetNamespaceAclFilter

    Namespace string
    Indicate the namespace to set/get acl.
    Nsaccess bool
    Indicates that the operation is on the access point instead of the store path.
    Namespace string
    Indicate the namespace to set/get acl.
    Nsaccess bool
    Indicates that the operation is on the access point instead of the store path.
    namespace String
    Indicate the namespace to set/get acl.
    nsaccess Boolean
    Indicates that the operation is on the access point instead of the store path.
    namespace string
    Indicate the namespace to set/get acl.
    nsaccess boolean
    Indicates that the operation is on the access point instead of the store path.
    namespace str
    Indicate the namespace to set/get acl.
    nsaccess bool
    Indicates that the operation is on the access point instead of the store path.
    namespace String
    Indicate the namespace to set/get acl.
    nsaccess Boolean
    Indicates that the operation is on the access point instead of the store path.

    GetNamespaceAclGroup

    Id string
    Specifies the serialized form of a persona, which can be 'GID:0'
    Name string
    Specifies the persona name, which must be combined with a type.
    Type string
    Specifies the type of persona, which must be combined with a name.
    Id string
    Specifies the serialized form of a persona, which can be 'GID:0'
    Name string
    Specifies the persona name, which must be combined with a type.
    Type string
    Specifies the type of persona, which must be combined with a name.
    id String
    Specifies the serialized form of a persona, which can be 'GID:0'
    name String
    Specifies the persona name, which must be combined with a type.
    type String
    Specifies the type of persona, which must be combined with a name.
    id string
    Specifies the serialized form of a persona, which can be 'GID:0'
    name string
    Specifies the persona name, which must be combined with a type.
    type string
    Specifies the type of persona, which must be combined with a name.
    id str
    Specifies the serialized form of a persona, which can be 'GID:0'
    name str
    Specifies the persona name, which must be combined with a type.
    type str
    Specifies the type of persona, which must be combined with a name.
    id String
    Specifies the serialized form of a persona, which can be 'GID:0'
    name String
    Specifies the persona name, which must be combined with a type.
    type String
    Specifies the type of persona, which must be combined with a name.

    GetNamespaceAclOwner

    Id string
    Specifies the serialized form of a persona, which can be 'UID:0'
    Name string
    Specifies the persona name, which must be combined with a type.
    Type string
    Specifies the type of persona, which must be combined with a name.
    Id string
    Specifies the serialized form of a persona, which can be 'UID:0'
    Name string
    Specifies the persona name, which must be combined with a type.
    Type string
    Specifies the type of persona, which must be combined with a name.
    id String
    Specifies the serialized form of a persona, which can be 'UID:0'
    name String
    Specifies the persona name, which must be combined with a type.
    type String
    Specifies the type of persona, which must be combined with a name.
    id string
    Specifies the serialized form of a persona, which can be 'UID:0'
    name string
    Specifies the persona name, which must be combined with a type.
    type string
    Specifies the type of persona, which must be combined with a name.
    id str
    Specifies the serialized form of a persona, which can be 'UID:0'
    name str
    Specifies the persona name, which must be combined with a type.
    type str
    Specifies the type of persona, which must be combined with a name.
    id String
    Specifies the serialized form of a persona, which can be 'UID:0'
    name String
    Specifies the persona name, which must be combined with a type.
    type String
    Specifies the type of persona, which must be combined with a name.

    Package Details

    Repository
    powerscale dell/terraform-provider-powerscale
    License
    Notes
    This Pulumi package is based on the powerscale Terraform Provider.
    Viewing docs for powerscale 1.8.1
    published on Wednesday, Apr 1, 2026 by dell
      Try Pulumi Cloud free. Your team will thank you.