1. Packages
  2. OVH
  3. API Docs
  4. getStorageEfsShareAccessPaths
OVHCloud v2.7.3 published on Thursday, Aug 28, 2025 by OVHcloud

ovh.getStorageEfsShareAccessPaths

Explore with Pulumi AI

ovh logo
OVHCloud v2.7.3 published on Thursday, Aug 28, 2025 by OVHcloud

    List access paths for a share belonging to an EFS service.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ovh from "@ovhcloud/pulumi-ovh";
    
    const efs = ovh.getStorageEfs({
        serviceName: "XXX",
    });
    const accessPaths = efs.then(efs => ovh.getStorageEfsShareAccessPaths({
        serviceName: efs.serviceName,
        shareId: "XXX",
    }));
    
    import pulumi
    import pulumi_ovh as ovh
    
    efs = ovh.get_storage_efs(service_name="XXX")
    access_paths = ovh.get_storage_efs_share_access_paths(service_name=efs.service_name,
        share_id="XXX")
    
    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 {
    		efs, err := ovh.GetStorageEfs(ctx, &ovh.GetStorageEfsArgs{
    			ServiceName: "XXX",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = ovh.GetStorageEfsShareAccessPaths(ctx, &ovh.GetStorageEfsShareAccessPathsArgs{
    			ServiceName: efs.ServiceName,
    			ShareId:     "XXX",
    		}, 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 efs = Ovh.GetStorageEfs.Invoke(new()
        {
            ServiceName = "XXX",
        });
    
        var accessPaths = Ovh.GetStorageEfsShareAccessPaths.Invoke(new()
        {
            ServiceName = efs.Apply(getStorageEfsResult => getStorageEfsResult.ServiceName),
            ShareId = "XXX",
        });
    
    });
    
    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.GetStorageEfsArgs;
    import com.pulumi.ovh.inputs.GetStorageEfsShareAccessPathsArgs;
    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 efs = OvhFunctions.getStorageEfs(GetStorageEfsArgs.builder()
                .serviceName("XXX")
                .build());
    
            final var accessPaths = OvhFunctions.getStorageEfsShareAccessPaths(GetStorageEfsShareAccessPathsArgs.builder()
                .serviceName(efs.serviceName())
                .shareId("XXX")
                .build());
    
        }
    }
    
    variables:
      efs:
        fn::invoke:
          function: ovh:getStorageEfs
          arguments:
            serviceName: XXX
      accessPaths:
        fn::invoke:
          function: ovh:getStorageEfsShareAccessPaths
          arguments:
            serviceName: ${efs.serviceName}
            shareId: XXX
    

    Using getStorageEfsShareAccessPaths

    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 getStorageEfsShareAccessPaths(args: GetStorageEfsShareAccessPathsArgs, opts?: InvokeOptions): Promise<GetStorageEfsShareAccessPathsResult>
    function getStorageEfsShareAccessPathsOutput(args: GetStorageEfsShareAccessPathsOutputArgs, opts?: InvokeOptions): Output<GetStorageEfsShareAccessPathsResult>
    def get_storage_efs_share_access_paths(service_name: Optional[str] = None,
                                           share_id: Optional[str] = None,
                                           opts: Optional[InvokeOptions] = None) -> GetStorageEfsShareAccessPathsResult
    def get_storage_efs_share_access_paths_output(service_name: Optional[pulumi.Input[str]] = None,
                                           share_id: Optional[pulumi.Input[str]] = None,
                                           opts: Optional[InvokeOptions] = None) -> Output[GetStorageEfsShareAccessPathsResult]
    func GetStorageEfsShareAccessPaths(ctx *Context, args *GetStorageEfsShareAccessPathsArgs, opts ...InvokeOption) (*GetStorageEfsShareAccessPathsResult, error)
    func GetStorageEfsShareAccessPathsOutput(ctx *Context, args *GetStorageEfsShareAccessPathsOutputArgs, opts ...InvokeOption) GetStorageEfsShareAccessPathsResultOutput

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

    public static class GetStorageEfsShareAccessPaths 
    {
        public static Task<GetStorageEfsShareAccessPathsResult> InvokeAsync(GetStorageEfsShareAccessPathsArgs args, InvokeOptions? opts = null)
        public static Output<GetStorageEfsShareAccessPathsResult> Invoke(GetStorageEfsShareAccessPathsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetStorageEfsShareAccessPathsResult> getStorageEfsShareAccessPaths(GetStorageEfsShareAccessPathsArgs args, InvokeOptions options)
    public static Output<GetStorageEfsShareAccessPathsResult> getStorageEfsShareAccessPaths(GetStorageEfsShareAccessPathsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ovh:index/getStorageEfsShareAccessPaths:getStorageEfsShareAccessPaths
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ServiceName string
    Service name
    ShareId string
    Share ID
    ServiceName string
    Service name
    ShareId string
    Share ID
    serviceName String
    Service name
    shareId String
    Share ID
    serviceName string
    Service name
    shareId string
    Share ID
    service_name str
    Service name
    share_id str
    Share ID
    serviceName String
    Service name
    shareId String
    Share ID

    getStorageEfsShareAccessPaths Result

    The following output properties are available:

    AccessPaths List<GetStorageEfsShareAccessPathsAccessPath>
    Id string
    The provider-assigned unique ID for this managed resource.
    ServiceName string
    Service name
    ShareId string
    Share ID
    AccessPaths []GetStorageEfsShareAccessPathsAccessPath
    Id string
    The provider-assigned unique ID for this managed resource.
    ServiceName string
    Service name
    ShareId string
    Share ID
    accessPaths List<GetStorageEfsShareAccessPathsAccessPath>
    id String
    The provider-assigned unique ID for this managed resource.
    serviceName String
    Service name
    shareId String
    Share ID
    accessPaths GetStorageEfsShareAccessPathsAccessPath[]
    id string
    The provider-assigned unique ID for this managed resource.
    serviceName string
    Service name
    shareId string
    Share ID
    access_paths Sequence[GetStorageEfsShareAccessPathsAccessPath]
    id str
    The provider-assigned unique ID for this managed resource.
    service_name str
    Service name
    share_id str
    Share ID
    accessPaths List<Property Map>
    id String
    The provider-assigned unique ID for this managed resource.
    serviceName String
    Service name
    shareId String
    Share ID

    Supporting Types

    GetStorageEfsShareAccessPathsAccessPath

    Id string
    Access path ID
    Path string
    Access path
    Preferred bool
    Is this the preferred access path?
    Id string
    Access path ID
    Path string
    Access path
    Preferred bool
    Is this the preferred access path?
    id String
    Access path ID
    path String
    Access path
    preferred Boolean
    Is this the preferred access path?
    id string
    Access path ID
    path string
    Access path
    preferred boolean
    Is this the preferred access path?
    id str
    Access path ID
    path str
    Access path
    preferred bool
    Is this the preferred access path?
    id String
    Access path ID
    path String
    Access path
    preferred Boolean
    Is this the preferred access path?

    Package Details

    Repository
    ovh ovh/pulumi-ovh
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the ovh Terraform Provider.
    ovh logo
    OVHCloud v2.7.3 published on Thursday, Aug 28, 2025 by OVHcloud