1. Registry
  2. Packages
  3. OVH
  4. API Docs
  5. getCloudStorageFileShareAcl
Viewing docs for OVHCloud v2.19.1
published on Tuesday, Aug 18, 2026 by OVHcloud
ovh logo
Viewing docs for OVHCloud v2.19.1
published on Tuesday, Aug 18, 2026 by OVHcloud

    Get an access rule (ACL) of a public cloud file storage share.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ovh from "@ovhcloud/pulumi-ovh";
    
    const acl = ovh.getCloudStorageFileShareAcl({
        serviceName: "<public cloud project ID>",
        shareId: "00000000-0000-0000-0000-000000000000",
        id: "00000000-0000-0000-0000-000000000000",
    });
    
    import pulumi
    import pulumi_ovh as ovh
    
    acl = ovh.get_cloud_storage_file_share_acl(service_name="<public cloud project ID>",
        share_id="00000000-0000-0000-0000-000000000000",
        id="00000000-0000-0000-0000-000000000000")
    
    package main
    
    import (
    	"github.com/ovh/pulumi-ovh/sdk/v2/go/ovh"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ovh.LookupCloudStorageFileShareAcl(ctx, &ovh.LookupCloudStorageFileShareAclArgs{
    			ServiceName: "<public cloud project ID>",
    			ShareId:     "00000000-0000-0000-0000-000000000000",
    			Id:          "00000000-0000-0000-0000-000000000000",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ovh = Pulumi.Ovh;
    
    return await Deployment.RunAsync(() => 
    {
        var acl = Ovh.GetCloudStorageFileShareAcl.Invoke(new()
        {
            ServiceName = "<public cloud project ID>",
            ShareId = "00000000-0000-0000-0000-000000000000",
            Id = "00000000-0000-0000-0000-000000000000",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ovh.OvhFunctions;
    import com.pulumi.ovh.inputs.GetCloudStorageFileShareAclArgs;
    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 acl = OvhFunctions.getCloudStorageFileShareAcl(GetCloudStorageFileShareAclArgs.builder()
                .serviceName("<public cloud project ID>")
                .shareId("00000000-0000-0000-0000-000000000000")
                .id("00000000-0000-0000-0000-000000000000")
                .build());
    
        }
    }
    
    variables:
      acl:
        fn::invoke:
          function: ovh:getCloudStorageFileShareAcl
          arguments:
            serviceName: <public cloud project ID>
            shareId: 00000000-0000-0000-0000-000000000000
            id: 00000000-0000-0000-0000-000000000000
    
    Example coming soon!
    

    Using getCloudStorageFileShareAcl

    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 getCloudStorageFileShareAcl(args: GetCloudStorageFileShareAclArgs, opts?: InvokeOptions): Promise<GetCloudStorageFileShareAclResult>
    function getCloudStorageFileShareAclOutput(args: GetCloudStorageFileShareAclOutputArgs, opts?: InvokeOutputOptions): Output<GetCloudStorageFileShareAclResult>
    def get_cloud_storage_file_share_acl(id: Optional[str] = None,
                                         service_name: Optional[str] = None,
                                         share_id: Optional[str] = None,
                                         opts: Optional[InvokeOptions] = None) -> GetCloudStorageFileShareAclResult
    def get_cloud_storage_file_share_acl_output(id: pulumi.Input[Optional[str]] = None,
                                         service_name: pulumi.Input[Optional[str]] = None,
                                         share_id: pulumi.Input[Optional[str]] = None,
                                         opts: Optional[InvokeOutputOptions] = None) -> Output[GetCloudStorageFileShareAclResult]
    func LookupCloudStorageFileShareAcl(ctx *Context, args *LookupCloudStorageFileShareAclArgs, opts ...InvokeOption) (*LookupCloudStorageFileShareAclResult, error)
    func LookupCloudStorageFileShareAclOutput(ctx *Context, args *LookupCloudStorageFileShareAclOutputArgs, opts ...InvokeOption) LookupCloudStorageFileShareAclResultOutput

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

    public static class GetCloudStorageFileShareAcl 
    {
        public static Task<GetCloudStorageFileShareAclResult> InvokeAsync(GetCloudStorageFileShareAclArgs args, InvokeOptions? opts = null)
        public static Output<GetCloudStorageFileShareAclResult> Invoke(GetCloudStorageFileShareAclInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetCloudStorageFileShareAclResult> Invoke(GetCloudStorageFileShareAclInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetCloudStorageFileShareAclResult> getCloudStorageFileShareAcl(GetCloudStorageFileShareAclArgs args, InvokeOptions options)
    public static Output<GetCloudStorageFileShareAclResult> getCloudStorageFileShareAcl(GetCloudStorageFileShareAclArgs args, InvokeOptions options)
    public static Output<GetCloudStorageFileShareAclResult> getCloudStorageFileShareAcl(GetCloudStorageFileShareAclArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: ovh:index/getCloudStorageFileShareAcl:getCloudStorageFileShareAcl
      arguments:
        # arguments dictionary
    data "ovh_get_cloud_storage_file_share_acl" "name" {
        # arguments
    }

    The following arguments are supported:

    Id string
    The ID of the access rule.
    ServiceName string
    The id of the public cloud project.
    ShareId string
    The ID of the file storage share the access rule applies to.
    Id string
    The ID of the access rule.
    ServiceName string
    The id of the public cloud project.
    ShareId string
    The ID of the file storage share the access rule applies to.
    id string
    The ID of the access rule.
    service_name string
    The id of the public cloud project.
    share_id string
    The ID of the file storage share the access rule applies to.
    id String
    The ID of the access rule.
    serviceName String
    The id of the public cloud project.
    shareId String
    The ID of the file storage share the access rule applies to.
    id string
    The ID of the access rule.
    serviceName string
    The id of the public cloud project.
    shareId string
    The ID of the file storage share the access rule applies to.
    id str
    The ID of the access rule.
    service_name str
    The id of the public cloud project.
    share_id str
    The ID of the file storage share the access rule applies to.
    id String
    The ID of the access rule.
    serviceName String
    The id of the public cloud project.
    shareId String
    The ID of the file storage share the access rule applies to.

    getCloudStorageFileShareAcl Result

    The following output properties are available:

    AccessLevel string
    Access level granted.
    AccessTo string
    IP address or CIDR allowed to access the file storage share.
    Checksum string
    Computed hash representing the current target specification value.
    CreatedAt string
    Creation date of the access rule.
    CurrentState GetCloudStorageFileShareAclCurrentState
    Current observed state of the access rule from the infrastructure:
    Id string
    ResourceStatus string
    Access rule readiness in the system (CREATING, DELETING, ERROR, OUT_OF_SYNC, READY, UPDATING).
    ServiceName string
    ShareId string
    UpdatedAt string
    Last update date of the access rule.
    AccessLevel string
    Access level granted.
    AccessTo string
    IP address or CIDR allowed to access the file storage share.
    Checksum string
    Computed hash representing the current target specification value.
    CreatedAt string
    Creation date of the access rule.
    CurrentState GetCloudStorageFileShareAclCurrentState
    Current observed state of the access rule from the infrastructure:
    Id string
    ResourceStatus string
    Access rule readiness in the system (CREATING, DELETING, ERROR, OUT_OF_SYNC, READY, UPDATING).
    ServiceName string
    ShareId string
    UpdatedAt string
    Last update date of the access rule.
    access_level string
    Access level granted.
    access_to string
    IP address or CIDR allowed to access the file storage share.
    checksum string
    Computed hash representing the current target specification value.
    created_at string
    Creation date of the access rule.
    current_state object
    Current observed state of the access rule from the infrastructure:
    id string
    resource_status string
    Access rule readiness in the system (CREATING, DELETING, ERROR, OUT_OF_SYNC, READY, UPDATING).
    service_name string
    share_id string
    updated_at string
    Last update date of the access rule.
    accessLevel String
    Access level granted.
    accessTo String
    IP address or CIDR allowed to access the file storage share.
    checksum String
    Computed hash representing the current target specification value.
    createdAt String
    Creation date of the access rule.
    currentState GetCloudStorageFileShareAclCurrentState
    Current observed state of the access rule from the infrastructure:
    id String
    resourceStatus String
    Access rule readiness in the system (CREATING, DELETING, ERROR, OUT_OF_SYNC, READY, UPDATING).
    serviceName String
    shareId String
    updatedAt String
    Last update date of the access rule.
    accessLevel string
    Access level granted.
    accessTo string
    IP address or CIDR allowed to access the file storage share.
    checksum string
    Computed hash representing the current target specification value.
    createdAt string
    Creation date of the access rule.
    currentState GetCloudStorageFileShareAclCurrentState
    Current observed state of the access rule from the infrastructure:
    id string
    resourceStatus string
    Access rule readiness in the system (CREATING, DELETING, ERROR, OUT_OF_SYNC, READY, UPDATING).
    serviceName string
    shareId string
    updatedAt string
    Last update date of the access rule.
    access_level str
    Access level granted.
    access_to str
    IP address or CIDR allowed to access the file storage share.
    checksum str
    Computed hash representing the current target specification value.
    created_at str
    Creation date of the access rule.
    current_state GetCloudStorageFileShareAclCurrentState
    Current observed state of the access rule from the infrastructure:
    id str
    resource_status str
    Access rule readiness in the system (CREATING, DELETING, ERROR, OUT_OF_SYNC, READY, UPDATING).
    service_name str
    share_id str
    updated_at str
    Last update date of the access rule.
    accessLevel String
    Access level granted.
    accessTo String
    IP address or CIDR allowed to access the file storage share.
    checksum String
    Computed hash representing the current target specification value.
    createdAt String
    Creation date of the access rule.
    currentState Property Map
    Current observed state of the access rule from the infrastructure:
    id String
    resourceStatus String
    Access rule readiness in the system (CREATING, DELETING, ERROR, OUT_OF_SYNC, READY, UPDATING).
    serviceName String
    shareId String
    updatedAt String
    Last update date of the access rule.

    Supporting Types

    GetCloudStorageFileShareAclCurrentState

    AccessLevel string
    Access level granted.
    AccessTo string
    IP address or CIDR allowed to access the file storage share.
    CreatedAt string
    Creation date of the access rule.
    State string
    Current state of the access rule (ACTIVE, APPLYING, DENYING, ERROR).
    AccessLevel string
    Access level granted.
    AccessTo string
    IP address or CIDR allowed to access the file storage share.
    CreatedAt string
    Creation date of the access rule.
    State string
    Current state of the access rule (ACTIVE, APPLYING, DENYING, ERROR).
    access_level string
    Access level granted.
    access_to string
    IP address or CIDR allowed to access the file storage share.
    created_at string
    Creation date of the access rule.
    state string
    Current state of the access rule (ACTIVE, APPLYING, DENYING, ERROR).
    accessLevel String
    Access level granted.
    accessTo String
    IP address or CIDR allowed to access the file storage share.
    createdAt String
    Creation date of the access rule.
    state String
    Current state of the access rule (ACTIVE, APPLYING, DENYING, ERROR).
    accessLevel string
    Access level granted.
    accessTo string
    IP address or CIDR allowed to access the file storage share.
    createdAt string
    Creation date of the access rule.
    state string
    Current state of the access rule (ACTIVE, APPLYING, DENYING, ERROR).
    access_level str
    Access level granted.
    access_to str
    IP address or CIDR allowed to access the file storage share.
    created_at str
    Creation date of the access rule.
    state str
    Current state of the access rule (ACTIVE, APPLYING, DENYING, ERROR).
    accessLevel String
    Access level granted.
    accessTo String
    IP address or CIDR allowed to access the file storage share.
    createdAt String
    Creation date of the access rule.
    state String
    Current state of the access rule (ACTIVE, APPLYING, DENYING, ERROR).

    Package Details

    Repository
    ovh ovh/pulumi-ovh
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the ovh Terraform Provider.
    ovh logo
    Viewing docs for OVHCloud v2.19.1
    published on Tuesday, Aug 18, 2026 by OVHcloud

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial