OVHCloud v2.7.3 published on Thursday, Aug 28, 2025 by OVHcloud
ovh.getStorageEfsShareAccessPath
Explore with Pulumi AI
Get access path detailed information.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@ovhcloud/pulumi-ovh";
const efs = ovh.getStorageEfs({
serviceName: "XXX",
});
const accessPath = efs.then(efs => ovh.getStorageEfsShareAccessPath({
serviceName: efs.serviceName,
shareId: "XXX",
id: "XXX",
}));
import pulumi
import pulumi_ovh as ovh
efs = ovh.get_storage_efs(service_name="XXX")
access_path = ovh.get_storage_efs_share_access_path(service_name=efs.service_name,
share_id="XXX",
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.GetStorageEfsShareAccessPath(ctx, &ovh.GetStorageEfsShareAccessPathArgs{
ServiceName: efs.ServiceName,
ShareId: "XXX",
Id: "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 accessPath = Ovh.GetStorageEfsShareAccessPath.Invoke(new()
{
ServiceName = efs.Apply(getStorageEfsResult => getStorageEfsResult.ServiceName),
ShareId = "XXX",
Id = "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.GetStorageEfsShareAccessPathArgs;
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 accessPath = OvhFunctions.getStorageEfsShareAccessPath(GetStorageEfsShareAccessPathArgs.builder()
.serviceName(efs.serviceName())
.shareId("XXX")
.id("XXX")
.build());
}
}
variables:
efs:
fn::invoke:
function: ovh:getStorageEfs
arguments:
serviceName: XXX
accessPath:
fn::invoke:
function: ovh:getStorageEfsShareAccessPath
arguments:
serviceName: ${efs.serviceName}
shareId: XXX
id: XXX
Using getStorageEfsShareAccessPath
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 getStorageEfsShareAccessPath(args: GetStorageEfsShareAccessPathArgs, opts?: InvokeOptions): Promise<GetStorageEfsShareAccessPathResult>
function getStorageEfsShareAccessPathOutput(args: GetStorageEfsShareAccessPathOutputArgs, opts?: InvokeOptions): Output<GetStorageEfsShareAccessPathResult>
def get_storage_efs_share_access_path(id: Optional[str] = None,
service_name: Optional[str] = None,
share_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetStorageEfsShareAccessPathResult
def get_storage_efs_share_access_path_output(id: Optional[pulumi.Input[str]] = None,
service_name: Optional[pulumi.Input[str]] = None,
share_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetStorageEfsShareAccessPathResult]
func GetStorageEfsShareAccessPath(ctx *Context, args *GetStorageEfsShareAccessPathArgs, opts ...InvokeOption) (*GetStorageEfsShareAccessPathResult, error)
func GetStorageEfsShareAccessPathOutput(ctx *Context, args *GetStorageEfsShareAccessPathOutputArgs, opts ...InvokeOption) GetStorageEfsShareAccessPathResultOutput
> Note: This function is named GetStorageEfsShareAccessPath
in the Go SDK.
public static class GetStorageEfsShareAccessPath
{
public static Task<GetStorageEfsShareAccessPathResult> InvokeAsync(GetStorageEfsShareAccessPathArgs args, InvokeOptions? opts = null)
public static Output<GetStorageEfsShareAccessPathResult> Invoke(GetStorageEfsShareAccessPathInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetStorageEfsShareAccessPathResult> getStorageEfsShareAccessPath(GetStorageEfsShareAccessPathArgs args, InvokeOptions options)
public static Output<GetStorageEfsShareAccessPathResult> getStorageEfsShareAccessPath(GetStorageEfsShareAccessPathArgs args, InvokeOptions options)
fn::invoke:
function: ovh:index/getStorageEfsShareAccessPath:getStorageEfsShareAccessPath
arguments:
# arguments dictionary
The following arguments are supported:
- Id string
- Access path ID
- Service
Name string - Service name
- string
- Share ID
- Id string
- Access path ID
- Service
Name string - Service name
- string
- Share ID
- id String
- Access path ID
- service
Name String - Service name
- String
- Share ID
- id string
- Access path ID
- service
Name string - Service name
- string
- Share ID
- id str
- Access path ID
- service_
name str - Service name
- str
- Share ID
- id String
- Access path ID
- service
Name String - Service name
- String
- Share ID
getStorageEfsShareAccessPath Result
The following output properties are available:
- Id string
- Access path ID
- Path string
- Access path
- Preferred bool
- Is this the preferred access path?
- Service
Name string - Service name
- string
- Share ID
- Id string
- Access path ID
- Path string
- Access path
- Preferred bool
- Is this the preferred access path?
- Service
Name string - Service name
- string
- Share ID
- id String
- Access path ID
- path String
- Access path
- preferred Boolean
- Is this the preferred access path?
- service
Name String - Service name
- String
- Share ID
- id string
- Access path ID
- path string
- Access path
- preferred boolean
- Is this the preferred access path?
- service
Name string - Service name
- string
- Share ID
- id str
- Access path ID
- path str
- Access path
- preferred bool
- Is this the preferred access path?
- service_
name str - Service name
- str
- Share ID
- id String
- Access path ID
- path String
- Access path
- preferred Boolean
- Is this the preferred access path?
- service
Name String - Service name
- String
- Share ID
Package Details
- Repository
- ovh ovh/pulumi-ovh
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ovh
Terraform Provider.