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 exampleCloudFileShares = gcore.getCloudFileShares({
projectId: 1,
regionId: 1,
name: "test-sfs",
typeName: "standard",
});
import pulumi
import pulumi_gcore as gcore
example_cloud_file_shares = gcore.get_cloud_file_shares(project_id=1,
region_id=1,
name="test-sfs",
type_name="standard")
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.GetCloudFileShares(ctx, &gcore.GetCloudFileSharesArgs{
ProjectId: pulumi.Float64Ref(1),
RegionId: pulumi.Float64Ref(1),
Name: pulumi.StringRef("test-sfs"),
TypeName: pulumi.StringRef("standard"),
}, 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 exampleCloudFileShares = Gcore.GetCloudFileShares.Invoke(new()
{
ProjectId = 1,
RegionId = 1,
Name = "test-sfs",
TypeName = "standard",
});
});
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.GetCloudFileSharesArgs;
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 exampleCloudFileShares = GcoreFunctions.getCloudFileShares(GetCloudFileSharesArgs.builder()
.projectId(1)
.regionId(1)
.name("test-sfs")
.typeName("standard")
.build());
}
}
variables:
exampleCloudFileShares:
fn::invoke:
function: gcore:getCloudFileShares
arguments:
projectId: 1
regionId: 1
name: test-sfs
typeName: standard
Using getCloudFileShares
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 getCloudFileShares(args: GetCloudFileSharesArgs, opts?: InvokeOptions): Promise<GetCloudFileSharesResult>
function getCloudFileSharesOutput(args: GetCloudFileSharesOutputArgs, opts?: InvokeOptions): Output<GetCloudFileSharesResult>def get_cloud_file_shares(max_items: Optional[float] = None,
name: Optional[str] = None,
project_id: Optional[float] = None,
region_id: Optional[float] = None,
type_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCloudFileSharesResult
def get_cloud_file_shares_output(max_items: Optional[pulumi.Input[float]] = None,
name: Optional[pulumi.Input[str]] = None,
project_id: Optional[pulumi.Input[float]] = None,
region_id: Optional[pulumi.Input[float]] = None,
type_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCloudFileSharesResult]func GetCloudFileShares(ctx *Context, args *GetCloudFileSharesArgs, opts ...InvokeOption) (*GetCloudFileSharesResult, error)
func GetCloudFileSharesOutput(ctx *Context, args *GetCloudFileSharesOutputArgs, opts ...InvokeOption) GetCloudFileSharesResultOutput> Note: This function is named GetCloudFileShares in the Go SDK.
public static class GetCloudFileShares
{
public static Task<GetCloudFileSharesResult> InvokeAsync(GetCloudFileSharesArgs args, InvokeOptions? opts = null)
public static Output<GetCloudFileSharesResult> Invoke(GetCloudFileSharesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetCloudFileSharesResult> getCloudFileShares(GetCloudFileSharesArgs args, InvokeOptions options)
public static Output<GetCloudFileSharesResult> getCloudFileShares(GetCloudFileSharesArgs args, InvokeOptions options)
fn::invoke:
function: gcore:index/getCloudFileShares:getCloudFileShares
arguments:
# arguments dictionaryThe following arguments are supported:
- max_
items float - name str
- project_
id float - region_
id float - type_
name str
getCloudFileShares Result
The following output properties are available:
- id str
- The provider-assigned unique ID for this managed resource.
- items
Sequence[Get
Cloud File Shares Item] - max_
items float - name str
- project_
id float - region_
id float - type_
name str
Supporting Types
GetCloudFileSharesItem
- Connection
Point string - Connection point. Can be null during File share creation
- Created
At string - Datetime when the file share was created
- Creator
Task stringId - Task that created this entity
- Id string
- File share ID
- Name string
- File share name
- Network
Id string - Network ID.
- Network
Name string - Network name.
- Project
Id double - Project ID
- Protocol string
- File share protocol
- Region string
- Region name
- Region
Id double - Region ID
- string
- Share network name. May be null if the file share was created with volume type VAST
-
Get
Cloud File Shares Item Share Settings - Share settings specific to the file share type
- Size double
- File share size in GiB
- Status string
- File share status Available values: "available", "awaiting_transfer", "backup_creating", "backup_restoring", "backup_restoring_error", "creating", "creating_from_snapshot", "deleted", "deleting", "ensuring", "error", "error_deleting", "extending", "extending_error", "inactive", "manage_error", "manage_starting", "migrating", "migrating_to", "replication_change", "reverting", "reverting_error", "shrinking", "shrinking_error", "shrinking_possible_data_loss_error", "unmanage_error", "unmanage_starting", "unmanaged".
- Subnet
Id string - Subnet ID.
- Subnet
Name string - Subnet name.
-
List<Get
Cloud File Shares Item Tag> - List of key-value tags associated with the resource. A tag is a key-value pair that can be associated with a resource, enabling efficient filtering and grouping for better organization and management. Some tags are read-only and cannot be modified by the user. Tags are also integrated with cost reports, allowing cost data to be filtered based on tag keys or values.
- Type
Name string - File share type name Available values: "standard", "vast".
- Connection
Point string - Connection point. Can be null during File share creation
- Created
At string - Datetime when the file share was created
- Creator
Task stringId - Task that created this entity
- Id string
- File share ID
- Name string
- File share name
- Network
Id string - Network ID.
- Network
Name string - Network name.
- Project
Id float64 - Project ID
- Protocol string
- File share protocol
- Region string
- Region name
- Region
Id float64 - Region ID
- string
- Share network name. May be null if the file share was created with volume type VAST
-
Get
Cloud File Shares Item Share Settings - Share settings specific to the file share type
- Size float64
- File share size in GiB
- Status string
- File share status Available values: "available", "awaiting_transfer", "backup_creating", "backup_restoring", "backup_restoring_error", "creating", "creating_from_snapshot", "deleted", "deleting", "ensuring", "error", "error_deleting", "extending", "extending_error", "inactive", "manage_error", "manage_starting", "migrating", "migrating_to", "replication_change", "reverting", "reverting_error", "shrinking", "shrinking_error", "shrinking_possible_data_loss_error", "unmanage_error", "unmanage_starting", "unmanaged".
- Subnet
Id string - Subnet ID.
- Subnet
Name string - Subnet name.
-
[]Get
Cloud File Shares Item Tag - List of key-value tags associated with the resource. A tag is a key-value pair that can be associated with a resource, enabling efficient filtering and grouping for better organization and management. Some tags are read-only and cannot be modified by the user. Tags are also integrated with cost reports, allowing cost data to be filtered based on tag keys or values.
- Type
Name string - File share type name Available values: "standard", "vast".
- connection
Point String - Connection point. Can be null during File share creation
- created
At String - Datetime when the file share was created
- creator
Task StringId - Task that created this entity
- id String
- File share ID
- name String
- File share name
- network
Id String - Network ID.
- network
Name String - Network name.
- project
Id Double - Project ID
- protocol String
- File share protocol
- region String
- Region name
- region
Id Double - Region ID
- String
- Share network name. May be null if the file share was created with volume type VAST
-
Get
Cloud File Shares Item Share Settings - Share settings specific to the file share type
- size Double
- File share size in GiB
- status String
- File share status Available values: "available", "awaiting_transfer", "backup_creating", "backup_restoring", "backup_restoring_error", "creating", "creating_from_snapshot", "deleted", "deleting", "ensuring", "error", "error_deleting", "extending", "extending_error", "inactive", "manage_error", "manage_starting", "migrating", "migrating_to", "replication_change", "reverting", "reverting_error", "shrinking", "shrinking_error", "shrinking_possible_data_loss_error", "unmanage_error", "unmanage_starting", "unmanaged".
- subnet
Id String - Subnet ID.
- subnet
Name String - Subnet name.
-
List<Get
Cloud File Shares Item Tag> - List of key-value tags associated with the resource. A tag is a key-value pair that can be associated with a resource, enabling efficient filtering and grouping for better organization and management. Some tags are read-only and cannot be modified by the user. Tags are also integrated with cost reports, allowing cost data to be filtered based on tag keys or values.
- type
Name String - File share type name Available values: "standard", "vast".
- connection
Point string - Connection point. Can be null during File share creation
- created
At string - Datetime when the file share was created
- creator
Task stringId - Task that created this entity
- id string
- File share ID
- name string
- File share name
- network
Id string - Network ID.
- network
Name string - Network name.
- project
Id number - Project ID
- protocol string
- File share protocol
- region string
- Region name
- region
Id number - Region ID
- string
- Share network name. May be null if the file share was created with volume type VAST
-
Get
Cloud File Shares Item Share Settings - Share settings specific to the file share type
- size number
- File share size in GiB
- status string
- File share status Available values: "available", "awaiting_transfer", "backup_creating", "backup_restoring", "backup_restoring_error", "creating", "creating_from_snapshot", "deleted", "deleting", "ensuring", "error", "error_deleting", "extending", "extending_error", "inactive", "manage_error", "manage_starting", "migrating", "migrating_to", "replication_change", "reverting", "reverting_error", "shrinking", "shrinking_error", "shrinking_possible_data_loss_error", "unmanage_error", "unmanage_starting", "unmanaged".
- subnet
Id string - Subnet ID.
- subnet
Name string - Subnet name.
-
Get
Cloud File Shares Item Tag[] - List of key-value tags associated with the resource. A tag is a key-value pair that can be associated with a resource, enabling efficient filtering and grouping for better organization and management. Some tags are read-only and cannot be modified by the user. Tags are also integrated with cost reports, allowing cost data to be filtered based on tag keys or values.
- type
Name string - File share type name Available values: "standard", "vast".
- connection_
point str - Connection point. Can be null during File share creation
- created_
at str - Datetime when the file share was created
- creator_
task_ strid - Task that created this entity
- id str
- File share ID
- name str
- File share name
- network_
id str - Network ID.
- network_
name str - Network name.
- project_
id float - Project ID
- protocol str
- File share protocol
- region str
- Region name
- region_
id float - Region ID
- str
- Share network name. May be null if the file share was created with volume type VAST
-
Get
Cloud File Shares Item Share Settings - Share settings specific to the file share type
- size float
- File share size in GiB
- status str
- File share status Available values: "available", "awaiting_transfer", "backup_creating", "backup_restoring", "backup_restoring_error", "creating", "creating_from_snapshot", "deleted", "deleting", "ensuring", "error", "error_deleting", "extending", "extending_error", "inactive", "manage_error", "manage_starting", "migrating", "migrating_to", "replication_change", "reverting", "reverting_error", "shrinking", "shrinking_error", "shrinking_possible_data_loss_error", "unmanage_error", "unmanage_starting", "unmanaged".
- subnet_
id str - Subnet ID.
- subnet_
name str - Subnet name.
-
Sequence[Get
Cloud File Shares Item Tag] - List of key-value tags associated with the resource. A tag is a key-value pair that can be associated with a resource, enabling efficient filtering and grouping for better organization and management. Some tags are read-only and cannot be modified by the user. Tags are also integrated with cost reports, allowing cost data to be filtered based on tag keys or values.
- type_
name str - File share type name Available values: "standard", "vast".
- connection
Point String - Connection point. Can be null during File share creation
- created
At String - Datetime when the file share was created
- creator
Task StringId - Task that created this entity
- id String
- File share ID
- name String
- File share name
- network
Id String - Network ID.
- network
Name String - Network name.
- project
Id Number - Project ID
- protocol String
- File share protocol
- region String
- Region name
- region
Id Number - Region ID
- String
- Share network name. May be null if the file share was created with volume type VAST
- Property Map
- Share settings specific to the file share type
- size Number
- File share size in GiB
- status String
- File share status Available values: "available", "awaiting_transfer", "backup_creating", "backup_restoring", "backup_restoring_error", "creating", "creating_from_snapshot", "deleted", "deleting", "ensuring", "error", "error_deleting", "extending", "extending_error", "inactive", "manage_error", "manage_starting", "migrating", "migrating_to", "replication_change", "reverting", "reverting_error", "shrinking", "shrinking_error", "shrinking_possible_data_loss_error", "unmanage_error", "unmanage_starting", "unmanaged".
- subnet
Id String - Subnet ID.
- subnet
Name String - Subnet name.
- List<Property Map>
- List of key-value tags associated with the resource. A tag is a key-value pair that can be associated with a resource, enabling efficient filtering and grouping for better organization and management. Some tags are read-only and cannot be modified by the user. Tags are also integrated with cost reports, allowing cost data to be filtered based on tag keys or values.
- type
Name String - File share type name Available values: "standard", "vast".
GetCloudFileSharesItemShareSettings
- 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".
GetCloudFileSharesItemTag
- 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
