Viewing docs for gcore 2.0.0-alpha.3
published on Monday, Mar 30, 2026 by g-core
published on Monday, Mar 30, 2026 by g-core
Viewing docs for gcore 2.0.0-alpha.3
published on Monday, Mar 30, 2026 by g-core
published on Monday, Mar 30, 2026 by g-core
File shares provide NFS-based shared storage that can be mounted by virtual machines and Kubernetes clusters for persistent data.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as gcore from "@pulumi/gcore";
const exampleCloudFileShare = gcore.getCloudFileShare({
projectId: 1,
regionId: 1,
fileShareId: "bd8c47ee-e565-4e26-8840-b537e6827b08",
});
import pulumi
import pulumi_gcore as gcore
example_cloud_file_share = gcore.get_cloud_file_share(project_id=1,
region_id=1,
file_share_id="bd8c47ee-e565-4e26-8840-b537e6827b08")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/gcore/v2/gcore"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := gcore.LookupCloudFileShare(ctx, &gcore.LookupCloudFileShareArgs{
ProjectId: pulumi.Float64Ref(1),
RegionId: pulumi.Float64Ref(1),
FileShareId: pulumi.StringRef("bd8c47ee-e565-4e26-8840-b537e6827b08"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcore = Pulumi.Gcore;
return await Deployment.RunAsync(() =>
{
var exampleCloudFileShare = Gcore.GetCloudFileShare.Invoke(new()
{
ProjectId = 1,
RegionId = 1,
FileShareId = "bd8c47ee-e565-4e26-8840-b537e6827b08",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcore.GcoreFunctions;
import com.pulumi.gcore.inputs.GetCloudFileShareArgs;
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 exampleCloudFileShare = GcoreFunctions.getCloudFileShare(GetCloudFileShareArgs.builder()
.projectId(1)
.regionId(1)
.fileShareId("bd8c47ee-e565-4e26-8840-b537e6827b08")
.build());
}
}
variables:
exampleCloudFileShare:
fn::invoke:
function: gcore:getCloudFileShare
arguments:
projectId: 1
regionId: 1
fileShareId: bd8c47ee-e565-4e26-8840-b537e6827b08
Using getCloudFileShare
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 getCloudFileShare(args: GetCloudFileShareArgs, opts?: InvokeOptions): Promise<GetCloudFileShareResult>
function getCloudFileShareOutput(args: GetCloudFileShareOutputArgs, opts?: InvokeOptions): Output<GetCloudFileShareResult>def get_cloud_file_share(file_share_id: Optional[str] = None,
find_one_by: Optional[GetCloudFileShareFindOneBy] = None,
project_id: Optional[float] = None,
region_id: Optional[float] = None,
opts: Optional[InvokeOptions] = None) -> GetCloudFileShareResult
def get_cloud_file_share_output(file_share_id: Optional[pulumi.Input[str]] = None,
find_one_by: Optional[pulumi.Input[GetCloudFileShareFindOneByArgs]] = None,
project_id: Optional[pulumi.Input[float]] = None,
region_id: Optional[pulumi.Input[float]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCloudFileShareResult]func LookupCloudFileShare(ctx *Context, args *LookupCloudFileShareArgs, opts ...InvokeOption) (*LookupCloudFileShareResult, error)
func LookupCloudFileShareOutput(ctx *Context, args *LookupCloudFileShareOutputArgs, opts ...InvokeOption) LookupCloudFileShareResultOutput> Note: This function is named LookupCloudFileShare in the Go SDK.
public static class GetCloudFileShare
{
public static Task<GetCloudFileShareResult> InvokeAsync(GetCloudFileShareArgs args, InvokeOptions? opts = null)
public static Output<GetCloudFileShareResult> Invoke(GetCloudFileShareInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetCloudFileShareResult> getCloudFileShare(GetCloudFileShareArgs args, InvokeOptions options)
public static Output<GetCloudFileShareResult> getCloudFileShare(GetCloudFileShareArgs args, InvokeOptions options)
fn::invoke:
function: gcore:index/getCloudFileShare:getCloudFileShare
arguments:
# arguments dictionaryThe following arguments are supported:
- string
- Find
One GetBy Cloud File Share Find One By - Project
Id double - Region
Id double
- string
- Find
One GetBy Cloud File Share Find One By - Project
Id float64 - Region
Id float64
- String
- find
One GetBy Cloud File Share Find One By - project
Id Double - region
Id Double
- string
- find
One GetBy Cloud File Share Find One By - project
Id number - region
Id number
- str
- find_
one_ Getby Cloud File Share Find One By - project_
id float - region_
id float
- String
- find
One Property MapBy - project
Id Number - region
Id Number
getCloudFileShare Result
The following output properties are available:
- Connection
Point string - Created
At string - Creator
Task stringId - Id string
- Name string
- Network
Id string - Network
Name string - Protocol string
- Region string
- string
-
Get
Cloud File Share Share Settings - Size double
- Status string
- Subnet
Id string - Subnet
Name string -
List<Get
Cloud File Share Tag> - Type
Name string - string
- Find
One GetBy Cloud File Share Find One By - Project
Id double - Region
Id double
- Connection
Point string - Created
At string - Creator
Task stringId - Id string
- Name string
- Network
Id string - Network
Name string - Protocol string
- Region string
- string
-
Get
Cloud File Share Share Settings - Size float64
- Status string
- Subnet
Id string - Subnet
Name string -
[]Get
Cloud File Share Tag - Type
Name string - string
- Find
One GetBy Cloud File Share Find One By - Project
Id float64 - Region
Id float64
- connection
Point String - created
At String - creator
Task StringId - id String
- name String
- network
Id String - network
Name String - protocol String
- region String
- String
-
Get
Cloud File Share Share Settings - size Double
- status String
- subnet
Id String - subnet
Name String -
List<Get
Cloud File Share Tag> - type
Name String - String
- find
One GetBy Cloud File Share Find One By - project
Id Double - region
Id Double
- connection
Point string - created
At string - creator
Task stringId - id string
- name string
- network
Id string - network
Name string - protocol string
- region string
- string
-
Get
Cloud File Share Share Settings - size number
- status string
- subnet
Id string - subnet
Name string -
Get
Cloud File Share Tag[] - type
Name string - string
- find
One GetBy Cloud File Share Find One By - project
Id number - region
Id number
- connection_
point str - created_
at str - creator_
task_ strid - id str
- name str
- network_
id str - network_
name str - protocol str
- region str
- str
-
Get
Cloud File Share Share Settings - size float
- status str
- subnet_
id str - subnet_
name str -
Sequence[Get
Cloud File Share Tag] - type_
name str - str
- find_
one_ Getby Cloud File Share Find One By - project_
id float - region_
id float
- connection
Point String - created
At String - creator
Task StringId - id String
- name String
- network
Id String - network
Name String - protocol String
- region String
- String
- Property Map
- size Number
- status String
- subnet
Id String - subnet
Name String - List<Property Map>
- type
Name String - String
- find
One Property MapBy - project
Id Number - region
Id Number
Supporting Types
GetCloudFileShareFindOneBy
GetCloudFileShareShareSettings
- Allowed
Characters string - Available values: "LCD", "NPL".
- Path
Length string - Available values: "LCD", "NPL".
- Root
Squash bool - Enables or disables root squash for NFS clients.
- If
true, root squash is enabled: the root user is mapped to nobody for all file and folder management operations on the export. - If
false, root squash is disabled: the NFS clientrootuser retains root privileges.
- If
- Type
Name string - Standard file share type Available values: "standard", "vast".
- Allowed
Characters string - Available values: "LCD", "NPL".
- Path
Length string - Available values: "LCD", "NPL".
- Root
Squash bool - Enables or disables root squash for NFS clients.
- If
true, root squash is enabled: the root user is mapped to nobody for all file and folder management operations on the export. - If
false, root squash is disabled: the NFS clientrootuser retains root privileges.
- If
- Type
Name string - Standard file share type Available values: "standard", "vast".
- allowed
Characters String - Available values: "LCD", "NPL".
- path
Length String - Available values: "LCD", "NPL".
- root
Squash Boolean - Enables or disables root squash for NFS clients.
- If
true, root squash is enabled: the root user is mapped to nobody for all file and folder management operations on the export. - If
false, root squash is disabled: the NFS clientrootuser retains root privileges.
- If
- type
Name String - Standard file share type Available values: "standard", "vast".
- allowed
Characters string - Available values: "LCD", "NPL".
- path
Length string - Available values: "LCD", "NPL".
- root
Squash boolean - Enables or disables root squash for NFS clients.
- If
true, root squash is enabled: the root user is mapped to nobody for all file and folder management operations on the export. - If
false, root squash is disabled: the NFS clientrootuser retains root privileges.
- If
- type
Name string - Standard file share type Available values: "standard", "vast".
- allowed_
characters str - Available values: "LCD", "NPL".
- path_
length str - Available values: "LCD", "NPL".
- root_
squash bool - Enables or disables root squash for NFS clients.
- If
true, root squash is enabled: the root user is mapped to nobody for all file and folder management operations on the export. - If
false, root squash is disabled: the NFS clientrootuser retains root privileges.
- If
- type_
name str - Standard file share type Available values: "standard", "vast".
- allowed
Characters String - Available values: "LCD", "NPL".
- path
Length String - Available values: "LCD", "NPL".
- root
Squash Boolean - Enables or disables root squash for NFS clients.
- If
true, root squash is enabled: the root user is mapped to nobody for all file and folder management operations on the export. - If
false, root squash is disabled: the NFS clientrootuser retains root privileges.
- If
- type
Name String - Standard file share type Available values: "standard", "vast".
GetCloudFileShareTag
- Key string
- Tag key. Maximum 255 characters. Cannot contain spaces, tabs, newlines, empty string or '=' character.
- Read
Only bool - If true, the tag is read-only and cannot be modified by the user
- Value string
- Tag value. Maximum 255 characters. Cannot contain spaces, tabs, newlines, empty string or '=' character.
- Key string
- Tag key. Maximum 255 characters. Cannot contain spaces, tabs, newlines, empty string or '=' character.
- Read
Only bool - If true, the tag is read-only and cannot be modified by the user
- Value string
- Tag value. Maximum 255 characters. Cannot contain spaces, tabs, newlines, empty string or '=' character.
- key String
- Tag key. Maximum 255 characters. Cannot contain spaces, tabs, newlines, empty string or '=' character.
- read
Only Boolean - If true, the tag is read-only and cannot be modified by the user
- value String
- Tag value. Maximum 255 characters. Cannot contain spaces, tabs, newlines, empty string or '=' character.
- key string
- Tag key. Maximum 255 characters. Cannot contain spaces, tabs, newlines, empty string or '=' character.
- read
Only boolean - If true, the tag is read-only and cannot be modified by the user
- value string
- Tag value. Maximum 255 characters. Cannot contain spaces, tabs, newlines, empty string or '=' character.
- key str
- Tag key. Maximum 255 characters. Cannot contain spaces, tabs, newlines, empty string or '=' character.
- read_
only bool - If true, the tag is read-only and cannot be modified by the user
- value str
- Tag value. Maximum 255 characters. Cannot contain spaces, tabs, newlines, empty string or '=' character.
- key String
- Tag key. Maximum 255 characters. Cannot contain spaces, tabs, newlines, empty string or '=' character.
- read
Only Boolean - If true, the tag is read-only and cannot be modified by the user
- value String
- Tag value. Maximum 255 characters. Cannot contain spaces, tabs, newlines, empty string or '=' character.
Package Details
- Repository
- gcore g-core/terraform-provider-gcore
- License
- Notes
- This Pulumi package is based on the
gcoreTerraform Provider.
Viewing docs for gcore 2.0.0-alpha.3
published on Monday, Mar 30, 2026 by g-core
published on Monday, Mar 30, 2026 by g-core
