OVHCloud v2.7.3 published on Thursday, Aug 28, 2025 by OVHcloud
ovh.getStorageEfsShareAccessPaths
Explore with Pulumi AI
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:
- Service
Name string - Service name
- string
- Share ID
- Service
Name string - Service name
- string
- Share ID
- service
Name String - Service name
- String
- Share ID
- service
Name string - Service name
- string
- Share ID
- service_
name str - Service name
- str
- Share ID
- service
Name String - Service name
- String
- Share ID
getStorageEfsShareAccessPaths Result
The following output properties are available:
- Access
Paths List<GetStorage Efs Share Access Paths Access Path> - Id string
- The provider-assigned unique ID for this managed resource.
- Service
Name string - Service name
- string
- Share ID
- Access
Paths []GetStorage Efs Share Access Paths Access Path - Id string
- The provider-assigned unique ID for this managed resource.
- Service
Name string - Service name
- string
- Share ID
- access
Paths List<GetStorage Efs Share Access Paths Access Path> - id String
- The provider-assigned unique ID for this managed resource.
- service
Name String - Service name
- String
- Share ID
- access
Paths GetStorage Efs Share Access Paths Access Path[] - id string
- The provider-assigned unique ID for this managed resource.
- service
Name string - Service name
- string
- Share ID
- access_
paths Sequence[GetStorage Efs Share Access Paths Access Path] - id str
- The provider-assigned unique ID for this managed resource.
- service_
name str - Service name
- str
- Share ID
- access
Paths List<Property Map> - id String
- The provider-assigned unique ID for this managed resource.
- service
Name String - Service name
- String
- Share ID
Supporting Types
GetStorageEfsShareAccessPathsAccessPath
Package Details
- Repository
- ovh ovh/pulumi-ovh
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ovh
Terraform Provider.